19 $this->mController->mRoot->mDelegateManager->add(
'Legacyblock.Waiting.Show', [&$this,
'callbackWaitingShow']);
22 public function callbackWaitingShow(&$modules)
24 $xoopsDB =& Database::getInstance();
25 $module_handler =& xoops_gethandler(
'module');
27 if ($module_handler->getCount(
new Criteria(
'dirname',
'news'))) {
28 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'stories') .
' WHERE published=0');
31 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/news/admin/index.php?op=newarticle';
32 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
33 $blockVal[
'lang_linkname'] = _MB_LEGACY_SUBMS;
34 $modules[] = $blockVal;
38 if ($module_handler->getCount(
new Criteria(
'dirname',
'mylinks'))) {
39 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'mylinks_links') .
' WHERE status=0');
42 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/mylinks/admin/index.php?op=listNewLinks';
43 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
44 $blockVal[
'lang_linkname'] = _MB_LEGACY_WLNKS;
45 $modules[] = $blockVal;
47 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'mylinks_broken'));
50 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/mylinks/admin/index.php?op=listBrokenLinks';
51 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
52 $blockVal[
'lang_linkname'] = _MB_LEGACY_BLNK;
53 $modules[] = $blockVal;
55 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'mylinks_mod'));
58 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/mylinks/admin/index.php?op=listModReq';
59 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
60 $blockVal[
'lang_linkname'] = _MB_LEGACY_MLNKS;
61 $modules[] = $blockVal;
65 if ($module_handler->getCount(
new Criteria(
'dirname',
'mydownloads'))) {
66 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'mydownloads_downloads') .
' WHERE status=0');
69 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/mydownloads/admin/index.php?op=listNewDownloads';
70 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
71 $blockVal[
'lang_linkname'] = _MB_LEGACY_WDLS;
72 $modules[] = $blockVal;
74 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'mydownloads_broken') .
'');
77 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/mydownloads/admin/index.php?op=listBrokenDownloads';
78 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
79 $blockVal[
'lang_linkname'] = _MB_LEGACY_BFLS;
80 $modules[] = $blockVal;
82 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'mydownloads_mod') .
'');
85 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/mydownloads/admin/index.php?op=listModReq';
86 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
87 $blockVal[
'lang_linkname'] = _MB_LEGACY_MFLS;
88 $modules[] = $blockVal;
92 $result = $xoopsDB->query(
'SELECT COUNT(*) FROM ' . $xoopsDB->prefix(
'xoopscomments') .
' WHERE com_status=1');
95 $blockVal[
'adminlink'] = XOOPS_URL .
'/modules/legacy/admin/index.php?action=CommentList&com_modid=0&com_status=1';
96 [$blockVal[
'pendingnum']] = $xoopsDB->fetchRow($result);
97 $blockVal[
'lang_linkname'] =_MB_LEGACY_COMPEND;
98 $modules[] = $blockVal;