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

Back to archive index

onokazu onoka****@users*****
2006年 4月 13日 (木) 12:36:48 JST


Index: xoops2jp/html/modules/mydownloads/index.php
diff -u xoops2jp/html/modules/mydownloads/index.php:1.4 xoops2jp/html/modules/mydownloads/index.php:1.4.6.1
--- xoops2jp/html/modules/mydownloads/index.php:1.4	Wed Aug  3 21:39:13 2005
+++ xoops2jp/html/modules/mydownloads/index.php	Thu Apr 13 12:36:48 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: index.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $
+// $Id: index.php,v 1.4.6.1 2006/04/13 03:36:48 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -126,7 +126,7 @@
     } else {
         $votestring = sprintf(_MD_NUMVOTES,$votes);
     }
-        $xoopsTpl->append('file', array('id' => $lid,'cid'=>$cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size'  => $size,'homepage' => $homepage,'version'  => $version,'category'  => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&amp;lid='.$lid)));
+        $xoopsTpl->append('file', array('id' => $lid,'cid'=>$cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size'  => $size,'homepage' => $homepage,'version'  => $version,'category'  => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid)));
 }
 
 include XOOPS_ROOT_PATH."/modules/mydownloads/footer.php";
Index: xoops2jp/html/modules/mydownloads/ratefile.php
diff -u xoops2jp/html/modules/mydownloads/ratefile.php:1.5 xoops2jp/html/modules/mydownloads/ratefile.php:1.5.4.1
--- xoops2jp/html/modules/mydownloads/ratefile.php:1.5	Mon Sep  5 05:46:09 2005
+++ xoops2jp/html/modules/mydownloads/ratefile.php	Thu Apr 13 12:36:48 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: ratefile.php,v 1.5 2005/09/04 20:46:09 onokazu Exp $
+// $Id: ratefile.php,v 1.5.4.1 2006/04/13 03:36:48 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -98,6 +98,7 @@
     $xoopsOption['template_main'] = 'mydownloads_ratefile.html';
     include XOOPS_ROOT_PATH."/header.php";
     $lid = intval($_GET['lid']);
+    $cid = intval($_GET['cid']);
     $result=$xoopsDB->query("SELECT title FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid");
     list($title) = $xoopsDB->fetchRow($result);
     $title = $myts->makeTboxData4Show($title);
@@ -111,5 +112,4 @@
     include XOOPS_ROOT_PATH.'/footer.php';
 
 }
-include "footer.php";
-?>
+?>
\ No newline at end of file
Index: xoops2jp/html/modules/mydownloads/singlefile.php
diff -u xoops2jp/html/modules/mydownloads/singlefile.php:1.5 xoops2jp/html/modules/mydownloads/singlefile.php:1.5.4.1
--- xoops2jp/html/modules/mydownloads/singlefile.php:1.5	Mon Sep  5 05:46:09 2005
+++ xoops2jp/html/modules/mydownloads/singlefile.php	Thu Apr 13 12:36:48 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: singlefile.php,v 1.5 2005/09/04 20:46:09 onokazu Exp $
+// $Id: singlefile.php,v 1.5.4.1 2006/04/13 03:36:48 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -73,7 +73,7 @@
     $xoopsTpl->assign('show_screenshot', true);
     $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS);
 }
-$xoopsTpl->assign('file', array('id' => $lid, 'cid' => $cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'platform' => $platform, 'comments' => $comments, 'size'  => $size,'homepage' => $homepage,'version'  => $version,'category'  => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&amp;lid='.$lid)));
+$xoopsTpl->assign('file', array('id' => $lid, 'cid' => $cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'platform' => $platform, 'comments' => $comments, 'size'  => $size,'homepage' => $homepage,'version'  => $version,'category'  => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid)));
 $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC);
 $xoopsTpl->assign('lang_lastupdate', _MD_LASTUPDATEC);
 $xoopsTpl->assign('lang_hits', _MD_HITSC);
Index: xoops2jp/html/modules/mydownloads/topten.php
diff -u xoops2jp/html/modules/mydownloads/topten.php:1.2 xoops2jp/html/modules/mydownloads/topten.php:1.2.16.1
--- xoops2jp/html/modules/mydownloads/topten.php:1.2	Fri Mar 18 21:52:14 2005
+++ xoops2jp/html/modules/mydownloads/topten.php	Thu Apr 13 12:36:48 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: topten.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
+// $Id: topten.php,v 1.2.16.1 2006/04/13 03:36:48 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -34,11 +34,11 @@
 include XOOPS_ROOT_PATH."/header.php";
 //generates top 10 charts by rating and hits for each main category
 if(!empty($_GET['rate'])){
-	$sort = _MD_RATING;
-	$sortDB = "rating";
+    $sort = _MD_RATING;
+    $sortDB = "rating";
 }else{
-	$sort = _MD_HITS;
-	$sortDB = "hits";
+    $sort = _MD_HITS;
+    $sortDB = "hits";
 }
 $xoopsTpl->assign('lang_sortby' ,$sort);
 $xoopsTpl->assign('lang_rank' , _MD_RANK);
