onokazu
onoka****@users*****
2005年 9月 5日 (月) 05:46:08 JST
Index: xoops2jp/html/class/module.textsanitizer.php diff -u xoops2jp/html/class/module.textsanitizer.php:1.4 xoops2jp/html/class/module.textsanitizer.php:1.5 --- xoops2jp/html/class/module.textsanitizer.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/module.textsanitizer.php Mon Sep 5 05:46:08 2005 @@ -1,5 +1,5 @@ <?php -// $Id: module.textsanitizer.php,v 1.4 2005/08/03 12:39:11 onokazu Exp $ +// $Id: module.textsanitizer.php,v 1.5 2005/09/04 20:46:08 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -182,12 +182,12 @@ if ($allowimage != 1) { $replacements[] = '<a href="\\3" target="_blank">\\3</a>'; $replacements[] = '<a href="\\1" target="_blank">\\1</a>'; - $replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\\4" target="_blank">\\4</a>'; + $replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\\4" target="_blank">\\5</a>'; $replacements[] = '<a href="'.XOOPS_URL.'/image.php?id=\\2" target="_blank">\\3</a>'; } else { $replacements[] = '<img src="\\3" align="\\2" alt="" />'; $replacements[] = '<img src="\\1" alt="" />'; - $replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\\4" align="\\2" alt="\\4" />'; + $replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\\4" align="\\2" alt="\\5" />'; $replacements[] = '<img src="'.XOOPS_URL.'/image.php?id=\\2" alt="\\3" />'; } $patterns[] = "/\[quote]/sU"; Index: xoops2jp/html/class/pagenav.php diff -u xoops2jp/html/class/pagenav.php:1.4 xoops2jp/html/class/pagenav.php:1.5 --- xoops2jp/html/class/pagenav.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/pagenav.php Mon Sep 5 05:46:08 2005 @@ -1,5 +1,5 @@ <?php -// $Id: pagenav.php,v 1.4 2005/08/03 12:39:11 onokazu Exp $ +// $Id: pagenav.php,v 1.5 2005/09/04 20:46:08 onokazu Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -66,7 +66,7 @@ if ( $extra_arg != '' && ( substr($extra_arg, -5) != '&' || substr($extra_arg, -1) != '&' ) ) { $extra_arg .= '&'; } - $this->url = $_SERVER['PHP_SELF'].'?'.$extra_arg.trim($start_name).'='; + $this->url = xoops_getenv('PHP_SELF').'?'.$extra_arg.trim($start_name).'='; } /** @@ -125,7 +125,7 @@ $total_pages = ceil($this->total / $this->perpage); $ret = ''; if ( $total_pages > 1 ) { - $ret = '<form name="pagenavform" action="'.$_SERVER['PHP_SELF'].'">'; + $ret = '<form name="pagenavform" action="'.xoops_getenv('PHP_SELF').'">'; $ret .= '<select name="pagenavselect" onchange="location=this.options[this.options.selectedIndex].value;">'; $counter = 1; $current_page = intval(floor(($this->current + $this->perpage) / $this->perpage)); Index: xoops2jp/html/class/xoopscomments.php diff -u xoops2jp/html/class/xoopscomments.php:1.3 xoops2jp/html/class/xoopscomments.php:1.4 --- xoops2jp/html/class/xoopscomments.php:1.3 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/xoopscomments.php Mon Sep 5 05:46:08 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.4 2005/09/04 20:46:08 onokazu 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()