Minahito
minah****@users*****
2005年 8月 25日 (木) 12:16:13 JST
Index: xoops2jp/html/class/xoopscomments.php diff -u xoops2jp/html/class/xoopscomments.php:1.3 xoops2jp/html/class/xoopscomments.php:1.3.2.1 --- xoops2jp/html/class/xoopscomments.php:1.3 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/xoopscomments.php Thu Aug 25 12:16:13 2005 @@ -1,5 +1,5 @@ <?php -// $Id: xoopscomments.php,v 1.3 2005/08/03 12:39:11 onokazu Exp $ +// $Id: xoopscomments.php,v 1.3.2.1 2005/08/25 03:16:13 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -179,7 +179,7 @@ function printNavBar($item_id, $mode="flat", $order=1) { global $xoopsConfig, $xoopsUser; - echo "<form method='get' action='".$_SERVER['PHP_SELF']."'><table width='100%' border='0' cellspacing='1' cellpadding='2'><tr><td class='bg1' align='center'><select name='mode'><option value='nocomments'"; + echo "<form method='get' action='".xoops_getenv('PHP_SELF')."'><table width='100%' border='0' cellspacing='1' cellpadding='2'><tr><td class='bg1' align='center'><select name='mode'><option value='nocomments'"; if ( $mode == "nocomments" ) { echo " selected='selected'"; } @@ -337,7 +337,7 @@ } else { $icon = "icons/no_posticon.gif"; } - echo "<tr class='$bg' align='left'><td>".$prefix."<img src='".XOOPS_URL."/images/".$icon."'> <a href='".$_SERVER['PHP_SELF']."?item_id=".$this->getVar("item_id")."&comment_id=".$this->getVar("comment_id")."&mode=".$mode."&order=".$order."#".$this->getVar("comment_id")."'>".$this->getVar("subject")."</a></td><td><a href='".XOOPS_URL."/userinfo.php?uid=".$this->getVar("user_id")."'>".XoopsUser::getUnameFromId($this->getVar("user_id"))."</a></td><td>".$date."</td></tr>"; + echo "<tr class='$bg' align='left'><td>".$prefix."<img src='".XOOPS_URL."/images/".$icon."'> <a href='".xoops_getenv('PHP_SELF')."?item_id=".$this->getVar("item_id")."&comment_id=".$this->getVar("comment_id")."&mode=".$mode."&order=".$order."#".$this->getVar("comment_id")."'>".$this->getVar("subject")."</a></td><td><a href='".XOOPS_URL."/userinfo.php?uid=".$this->getVar("user_id")."'>".XoopsUser::getUnameFromId($this->getVar("user_id"))."</a></td><td>".$date."</td></tr>"; } function showTreeFoot()