[xoops-cvslog 2624] CVS update: xoops2jp/html/modules/base/blocks

Back to archive index

NobuNobu nobun****@users*****
2006年 4月 2日 (日) 23:54:57 JST


Index: xoops2jp/html/modules/base/blocks/legacy_waiting.php
diff -u xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.1 xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.2
--- xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.1	Sun Mar 26 15:07:46 2006
+++ xoops2jp/html/modules/base/blocks/legacy_waiting.php	Sun Apr  2 23:54:57 2006
@@ -3,61 +3,9 @@
     global $xoopsUser;
     $xoopsDB =& Database::getInstance();
     $module_handler =& xoops_gethandler('module');
-    $block = array();
-    if ($module_handler->getCount(new Criteria('dirname', 'news'))) {
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("stories")." WHERE published=0");
-        if ( $result ) {
-            $block['modules'][0]['adminlink'] = XOOPS_URL."/modules/news/admin/index.php?op=newarticle";
-            list($block['modules'][0]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][0]['lang_linkname'] = _MB_BASE_SUBMS;
-        }
-    }
-    if ($module_handler->getCount(new Criteria('dirname', 'mylinks'))) {
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_links")." WHERE status=0");
-        if ( $result ) {
-            $block['modules'][1]['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listNewLinks";
-            list($block['modules'][1]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][1]['lang_linkname'] = _MB_BASE_WLNKS;
-        }
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_broken"));
-        if ( $result ) {
-            $block['modules'][2]['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listBrokenLinks";
-            list($block['modules'][2]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][2]['lang_linkname'] = _MB_BASE_BLNK;
-        }
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_mod"));
-        if ( $result ) {
-            $block['modules'][3]['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listModReq";
-            list($block['modules'][3]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][3]['lang_linkname'] = _MB_BASE_MLNKS;
-        }
-    }
-    if ($module_handler->getCount(new Criteria('dirname', 'mydownloads'))) {
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status=0");
-        if ( $result ) {
-            $block['modules'][4]['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listNewDownloads";
-            list($block['modules'][4]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][4]['lang_linkname'] = _MB_BASE_WDLS;
-        }
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_broken")."");
-        if ( $result ) {
-            $block['modules'][5]['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listBrokenDownloads";
-            list($block['modules'][5]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][5]['lang_linkname'] = _MB_BASE_BFLS;
-        }
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_mod")."");
-        if ( $result ) {
-            $block['modules'][6]['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listModReq";
-            list($block['modules'][6]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][6]['lang_linkname'] = _MB_BASE_MFLS;
-        }
-    }
-        $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_status=1");
-        if ( $result ) {
-            $block['modules'][7]['adminlink'] = XOOPS_URL."/modules/system/admin.php?module=0&status=1&fct=comments";
-            list($block['modules'][7]['pendingnum']) = $xoopsDB->fetchRow($result);
-            $block['modules'][7]['lang_linkname'] =_MB_BASE_COMPEND;
-        }
+
+    $modules = array();
+    $block =& XCube_EventUtils::quickRaiseEvent('Legacyblock.Wating.Show', array('modules'=>&$modules));
     return $block;
 }
 ?>


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