@@ -52,30 +52,27 @@
 $e = 0;
 $rankings = array();
 while(list($cid,$ctitle)=$xoopsDB->fetchRow($result)){
-	$rankings[$e]['title'] = sprintf(_MD_TOP10, $myts->htmlSpecialChars($ctitle));
-	$query = "SELECT lid, cid, title, hits, rating, votes FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status>0 AND (cid=$cid";
+    $rankings[$e]['title'] = sprintf(_MD_TOP10, $myts->htmlSpecialChars($ctitle));
+    $query = "SELECT lid, cid, title, hits, rating, votes FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status>0 AND (cid=$cid";
 // get all child cat ids for a given cat id
-	$arr=$mytree->getAllChildId($cid);
-	$size = count($arr);
-	for($i=0;$i<$size;$i++){
-		$query .= " or cid=".$arr[$i]."";
-	}
-	$query .= ") order by ".$sortDB." DESC";
-	$result2 = $xoopsDB->query($query,10,0);
-	$rank = 1;
-	while(list($did,$dcid,$dtitle,$hits,$rating,$votes)=$xoopsDB->fetchRow($result2)){
-		$catpath = $mytree->getPathFromId($dcid, "title");
-		$catpath= substr($catpath, 1);
-		$catpath = str_replace("/"," <span class='fg2'>&raquo;&raquo;</span> ",$catpath);
-		$dtitle = $myts->makeTboxData4Show($dtitle);
-		$rankings[$e]['file'][] = array('id' => $did, 'cid' => $dcid, 'rank' => $rank, 'title' => $dtitle, 'category' => $catpath, 'hits' => $hits, 'rating' => number_format($rating, 2), 'votes' => $votes);
-		$rank++;
-	}
-	$e++;
+    $arr=$mytree->getAllChildId($cid);
+    $size = count($arr);
+    for($i=0;$i<$size;$i++){
+        $query .= " or cid=".$arr[$i]."";
+    }
+    $query .= ") order by ".$sortDB." DESC";
+    $result2 = $xoopsDB->query($query,10,0);
+    $rank = 1;
+    while(list($did,$dcid,$dtitle,$hits,$rating,$votes)=$xoopsDB->fetchRow($result2)){
+        $catpath = $mytree->getPathFromId($dcid, "title");
+        $catpath= substr($catpath, 1);
+        $catpath = str_replace("/"," <span class='fg2'>&raquo;&raquo;</span> ",$catpath);
+        $dtitle = $myts->makeTboxData4Show($dtitle);
+        $rankings[$e]['file'][] = array('id' => $did, 'cid' => $dcid, 'rank' => $rank, 'title' => $dtitle, 'category' => $catpath, 'hits' => $hits, 'rating' => number_format($rating, 2), 'votes' => $votes);
+        $rank++;
+    }
+    $e++;
 }
 $xoopsTpl->assign('rankings', $rankings);
 include XOOPS_ROOT_PATH.'/footer.php';
-
-include "footer.php";
-
-?>
+?>
\ No newline at end of file
Index: xoops2jp/html/modules/mydownloads/viewcat.php
diff -u xoops2jp/html/modules/mydownloads/viewcat.php:1.5 xoops2jp/html/modules/mydownloads/viewcat.php:1.5.4.1
--- xoops2jp/html/modules/mydownloads/viewcat.php:1.5	Mon Sep  5 05:46:09 2005
+++ xoops2jp/html/modules/mydownloads/viewcat.php	Thu Apr 13 12:36:48 2006
@@ -1,5 +1,5 @@
 <?php
-// $Id: viewcat.php,v 1.5 2005/09/04 20:46:09 onokazu Exp $
+// $Id: viewcat.php,v 1.5.4.1 2006/04/13 03:36:48 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -157,7 +157,7 @@
         } else {
             $votestring = sprintf(_MD_NUMVOTES,$votes);
         }
-        $xoopsTpl->append('file', array('id' => $lid, 'cid' => $cid, 'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size'  => $size,'homepage' => $homepage,'version'  => $version,'category'  => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&amp;lid='.$lid)));
+        $xoopsTpl->append('file', array('id' => $lid, 'cid' => $cid, 'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size'  => $size,'homepage' => $homepage,'version'  => $version,'category'  => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).':  '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid)));
     }
     $orderby = convertorderbyout($orderby);
 //Calculates how many pages exist.  Which page one should be on, etc...


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