XOOPS  2.6.0
index.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
22 include __DIR__ . '/header.php';
23 
24 $xoops->header();
25 
26 // smilies not display
28 $criteria->add(new Criteria('smiley_display', 0));
29 $smilies_notdisplay = $helper->getHandlerSmilies()->getCount($criteria);
30 
31 // smilies display
32 $criteria = new CriteriaCompo();
33 $criteria->add(new Criteria('smiley_display', 0, '!='));
34 $smilies_display = $helper->getHandlerSmilies()->getCount($criteria);
35 
36 // total smilies
38 
39 // folder path
40 $folder_path = \XoopsBaseConfig::get('root-path') . '/uploads/smilies';
41 
42 $admin_page = new \Xoops\Module\Admin();
43 $admin_page->displayNavigation('index.php');
44 
45 $admin_page->addInfoBox(_MI_SMILIES_SMILIES);
46 $admin_page->addInfoBoxLine(sprintf(_AM_SMILIES_NBTOTAL, $smilies_total));
47 $admin_page->addInfoBoxLine(sprintf(_AM_SMILIES_NBDISPLAY, '<span class="green">' . $smilies_display . '</span>'));
48 $admin_page->addInfoBoxLine(sprintf(_AM_SMILIES_NBNOTDISPLAY, '<span class="red">' . $smilies_notdisplay . '</span>'));
49 
50 $admin_page->addConfigBoxLine($folder_path, 'folder');
51 $admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod');
52 
53 $admin_page->displayIndex();
54 
55 $xoops->footer();
const _AM_SMILIES_NBTOTAL
Definition: admin.php:33
$smilies_display
Definition: index.php:34
$folder_path
Definition: index.php:54
const _AM_SMILIES_NBDISPLAY
Definition: admin.php:34
static get($name)
const _AM_SMILIES_NBNOTDISPLAY
Definition: admin.php:35
$criteria
Definition: index.php:30
$helper
Definition: index.php:25
$admin_page
Definition: index.php:56
$smilies_total
Definition: index.php:37
$smilies_notdisplay
Definition: index.php:29
const _MI_SMILIES_SMILIES
Definition: modinfo.php:27
if(file_exists($mainfile)) elseif(file_exists(__DIR__. '/install/index.php')) $xoops
Definition: index.php:36