Skip to content

Commit bba711e

Browse files
committed
Merge pull request #1 from mambax7/master
Adding Publisher 1.0 Final
2 parents c78a75b + aa95769 commit bba711e

File tree

294 files changed

+57953
-0
lines changed

Some content is hidden

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

294 files changed

+57953
-0
lines changed

publisher/admin/about.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
12+
/**
13+
* Publisher
14+
*
15+
* @copyright The XOOPS Project (http://www.xoops.org)
16+
* @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
17+
* @package Publisher
18+
* @since 1.0
19+
* @author Mage, Mamba
20+
* @version $Id: about.php 10374 2012-12-12 23:39:48Z trabis $
21+
*/
22+
23+
include_once dirname(__FILE__) . '/admin_header.php';
24+
25+
xoops_cp_header();
26+
27+
$aboutAdmin = new ModuleAdmin();
28+
29+
echo $aboutAdmin->addNavigation('about.php');
30+
echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
31+
32+
xoops_cp_footer();

publisher/admin/admin_header.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
12+
/**
13+
* @copyright The XUUPS Project http://sourceforge.net/projects/xuups/
14+
* @license http://www.fsf.org/copyleft/gpl.html GNU public license
15+
* @package Publisher
16+
* @since 1.0
17+
* @author trabis <lusopoemas@gmail.com>
18+
* @author The SmartFactory <www.smartfactory.ca>
19+
* @version $Id: admin_header.php 10661 2013-01-04 19:22:48Z trabis $
20+
*/
21+
22+
include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
23+
include_once dirname(dirname(__FILE__)) . '/include/common.php';
24+
include_once XOOPS_ROOT_PATH . '/include/cp_header.php';
25+
26+
//xoops_loadLanguage('admin', PUBLISHER_DIRNAME);
27+
xoops_loadLanguage('modinfo', PUBLISHER_DIRNAME);
28+
29+
$imagearray = array(
30+
'editimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_edit.png' alt='" . _AM_PUBLISHER_ICO_EDIT . "' align='middle' />",
31+
'deleteimg' => "<img src='" . PUBLISHER_IMAGES_URL . "/button_delete.png' alt='" . _AM_PUBLISHER_ICO_DELETE . "' align='middle' />",
32+
'online' => "<img src='" . PUBLISHER_IMAGES_URL . "/on.png' alt='" . _AM_PUBLISHER_ICO_ONLINE . "' align='middle' />",
33+
'offline' => "<img src='" . PUBLISHER_IMAGES_URL . "/off.png' alt='" . _AM_PUBLISHER_ICO_OFFLINE . "' align='middle' />",
34+
);
35+
if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
36+
include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
37+
}else{
38+
echo xoops_error('/Frameworks/moduleclasses/moduleadmin/ is required!!!');
39+
}
40+
/*
41+
$myts = MyTextSanitizer::getInstance();
42+
43+
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
44+
include_once(XOOPS_ROOT_PATH."/class/template.php");
45+
$xoopsTpl = new XoopsTpl();
46+
} */

0 commit comments

Comments
 (0)