XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
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
27
$criteria
=
new
CriteriaCompo
();
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
37
$smilies_total
=
$smilies_notdisplay
+
$smilies_display
;
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();
_AM_SMILIES_NBTOTAL
const _AM_SMILIES_NBTOTAL
Definition:
admin.php:33
$smilies_display
$smilies_display
Definition:
index.php:34
$folder_path
$folder_path
Definition:
index.php:54
_AM_SMILIES_NBDISPLAY
const _AM_SMILIES_NBDISPLAY
Definition:
admin.php:34
XoopsBaseConfig\get
static get($name)
Definition:
XoopsBaseConfig.php:117
_AM_SMILIES_NBNOTDISPLAY
const _AM_SMILIES_NBNOTDISPLAY
Definition:
admin.php:35
$criteria
$criteria
Definition:
index.php:30
include
$helper
$helper
Definition:
index.php:25
$admin_page
$admin_page
Definition:
index.php:56
$smilies_total
$smilies_total
Definition:
index.php:37
$smilies_notdisplay
$smilies_notdisplay
Definition:
index.php:29
CriteriaCompo
Definition:
criteria.php:22
Criteria
Definition:
criteria.php:29
_MI_SMILIES_SMILIES
const _MI_SMILIES_SMILIES
Definition:
modinfo.php:27
$xoops
if(file_exists($mainfile)) elseif(file_exists(__DIR__. '/install/index.php')) $xoops
Definition:
index.php:36
usr64
htdocs
modules
smilies
admin
index.php
Generated on Fri May 22 2015 03:07:01 for XOOPS by
1.8.9.1