Skip to content

Commit 2c2fb08

Browse files
committed
Initial GIT
0 parents  commit 2c2fb08

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+2946
-0
lines changed

admin/about.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
/*
3+
*******************************************************
4+
*** ***
5+
*** backpack ***
6+
*** Cedric MONTUY pour CHG-WEB ***
7+
*** Original author : Yoshi Sakai ***
8+
*** ***
9+
*******************************************************
10+
*/
11+
include_once 'admin_header.php';
12+
xoops_cp_header();
13+
14+
$aboutAdmin = new ModuleAdmin();
15+
16+
echo $aboutAdmin->addNavigation('about.php');
17+
echo $aboutAdmin->renderAbout('2MHAG2L3NZG8G', false);
18+
19+
include 'admin_footer.php';

admin/admin_footer.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/*
3+
*******************************************************
4+
*** ***
5+
*** backpack ***
6+
*** Cedric MONTUY pour CHG-WEB ***
7+
*** Original author : Yoshi Sakai ***
8+
*** ***
9+
*******************************************************
10+
*/
11+
echo '<div class="adminfooter">'."\n".'<div style="text-align: center;">'."\n"
12+
. ' <a href="http://www.xoops.org" rel="external"><img src="'.$pathIcon32.'/xoopsmicrobutton.gif" alt="Xoops" title="Xoops"></a>'."\n"
13+
. ' </div>'."\n" . ' <div class="center smallsmall italic pad5"> ce module est maintenu par <a href="https://store.chg-web.com" rel="external">Cedric MONTUY CHG-WEB</a>' . "\n" . '</div>';
14+
15+
xoops_cp_footer();

admin/admin_header.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
/*
3+
*******************************************************
4+
*** ***
5+
*** backpack ***
6+
*** Cedric MONTUY pour CHG-WEB ***
7+
*** Original author : Yoshi Sakai ***
8+
*** ***
9+
*******************************************************
10+
*/
11+
$path = dirname(dirname(dirname(__DIR__)));
12+
include_once $path . '/mainfile.php';
13+
include_once $path . '/include/cp_functions.php';
14+
require_once $path . '/include/cp_header.php';
15+
16+
global $xoopsModule;
17+
18+
$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
19+
$thisModulePath = dirname(__DIR__);
20+
21+
include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
22+
require_once($thisModulePath.'/include/zip.lib.php');
23+
require_once($thisModulePath.'/include/defines.lib.php');
24+
require_once($thisModulePath.'/include/read_dump.lib.php');
25+
26+
$pathIcon16 = '../' . $xoopsModule->getInfo('icons16');
27+
$pathIcon32 = '../' . $xoopsModule->getInfo('icons32');
28+
$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
29+
// Include backup functions
30+
include_once($thisModulePath.'/admin/backup.ini.php');
31+
include_once($thisModulePath.'/class/class.backpack.php');
32+
33+
// Load language files
34+
xoops_loadLanguage('admin', $thisModuleDir);
35+
xoops_loadLanguage('modinfo', $thisModuleDir);
36+
37+
if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) {
38+
include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
39+
} else {
40+
redirect_header('../../../admin.php', 5, _AM_MODULEADMIN_MISSING, FALSE);
41+
}
42+
$myts = MyTextSanitizer::getInstance();
43+
44+
if ($xoopsUser) {
45+
$moduleperm_handler = xoops_gethandler('groupperm');
46+
if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
47+
redirect_header(XOOPS_URL, 1, _NOPERM);
48+
exit();
49+
}
50+
} else {
51+
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM);
52+
exit();
53+
}
54+
55+
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
56+
include_once(XOOPS_ROOT_PATH.'/class/template.php');
57+
$xoopsTpl = new XoopsTpl();
58+
}
59+
60+
$xoopsTpl->assign('pathIcon16', $pathIcon16);

0 commit comments

Comments
 (0)