From: <be...@us...> - 2012-10-03 04:32:01
|
Revision: 10195 http://xoops.svn.sourceforge.net/xoops/?rev=10195&view=rev Author: beckmi Date: 2012-10-03 04:31:55 +0000 (Wed, 03 Oct 2012) Log Message: ----------- Fixing small bugs Modified Paths: -------------- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php Modified: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php 2012-09-26 12:51:23 UTC (rev 10194) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/admin_footer.php 2012-10-03 04:31:55 UTC (rev 10195) @@ -1,29 +1,29 @@ -<?php -/** - * XoopsMembers module - * Description: Category Admin file - * - * 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:: The XOOPS Project (http://www.xoops.org) - * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} - * @package:: xoopsmembers - * @subpackage:: admin - * @since:: 1.02 - * @author:: Mamba - * @version:: $Id $ - **/ - -echo "<div class='adminfooter'>\n" - ." <div style='text-align: center;'>\n" - ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" - ." </div>\n" - ." " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" - ."</div>"; - +<?php +/** + * XoopsMembers module + * Description: Category Admin file + * + * 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:: The XOOPS Project (http://www.xoops.org) + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: admin + * @since:: 1.02 + * @author:: Mamba + * @version:: $Id $ + **/ + +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(); \ No newline at end of file Modified: XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php =================================================================== --- XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php 2012-09-26 12:51:23 UTC (rev 10194) +++ XoopsModules/xoopsmembers/trunk/xoopsmembers/admin/menu.php 2012-10-03 04:31:55 UTC (rev 10195) @@ -1,45 +1,49 @@ -<?php -/** - * Name: menu.php - * Description: Menu for the Xoops Members Module - * - * 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:: The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} - * @package:: xoopsmembers - * @subpackage:: Xoops Members Adminisration - * @since:: 1.02 - * @author:: John Neill - * @version:: $Id: menu.php 8571 2011-12-26 22:51:57Z beckmi $ - */ -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -$path = dirname(dirname(dirname(dirname(__FILE__)))); - -global $xoopsModule; -$pathIcon32 = $xoopsModule->getInfo('icons32'); -$pathLanguage = $path . $xoopsModule->getInfo('dirmoduleadmin'); - - -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"] = _AM_MODULEADMIN_HOME; -$adminmenu[$i]["link"] = "admin/index.php"; -$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; - -$i++; -$adminmenu[$i]["title"] = _AM_MODULEADMIN_ABOUT; -$adminmenu[$i]["link"] = "admin/about.php"; +<?php +/** + * Name: menu.php + * Description: Menu for the Xoops Members Module + * + * 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:: The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license:: {@link http://www.fsf.org/copyleft/gpl.html GNU public license} + * @package:: xoopsmembers + * @subpackage:: Xoops Members Adminisration + * @since:: 1.02 + * @author:: John Neill + * @version:: $Id: menu.php 8571 2011-12-26 22:51:57Z beckmi $ + */ +defined("XOOPS_ROOT_PATH") or 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"] = _AM_MODULEADMIN_HOME; +$adminmenu[$i]["link"] = "admin/index.php"; +$adminmenu[$i]["icon"] = $pathIcon32.'/home.png'; + +$i++; +$adminmenu[$i]["title"] = _AM_MODULEADMIN_ABOUT; +$adminmenu[$i]["link"] = "admin/about.php"; $adminmenu[$i]["icon"] = $pathIcon32.'/about.png'; \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |