[xoops-cvslog 199] CVS update: xoops2jp/html/modules/xoopspartners

Back to archive index

onokazu onoka****@users*****
2005年 6月 25日 (土) 20:31:21 JST


Index: xoops2jp/html/modules/xoopspartners/index.php
diff -u xoops2jp/html/modules/xoopspartners/index.php:1.2.10.2 xoops2jp/html/modules/xoopspartners/index.php:1.2.10.3
--- xoops2jp/html/modules/xoopspartners/index.php:1.2.10.2	Sun Jun 19 01:03:51 2005
+++ xoops2jp/html/modules/xoopspartners/index.php	Sat Jun 25 20:31:21 2005
@@ -1,5 +1,5 @@
 <?php
-// $Id: index.php,v 1.2.10.2 2005/06/18 16:03:51 nobunobu Exp $
+// $Id: index.php,v 1.2.10.3 2005/06/25 11:31:21 onokazu Exp $
 //  ------------------------------------------------------------------------ //
 //                XOOPS - PHP Content Management System                      //
 //                    Copyright (c) 2000 XOOPS.org                           //
@@ -32,15 +32,8 @@
 $xoopsOption['template_main'] = 'xoopspartners_index.html';
 include XOOPS_ROOT_PATH."/header.php";
 $part = new PartnerSystem();
-if (! isset($start)){
-    $start=0;
-}
+$start = isset($_GET['start']) ? intval($_GET['start']) : 0;
 
-if ( !$start or $start == 0 and $xoopsModuleConfig['modlimit'] != 0) {
-    $init = 0;
-} elseif ( $start != 0 and $xoopsModuleConfig['modlimit'] != 0) {
-    $init = $start;
-}
 $admin = 0;
 if ($xoopsUser) {
     $xoopsTpl->assign("partner_join" ,"<a href='join.php'><b>"._MD_JOIN."</b></a>");
@@ -48,7 +41,7 @@
 $query = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("partners")." WHERE status=1");
 list($numrows) = $xoopsDB->fetchrow($query);
 if( $xoopsModuleConfig['modlimit'] != 0 ) {
-    $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd'],$xoopsModuleConfig['modlimit'],$init);
+    $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd'],$xoopsModuleConfig['modlimit'],$start);
 }else{
     $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd']);
 }


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