[xoops-cvslog 353] CVS update: xoops2jp/html/modules/mylinks

Back to archive index

NobuNobu nobun****@users*****
2005年 8月 21日 (日) 13:16:54 JST


Index: xoops2jp/html/modules/mylinks/brokenlink.php
diff -u xoops2jp/html/modules/mylinks/brokenlink.php:1.2 xoops2jp/html/modules/mylinks/brokenlink.php:1.2.12.1
--- xoops2jp/html/modules/mylinks/brokenlink.php:1.2	Fri Mar 18 21:52:24 2005
+++ xoops2jp/html/modules/mylinks/brokenlink.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: brokenlink.php,v 1.2 2005/03/18 12:52:24 onokazu Exp $
+// $Id: brokenlink.php,v 1.2.12.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -27,13 +27,13 @@
 include "header.php";
 $myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object
 
-if (!empty($HTTP_POST_VARS['submit'])) {
+if (!empty($_POST['submit'])) {
 	if (empty($xoopsUser)) {
 		$sender = 0;
 	} else {
 		$sender = $xoopsUser->getVar('uid');
 	}
-	$lid = intval($HTTP_POST_VARS['lid']);
+	$lid = intval($_POST['lid']);
 	$ip = getenv("REMOTE_ADDR");
 	if ($sender != 0) {
 		// Check if REG user is trying to report twice.
@@ -65,7 +65,7 @@
 	$xoopsOption['template_main'] = 'mylinks_brokenlink.html';
 	include XOOPS_ROOT_PATH.'/header.php';
 	$xoopsTpl->assign('lang_reportbroken', _MD_REPORTBROKEN);
-	$xoopsTpl->assign('link_id', intval($HTTP_GET_VARS['lid']));
+	$xoopsTpl->assign('link_id', intval($_GET['lid']));
 	$xoopsTpl->assign('lang_thanksforhelp', _MD_THANKSFORHELP);
 	$xoopsTpl->assign('lang_forsecurity', _MD_FORSECURITY);
 	$xoopsTpl->assign('lang_cancel', _MD_CANCEL);
Index: xoops2jp/html/modules/mylinks/comment_new.php
diff -u xoops2jp/html/modules/mylinks/comment_new.php:1.2 xoops2jp/html/modules/mylinks/comment_new.php:1.2.12.1
--- xoops2jp/html/modules/mylinks/comment_new.php:1.2	Fri Mar 18 21:52:24 2005
+++ xoops2jp/html/modules/mylinks/comment_new.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: comment_new.php,v 1.2 2005/03/18 12:52:24 onokazu Exp $
+// $Id: comment_new.php,v 1.2.12.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -26,7 +26,7 @@
 //  ------------------------------------------------------------------------ //
 
 include '../../mainfile.php';
-$com_itemid = isset($HTTP_GET_VARS['com_itemid']) ? intval($HTTP_GET_VARS['com_itemid']) : 0;
+$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0;
 if ($com_itemid > 0) {
 	// Get link title
 	$sql = "SELECT title FROM " . $xoopsDB->prefix('mylinks_links') . " WHERE lid=" . $com_itemid . "";
Index: xoops2jp/html/modules/mylinks/modlink.php
diff -u xoops2jp/html/modules/mylinks/modlink.php:1.2 xoops2jp/html/modules/mylinks/modlink.php:1.2.12.1
--- xoops2jp/html/modules/mylinks/modlink.php:1.2	Fri Mar 18 21:52:24 2005
+++ xoops2jp/html/modules/mylinks/modlink.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: modlink.php,v 1.2 2005/03/18 12:52:24 onokazu Exp $
+// $Id: modlink.php,v 1.2.12.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -31,7 +31,7 @@
 include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php";
 $mytree = new XoopsTree($xoopsDB->prefix("mylinks_cat"),"cid","pid");
 
-if (!empty($HTTP_POST_VARS['submit'])) {
+if (!empty($_POST['submit'])) {
 	$eh = new ErrorHandler; //ErrorHandler object
 	if (empty($xoopsUser)) {
 		redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
@@ -39,26 +39,26 @@
 	} else {
 		$user = $xoopsUser->getVar('uid');
 	}
-   	$lid = intval($HTTP_POST_VARS["lid"]);
+   	$lid = intval($_POST["lid"]);
 
 	// Check if Title exist
-   	if ($HTTP_POST_VARS["title"]=="") {
+   	if ($_POST["title"]=="") {
        	$eh->show("1001");
    	}
 	// Check if URL exist
-   	if ($HTTP_POST_VARS["url"]=="") {
+   	if ($_POST["url"]=="") {
        	$eh->show("1016");
    	}
 	// Check if Description exist
-   	if ($HTTP_POST_VARS['description']=="") {
+   	if ($_POST['description']=="") {
        	$eh->show("1008");
    	}
 
-	$url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]);
-	$logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]);
-	$cid = intval($HTTP_POST_VARS["cid"]);
-	$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
-	$description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]);
+	$url = $myts->makeTboxData4Save($_POST["url"]);
+	$logourl = $myts->makeTboxData4Save($_POST["logourl"]);
+	$cid = intval($_POST["cid"]);
+	$title = $myts->makeTboxData4Save($_POST["title"]);
+	$description = $myts->makeTareaData4Save($_POST["description"]);
 	$newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_mod")."_requestid_seq");
 	$sql = sprintf("INSERT INTO %s (requestid, lid, cid, title, url, logourl, description, modifysubmitter) VALUES (%u, %u, %u, '%s', '%s', '%s', '%s', %u)", $xoopsDB->prefix("mylinks_mod"), $newid, $lid, $cid, $title, $url, $logourl, $description, $user);
 	$xoopsDB->query($sql) or $eh->show("0013");
@@ -69,7 +69,7 @@
 	redirect_header("index.php",2,_MD_THANKSFORINFO);
 	exit();
 } else {
-	$lid = intval($HTTP_GET_VARS['lid']);
+	$lid = intval($_GET['lid']);
 	if (empty($xoopsUser)) {
 		redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
 		exit();
Index: xoops2jp/html/modules/mylinks/myheader.php
diff -u xoops2jp/html/modules/mylinks/myheader.php:1.4.2.1 xoops2jp/html/modules/mylinks/myheader.php:1.4.2.2
--- xoops2jp/html/modules/mylinks/myheader.php:1.4.2.1	Sat Aug 13 23:47:42 2005
+++ xoops2jp/html/modules/mylinks/myheader.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: myheader.php,v 1.4.2.1 2005/08/13 14:47:42 nobunobu Exp $
+// $Id: myheader.php,v 1.4.2.2 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -37,9 +37,9 @@
 // Code below uses users current selected theme style      //
 
 include "../../mainfile.php";
-$url = htmlspecialchars(preg_replace( '/javascript:/si' , 'java script:', $HTTP_GET_VARS['url'] ));
-$lid = intval($HTTP_GET_VARS['lid']);
-$cid = intval($HTTP_GET_VARS['cid']);
+$url = htmlspecialchars(preg_replace( '/javascript:/si' , 'java script:', $_GET['url'] ));
+$lid = intval($_GET['lid']);
+$cid = intval($_GET['cid']);
 echo"<html><head><style><!--.bg1 {    background-color : #E3E4E0;}.bg2 {    background-color : #e5e5e5;}.bg3 {     background-color : #f6f6f6;}.bg4 {    background-color : #f0f0f0;}.bg5 {    background-color : f8f8f8;}body { margin-left: 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 0px;font-family: Tahoma, taipei; color;#000000; font-size: 10px; background-color : #2F5376; color: #ffffff;}a {  font-weight: bold;font-family: Tahoma, taipei; font-size: 10px; text-decoration: none; color: #666666; font-style: normal}A:hover {  font-weight: bold;text-decoration: underline;  font-family: Tahoma, taipei; font-size: 10px; color: #FF9966; font-style: normal}td {  font-family: Tahoma, taipei; color: #000000; font-size: 10px;border-top-width : 1px; border-right-width : 1px; border-bottom-width : 1px; border-left-width : 1px;}img { border:0;}//--></style>";
 $mail_subject = rawurlencode(sprintf(_MD_INTRESTLINK,$xoopsConfig['sitename']));
 $mail_body = rawurlencode(sprintf(_MD_INTLINKFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mylinks/singlelink.php?cid='.$cid.'&amp;lid='.$lid);
Index: xoops2jp/html/modules/mylinks/ratelink.php
diff -u xoops2jp/html/modules/mylinks/ratelink.php:1.4 xoops2jp/html/modules/mylinks/ratelink.php:1.4.2.1
--- xoops2jp/html/modules/mylinks/ratelink.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mylinks/ratelink.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: ratelink.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $
+// $Id: ratelink.php,v 1.4.2.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -28,7 +28,7 @@
 include_once XOOPS_ROOT_PATH."/class/module.errorhandler.php";
 $myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object
 
-if (!empty($HTTP_POST_VARS['submit'])) {
+if (!empty($_POST['submit'])) {
     $eh = new ErrorHandler; //ErrorHandler object
     if(empty($xoopsUser)){
         $ratinguser = 0;
@@ -39,9 +39,9 @@
     //Make sure only 1 anonymous from an IP in a single day.
     $anonwaitdays = 1;
     $ip = getenv("REMOTE_ADDR");
-    $lid = intval($HTTP_POST_VARS['lid']);
-    $cid = intval($HTTP_POST_VARS['cid']);
-    $rating = intval($HTTP_POST_VARS['rating']);
+    $lid = intval($_POST['lid']);
+    $cid = intval($_POST['cid']);
+    $rating = intval($_POST['rating']);
 
     // Check if Rating is Null
     if ($rating=="--") {
@@ -99,8 +99,8 @@
 
     $xoopsOption['template_main'] = 'mylinks_ratelink.html';
     include XOOPS_ROOT_PATH."/header.php";
-    $lid = intval($HTTP_GET_VARS['lid']);
-    $cid = intval($HTTP_GET_VARS['cid']);
+    $lid = intval($_GET['lid']);
+    $cid = intval($_GET['cid']);
     $result=$xoopsDB->query("select title from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid");
     list($title) = $xoopsDB->fetchRow($result);
     $xoopsTpl->assign('link', array('id' => $lid, 'cid' => $cid, 'title' => $myts->htmlSpecialChars($title)));
Index: xoops2jp/html/modules/mylinks/singlelink.php
diff -u xoops2jp/html/modules/mylinks/singlelink.php:1.4 xoops2jp/html/modules/mylinks/singlelink.php:1.4.2.1
--- xoops2jp/html/modules/mylinks/singlelink.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mylinks/singlelink.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: singlelink.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $
+// $Id: singlelink.php,v 1.4.2.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -28,8 +28,8 @@
 $myts =& MyTextSanitizer::getInstance();// MyTextSanitizer object
 include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
 $mytree = new XoopsTree($xoopsDB->prefix("mylinks_cat"),"cid","pid");
-$lid = intval($HTTP_GET_VARS['lid']);
-$cid = intval($HTTP_GET_VARS['cid']);
+$lid = intval($_GET['lid']);
+$cid = intval($_GET['cid']);
 $xoopsOption['template_main'] = 'mylinks_singlelink.html';
 include XOOPS_ROOT_PATH."/header.php";
 
Index: xoops2jp/html/modules/mylinks/submit.php
diff -u xoops2jp/html/modules/mylinks/submit.php:1.3 xoops2jp/html/modules/mylinks/submit.php:1.3.2.1
--- xoops2jp/html/modules/mylinks/submit.php:1.3	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mylinks/submit.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: submit.php,v 1.3 2005/08/03 12:39:13 onokazu Exp $
+// $Id: submit.php,v 1.3.2.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -38,39 +38,39 @@
 	exit();
 }
 
-if (!empty($HTTP_POST_VARS['submit'])) {
+if (!empty($_POST['submit'])) {
 
 	$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
 
 	// RMV - why store submitter on form??
-   	//if (!$HTTP_POST_VARS['submitter'] and $xoopsUser) {
+   	//if (!$_POST['submitter'] and $xoopsUser) {
     //   $submitter = $xoopsUser->uid();
-   	//}elseif(!$HTTP_POST_VARS['submitter'] and !$xoopsUser) {
+   	//}elseif(!$_POST['submitter'] and !$xoopsUser) {
 	//	$submitter = 0;
 	//}else{
-	//	$submitter = intval($HTTP_POST_VARS['submitter']);
+	//	$submitter = intval($_POST['submitter']);
 	//}
 
 	// Check if Title exist
-   	if ($HTTP_POST_VARS["title"]=="") {
+   	if ($_POST["title"]=="") {
        	$eh->show("1001");
    	}
 
 	// Check if URL exist
-	$url = $HTTP_POST_VARS["url"];
+	$url = $_POST["url"];
    	if ($url=="" || !isset($url)) {
        	$eh->show("1016");
    	}
 
 	// Check if Description exist
-   	if ($HTTP_POST_VARS['message']=="") {
+   	if ($_POST['message']=="") {
        	$eh->show("1008");
    	}
 
-	$notify = !empty($HTTP_POST_VARS['notify']) ? 1 : 0;
+	$notify = !empty($_POST['notify']) ? 1 : 0;
 
-	if ( !empty($HTTP_POST_VARS['cid']) ) {
-   		$cid = intval($HTTP_POST_VARS['cid']);
+	if ( !empty($_POST['cid']) ) {
+   		$cid = intval($_POST['cid']);
 	} else {
 		$cid = 0;
 	}
@@ -78,8 +78,8 @@
 	//	$url = urlencode($url);
 	$url = $myts->makeTboxData4Save($url);
 
-	$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
-    $description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]);
+	$title = $myts->makeTboxData4Save($_POST["title"]);
+    $description = $myts->makeTareaData4Save($_POST["message"]);
 	$date = time();
 	$newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_links")."_lid_seq");
 	if ( $xoopsModuleConfig['autoapprove'] == 1 ) {
Index: xoops2jp/html/modules/mylinks/viewcat.php
diff -u xoops2jp/html/modules/mylinks/viewcat.php:1.4 xoops2jp/html/modules/mylinks/viewcat.php:1.4.2.1
--- xoops2jp/html/modules/mylinks/viewcat.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mylinks/viewcat.php	Sun Aug 21 13:16:53 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: viewcat.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $
+// $Id: viewcat.php,v 1.4.2.1 2005/08/21 04:16:53 nobunobu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -29,21 +29,21 @@
 include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
 $mytree = new XoopsTree($xoopsDB->prefix("mylinks_cat"),"cid","pid");
 
-$cid = intval($HTTP_GET_VARS['cid']);
+$cid = intval($_GET['cid']);
 $xoopsOption['template_main'] = 'mylinks_viewcat.html';
 include XOOPS_ROOT_PATH."/header.php";
 
-if (isset($HTTP_GET_VARS['show'])) {
-        $show = intval($HTTP_GET_VARS['show']);
+if (isset($_GET['show'])) {
+        $show = intval($_GET['show']);
 } else {
         $show = $xoopsModuleConfig['perpage'];
 }
-$min = isset($HTTP_GET_VARS['min']) ? intval($HTTP_GET_VARS['min']) : 0;
+$min = isset($_GET['min']) ? intval($_GET['min']) : 0;
 if (!isset($max)) {
         $max = $min + $show;
 }
-if(isset($HTTP_GET_VARS['orderby'])) {
-        $orderby = convertorderbyin($HTTP_GET_VARS['orderby']);
+if(isset($_GET['orderby'])) {
+        $orderby = convertorderbyin($_GET['orderby']);
 } else {
         $orderby = "title ASC";
 }
@@ -146,7 +146,7 @@
     $linkpages = ceil($numrows / $show);
     //Page Numbering
     if ($linkpages!=1 && $linkpages!=0) {
-        $cid = intval($HTTP_GET_VARS['cid']);
+        $cid = intval($_GET['cid']);
         $prev = $min - $show;
         if ($prev>=0) {
             $page_nav .= "<a href='viewcat.php?cid=$cid&amp;min=$prev&amp;orderby=$orderby&amp;show=$show'><b><u>&laquo;</u></b></a>&nbsp;";


xoops-cvslog メーリングリストの案内
Back to archive index