XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
menu.php
Go to the documentation of this file.
1
<?php
20
$cpt
= 1;
21
$adminmenu
[
$cpt
][
'title'
] =
_MI_XCAPTCHA_INDEX
;
22
$adminmenu
[
$cpt
][
'link'
] =
'admin/index.php'
;
23
$adminmenu
[
$cpt
][
'icon'
] =
'home.png'
;
24
25
static
$xcaptcha_handler
;
26
if
(!isset(
$xcaptcha_handler
)) {
27
include_once dirname(__DIR__) .
'/class/xcaptcha.php'
;
28
$xcaptcha_handler
=
new
Xcaptcha
();
29
}
30
31
$xoops
=
Xoops::getInstance
();
32
33
foreach
( array_keys(
$xcaptcha_handler
->getPluginList()) as $key ) {
34
++
$cpt
;
35
$xoops
->loadLanguage($key,
'xcaptcha'
);
36
37
$adminmenu
[
$cpt
][
'title'
] = constant(
'_MI_XCAPTCHA_ADMENU_'
. strtoupper($key) );
38
$adminmenu
[
$cpt
][
'link'
] =
'admin/index.php?type='
. $key;
39
$adminmenu
[
$cpt
][
'icon'
] =
'administration.png'
;
40
}
41
42
++
$cpt
;
43
$adminmenu
[
$cpt
][
'title'
] =
_MI_XCAPTCHA_ABOUT
;
44
$adminmenu
[
$cpt
][
'link'
] =
'admin/about.php'
;
45
$adminmenu
[
$cpt
][
'icon'
] =
'about.png'
;
_MI_XCAPTCHA_ABOUT
const _MI_XCAPTCHA_ABOUT
Definition:
modinfo.php:25
Xoops\getInstance
static getInstance()
Definition:
Xoops.php:160
_MI_XCAPTCHA_INDEX
const _MI_XCAPTCHA_INDEX
Definition:
modinfo.php:23
$xcaptcha_handler
static $xcaptcha_handler
Definition:
menu.php:25
$cpt
$cpt
Definition:
menu.php:20
$adminmenu
$adminmenu
Definition:
menu.php:23
$xoops
$xoops
Definition:
menu.php:23
Xcaptcha
usr64
htdocs
modules
xcaptcha
admin
menu.php
Generated on Fri May 22 2015 03:07:03 for XOOPS by
1.8.9.1