• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revision2c44c298158023b35f03de8beaaa11e8d87f6290 (tree)
Time2006-10-05 14:48:46
Authorshizuki <shizuki@1ca2...>
Commitershizuki

Log Message

とりあえず完動品
reqired TagEX v0.42 or later
どなたかチェックお願いします

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@417 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_ShowBlogs/NP_ShowBlogs.php
+++ b/trunk/NP_ShowBlogs/NP_ShowBlogs.php
@@ -31,6 +31,8 @@ class NP_ShowBlogs extends NucleusPlugin
3131 {
3232
3333 var $nowbid;
34+ var $currentpage;
35+ var $pagestr;
3436
3537 function getName()
3638 {
@@ -54,7 +56,7 @@ class NP_ShowBlogs extends NucleusPlugin
5456
5557 function getVersion()
5658 {
57- return '2.64';
59+ return '2.641';
5860 }
5961
6062 function getDescription()
@@ -362,7 +364,7 @@ $monthlimit = 0;
362364 $b->showUsingQuery($template, $second_query, 0, 1, 1);
363365 }
364366
365- function InitSkinParse($data)
367+ function event_InitSkinParse($data)
366368 {
367369 global $CONF;
368370 $usePathInfo = ($CONF['URLMode'] == 'pathinfo');
@@ -372,10 +374,9 @@ $monthlimit = 0;
372374 } else {
373375 $uri = serverVar('REQUEST_URI');
374376 }
375- $page_str = ($usePathInfo) ? 'page/' : 'page=';
376- list($org_uri, $currentpage) = explode($page_str, $uri, 2);
377- $_REQUEST['page'] = intval($currentpage);
378- echo intval($currentpage);
377+ $this->pagestr = ($usePathInfo) ? 'page/' : 'page=';
378+ list($org_uri, $currentpage) = explode($this->pagestr, $uri, 2);
379+ $this->$currentpage = intval($currentpage);
379380 }
380381
381382 function PageSwitch($type, $pageamount, $offset, $where, $sort, $mtable = '')
Show on old repository browser