|
@@ 186-193 (lines=8) @@
|
| 183 |
|
$block = array(); |
| 184 |
|
|
| 185 |
|
// waiting content for news |
| 186 |
|
if (xoops_isActiveModule('news') && $module_handler->getCount(new Criteria('dirname', 'news'))) { |
| 187 |
|
$result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('stories') . ' WHERE published=0'); |
| 188 |
|
if ( $result ) { |
| 189 |
|
$block['modules'][0]['adminlink'] = XOOPS_URL . '/modules/news/admin/index.php?op=newarticle'; |
| 190 |
|
list($block['modules'][0]['pendingnum']) = $xoopsDB->fetchRow($result); |
| 191 |
|
$block['modules'][0]['lang_linkname'] = _MB_SYSTEM_SUBMS; |
| 192 |
|
} |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
// waiting content for mylinks |
| 196 |
|
if (xoops_isActiveModule('mylinks') && $module_handler->getCount(new Criteria('dirname', 'mylinks'))) { |
|
@@ 251-258 (lines=8) @@
|
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
// waiting content for TDMDownloads |
| 251 |
|
if (xoops_isActiveModule('TDMdownloads') && $module_handler->getCount(new Criteria('dirname', 'TDMDownloads'))) { |
| 252 |
|
$result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('tdmdownloads_downloads') . ' WHERE status=0'); |
| 253 |
|
if ( $result ) { |
| 254 |
|
$block['modules'][8]['adminlink'] = XOOPS_URL . '/modules/TDMDownloads/admin/downloads.php?op=list&statut_display=0'; |
| 255 |
|
list($block['modules'][8]['pendingnum']) = $xoopsDB->fetchRow($result); |
| 256 |
|
$block['modules'][8]['lang_linkname'] = _MB_SYSTEM_TDMDOWNLOADS; |
| 257 |
|
} |
| 258 |
|
} |
| 259 |
|
|
| 260 |
|
// waiting content for extgallery |
| 261 |
|
if (xoops_isActiveModule('extgallery') && $module_handler->getCount(new Criteria('dirname', 'extgallery'))) { |
|
@@ 261-268 (lines=8) @@
|
| 258 |
|
} |
| 259 |
|
|
| 260 |
|
// waiting content for extgallery |
| 261 |
|
if (xoops_isActiveModule('extgallery') && $module_handler->getCount(new Criteria('dirname', 'extgallery'))) { |
| 262 |
|
$result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('extgallery_publicphoto') . ' WHERE photo_approved=0'); |
| 263 |
|
if ( $result ) { |
| 264 |
|
$block['modules'][9]['adminlink'] = XOOPS_URL . '/modules/extgallery/admin/photo.php#pending-photo'; |
| 265 |
|
list($block['modules'][9]['pendingnum']) = $xoopsDB->fetchRow($result); |
| 266 |
|
$block['modules'][9]['lang_linkname'] = _MB_SYSTEM_EXTGALLERY; |
| 267 |
|
} |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
// waiting content for smartsection |
| 271 |
|
if (xoops_isActiveModule('smartsection') && $module_handler->getCount(new Criteria('dirname', 'smartsection'))) { |
|
@@ 271-278 (lines=8) @@
|
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
// waiting content for smartsection |
| 271 |
|
if (xoops_isActiveModule('smartsection') && $module_handler->getCount(new Criteria('dirname', 'smartsection'))) { |
| 272 |
|
$result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('smartsection_items') . ' WHERE status=1'); |
| 273 |
|
if ( $result ) { |
| 274 |
|
$block['modules'][10]['adminlink'] = XOOPS_URL . '/modules/smartsection/admin/item.php'; |
| 275 |
|
list($block['modules'][10]['pendingnum']) = $xoopsDB->fetchRow($result); |
| 276 |
|
$block['modules'][10]['lang_linkname'] = _MB_SYSTEM_SMARTSECTION; |
| 277 |
|
} |
| 278 |
|
} |
| 279 |
|
|
| 280 |
|
return $block; |
| 281 |
|
} |