From: <wis...@us...> - 2015-12-07 14:31:58
|
Revision: 13181 http://sourceforge.net/p/xoops/svn/13181 Author: wishcraft Date: 2015-12-07 14:31:55 +0000 (Mon, 07 Dec 2015) Log Message: ----------- PingTrax Pre-alpha :: More done\!\!\! Modified Paths: -------------- XoopsModules/pingtrax/trunk/modules/pingtrax/xoops_version.php Added Paths: ----------- XoopsModules/pingtrax/trunk/modules/pingtrax/admin/about.php XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin.php XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_footer.php XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_header.php XoopsModules/pingtrax/trunk/modules/pingtrax/admin/menu.php XoopsModules/pingtrax/trunk/modules/pingtrax/images/index.html XoopsModules/pingtrax/trunk/modules/pingtrax/pingtrax.css Added: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/about.php =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/admin/about.php (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/admin/about.php 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1,34 @@ +<?php +/** + * PingTrax Admin + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +include_once dirname(__FILE__) . '/../../../include/cp_header.php'; +include '../../../class/xoopsformloader.php'; +include_once dirname(__FILE__) . '/admin_header.php'; +xoops_cp_header(); + +$aboutAdmin = new ModuleAdmin(); + +echo $aboutAdmin->addNavigation('about.php'); +echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); + +include_once dirname(__FILE__) . '/admin_footer.php'; +//xoops_cp_footer(); Property changes on: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/about.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin.php =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin.php (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin.php 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1,32 @@ +<?php +/** + * PingTrax Admin + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +include_once dirname(__FILE__) . '/admin_header.php'; +xoops_cp_header(); + +$indexAdmin = new ModuleAdmin(); + +echo $indexAdmin->addNavigation('admin.php'); +echo $indexAdmin->renderIndex(); + +include_once dirname(__FILE__) . '/admin_footer.php'; +//xoops_cp_footer(); Property changes on: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_footer.php =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_footer.php (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_footer.php 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1,30 @@ +<?php +/** + * PingTrax Admin + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +echo "<div class='adminfooter'>\n" + ." <div style='text-align: center;'>\n" + ." <a href='http://www.xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" + ." </div>\n" + ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); Property changes on: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_header.php =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_header.php (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_header.php 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1,68 @@ +<?php +/** + * PingTrax Admin + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; +include_once $path . '/include/cp_functions.php'; +require_once $path . '/include/cp_header.php'; + +global $xoopsModule; + +$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname'); + +//if functions.php file exist +//require_once dirname(dirname(__FILE__)) . '/include/functions.php'; + +// Load language files +xoops_loadLanguage('admin', $thisModuleDir); +xoops_loadLanguage('modinfo', $thisModuleDir); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + +if ($xoopsUser) { + $moduleperm_handler =& xoops_gethandler('groupperm'); + if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { + redirect_header(XOOPS_URL, 1, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); + exit(); +} + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once(XOOPS_ROOT_PATH."/class/template.php"); + $xoopsTpl = new XoopsTpl(); +} + +//$xoopsTpl->assign('pathIcon16', $pathIcon16); + +if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) { + include_once XOOPS_ROOT_PATH . '/class/template.php'; + $GLOBALS['xoopsTpl'] = new XoopsTpl(); +} Property changes on: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/admin_header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/menu.php =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/admin/menu.php (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/admin/menu.php 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1,50 @@ +<?php +/** + * PingTrax Admin + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Cooperative http://sourceforge.net/projects/chronolabs/ + * @license GNU GPL 3 (http://labs.coop/briefs/legal/general-public-licence/13,3.html) + * @author Simon Antony Roberts <wis...@us...> + * @see http://sourceforge.net/projects/xoops/ + * @see http://sourceforge.net/projects/chronolabs/ + * @see http://sourceforge.net/projects/chronolabsapi/ + * @see http://labs.coop + * @version 1.0.1 + * @since 1.0.1 + */ + +// defined("XOOPS_ROOT_PATH") || die("XOOPS root path not defined"); + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +$pathModuleAdmin = $module->getInfo('dirmoduleadmin'); +$pathLanguage = $path . $pathModuleAdmin; + +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; +} + +include_once $fileinc; + +$adminmenu = array(); + +$i = 1; +$adminmenu[$i]['title'] = _PM_MI_INDEX; +$adminmenu[$i]['link'] = "admin/admin.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png' ; +++$i; +$adminmenu[$i]['title'] = _PM_MI_ABOUT; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; Property changes on: XoopsModules/pingtrax/trunk/modules/pingtrax/admin/menu.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/modules/pingtrax/images/index.html =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/images/index.html (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/images/index.html 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Property changes on: XoopsModules/pingtrax/trunk/modules/pingtrax/images/index.html ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/pingtrax/trunk/modules/pingtrax/pingtrax.css =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/pingtrax.css (rev 0) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/pingtrax.css 2015-12-07 14:31:55 UTC (rev 13181) @@ -0,0 +1 @@ +@CHARSET "UTF-8"; \ No newline at end of file Modified: XoopsModules/pingtrax/trunk/modules/pingtrax/xoops_version.php =================================================================== --- XoopsModules/pingtrax/trunk/modules/pingtrax/xoops_version.php 2015-12-07 14:25:21 UTC (rev 13180) +++ XoopsModules/pingtrax/trunk/modules/pingtrax/xoops_version.php 2015-12-07 14:31:55 UTC (rev 13181) @@ -28,8 +28,8 @@ $modversion['author'] = "Simon Antony Roberts"; $modversion['credits'] = "Chronolabs"; $modversion['help'] = 'page=help'; -$modversion['license'] = 'GNU GPL 2.0 or later'; -$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/"; +$modversion['license'] = 'GNU GPL 3.0 or later'; +$modversion['license_url'] = "labs.coop/briefs/legal/general-public-licence/13,3.html"; $modversion['image'] = "images/logo.png"; $modversion['dirname'] = basename(__DIR__); $modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; @@ -37,8 +37,8 @@ $modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; //about -$modversion["module_status"] = "Alpha"; -$modversion['release_date'] = '2015/12/01'; +$modversion["module_status"] = "Beta"; +$modversion['release_date'] = '2015/12/08'; $modversion["module_website_url"] = "http://labs.coop/"; $modversion["module_website_name"] = "Chronolabs"; $modversion['min_php'] = '5.3.7'; |