|
4 | 4 | *
|
5 | 5 | * Xoops mylinks - a multicategory links module
|
6 | 6 | *
|
7 |
| - * @copyright:: The XOOPS Project http://sourceforge.net/projects/xoops/ |
8 |
| - * @license:: {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} |
9 |
| - * @package:: mylinks |
| 7 | + * @copyright :: {@link http://xoops.org/ XOOPS Project} |
| 8 | + * @license :: {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} |
| 9 | + * @package :: mylinks |
10 | 10 | * @subpackage:: class
|
11 |
| - * @since:: unknown |
12 |
| - * @author:: Thatware - http://thatware.org/ |
| 11 | + * @author :: Thatware - http://thatware.org/ |
13 | 12 | */
|
14 | 13 | // ------------------------------------------------------------------------- //
|
15 | 14 | // XOOPS - PHP Content Management System //
|
|
35 | 34 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
|
36 | 35 | // ------------------------------------------------------------------------- //
|
37 | 36 |
|
38 |
| -include 'admin_header.php'; |
| 37 | +include __DIR__ . '/admin_header.php'; |
39 | 38 | xoops_cp_header();
|
40 | 39 |
|
41 | 40 | $indexAdmin = new ModuleAdmin();
|
42 | 41 |
|
43 | 42 | // Temporarily 'homeless' links (to be revised in admin.php breakup)
|
44 | 43 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_broken') . '');
|
45 | 44 | list($totalBrokenLinks) = $xoopsDB->fetchRow($result);
|
46 |
| -if ( $totalBrokenLinks > 0 ) { |
| 45 | +if ($totalBrokenLinks > 0) { |
47 | 46 | $totalBrokenLinks = "<span style='color: #ff0000; font-weight: bold'>{$totalBrokenLinks}</span>";
|
48 | 47 | }
|
49 | 48 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_mod') . '');
|
50 | 49 | list($totalModRequests) = $xoopsDB->fetchRow($result);
|
51 |
| -if ( $totalModRequests > 0 ) { |
| 50 | +if ($totalModRequests > 0) { |
52 | 51 | $totalModRequests = "<span style='color: #ff0000; font-weight: bold'>{$totalModRequests}</span>";
|
53 | 52 | }
|
54 | 53 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_links') . " WHERE status='0'");
|
55 | 54 | list($totalNewLinks) = $xoopsDB->fetchRow($result);
|
56 |
| -if ( $totalNewLinks > 0 ) { |
| 55 | +if ($totalNewLinks > 0) { |
57 | 56 | $totalNewLinks = "<span style='color: #ff0000; font-weight: bold'>{$totalNewLinks}</span>";
|
58 | 57 | }
|
59 |
| -$result=$xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_links') . ' WHERE status>0'); |
| 58 | +$result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('mylinks_links') . ' WHERE status>0'); |
60 | 59 | list($activeLinks) = $xoopsDB->fetchRow($result);
|
61 | 60 |
|
62 | 61 | $indexAdmin->addInfoBox(_MD_MYLINKS_WEBLINKSCONF);
|
63 | 62 |
|
64 |
| -if ( 0 == $totalNewLinks ) { |
| 63 | +if (0 == $totalNewLinks) { |
65 | 64 | //$indexAdmin->addLineLabel(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_LINKSWAITING, $totalNewLinks, 'Green');
|
66 |
| - $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_LINKSWAITING, $totalNewLinks, 'Green'); |
| 65 | + $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_LINKSWAITING, $totalNewLinks, 'Green'); |
67 | 66 | } else {
|
68 | 67 | $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_LINKSWAITING, $totalNewLinks, 'Red');
|
69 | 68 | }
|
70 | 69 |
|
71 |
| -if ( 0 == $totalBrokenLinks ) { |
| 70 | +if (0 == $totalBrokenLinks) { |
72 | 71 | $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_BROKENREPORTS, $totalBrokenLinks, 'Green');
|
73 | 72 | } else {
|
74 | 73 | $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_BROKENREPORTS, $totalBrokenLinks, 'Red');
|
75 | 74 | }
|
76 | 75 |
|
77 |
| -if ( 0 == $totalModRequests ) { |
| 76 | +if (0 == $totalModRequests) { |
78 | 77 | $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_MODREQUESTS, $totalModRequests, 'Green');
|
79 | 78 | } else {
|
80 | 79 | $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_MODREQUESTS, $totalModRequests, 'Red');
|
|
83 | 82 | $indexAdmin->addInfoBoxLine(_MD_MYLINKS_WEBLINKSCONF, _MD_MYLINKS_THEREARE, $activeLinks);
|
84 | 83 | //------------------------------
|
85 | 84 |
|
86 |
| -echo $indexAdmin->addNavigation('index.php'); |
| 85 | +echo $indexAdmin->addNavigation(basename(__FILE__)); |
87 | 86 | echo $indexAdmin->renderIndex();
|
88 | 87 |
|
89 |
| -include 'admin_footer.php'; |
| 88 | +include __DIR__ . '/admin_footer.php'; |
0 commit comments