[xoops-cvslog 404] CVS update: xoops2jp/html/modules/mydownloads

Back to archive index

onokazu onoka****@users*****
2005年 9月 5日 (月) 05:46:10 JST


Index: xoops2jp/html/modules/mydownloads/brokenfile.php
diff -u xoops2jp/html/modules/mydownloads/brokenfile.php:1.2 xoops2jp/html/modules/mydownloads/brokenfile.php:1.3
--- xoops2jp/html/modules/mydownloads/brokenfile.php:1.2	Fri Mar 18 21:52:14 2005
+++ xoops2jp/html/modules/mydownloads/brokenfile.php	Mon Sep  5 05:46:09 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: brokenfile.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
+// $Id: brokenfile.php,v 1.3 2005/09/04 20:46:09 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -28,14 +28,14 @@
 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');
 	}
 	$ip = getenv("REMOTE_ADDR");
-	$lid = intval($HTTP_POST_VARS['lid']);
+	$lid = intval($_POST['lid']);
 	if ( $sender != 0 ) {
 		// Check if REG user is trying to report twice.
 		$result=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_broken")." WHERE lid=$lid AND sender=$sender");
@@ -66,7 +66,7 @@
 	$xoopsOption['template_main'] = 'mydownloads_brokenfile.html';
 	include XOOPS_ROOT_PATH.'/header.php';
 	$xoopsTpl->assign('lang_reportbroken', _MD_REPORTBROKEN);
-	$xoopsTpl->assign('file_id', intval($HTTP_GET_VARS['lid']));
+	$xoopsTpl->assign('file_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/mydownloads/comment_new.php
diff -u xoops2jp/html/modules/mydownloads/comment_new.php:1.2 xoops2jp/html/modules/mydownloads/comment_new.php:1.3
--- xoops2jp/html/modules/mydownloads/comment_new.php:1.2	Fri Mar 18 21:52:14 2005
+++ xoops2jp/html/modules/mydownloads/comment_new.php	Mon Sep  5 05:46:09 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: comment_new.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
+// $Id: comment_new.php,v 1.3 2005/09/04 20:46:09 onokazu 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 file title
     $sql = "SELECT title FROM " . $xoopsDB->prefix('mydownloads_downloads') . " WHERE lid=" . $com_itemid . "";
Index: xoops2jp/html/modules/mydownloads/modfile.php
diff -u xoops2jp/html/modules/mydownloads/modfile.php:1.2 xoops2jp/html/modules/mydownloads/modfile.php:1.3
--- xoops2jp/html/modules/mydownloads/modfile.php:1.2	Fri Mar 18 21:52:14 2005
+++ xoops2jp/html/modules/mydownloads/modfile.php	Mon Sep  5 05:46:09 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: modfile.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
+// $Id: modfile.php,v 1.3 2005/09/04 20:46:09 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -31,7 +31,7 @@
 $myts =& MyTextSanitizer::getInstance(); // MyTextSanitizer object
 $mytree = new XoopsTree($xoopsDB->prefix("mydownloads_cat"),"cid","pid");
 
-if($HTTP_POST_VARS['submit']) {
+if($_POST['submit']) {
 	$eh = new ErrorHandler; //ErrorHandler object
 	if(empty($xoopsUser)){
 		redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST);
@@ -41,7 +41,7 @@
 	}
 	$submit_vars = array('lid', 'title', 'url', 'homepage', 'description', 'logourl', 'cid', 'version', 'size', 'platform');
 	foreach($submit_vars as $submit_key) {
-		$$submit_key = $HTTP_POST_VARS[$submit_key];
+		$$submit_key = $_POST[$submit_key];
 	}
 	$lid = intval($lid);
 
@@ -83,7 +83,7 @@
 	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/mydownloads/ratefile.php
diff -u xoops2jp/html/modules/mydownloads/ratefile.php:1.4 xoops2jp/html/modules/mydownloads/ratefile.php:1.5
--- xoops2jp/html/modules/mydownloads/ratefile.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mydownloads/ratefile.php	Mon Sep  5 05:46:09 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: ratefile.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $
+// $Id: ratefile.php,v 1.5 2005/09/04 20:46:09 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -29,7 +29,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;
@@ -40,9 +40,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=="--") {
@@ -97,7 +97,7 @@
 
     $xoopsOption['template_main'] = 'mydownloads_ratefile.html';
     include XOOPS_ROOT_PATH."/header.php";
-    $lid = intval($HTTP_GET_VARS['lid']);
+    $lid = intval($_GET['lid']);
     $result=$xoopsDB->query("SELECT title FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid");
     list($title) = $xoopsDB->fetchRow($result);
     $title = $myts->makeTboxData4Show($title);
Index: xoops2jp/html/modules/mydownloads/singlefile.php
diff -u xoops2jp/html/modules/mydownloads/singlefile.php:1.4 xoops2jp/html/modules/mydownloads/singlefile.php:1.5
--- xoops2jp/html/modules/mydownloads/singlefile.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mydownloads/singlefile.php	Mon Sep  5 05:46:09 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: singlefile.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $
+// $Id: singlefile.php,v 1.5 2005/09/04 20:46:09 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -32,8 +32,8 @@
 
 // Used to view just a single DL file information. Called from the rating pages
 
-$lid = intval($HTTP_GET_VARS['lid']);
-$cid = intval($HTTP_GET_VARS['cid']);
+$lid = intval($_GET['lid']);
+$cid = intval($_GET['cid']);
 $xoopsOption['template_main'] = 'mydownloads_singlefile.html';
 include XOOPS_ROOT_PATH."/header.php";
 $q = "SELECT d.lid, d.cid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE d.lid=$lid AND d.lid=t.lid AND status>0";
Index: xoops2jp/html/modules/mydownloads/submit.php
diff -u xoops2jp/html/modules/mydownloads/submit.php:1.3 xoops2jp/html/modules/mydownloads/submit.php:1.4
--- xoops2jp/html/modules/mydownloads/submit.php:1.3	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mydownloads/submit.php	Mon Sep  5 05:46:09 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.4 2005/09/04 20:46:09 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -39,44 +39,44 @@
 	exit();
 }
 
-if (!empty($HTTP_POST_VARS['submit'])) {
+if (!empty($_POST['submit'])) {
 
 	$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
 
 	// Check if Title exist
-	if ($HTTP_POST_VARS["title"]=="") {
+	if ($_POST["title"]=="") {
 		$eh->show("1001");
 	}
 	// Check if URL exist
-	if (($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="")) {
-		$url = $HTTP_POST_VARS["url"];
+	if (($_POST["url"]) || ($_POST["url"]!="")) {
+		$url = $_POST["url"];
 	}
 	if ($url=="") {
 		$eh->show("1016");
 	}
 	// Check if HomePage exist
-	if ($HTTP_POST_VARS["homepage"]=="") {
+	if ($_POST["homepage"]=="") {
 		$eh->show("1017");
 	}
 	// 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;
 	}
 	$url = $myts->makeTboxData4Save(formatURL($url));
-	$title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]);
-	$homepage = $myts->makeTboxData4Save($HTTP_POST_VARS["homepage"]);
-	$version = $myts->makeTboxData4Save($HTTP_POST_VARS["version"]);
-	$size = intval($HTTP_POST_VARS["size"]);
-	$platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]);
-	$description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]);
+	$title = $myts->makeTboxData4Save($_POST["title"]);
+	$homepage = $myts->makeTboxData4Save($_POST["homepage"]);
+	$version = $myts->makeTboxData4Save($_POST["version"]);
+	$size = intval($_POST["size"]);
+	$platform = $myts->makeTboxData4Save($_POST["platform"]);
+	$description = $myts->makeTareaData4Save($_POST["message"]);
 	$date = time();
 	$newid = $xoopsDB->genId($xoopsDB->prefix("mydownloads_downloads")."_lid_seq");
 
Index: xoops2jp/html/modules/mydownloads/viewcat.php
diff -u xoops2jp/html/modules/mydownloads/viewcat.php:1.4 xoops2jp/html/modules/mydownloads/viewcat.php:1.5
--- xoops2jp/html/modules/mydownloads/viewcat.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mydownloads/viewcat.php	Mon Sep  5 05:46:09 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.5 2005/09/04 20:46:09 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -31,20 +31,20 @@
 $myts =& MyTextSanitizer::getInstance();// MyTextSanitizer object
 $mytree = new XoopsTree($xoopsDB->prefix("mydownloads_cat"),"cid","pid");
 
-$cid = intval($HTTP_GET_VARS['cid']);
+$cid = intval($_GET['cid']);
 include XOOPS_ROOT_PATH."/header.php";
 
-if (isset($HTTP_GET_VARS['show']) && $HTTP_GET_VARS['show']!="") {
-    $show = intval($HTTP_GET_VARS['show']);
+if (isset($_GET['show']) && $_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";
 }


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