From: <be...@us...> - 2012-04-03 00:34:40
|
Revision: 9244 http://xoops.svn.sourceforge.net/xoops/?rev=9244&view=rev Author: beckmi Date: 2012-04-03 00:34:31 +0000 (Tue, 03 Apr 2012) Log Message: ----------- Version 1.1 RC2 - XOOPS 2.5.x Admin GUI Modified Paths: -------------- XoopsModules/defacer/trunk/defacer/admin/admin_about.php XoopsModules/defacer/trunk/defacer/admin/admin_header.php XoopsModules/defacer/trunk/defacer/admin/admin_meta.php XoopsModules/defacer/trunk/defacer/admin/admin_page.php XoopsModules/defacer/trunk/defacer/admin/admin_permission.php XoopsModules/defacer/trunk/defacer/admin/admin_theme.php XoopsModules/defacer/trunk/defacer/admin/index.php XoopsModules/defacer/trunk/defacer/admin/menu.php XoopsModules/defacer/trunk/defacer/images/metas_big.png XoopsModules/defacer/trunk/defacer/images/metas_small.png XoopsModules/defacer/trunk/defacer/images/permissions_big.png XoopsModules/defacer/trunk/defacer/images/permissions_small.png XoopsModules/defacer/trunk/defacer/images/themes_big.png XoopsModules/defacer/trunk/defacer/images/themes_small.png XoopsModules/defacer/trunk/defacer/language/english/admin.php XoopsModules/defacer/trunk/defacer/language/english/modinfo.php XoopsModules/defacer/trunk/defacer/templates/defacer_admin_meta.html XoopsModules/defacer/trunk/defacer/templates/defacer_admin_page.html XoopsModules/defacer/trunk/defacer/templates/defacer_admin_permission.html XoopsModules/defacer/trunk/defacer/templates/defacer_admin_theme.html XoopsModules/defacer/trunk/defacer/xoops_version.php Added Paths: ----------- XoopsModules/defacer/trunk/defacer/admin/about.php XoopsModules/defacer/trunk/defacer/admin/admin_footer.php XoopsModules/defacer/trunk/defacer/docs/ XoopsModules/defacer/trunk/defacer/docs/changelog.txt XoopsModules/defacer/trunk/defacer/docs/credits.txt XoopsModules/defacer/trunk/defacer/docs/index.html XoopsModules/defacer/trunk/defacer/docs/install.txt XoopsModules/defacer/trunk/defacer/docs/lang_diff.txt XoopsModules/defacer/trunk/defacer/docs/licence.txt XoopsModules/defacer/trunk/defacer/docs/readme.txt XoopsModules/defacer/trunk/defacer/images/metas_big0.png XoopsModules/defacer/trunk/defacer/images/metas_small0.png XoopsModules/defacer/trunk/defacer/language/english/help/ XoopsModules/defacer/trunk/defacer/language/english/help/help.html XoopsModules/defacer/trunk/defacer/language/english/help/index.html Removed Paths: ------------- XoopsModules/defacer/trunk/defacer/changelog.txt XoopsModules/defacer/trunk/defacer/readme.txt Added: XoopsModules/defacer/trunk/defacer/admin/about.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/about.php (rev 0) +++ XoopsModules/defacer/trunk/defacer/admin/about.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,12 @@ +<?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 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_about.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_about.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/admin_about.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -23,5 +23,5 @@ $aboutObj = new DefacerAbout(); $aboutObj->render(); - +include_once 'admin_footer.php'; ?> \ No newline at end of file Added: XoopsModules/defacer/trunk/defacer/admin/admin_footer.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_footer.php (rev 0) +++ XoopsModules/defacer/trunk/defacer/admin/admin_footer.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,9 @@ +<?php +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>"; + +xoops_cp_footer(); \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_header.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_header.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/admin_header.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -18,8 +18,13 @@ * @version $Id: admin_header.php 0 2009-06-11 18:47:04Z trabis $ */ -require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; +//require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +//require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; +$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'; +require_once $path . '/class/xoopsformloader.php'; include_once dirname(dirname(__FILE__)) . '/include/common.php'; include_once dirname(__FILE__) . '/admin_functions.php'; @@ -28,4 +33,25 @@ include_once XOOPS_ROOT_PATH . '/class/template.php'; $xoopsTpl = new XoopsTpl(); } -?> + +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'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_DEFACER_MODULEADMIN_MISSING, false); + } \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_meta.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_meta.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/admin_meta.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -28,22 +28,25 @@ $start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; $itemid = isset($_REQUEST['meta_id']) ? intval($_REQUEST['meta_id']) : $itemid; +$indexAdmin = new ModuleAdmin(); switch ($op) { case 'list': xoops_cp_header(); - defacer_adminMenu(2); + echo $indexAdmin->addNavigation('admin_meta.php'); + //defacer_adminMenu(2); echo defacer_index($start, $limit); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'add': defacer_add(); break; case 'edit': xoops_cp_header(); - defacer_adminMenu(2); + echo $indexAdmin->addNavigation('admin_meta.php'); + //defacer_adminMenu(2); echo defacer_form($itemid); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'editok': defacer_edit($itemid); @@ -163,7 +166,7 @@ if (!$defacer->getHandler('meta')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('meta_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -174,7 +177,7 @@ { xoops_cp_header(); xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); - xoops_cp_footer(); + include_once 'admin_footer.php'; } function defacer_form($itemid = 0) Modified: XoopsModules/defacer/trunk/defacer/admin/admin_page.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_page.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/admin_page.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -28,21 +28,26 @@ $start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; $query = isset($_REQUEST['query']) ? trim($_REQUEST['query']) : ''; +$indexAdmin = new ModuleAdmin(); + + switch ($op) { case 'list': xoops_cp_header(); - defacer_adminMenu(0); + echo $indexAdmin->addNavigation('admin_page.php'); + //defacer_adminMenu(0); echo defacer_index($start, $limit, $query); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'add': defacer_add(); break; case 'edit': xoops_cp_header(); - defacer_adminMenu(0); + echo $indexAdmin->addNavigation('admin_page.php'); + //defacer_adminMenu(0); echo defacer_form($itemid); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'editok': defacer_edit($itemid); @@ -176,7 +181,7 @@ if (!$defacer->getHandler('page')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('page_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -184,7 +189,7 @@ if (is_object($obj) && !$defacer->getHandler('theme')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('theme_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -192,7 +197,7 @@ if (is_object($obj) && !$defacer->getHandler('meta')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('meta_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -200,7 +205,7 @@ if (is_object($obj) && !$defacer->getHandler('permission')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('permission_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -211,7 +216,7 @@ { xoops_cp_header(); xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); - xoops_cp_footer(); + include_once 'admin_footer.php'; } function defacer_changestatus($itemid) @@ -282,7 +287,6 @@ } else { $form->addElement(new XoopsFormHidden('op', 'add')); } - return $form->render(); } ?> \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_permission.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_permission.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/admin_permission.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -28,22 +28,25 @@ $start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; $itemid = isset($_REQUEST['permission_id']) ? intval($_REQUEST['permission_id']) : $itemid; +$indexAdmin = new ModuleAdmin(); switch ($op) { case 'list': xoops_cp_header(); - defacer_adminMenu(1); + echo $indexAdmin->addNavigation('admin_permission.php'); + //defacer_adminMenu(1); echo defacer_index($start, $limit); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'add': defacer_add(); break; case 'edit': xoops_cp_header(); - defacer_adminMenu(1); + echo $indexAdmin->addNavigation('admin_permission.php'); + //defacer_adminMenu(1); echo defacer_form($itemid); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'editok': defacer_edit($itemid); @@ -170,7 +173,7 @@ if (!$defacer->getHandler('permission')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('permission_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -181,7 +184,7 @@ { xoops_cp_header(); xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); - xoops_cp_footer(); + include_once 'admin_footer.php'; } function defacer_form($itemid = 0) Modified: XoopsModules/defacer/trunk/defacer/admin/admin_theme.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_theme.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/admin_theme.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -29,21 +29,25 @@ $itemid = isset($_REQUEST['theme_id']) ? intval($_REQUEST['theme_id']) : $itemid; +$indexAdmin = new ModuleAdmin(); + switch ($op) { case 'list': xoops_cp_header(); - defacer_adminMenu(1); + echo $indexAdmin->addNavigation('admin_theme.php'); + //defacer_adminMenu(1); echo defacer_index($start, $limit); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'add': defacer_add(); break; case 'edit': xoops_cp_header(); - defacer_adminMenu(1); + echo $indexAdmin->addNavigation('admin_theme.php'); + //defacer_adminMenu(1); echo defacer_form($itemid); - xoops_cp_footer(); + include_once 'admin_footer.php'; break; case 'editok': defacer_edit($itemid); @@ -163,7 +167,7 @@ if (!$defacer->getHandler('theme')->delete($obj)) { xoops_cp_header(); xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('theme_id'))); - xoops_cp_footer(); + include_once 'admin_footer.php'; exit(); } @@ -174,7 +178,7 @@ { xoops_cp_header(); xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); - xoops_cp_footer(); + include_once 'admin_footer.php'; } function defacer_form($itemid = 0) Modified: XoopsModules/defacer/trunk/defacer/admin/index.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/index.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/index.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -18,5 +18,15 @@ * @version $Id: index.php 0 2009-06-11 18:47:04Z trabis $ */ -include dirname(__FILE__) . '/admin_page.php'; -?> \ No newline at end of file + +require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +include_once dirname(__FILE__) . '/admin_header.php'; + +xoops_cp_header(); + + $indexAdmin = new ModuleAdmin(); + + echo $indexAdmin->addNavigation('index.php'); + echo $indexAdmin->renderIndex(); + +include "admin_footer.php"; \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/menu.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/menu.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/admin/menu.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -20,25 +20,44 @@ defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); + +$adminmenu = array(); + $i = -1; $i++; +$adminmenu[$i]['title'] = _MI_DEFACER_HOME; +$adminmenu[$i]['link'] = "admin/index.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png' ; + +$i++; $adminmenu[$i]['title'] = _MI_DEFACER_PAGEMANAGER; $adminmenu[$i]['link'] = "admin/admin_page.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/index.png' ; $i++; $adminmenu[$i]['title'] = _MI_DEFACER_THEMEMANAGER; $adminmenu[$i]['link'] = "admin/admin_theme.php"; - +$adminmenu[$i]['icon'] = $pathIcon32.'/watermark.png' ; $i++; $adminmenu[$i]['title'] = _MI_DEFACER_METAMANAGER; $adminmenu[$i]['link'] = "admin/admin_meta.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/administration.png' ; $i++; $adminmenu[$i]['title'] = _MI_DEFACER_PERMISSIONMANAGER; $adminmenu[$i]['link'] = "admin/admin_permission.php"; +$adminmenu[$i]['icon'] = $pathIcon32.'/permissions.png' ; $i++; $adminmenu[$i]['title'] = _MI_DEFACER_ABOUT; -$adminmenu[$i]['link'] = "admin/admin_about.php"; +$adminmenu[$i]['link'] = 'admin/about.php'; +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; -?> \ No newline at end of file +//$i++; +//$adminmenu[$i]['title'] = _MI_DEFACER_ABOUT; +//$adminmenu[$i]['link'] = "admin/admin_about.php"; +//$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; \ No newline at end of file Deleted: XoopsModules/defacer/trunk/defacer/changelog.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/changelog.txt 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/changelog.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -1,19 +0,0 @@ -<b><u>=> Version 1.0 Final (2009-09-05)</u></b> -Added : jgrowl redirection. -Added : blocks anywhere. - -<b><u>=> Version 1.0 RC (2009-09-01)</u></b> -Improved : Refactored admin area. -Added : Defacer in xoopsLogger Extra. - -<b><u>=> Version 1.0 Alpha (2008-10-27)</u></b> -- First public release of the module. -<b><u>=> Version 1.0 Beta (2008-11-08)</u></b> -Improved : More friendly admin area. -Improved : Less queries needed. -Improved : Less language definitions needed. -Added : Defacer in xoopsLogger. -Added : Settings to disable each Defacer actions. - -<b><u>=> Version 1.0 Alpha (2008-10-27)</u></b> -- First public release of the module. Added: XoopsModules/defacer/trunk/defacer/docs/changelog.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/changelog.txt (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/changelog.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,28 @@ +<b><u>Version 1.1 RC2 (2012-02-22)</u></b> + +- Converted to XOOPS 2.5.x GUI (mamba) +- updated Icons to make them consistent with other modules + +<b><u> Version 1.0 Final (2009-09-05)</u></b> + +- Added : jgrowl redirection. +- Added : blocks anywhere. + +<b><u>Version 1.0 RC (2009-09-01)</u></b> + +- Improved : Refactored admin area. +- Added : Defacer in xoopsLogger Extra. + +<b><u> Version 1.0 Beta (2008-11-08)</u></b> + +- Improved : More friendly admin area. +- Improved : Less queries needed. +- Improved : Less language definitions needed. +- Added : Defacer in xoopsLogger. +- Added : Settings to disable each Defacer actions. + + +<b><u> Version 1.0 Alpha (2008-10-27)</u></b> +- First public release of the module. + + Added: XoopsModules/defacer/trunk/defacer/docs/credits.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/credits.txt (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/credits.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,6 @@ +Credits +=============== + +Originally developed by Herv\xE9 Thouzard (hervet), + +Updated to XOOPS 2.5.0 Standard GUI by Michael Beck (Mamba), with contributions by Gregory Mage (Mage) \ No newline at end of file Added: XoopsModules/defacer/trunk/defacer/docs/index.html =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/index.html (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/index.html 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/defacer/trunk/defacer/docs/install.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/install.txt (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/install.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,6 @@ +INSTALL/UNISTALL +================= + +No special measures necessary, follow the standard installation process \x96 extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules. + +Detailed instructions on installing modules are available in the XOOPS Operations Manual: http://goo.gl/adT2i \ No newline at end of file Added: XoopsModules/defacer/trunk/defacer/docs/lang_diff.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/lang_diff.txt (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/lang_diff.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,4 @@ +LANGUAGE DIFFERENCES +===================== + +Below are language differences from a version to next version. \ No newline at end of file Added: XoopsModules/defacer/trunk/defacer/docs/licence.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/licence.txt (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/licence.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + 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. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. Added: XoopsModules/defacer/trunk/defacer/docs/readme.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/readme.txt (rev 0) +++ XoopsModules/defacer/trunk/defacer/docs/readme.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,86 @@ +What is Defacer Module (v1.0 Final) ? +====================== + +With this Xoops module, your can: +- change themes, metadata and permissions for any given page. +- enable jgrowl redirection system (xoops 2.4+ only) +- use blocks anywhere (xoops 2.4+ only) + + + +Requirements +==================== + +- XOOPS >= 2.5.0 +- PHP version >= 5.2.0 +- ModuleClasses in /Frameworks (download it from here: http://goo.gl/Bmknt) + + +How to install Defacer +==================== + +Copy defacer folder into the /modules directory of your website. +Then log in to your site as administrator, go to System Admin > Modules, look for the defacer +icon in the list of uninstalled modules and click in the install icon. +Follow the directions in the screen. + + +ATENTION, if you are NOT using xoops 2.4 or impressCms 1.1 +you have to add a line in header.php and footer.php at the root of your instalation + +In yoursite/header.php paste the line + +@include_once XOOPS_ROOT_PATH . '/modules/defacer/include/beforeheader.php'; + +right after + +defined("XOOPS_ROOT_PATH") or die( 'XOOPS root path not defined' ); + +In yoursite/footer.php paste the line + +@include_once XOOPS_ROOT_PATH . '/modules/defacer/include/beforefooter.php'; + +right after + +if (!defined("XOOPS_ROOT_PATH")) { + die("XOOPS root path not defined"); +} + + + +Tips +======= +When creating pages you can use '*' symbol in the url field to match any url. + +You should use relative paths +If you select news module your path will be related to yoursite/module/news/ +You should add for example +index.php and not modules/news/index.php + +System module is relative to root +You can select system module and enter this url to cover all userinfo pages: +userinfo.php* + +Tips for blocks anywhere (xoops 2.4 only) +========= +Just prefix your block title with an underscore and you will be able to use it +has a smarty variable inside your theme or template +Example: +-Edit User menu block and rename it to _User Menu +-Take notice of the "bid" in the url, in this case it is '1': + modules/system/admin.php?fct=blocksadmin&op=edit&bid=1 +-Usage on theme/template: +<{$xoops_block_1.title}> --> echos User Menu +<{$xoops_block_1.content}> --> echos the block content + +Limitations +======== + +The block for changing themes is deactivated when using Defacer Theme Changer. + + + +Feedback +======== + +Please use http://www.xuups.com (xoops user utilities) \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/images/metas_big.png =================================================================== (Binary files differ) Added: XoopsModules/defacer/trunk/defacer/images/metas_big0.png =================================================================== (Binary files differ) Property changes on: XoopsModules/defacer/trunk/defacer/images/metas_big0.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/defacer/trunk/defacer/images/metas_small.png =================================================================== (Binary files differ) Added: XoopsModules/defacer/trunk/defacer/images/metas_small0.png =================================================================== (Binary files differ) Property changes on: XoopsModules/defacer/trunk/defacer/images/metas_small0.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: XoopsModules/defacer/trunk/defacer/images/permissions_big.png =================================================================== (Binary files differ) Modified: XoopsModules/defacer/trunk/defacer/images/permissions_small.png =================================================================== (Binary files differ) Modified: XoopsModules/defacer/trunk/defacer/images/themes_big.png =================================================================== (Binary files differ) Modified: XoopsModules/defacer/trunk/defacer/images/themes_small.png =================================================================== (Binary files differ) Modified: XoopsModules/defacer/trunk/defacer/language/english/admin.php =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/admin.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/language/english/admin.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -39,4 +39,11 @@ define("_AM_DEFACER_PERMISSIONMAN","Permission Manager"); define("_AM_DEFACER_PERMISSION_GROUPS","Permited Groups"); -?> + +//1.1 + +//ModuleAdmin +define('_AM_DEFACER_MODULEADMIN_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)'); + +// Text for Admin footer +//define("_AM_DEFACER_FOOTER", "<div class='center smallsmall italic pad5'>Defacer is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>"); Added: XoopsModules/defacer/trunk/defacer/language/english/help/help.html =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/help/help.html (rev 0) +++ XoopsModules/defacer/trunk/defacer/language/english/help/help.html 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1,80 @@ +<div id="help-template" class="outer"> + <h1 class="head">Help: + <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/defacer/admin/index.php" + title="Back to the administration of Defacer"> Defacer + <img src="<{xoAdminIcons home.png}>" + alt="Back to the Administration of Defacer"/> + </a></h1> + + <h4 class="odd">Description</h4> + + <p>Defacer is a new revolutionary XOOPS module that allows you to change themes, metadata and + permissions for any given page on the XOOPS-based Website, thus giving you a level of control and customization + not seen before. </p> + + <p>It also comes with jgrowl redirection system and the ability of using blocks anywhere in your theme and + templates </p><br/> + + <p> + With this Xoops module, your can: + <ul> + <li>change themes, metadata and permissions for any given page.</li> + <li>enable jgrowl redirection system</li> + <li>use blocks anywhere</li> + </ul> + </p> + + <h4 class="odd">Install/uninstall</h4> + + <p class="even">Copy Defacer folder into the /modules directory of your website. + Then log in to your site as administrator, go to System Admin > Modules, look for the defacer + icon in the list of uninstalled modules and click in the install icon. + Follow the directions in the screen.<br/> <br/> + Detailed instructions on installing modules are available in the + <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a></p> + + + <h4 class="odd">Operating instructions</h4> + + <p class="even"> + When creating pages you can use '*' symbol in the url field to match any url. + + You should use relative paths + If you select news module your path will be related to yoursite/module/news/ + You should add for example + index.php and not modules/news/index.php<br/> <br/> + + System module is relative to root + You can select system module and enter this url to cover all userinfo pages: + userinfo.php*<br/> <br/> + + Tips for blocks anywhere (xoops 2.4 only)<br/> + =========<br/> <br/> + Just prefix your block title with an underscore and you will be able to use it + has a smarty variable inside your theme or template <br/> + Example: <br/> + -Edit User menu block and rename it to _User Menu <br/> + -Take notice of the "bid" in the url, in this case it is '1': + modules/system/admin.php?fct=blocksadmin&op=edit&bid=1 <br/> + -Usage on theme/template: <br/> + < {$xoops_block_1.title} > --> echos User Menu <br/> + < {$xoops_block_1.content} > --> echos the block content + + </p> + + <h4 class="odd">Limitations</h4> + + <p class="even"> + The block for changing themes is deactivated when using Defacer Theme Changer. + + </p> + + <h4 class="odd">Tutorial</h4> + + <p class="even"> + Currently no tutorial is available. + + </p> + + +</div> \ No newline at end of file Added: XoopsModules/defacer/trunk/defacer/language/english/help/index.html =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/help/index.html (rev 0) +++ XoopsModules/defacer/trunk/defacer/language/english/help/index.html 2012-04-03 00:34:31 UTC (rev 9244) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/language/english/modinfo.php =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/modinfo.php 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/language/english/modinfo.php 2012-04-03 00:34:31 UTC (rev 9244) @@ -25,4 +25,6 @@ define("_MI_DEFACER_ENABLE_REDIRECT", "Enable jgrowl redirecting system"); define("_MI_DEFACER_ENABLE_REDIRECT_DSC", "Enable this to replace default redirection pages(xoops 2.4 > only)"); -?> \ No newline at end of file + +//1.1 +define("_MI_DEFACER_HOME", "Home"); \ No newline at end of file Deleted: XoopsModules/defacer/trunk/defacer/readme.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/readme.txt 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/readme.txt 2012-04-03 00:34:31 UTC (rev 9244) @@ -1,91 +0,0 @@ -What is Defacer Module (v1.0 Final) ? -====================== - -With this Xoops module, your can: -- change themes, metadata and permissions for any given page. -- enable jgrowl redirection system (xoops 2.4 only) -- use blocks anywhere (xoops 2.4 only) - - - -Requirements -==================== - -Works in 2.4.x, xoops 2.3.x, xoops 2.2.x, xoops 2.0.18 & up, impresscms 1.x - -Others cms versions were not tested. - -Php5 only - - - - -How to install Defacer -==================== - -Copy defacer folder into the /modules directory of your website. -Then log in to your site as administrator, go to System Admin > Modules, look for the defacer -icon in the list of uninstalled modules and click in the install icon. -Follow the directions in the screen. - - -ATENTION, if you are NOT using xoops 2.4 or impressCms 1.1 -you have to add a line in header.php and footer.php at the root of your instalation - -In yoursite/header.php paste the line - -@include_once XOOPS_ROOT_PATH . '/modules/defacer/include/beforeheader.php'; - -right after - -defined("XOOPS_ROOT_PATH") or die( 'XOOPS root path not defined' ); - -In yoursite/footer.php paste the line - -@include_once XOOPS_ROOT_PATH . '/modules/defacer/include/beforefooter.php'; - -right after - -if (!defined("XOOPS_ROOT_PATH")) { - die("XOOPS root path not defined"); -} - - - - -Tips -======= -When creating pages you can use '*' symbol in the url field to match any url. - -You should use relative paths -If you select news module your path will be related to yoursite/module/news/ -You should add for example -index.php and not modules/news/index.php - -System module is relative to root -You can select system module and enter this url to cover all userinfo pages: -userinfo.php* - -Tips for blocks anywhere (xoops 2.4 only) -========= -Just prefix your block title with an underscore and you will be able to use it -has a smarty variable inside your theme or template -Example: --Edit User menu block and rename it to _User Menu --Take notice of the "bid" in the url, in this case it is '1': - modules/system/admin.php?fct=blocksadmin&op=edit&bid=1 --Usage on theme/template: -<{$xoops_block_1.title}> --> echos User Menu -<{$xoops_block_1.content}> --> echos the block content - -Limitations -======== - -The block for changing themes is deactivated when using Defacer Theme Changer. - - - -Feedback -======== - -Please use http://www.xuups.com (xoops user utilities) \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/templates/defacer_admin_meta.html =================================================================== --- XoopsModules/defacer/trunk/defacer/templates/defacer_admin_meta.html 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/templates/defacer_admin_meta.html 2012-04-03 00:34:31 UTC (rev 9244) @@ -11,6 +11,7 @@ document.anchors.item(type+id).scrollIntoView(); } </script> +<!-- <div style="background-image: url(<{$xoops_url}>/modules/defacer/images/pages_big.png); background-repeat: no-repeat; background-position: left top; @@ -24,6 +25,7 @@ <{$smarty.const._AM_DEFACER_METAMAN}> </div> <br /> +--> <br style="clear: right; line-height:1px;" /> <table width="100%" cellspacing="1" cellpadding="0" class="outer"> <tr align="center"> @@ -50,12 +52,12 @@ <td align="left"><{$item.meta_description}></td> <td> <{if $item.meta_vurl != '0'}> - <a href="<{$item.meta_vurl}>" rel="external"><img src="<{$xoops_url}>/modules/defacer/images/view_big.png" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /></a> + <a href="<{$item.meta_vurl}>" rel="external"><img src="<{xoModuleIcons16 search.png}>" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /></a> <{else}> <img src="<{$xoops_url}>/modules/defacer/images/view_big_off.png" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /> <{/if}> - <a href="admin_meta.php?op=edit&itemid=<{$item.meta_id}>"><img src="<{$xoops_url}>/modules/defacer/images/edit_big.png" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /></a> - <a href="admin_meta.php?op=del&itemid=<{$item.meta_id}>"><img src="<{$xoops_url}>/modules/defacer/images/delete_big.png" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" /></a> + <a href="admin_meta.php?op=edit&itemid=<{$item.meta_id}>"><img src="<{xoModuleIcons16 edit.png}>" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /></a> + <a href="admin_meta.php?op=del&itemid=<{$item.meta_id}>"><img src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" /></a> </td> </tr> <{/foreach}> Modified: XoopsModules/defacer/trunk/defacer/templates/defacer_admin_page.html =================================================================== --- XoopsModules/defacer/trunk/defacer/templates/defacer_admin_page.html 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/templates/defacer_admin_page.html 2012-04-03 00:34:31 UTC (rev 9244) @@ -11,6 +11,7 @@ document.anchors.item(type+id).scrollIntoView(); } </script> +<!-- <div style="background-image: url(<{$xoops_url}>/modules/defacer/images/pages_big.png); background-repeat: no-repeat; background-position: left top; @@ -24,6 +25,7 @@ <{$smarty.const._AM_DEFACER_PAGEMAN}> </div> <br /> +--> <div style="margin-top:0; float: right; width:400px;" align="right"> <form action="admin_page.php?op=list" method="POST"> <input type="text" name="query" id="query" size="30" value="<{$query}>" /> @@ -49,7 +51,7 @@ <td align="left"><{$item.name}></td> <td align="left"><{$item.page_title}></td> <td align="left"><{$item.page_url}></td> - <td><a href="admin_page.php?op=changestatus&itemid=<{$item.page_id}>"><img src="<{$xoops_url}>/modules/defacer/images/<{$item.page_status}>.png" title="<{$smarty.const._AM_DEFACER_CHANGESTATUS}>" alt="<{$smarty.const._AM_DEFACER_CHANGESTATUS}>" /></a></td> + <td><a href="admin_page.php?op=changestatus&itemid=<{$item.page_id}>"><img src="<{xoModuleIcons16 }><{$item.page_status}>.png" title="<{$smarty.const._AM_DEFACER_CHANGESTATUS}>" alt="<{$smarty.const._AM_DEFACER_CHANGESTATUS}>" /></a></td> <td> <a href="admin_theme.php?op=edit&itemid=<{$item.page_id}>"><img src="<{$xoops_url}>/modules/defacer/images/themes_small.png" title="<{$smarty.const._AM_DEFACER_THEMEMAN}>" alt="<{$smarty.const._AM_DEFACER_THEMEMAN}>" /></a> <a href="admin_meta.php?op=edit&itemid=<{$item.page_id}>"><img src="<{$xoops_url}>/modules/defacer/images/metas_small.png" title="<{$smarty.const._AM_DEFACER_METAMAN}>" alt="<{$smarty.const._AM_DEFACER_METAMAN}>" /></a> @@ -57,12 +59,12 @@ </td> <td> <{if $item.page_vurl != '0'}> - <a href="<{$item.page_vurl}>" rel="external"><img src="<{$xoops_url}>/modules/defacer/images/view_big.png" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /></a> + <a href="<{$item.page_vurl}>" rel="external"><img src="<{xoModuleIcons16 search.png}>" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /></a> <{else}> <img src="<{$xoops_url}>/modules/defacer/images/view_big_off.png" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /> <{/if}> - <a href="admin_page.php?op=edit&itemid=<{$item.page_id}>"><img src="<{$xoops_url}>/modules/defacer/images/edit_big.png" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /></a> - <a href="admin_page.php?op=del&itemid=<{$item.page_id}>"><img src="<{$xoops_url}>/modules/defacer/images/delete_big.png" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" /></a> + <a href="admin_page.php?op=edit&itemid=<{$item.page_id}>"><img src="<{xoModuleIcons16 edit.png}>" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /></a> + <a href="admin_page.php?op=del&itemid=<{$item.page_id}>"><img src="<{xoModuleIcons16 delete.png}>" title="<{$smarty.const._DELETE}>" alt="<{$smarty.const._DELETE}>" /></a> </td> </tr> <{/foreach}> Modified: XoopsModules/defacer/trunk/defacer/templates/defacer_admin_permission.html =================================================================== --- XoopsModules/defacer/trunk/defacer/templates/defacer_admin_permission.html 2012-04-02 23:24:31 UTC (rev 9243) +++ XoopsModules/defacer/trunk/defacer/templates/defacer_admin_permission.html 2012-04-03 00:34:31 UTC (rev 9244) @@ -11,6 +11,7 @@ document.anchors.item(type+id).scrollIntoView(); } </script> +<!-- <div style="background-image: url(<{$xoops_url}>/modules/defacer/images/pages_big.png); background-repeat: no-repeat; background-position: left top; @@ -24,6 +25,7 @@ <{$smarty.const._AM_DEFACER_PERMISSIONMAN}> </div> <br /> +--> <br style="clear: right; line-height:1px;" /> <table width="100%" cellspacing="1" cellpadding="0" class="outer"> <tr align="center"> @@ -46,12 +48,12 @@ </td> <td> <{if $item.permission_vurl != '0'}> - <a href="<{$item.permission_vurl}>" rel="external"><img src="<{$xoops_url}>/modules/defacer/images/view_big.png" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /></a> + <a href="<{$item.permission_vurl}>" rel="external"><img src="<{xoModuleIcons16 search.png}>" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /></a> <{else}> <img src="<{$xoops_url}>/modules/defacer/images/view_big_off.png" title="<{$smarty.const._PREVIEW}>" alt="<{$smarty.const._PREVIEW}>" /> <{/if}> - <a href="admin_permission.php?op=edit&itemid=<{$item.permission_id}>"><img src="<{$xoops_url}>/modules/defacer/images/edit_big.png" title="<{$smarty.const._EDIT}>" alt="<{$smarty.const._EDIT}>" /></a> - <a href="admin_permission.php?op=del&itemid=<{$item.permission_id}>"><img src="<{$xoops_url}>/modules/defacer/images/delete_big.png" title="<... [truncated message content] |
From: <be...@us...> - 2012-05-22 19:00:27
|
Revision: 9574 http://xoops.svn.sourceforge.net/xoops/?rev=9574&view=rev Author: beckmi Date: 2012-05-22 19:00:18 +0000 (Tue, 22 May 2012) Log Message: ----------- Updating to 1.1 Final release Modified Paths: -------------- XoopsModules/defacer/trunk/defacer/admin/about.php XoopsModules/defacer/trunk/defacer/admin/admin_about.php XoopsModules/defacer/trunk/defacer/admin/admin_functions.php XoopsModules/defacer/trunk/defacer/admin/admin_header.php XoopsModules/defacer/trunk/defacer/admin/admin_meta.php XoopsModules/defacer/trunk/defacer/admin/admin_page.php XoopsModules/defacer/trunk/defacer/admin/admin_permission.php XoopsModules/defacer/trunk/defacer/admin/admin_theme.php XoopsModules/defacer/trunk/defacer/admin/index.php XoopsModules/defacer/trunk/defacer/admin/menu.php XoopsModules/defacer/trunk/defacer/class/about.php XoopsModules/defacer/trunk/defacer/class/defacer.php XoopsModules/defacer/trunk/defacer/class/meta.php XoopsModules/defacer/trunk/defacer/class/object.php XoopsModules/defacer/trunk/defacer/class/page.php XoopsModules/defacer/trunk/defacer/class/permission.php XoopsModules/defacer/trunk/defacer/class/theme.php XoopsModules/defacer/trunk/defacer/docs/changelog.txt XoopsModules/defacer/trunk/defacer/docs/readme.txt XoopsModules/defacer/trunk/defacer/include/beforefooter.php XoopsModules/defacer/trunk/defacer/include/beforeheader.php XoopsModules/defacer/trunk/defacer/include/functions.php XoopsModules/defacer/trunk/defacer/language/english/about.php XoopsModules/defacer/trunk/defacer/language/english/admin.php XoopsModules/defacer/trunk/defacer/language/english/modinfo.php XoopsModules/defacer/trunk/defacer/preloads/core.php XoopsModules/defacer/trunk/defacer/xoops_version.php Modified: XoopsModules/defacer/trunk/defacer/admin/about.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/about.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/about.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,12 +1,12 @@ -<?php - -include_once dirname(__FILE__) . '/admin_header.php'; - -xoops_cp_header(); - -$aboutAdmin = new ModuleAdmin(); - -echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); - +<?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 'admin_footer.php'; \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_about.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_about.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/admin_about.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,27 +1,27 @@ -<?php -/* - 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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Defacer - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_about.php 0 2009-06-11 18:47:04Z trabis $ - */ - -include_once dirname(__FILE__) . '/admin_header.php'; -include_once dirname(dirname(__FILE__)) . '/class/about.php'; - -$aboutObj = new DefacerAbout(); -$aboutObj->render(); -include_once 'admin_footer.php'; +<?php +/* + 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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Defacer + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_about.php 0 2009-06-11 18:47:04Z trabis $ + */ + +include_once dirname(__FILE__) . '/admin_header.php'; +include_once dirname(dirname(__FILE__)) . '/class/about.php'; + +$aboutObj = new DefacerAbout(); +$aboutObj->render(); +include_once 'admin_footer.php'; ?> \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_functions.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_functions.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/admin_functions.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,76 +1,76 @@ -<?php -/* - 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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Defacer - * @since 1.0 - * @author trabis <lus...@gm...> - * @author InstantZero <http://xoops.instant-zero.com/> - * @version $Id: admin_header.php 0 2009-06-11 18:47:04Z trabis $ - */ - -defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); - -include_once dirname(dirname(__FILE__)) . '/include/common.php'; - -function defacer_adminMenu($currentoption = 0, $breadcrumb = '') -{ - $defacer =& DefacerDefacer::getInstance(); - /* Nice buttons styles */ - echo " - <style type='text/css'> - #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } - #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/" . $defacer->getModule()->dirname() . "/images/bg.png') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } - #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } - #buttonbar li { display:inline; margin:0; padding:0; } - #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/" . $defacer->getModule()->dirname() . "/images/left_both.png') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } - #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/" . $defacer->getModule()->dirname() . "/images/right_both.png') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } - /* Commented Backslash Hack hides rule from IE5-Mac \*/ - #buttonbar a span {float:none;} - /* End IE5-Mac hack */ - #buttonbar a:hover span { color:#333; } - #buttonbar #current a { background-position:0 -150px; border-width:0; } - #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } - #buttonbar a:hover { background-position:0% -150px; } - #buttonbar a:hover span { background-position:100% -150px; } - </style> - "; - - $tblColors = array('', '', '', '', ''); - if($currentoption >= 0) { - $tblColors[$currentoption] = 'current'; - } - - if (file_exists($filename = XOOPS_ROOT_PATH . '/modules/' . $defacer->getModule()->dirname() . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/modinfo.php')) { - include_once $filename; - } else { - include_once XOOPS_ROOT_PATH . '/modules/' . $defacer->getModule()->dirname() . '/language/english/modinfo.php'; - } - - echo "<div id='buttontop'>"; - echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; - echo "<td style=\"width: 60%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"../../system/admin.php?fct=preferences&op=showmod&mod=" . $defacer->getModule()->mid() . "\">" . _AM_DEFACER_GENERALSET . "</a>"; - echo "<td style=\"width: 40%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>" . $defacer->getModule()->name() . " " . _AM_DEFACER_MODULEADMIN . "</b> " . $breadcrumb . "</td>"; - echo "</tr></table>"; - echo "</div>"; - - echo "<div id='buttonbar'>"; - echo "<ul>"; - echo "<li id='" . $tblColors[0] . "'><a href=\"admin_page.php\"\"><span>" . _MI_DEFACER_PAGEMANAGER . "</span></a></li>\n"; - echo "<li id='" . $tblColors[1] . "'><a href=\"admin_theme.php\"\"><span>" . _MI_DEFACER_THEMEMANAGER . "</span></a></li>\n"; - echo "<li id='" . $tblColors[2] . "'><a href=\"admin_meta.php\"\"><span>" . _MI_DEFACER_METAMANAGER . "</span></a></li>\n"; - echo "<li id='" . $tblColors[3] . "'><a href=\"admin_permission.php\"\"><span>" . _MI_DEFACER_PERMISSIONMANAGER . "</span></a></li>\n"; - echo "<li id='" . $tblColors[4] . "'><a href=\"admin_about.php\"\"><span>" . _MI_DEFACER_ABOUT . "</span></a></li>\n"; - echo "</ul></div><div> </div>"; -} +<?php +/* + 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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Defacer + * @since 1.0 + * @author trabis <lus...@gm...> + * @author InstantZero <http://xoops.instant-zero.com/> + * @version $Id: admin_header.php 0 2009-06-11 18:47:04Z trabis $ + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +include_once dirname(dirname(__FILE__)) . '/include/common.php'; + +function defacer_adminMenu($currentoption = 0, $breadcrumb = '') +{ + $defacer =& DefacerDefacer::getInstance(); + /* Nice buttons styles */ + echo " + <style type='text/css'> + #buttontop { float:left; width:100%; background: #e7e7e7; font-size:93%; line-height:normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0; } + #buttonbar { float:left; width:100%; background: #e7e7e7 url('" . XOOPS_URL . "/modules/" . $defacer->getModule()->dirname() . "/images/bg.png') repeat-x left bottom; font-size:93%; line-height:normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px; } + #buttonbar ul { margin:0; margin-top: 15px; padding:10px 10px 0; list-style:none; } + #buttonbar li { display:inline; margin:0; padding:0; } + #buttonbar a { float:left; background:url('" . XOOPS_URL . "/modules/" . $defacer->getModule()->dirname() . "/images/left_both.png') no-repeat left top; margin:0; padding:0 0 0 9px; border-bottom:1px solid #000; text-decoration:none; } + #buttonbar a span { float:left; display:block; background:url('" . XOOPS_URL . "/modules/" . $defacer->getModule()->dirname() . "/images/right_both.png') no-repeat right top; padding:5px 15px 4px 6px; font-weight:bold; color:#765; } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #buttonbar a span {float:none;} + /* End IE5-Mac hack */ + #buttonbar a:hover span { color:#333; } + #buttonbar #current a { background-position:0 -150px; border-width:0; } + #buttonbar #current a span { background-position:100% -150px; padding-bottom:5px; color:#333; } + #buttonbar a:hover { background-position:0% -150px; } + #buttonbar a:hover span { background-position:100% -150px; } + </style> + "; + + $tblColors = array('', '', '', '', ''); + if($currentoption >= 0) { + $tblColors[$currentoption] = 'current'; + } + + if (file_exists($filename = XOOPS_ROOT_PATH . '/modules/' . $defacer->getModule()->dirname() . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/modinfo.php')) { + include_once $filename; + } else { + include_once XOOPS_ROOT_PATH . '/modules/' . $defacer->getModule()->dirname() . '/language/english/modinfo.php'; + } + + echo "<div id='buttontop'>"; + echo "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; + echo "<td style=\"width: 60%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;\"><a class=\"nobutton\" href=\"../../system/admin.php?fct=preferences&op=showmod&mod=" . $defacer->getModule()->mid() . "\">" . _AM_DEFACER_GENERALSET . "</a>"; + echo "<td style=\"width: 40%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;\"><b>" . $defacer->getModule()->name() . " " . _AM_DEFACER_MODULEADMIN . "</b> " . $breadcrumb . "</td>"; + echo "</tr></table>"; + echo "</div>"; + + echo "<div id='buttonbar'>"; + echo "<ul>"; + echo "<li id='" . $tblColors[0] . "'><a href=\"admin_page.php\"\"><span>" . _MI_DEFACER_PAGEMANAGER . "</span></a></li>\n"; + echo "<li id='" . $tblColors[1] . "'><a href=\"admin_theme.php\"\"><span>" . _MI_DEFACER_THEMEMANAGER . "</span></a></li>\n"; + echo "<li id='" . $tblColors[2] . "'><a href=\"admin_meta.php\"\"><span>" . _MI_DEFACER_METAMANAGER . "</span></a></li>\n"; + echo "<li id='" . $tblColors[3] . "'><a href=\"admin_permission.php\"\"><span>" . _MI_DEFACER_PERMISSIONMANAGER . "</span></a></li>\n"; + echo "<li id='" . $tblColors[4] . "'><a href=\"admin_about.php\"\"><span>" . _MI_DEFACER_ABOUT . "</span></a></li>\n"; + echo "</ul></div><div> </div>"; +} ?> \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_header.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_header.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/admin_header.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,57 +1,57 @@ -<?php -/* - 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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Defacer - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_header.php 0 2009-06-11 18:47:04Z trabis $ - */ - -//require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; -//require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; -$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'; -require_once $path . '/class/xoopsformloader.php'; - -include_once dirname(dirname(__FILE__)) . '/include/common.php'; -include_once dirname(__FILE__) . '/admin_functions.php'; - -if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { - include_once XOOPS_ROOT_PATH . '/class/template.php'; - $xoopsTpl = new XoopsTpl(); -} - -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'); - -if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ - include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); - }else{ - redirect_header("../../../admin.php", 5, _AM_DEFACER_MODULEADMIN_MISSING, false); +<?php +/* + 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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Defacer + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_header.php 0 2009-06-11 18:47:04Z trabis $ + */ + +//require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php'; +//require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; +$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'; +require_once $path . '/class/xoopsformloader.php'; + +include_once dirname(dirname(__FILE__)) . '/include/common.php'; +include_once dirname(__FILE__) . '/admin_functions.php'; + +if (!isset($xoopsTpl) || !is_object($xoopsTpl)) { + include_once XOOPS_ROOT_PATH . '/class/template.php'; + $xoopsTpl = new XoopsTpl(); +} + +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'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); + }else{ + redirect_header("../../../admin.php", 5, _AM_DEFACER_MODULEADMIN_MISSING, false); } \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_meta.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_meta.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/admin_meta.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,236 +1,236 @@ -<?php -/* - 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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Defacer - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_meta.php 0 2009-06-11 18:47:04Z trabis $ - */ - -require dirname(__FILE__) . '/admin_header.php'; - -$actions = array('list', 'add', 'edit', 'editok', 'del', 'delok'); -$op = isset($_REQUEST['op']) && in_array($_REQUEST['op'], $actions) ? $_REQUEST['op'] : 'list'; - -$itemid = isset($_REQUEST['itemid']) ? intval($_REQUEST['itemid']) : 0; -$limit = isset($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 15; -$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; - -$itemid = isset($_REQUEST['meta_id']) ? intval($_REQUEST['meta_id']) : $itemid; -$indexAdmin = new ModuleAdmin(); - -switch ($op) { - case 'list': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_meta.php'); - //defacer_adminMenu(2); - echo defacer_index($start, $limit); - include_once 'admin_footer.php'; - break; - case 'add': - defacer_add(); - break; - case 'edit': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_meta.php'); - //defacer_adminMenu(2); - echo defacer_form($itemid); - include_once 'admin_footer.php'; - break; - case 'editok': - defacer_edit($itemid); - break; - case 'del': - defacer_confirmdel($itemid); - break; - case 'delok': - defacer_del($itemid); - break; -} - -function defacer_index($start = 0, $limit = 0) -{ - global $xoopsTpl; - - $defacer =& DefacerDefacer::getInstance(); - - $count = $defacer->getHandler('meta')->getCount(); - $xoopsTpl->assign('count', $count); - - $criteria = new CriteriaCompo(); - $criteria->setStart($start); - $criteria->setLimit($limit); - $objs = $defacer->getHandler('meta')->getObjects($criteria); - - if ($count > $limit) { - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; - $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); - $xoopsTpl->assign('pagenav', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); - } - - foreach ($objs as $obj) { - $item = $obj->getValues(); - - $page = $defacer->getHandler('page')->get($obj->getVar('meta_id')); - $item['module'] = $page->getVar('name'); - $item['meta_title'] = $page->getVar('page_title'); - $item['meta_url'] = $page->getVar('page_url'); - $item['meta_status'] = $page->getVar('page_status'); - - if (substr($page->getVar('page_url'), -1) == '*') { - $item['meta_vurl'] = 0; - } else { - if ($page->getVar('page_moduleid') == 1){ - $item['meta_vurl'] = XOOPS_URL . '/' . $page->getVar('page_url'); - } else { - $item['meta_vurl'] = XOOPS_URL . '/modules/' . $page->getVar('dirname') . '/' . $page->getVar('page_url'); - } - } - - $xoopsTpl->append('items', $item); - } - - $xoopsTpl->assign('form', defacer_form()); - - return $xoopsTpl->fetch('db:defacer_admin_meta.html'); -} - -function defacer_add() -{ - $defacer =& DefacerDefacer::getInstance(); - - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $obj = $defacer->getHandler('meta')->create(); - $obj->setVars($_POST); - - if (!$defacer->getHandler('meta')->insert($obj)) { - $msg = _AM_DEFACER_ERROR; - } else { - $msg = _AM_DEFACER_DBUPDATED; - } - - redirect_header(basename(__FILE__) , 2, $msg); -} - -function defacer_edit($itemid) -{ - $defacer =& DefacerDefacer::getInstance(); - - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - $obj = $defacer->getHandler('meta')->get($itemid); - $obj->setVars($_POST); - - if (!$defacer->getHandler('meta')->insert($obj)) { - $msg = _AM_DEFACER_ERROR; - } else { - $msg = _AM_DEFACER_DBUPDATED; - } - - redirect_header(basename(__FILE__), 2, $msg); -} - -function defacer_del($itemid) -{ - $defacer =& DefacerDefacer::getInstance(); - - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header(basename(__FILE__),1 , implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - if ($itemid <= 0) { - redirect_header(basename(__FILE__), 1); - } - - $obj = $defacer->getHandler('meta')->get($itemid); - if (!is_object($obj)) { - redirect_header(basename(__FILE__), 1); - } - - if (!$defacer->getHandler('meta')->delete($obj)) { - xoops_cp_header(); - xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('meta_id'))); - include_once 'admin_footer.php'; - exit(); - } - - redirect_header(basename(__FILE__), 2, _AM_DEFACER_DBUPDATED); -} - -function defacer_confirmdel($itemid) -{ - xoops_cp_header(); - xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); - include_once 'admin_footer.php'; -} - -function defacer_form($itemid = 0) -{ - $defacer =& DefacerDefacer::getInstance(); - $obj = $defacer->getHandler('meta')->get($itemid); - - if ($obj->isNew()) { - $ftitle = _EDIT; - } else { - $ftitle = _ADD; - } - - $form = new XoopsThemeForm($ftitle, 'meta_form', basename(__FILE__), 'post', true); - - $page_select = new XoopsFormSelect(_AM_DEFACER_PAGE, 'meta_id', $obj->getVar('meta_id', 'e')); - $page_select->customValidationCode[] = 'var value = document.getElementById(\'meta_id\').value; if (value == 0){alert("' . _AM_DEFACER_SELECTPAGE_ERR . '"); return false;}'; - - $criteria = new CriteriaCompo(new Criteria('page_status', 1)); - $criteria->setSort('name'); - $criteria->setOrder('ASC'); - $pageslist = $defacer->getHandler('page')->getList($criteria); - $list = array('0' => '--------------------------'); - $pageslist = $list + $pageslist; - $page_select->addOptionArray($pageslist); - $form->addElement($page_select, true); - - $form->addElement(new XoopsFormText(_AM_DEFACER_META_SITENAME, 'meta_sitename', 50, 50, $obj->getVar('meta_sitename', 'e'))); - $form->addElement(new XoopsFormText(_AM_DEFACER_META_SLOGAN, 'meta_slogan', 50, 50, $obj->getVar('meta_slogan', 'e'))); - $form->addElement(new XoopsFormText(_AM_DEFACER_META_PAGETITLE, 'meta_pagetitle', 50, 50, $obj->getVar('meta_pagetitle', 'e'))); - $form->addElement(new XoopsFormTextArea(_AM_DEFACER_META_KEYWORDS, 'meta_keywords' , $obj->getVar('meta_keywords', 'e'))); - $form->addElement(new XoopsFormTextArea(_AM_DEFACER_META_DESCRIPTION, 'meta_description' , $obj->getVar('meta_description', 'e'))); - - $tray = new XoopsFormElementTray('' ,''); - $tray->addElement(new XoopsFormButton('', 'defacer_button', _SUBMIT, 'submit')); - - $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); - if (!$obj->isNew()) { - $btn->setExtra('onclick="document.location.href=\'' . basename(__FILE__) . '\'"'); - } else { - $btn->setExtra('onclick="document.getElementById(\'form\').style.display = \'none\'; return false;"'); - } - $tray->addElement($btn); - $form->addElement($tray); - - if (!$obj->isNew()) { - $form->addElement(new XoopsFormHidden('op', 'editok')); - $form->addElement(new XoopsFormHidden('itemid', $itemid)); - } else { - $form->addElement(new XoopsFormHidden('op', 'add')); - } - - return $form->render(); -} - +<?php +/* + 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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Defacer + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_meta.php 0 2009-06-11 18:47:04Z trabis $ + */ + +require dirname(__FILE__) . '/admin_header.php'; + +$actions = array('list', 'add', 'edit', 'editok', 'del', 'delok'); +$op = isset($_REQUEST['op']) && in_array($_REQUEST['op'], $actions) ? $_REQUEST['op'] : 'list'; + +$itemid = isset($_REQUEST['itemid']) ? intval($_REQUEST['itemid']) : 0; +$limit = isset($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 15; +$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; + +$itemid = isset($_REQUEST['meta_id']) ? intval($_REQUEST['meta_id']) : $itemid; +$indexAdmin = new ModuleAdmin(); + +switch ($op) { + case 'list': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_meta.php'); + //defacer_adminMenu(2); + echo defacer_index($start, $limit); + include_once 'admin_footer.php'; + break; + case 'add': + defacer_add(); + break; + case 'edit': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_meta.php'); + //defacer_adminMenu(2); + echo defacer_form($itemid); + include_once 'admin_footer.php'; + break; + case 'editok': + defacer_edit($itemid); + break; + case 'del': + defacer_confirmdel($itemid); + break; + case 'delok': + defacer_del($itemid); + break; +} + +function defacer_index($start = 0, $limit = 0) +{ + global $xoopsTpl; + + $defacer =& DefacerDefacer::getInstance(); + + $count = $defacer->getHandler('meta')->getCount(); + $xoopsTpl->assign('count', $count); + + $criteria = new CriteriaCompo(); + $criteria->setStart($start); + $criteria->setLimit($limit); + $objs = $defacer->getHandler('meta')->getObjects($criteria); + + if ($count > $limit) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); + $xoopsTpl->assign('pagenav', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); + } + + foreach ($objs as $obj) { + $item = $obj->getValues(); + + $page = $defacer->getHandler('page')->get($obj->getVar('meta_id')); + $item['module'] = $page->getVar('name'); + $item['meta_title'] = $page->getVar('page_title'); + $item['meta_url'] = $page->getVar('page_url'); + $item['meta_status'] = $page->getVar('page_status'); + + if (substr($page->getVar('page_url'), -1) == '*') { + $item['meta_vurl'] = 0; + } else { + if ($page->getVar('page_moduleid') == 1){ + $item['meta_vurl'] = XOOPS_URL . '/' . $page->getVar('page_url'); + } else { + $item['meta_vurl'] = XOOPS_URL . '/modules/' . $page->getVar('dirname') . '/' . $page->getVar('page_url'); + } + } + + $xoopsTpl->append('items', $item); + } + + $xoopsTpl->assign('form', defacer_form()); + + return $xoopsTpl->fetch('db:defacer_admin_meta.html'); +} + +function defacer_add() +{ + $defacer =& DefacerDefacer::getInstance(); + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $obj = $defacer->getHandler('meta')->create(); + $obj->setVars($_POST); + + if (!$defacer->getHandler('meta')->insert($obj)) { + $msg = _AM_DEFACER_ERROR; + } else { + $msg = _AM_DEFACER_DBUPDATED; + } + + redirect_header(basename(__FILE__) , 2, $msg); +} + +function defacer_edit($itemid) +{ + $defacer =& DefacerDefacer::getInstance(); + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + $obj = $defacer->getHandler('meta')->get($itemid); + $obj->setVars($_POST); + + if (!$defacer->getHandler('meta')->insert($obj)) { + $msg = _AM_DEFACER_ERROR; + } else { + $msg = _AM_DEFACER_DBUPDATED; + } + + redirect_header(basename(__FILE__), 2, $msg); +} + +function defacer_del($itemid) +{ + $defacer =& DefacerDefacer::getInstance(); + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header(basename(__FILE__),1 , implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if ($itemid <= 0) { + redirect_header(basename(__FILE__), 1); + } + + $obj = $defacer->getHandler('meta')->get($itemid); + if (!is_object($obj)) { + redirect_header(basename(__FILE__), 1); + } + + if (!$defacer->getHandler('meta')->delete($obj)) { + xoops_cp_header(); + xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('meta_id'))); + include_once 'admin_footer.php'; + exit(); + } + + redirect_header(basename(__FILE__), 2, _AM_DEFACER_DBUPDATED); +} + +function defacer_confirmdel($itemid) +{ + xoops_cp_header(); + xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); + include_once 'admin_footer.php'; +} + +function defacer_form($itemid = 0) +{ + $defacer =& DefacerDefacer::getInstance(); + $obj = $defacer->getHandler('meta')->get($itemid); + + if ($obj->isNew()) { + $ftitle = _EDIT; + } else { + $ftitle = _ADD; + } + + $form = new XoopsThemeForm($ftitle, 'meta_form', basename(__FILE__), 'post', true); + + $page_select = new XoopsFormSelect(_AM_DEFACER_PAGE, 'meta_id', $obj->getVar('meta_id', 'e')); + $page_select->customValidationCode[] = 'var value = document.getElementById(\'meta_id\').value; if (value == 0){alert("' . _AM_DEFACER_SELECTPAGE_ERR . '"); return false;}'; + + $criteria = new CriteriaCompo(new Criteria('page_status', 1)); + $criteria->setSort('name'); + $criteria->setOrder('ASC'); + $pageslist = $defacer->getHandler('page')->getList($criteria); + $list = array('0' => '--------------------------'); + $pageslist = $list + $pageslist; + $page_select->addOptionArray($pageslist); + $form->addElement($page_select, true); + + $form->addElement(new XoopsFormText(_AM_DEFACER_META_SITENAME, 'meta_sitename', 50, 50, $obj->getVar('meta_sitename', 'e'))); + $form->addElement(new XoopsFormText(_AM_DEFACER_META_SLOGAN, 'meta_slogan', 50, 50, $obj->getVar('meta_slogan', 'e'))); + $form->addElement(new XoopsFormText(_AM_DEFACER_META_PAGETITLE, 'meta_pagetitle', 50, 50, $obj->getVar('meta_pagetitle', 'e'))); + $form->addElement(new XoopsFormTextArea(_AM_DEFACER_META_KEYWORDS, 'meta_keywords' , $obj->getVar('meta_keywords', 'e'))); + $form->addElement(new XoopsFormTextArea(_AM_DEFACER_META_DESCRIPTION, 'meta_description' , $obj->getVar('meta_description', 'e'))); + + $tray = new XoopsFormElementTray('' ,''); + $tray->addElement(new XoopsFormButton('', 'defacer_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + if (!$obj->isNew()) { + $btn->setExtra('onclick="document.location.href=\'' . basename(__FILE__) . '\'"'); + } else { + $btn->setExtra('onclick="document.getElementById(\'form\').style.display = \'none\'; return false;"'); + } + $tray->addElement($btn); + $form->addElement($tray); + + if (!$obj->isNew()) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('itemid', $itemid)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + + return $form->render(); +} + ?> \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_page.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_page.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/admin_page.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,292 +1,292 @@ -<?php -/* - 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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Defacer - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_page.php 0 2009-06-11 18:47:04Z trabis $ - */ - -require dirname(__FILE__) . '/admin_header.php'; - -$actions = array('list', 'add', 'edit', 'editok', 'del', 'delok', 'changestatus'); -$op = isset($_REQUEST['op']) && in_array($_REQUEST['op'], $actions) ? $_REQUEST['op'] : 'list'; - -$itemid = isset($_REQUEST['itemid']) ? intval($_REQUEST['itemid']) : 0; -$limit = isset($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 15; -$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; -$query = isset($_REQUEST['query']) ? trim($_REQUEST['query']) : ''; - -$indexAdmin = new ModuleAdmin(); - - -switch ($op) { - case 'list': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_page.php'); - //defacer_adminMenu(0); - echo defacer_index($start, $limit, $query); - include_once 'admin_footer.php'; - break; - case 'add': - defacer_add(); - break; - case 'edit': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_page.php'); - //defacer_adminMenu(0); - echo defacer_form($itemid); - include_once 'admin_footer.php'; - break; - case 'editok': - defacer_edit($itemid); - break; - case 'del': - defacer_confirmdel($itemid); - break; - case 'delok': - defacer_del($itemid); - break; - case 'changestatus': - defacer_changestatus($itemid); - break; -} - -function defacer_index($start = 0, $limit = 0, $query = '') -{ - global $xoopsTpl; - - $defacer =& DefacerDefacer::getInstance(); - - $xoopsTpl->assign('query', $query); - - $criteria = new CriteriaCompo(); - if (!empty($query)) { - $myts =& MyTextSanitizer::getInstance(); - $criteria->add(new Criteria('page_title', $myts->addSlashes($query) . '%', 'LIKE')); - } - - $count = $defacer->getHandler('page')->getCount($criteria); - $xoopsTpl->assign('count', $count); - - $criteria->setStart($start); - $criteria->setLimit($limit); - $criteria->setSort('name'); - $criteria->setOrder('ASC'); - $objs = $defacer->getHandler('page')->getObjects($criteria); - - if ($count > $limit) { - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; - $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); - $xoopsTpl->assign('pagenav', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); - } - - foreach ($objs as $obj) { - $item = $obj->getValues(); - - if (substr($obj->getVar('page_url'), -1) == '*'){ - $item['page_vurl'] = 0; - } else { - if ($obj->getVar('page_moduleid') == 1) { - $item['page_vurl'] = XOOPS_URL . '/' . $obj->getVar('page_url'); - } else { - $item['page_vurl'] = XOOPS_URL . '/modules/' . $obj->getVar('dirname') . '/' . $obj->getVar('page_url'); - } - } - - $xoopsTpl->append('items', $item); - } - - $xoopsTpl->assign('form', defacer_form()); - - return $xoopsTpl->fetch('db:defacer_admin_page.html'); -} - -function defacer_add() -{ - $defacer =& DefacerDefacer::getInstance(); - - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - if (!isset($_POST['page_moduleid']) || $_POST['page_moduleid'] == 0){ - $_POST['page_moduleid'] = 1; - } - - $obj = $defacer->getHandler('page')->create(); - $obj->setVars($_POST); - - if (!$defacer->getHandler('page')->insert($obj)) { - $msg = _AM_DEFACER_ERROR; - } else { - $msg = _AM_DEFACER_DBUPDATED; - } - - redirect_header(basename(__FILE__) , 2, $msg); -} - -function defacer_edit($itemid) -{ - $defacer =& DefacerDefacer::getInstance(); - - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - if (!isset($_POST['page_moduleid']) || $_POST['page_moduleid'] == 0){ - $_POST['page_moduleid'] = 1; - } - - $obj = $defacer->getHandler('page')->get($itemid); - $obj->setVars($_POST); - - if (!$defacer->getHandler('page')->insert($obj)) { - $msg = _AM_DEFACER_ERROR; - } else { - $msg = _AM_DEFACER_DBUPDATED; - } - - redirect_header(basename(__FILE__), 2, $msg); -} - -function defacer_del($itemid) -{ - $defacer =& DefacerDefacer::getInstance(); - - if (!$GLOBALS['xoopsSecurity']->check()) { - redirect_header(basename(__FILE__),1 , implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); - } - - if ($itemid <= 0) { - redirect_header(basename(__FILE__), 1); - } - - $obj = $defacer->getHandler('page')->get($itemid); - if (!is_object($obj)) { - redirect_header(basename(__FILE__), 1); - } - - if (!$defacer->getHandler('page')->delete($obj)) { - xoops_cp_header(); - xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('page_id'))); - include_once 'admin_footer.php'; - exit(); - } - - $obj = $defacer->getHandler('theme')->get($itemid); - if (is_object($obj) && !$defacer->getHandler('theme')->delete($obj)) { - xoops_cp_header(); - xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('theme_id'))); - include_once 'admin_footer.php'; - exit(); - } - - $obj = $defacer->getHandler('meta')->get($itemid); - if (is_object($obj) && !$defacer->getHandler('meta')->delete($obj)) { - xoops_cp_header(); - xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('meta_id'))); - include_once 'admin_footer.php'; - exit(); - } - - $obj = $defacer->getHandler('permission')->get($itemid); - if (is_object($obj) && !$defacer->getHandler('permission')->delete($obj)) { - xoops_cp_header(); - xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('permission_id'))); - include_once 'admin_footer.php'; - exit(); - } - - redirect_header(basename(__FILE__), 2, _AM_DEFACER_DBUPDATED); -} - -function defacer_confirmdel($itemid) -{ - xoops_cp_header(); - xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); - include_once 'admin_footer.php'; -} - -function defacer_changestatus($itemid) -{ - $defacer =& DefacerDefacer::getInstance(); - - $obj = $defacer->getHandler('page')->get($itemid); - $obj->setVar('page_status', !$obj->getVar('page_status')); - - if (!$defacer->getHandler('page')->insert($obj)) { - $msg = _AM_DEFACER_ERROR; - }else{ - $msg = _AM_DEFACER_DBUPDATED; - } - - redirect_header(basename(__FILE__), 2, $msg); -} - -function defacer_form($itemid = 0) -{ - $defacer =& DefacerDefacer::getInstance(); - $obj = $defacer->getHandler('page')->get($itemid); - - if ($obj->isNew()) { - $ftitle = _EDIT; - } else { - $ftitle = _ADD; - } - - $form = new XoopsThemeForm($ftitle, 'page_form', basename(__FILE__), 'post', true); - - $mid = new XoopsFormSelect(_AM_DEFACER_PAGE_MODULE, 'page_moduleid', $obj->getVar('page_moduleid', 'e')); - $mid->customValidationCode[] = 'var value = document.getElementById(\'page_moduleid\').value; if (value == 0){alert("' . _AM_DEFACER_SELECTMODULE_ERR . '"); return false;}'; - - $module_handler =& xoops_gethandler('module'); - $criteria = new CriteriaCompo(new Criteria('hasmain', 1)); - $criteria->add(new Criteria('isactive', 1)); - //$criteria->setSort('name'); - //$criteria->setOrder('ASC'); xoopsModule does not accpet this :( - $moduleslist = $module_handler->getList($criteria); - $module = $module_handler->get(1); - $list = array($module->getVar('mid') => $module->getVar('name')); - $moduleslist = $list + $moduleslist; - $mid->addOptionArray($moduleslist); - $form->addElement($mid, true); - - $form->addElement(new XoopsFormText(_AM_DEFACER_PAGE_TITLE, 'page_title', 50, 255, $obj->getVar('page_title', 'e')), true); - $furl = new XoopsFormText(_AM_DEFACER_PAGE_URL, 'page_url', 50, 255, $obj->getVar('page_url', 'e')); - $furl->setDescription(_AM_DEFACER_PAGE_URL_DESC); - $form->addElement($furl, true); - $form->addElement(new XoopsFormRadioYN(_AM_DEFACER_PAGE_DISPLAY, 'page_status', $obj->getVar('page_status', 'e'), _YES, _NO)); - - $tray = new XoopsFormElementTray('' ,''); - $tray->addElement(new XoopsFormButton('', 'defacer_button', _SUBMIT, 'submit')); - - $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); - if (!$obj->isNew()) { - $btn->setExtra('onclick="document.location.href=\'' . basename(__FILE__) . '\'"'); - } else { - $btn->setExtra('onclick="document.getElementById(\'form\').style.display = \'none\'; return false;"'); - } - $tray->addElement($btn); - $form->addElement($tray); - - if (!$obj->isNew()) { - $form->addElement(new XoopsFormHidden('op', 'editok')); - $form->addElement(new XoopsFormHidden('itemid', $itemid)); - } else { - $form->addElement(new XoopsFormHidden('op', 'add')); - } - return $form->render(); -} +<?php +/* + 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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Defacer + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_page.php 0 2009-06-11 18:47:04Z trabis $ + */ + +require dirname(__FILE__) . '/admin_header.php'; + +$actions = array('list', 'add', 'edit', 'editok', 'del', 'delok', 'changestatus'); +$op = isset($_REQUEST['op']) && in_array($_REQUEST['op'], $actions) ? $_REQUEST['op'] : 'list'; + +$itemid = isset($_REQUEST['itemid']) ? intval($_REQUEST['itemid']) : 0; +$limit = isset($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 15; +$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; +$query = isset($_REQUEST['query']) ? trim($_REQUEST['query']) : ''; + +$indexAdmin = new ModuleAdmin(); + + +switch ($op) { + case 'list': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_page.php'); + //defacer_adminMenu(0); + echo defacer_index($start, $limit, $query); + include_once 'admin_footer.php'; + break; + case 'add': + defacer_add(); + break; + case 'edit': + xoops_cp_header(); + echo $indexAdmin->addNavigation('admin_page.php'); + //defacer_adminMenu(0); + echo defacer_form($itemid); + include_once 'admin_footer.php'; + break; + case 'editok': + defacer_edit($itemid); + break; + case 'del': + defacer_confirmdel($itemid); + break; + case 'delok': + defacer_del($itemid); + break; + case 'changestatus': + defacer_changestatus($itemid); + break; +} + +function defacer_index($start = 0, $limit = 0, $query = '') +{ + global $xoopsTpl; + + $defacer =& DefacerDefacer::getInstance(); + + $xoopsTpl->assign('query', $query); + + $criteria = new CriteriaCompo(); + if (!empty($query)) { + $myts =& MyTextSanitizer::getInstance(); + $criteria->add(new Criteria('page_title', $myts->addSlashes($query) . '%', 'LIKE')); + } + + $count = $defacer->getHandler('page')->getCount($criteria); + $xoopsTpl->assign('count', $count); + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('name'); + $criteria->setOrder('ASC'); + $objs = $defacer->getHandler('page')->getObjects($criteria); + + if ($count > $limit) { + include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; + $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); + $xoopsTpl->assign('pagenav', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); + } + + foreach ($objs as $obj) { + $item = $obj->getValues(); + + if (substr($obj->getVar('page_url'), -1) == '*'){ + $item['page_vurl'] = 0; + } else { + if ($obj->getVar('page_moduleid') == 1) { + $item['page_vurl'] = XOOPS_URL . '/' . $obj->getVar('page_url'); + } else { + $item['page_vurl'] = XOOPS_URL . '/modules/' . $obj->getVar('dirname') . '/' . $obj->getVar('page_url'); + } + } + + $xoopsTpl->append('items', $item); + } + + $xoopsTpl->assign('form', defacer_form()); + + return $xoopsTpl->fetch('db:defacer_admin_page.html'); +} + +function defacer_add() +{ + $defacer =& DefacerDefacer::getInstance(); + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if (!isset($_POST['page_moduleid']) || $_POST['page_moduleid'] == 0){ + $_POST['page_moduleid'] = 1; + } + + $obj = $defacer->getHandler('page')->create(); + $obj->setVars($_POST); + + if (!$defacer->getHandler('page')->insert($obj)) { + $msg = _AM_DEFACER_ERROR; + } else { + $msg = _AM_DEFACER_DBUPDATED; + } + + redirect_header(basename(__FILE__) , 2, $msg); +} + +function defacer_edit($itemid) +{ + $defacer =& DefacerDefacer::getInstance(); + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header(basename(__FILE__), 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if (!isset($_POST['page_moduleid']) || $_POST['page_moduleid'] == 0){ + $_POST['page_moduleid'] = 1; + } + + $obj = $defacer->getHandler('page')->get($itemid); + $obj->setVars($_POST); + + if (!$defacer->getHandler('page')->insert($obj)) { + $msg = _AM_DEFACER_ERROR; + } else { + $msg = _AM_DEFACER_DBUPDATED; + } + + redirect_header(basename(__FILE__), 2, $msg); +} + +function defacer_del($itemid) +{ + $defacer =& DefacerDefacer::getInstance(); + + if (!$GLOBALS['xoopsSecurity']->check()) { + redirect_header(basename(__FILE__),1 , implode('<br />', $GLOBALS['xoopsSecurity']->getErrors())); + } + + if ($itemid <= 0) { + redirect_header(basename(__FILE__), 1); + } + + $obj = $defacer->getHandler('page')->get($itemid); + if (!is_object($obj)) { + redirect_header(basename(__FILE__), 1); + } + + if (!$defacer->getHandler('page')->delete($obj)) { + xoops_cp_header(); + xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('page_id'))); + include_once 'admin_footer.php'; + exit(); + } + + $obj = $defacer->getHandler('theme')->get($itemid); + if (is_object($obj) && !$defacer->getHandler('theme')->delete($obj)) { + xoops_cp_header(); + xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('theme_id'))); + include_once 'admin_footer.php'; + exit(); + } + + $obj = $defacer->getHandler('meta')->get($itemid); + if (is_object($obj) && !$defacer->getHandler('meta')->delete($obj)) { + xoops_cp_header(); + xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('meta_id'))); + include_once 'admin_footer.php'; + exit(); + } + + $obj = $defacer->getHandler('permission')->get($itemid); + if (is_object($obj) && !$defacer->getHandler('permission')->delete($obj)) { + xoops_cp_header(); + xoops_error(sprintf(_AM_DEFACER_ERROR, $obj->getVar('permission_id'))); + include_once 'admin_footer.php'; + exit(); + } + + redirect_header(basename(__FILE__), 2, _AM_DEFACER_DBUPDATED); +} + +function defacer_confirmdel($itemid) +{ + xoops_cp_header(); + xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); + include_once 'admin_footer.php'; +} + +function defacer_changestatus($itemid) +{ + $defacer =& DefacerDefacer::getInstance(); + + $obj = $defacer->getHandler('page')->get($itemid); + $obj->setVar('page_status', !$obj->getVar('page_status')); + + if (!$defacer->getHandler('page')->insert($obj)) { + $msg = _AM_DEFACER_ERROR; + }else{ + $msg = _AM_DEFACER_DBUPDATED; + } + + redirect_header(basename(__FILE__), 2, $msg); +} + +function defacer_form($itemid = 0) +{ + $defacer =& DefacerDefacer::getInstance(); + $obj = $defacer->getHandler('page')->get($itemid); + + if ($obj->isNew()) { + $ftitle = _EDIT; + } else { + $ftitle = _ADD; + } + + $form = new XoopsThemeForm($ftitle, 'page_form', basename(__FILE__), 'post', true); + + $mid = new XoopsFormSelect(_AM_DEFACER_PAGE_MODULE, 'page_moduleid', $obj->getVar('page_moduleid', 'e')); + $mid->customValidationCode[] = 'var value = document.getElementById(\'page_moduleid\').value; if (value == 0){alert("' . _AM_DEFACER_SELECTMODULE_ERR . '"); return false;}'; + + $module_handler =& xoops_gethandler('module'); + $criteria = new CriteriaCompo(new Criteria('hasmain', 1)); + $criteria->add(new Criteria('isactive', 1)); + //$criteria->setSort('name'); + //$criteria->setOrder('ASC'); xoopsModule does not accpet this :( + $moduleslist = $module_handler->getList($criteria); + $module = $module_handler->get(1); + $list = array($module->getVar('mid') => $module->getVar('name')); + $moduleslist = $list + $moduleslist; + $mid->addOptionArray($moduleslist); + $form->addElement($mid, true); + + $form->addElement(new XoopsFormText(_AM_DEFACER_PAGE_TITLE, 'page_title', 50, 255, $obj->getVar('page_title', 'e')), true); + $furl = new XoopsFormText(_AM_DEFACER_PAGE_URL, 'page_url', 50, 255, $obj->getVar('page_url', 'e')); + $furl->setDescription(_AM_DEFACER_PAGE_URL_DESC); + $form->addElement($furl, true); + $form->addElement(new XoopsFormRadioYN(_AM_DEFACER_PAGE_DISPLAY, 'page_status', $obj->getVar('page_status', 'e'), _YES, _NO)); + + $tray = new XoopsFormElementTray('' ,''); + $tray->addElement(new XoopsFormButton('', 'defacer_button', _SUBMIT, 'submit')); + + $btn = new XoopsFormButton('', 'reset', _CANCEL, 'button'); + if (!$obj->isNew()) { + $btn->setExtra('onclick="document.location.href=\'' . basename(__FILE__) . '\'"'); + } else { + $btn->setExtra('onclick="document.getElementById(\'form\').style.display = \'none\'; return false;"'); + } + $tray->addElement($btn); + $form->addElement($tray); + + if (!$obj->isNew()) { + $form->addElement(new XoopsFormHidden('op', 'editok')); + $form->addElement(new XoopsFormHidden('itemid', $itemid)); + } else { + $form->addElement(new XoopsFormHidden('op', 'add')); + } + return $form->render(); +} ?> \ No newline at end of file Modified: XoopsModules/defacer/trunk/defacer/admin/admin_permission.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_permission.php 2012-05-22 11:21:46 UTC (rev 9573) +++ XoopsModules/defacer/trunk/defacer/admin/admin_permission.php 2012-05-22 19:00:18 UTC (rev 9574) @@ -1,238 +1,238 @@ -<?php -/* - 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 XUUPS Project http://sourceforge.net/projects/xuups/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * @package Defacer - * @since 1.0 - * @author trabis <lus...@gm...> - * @version $Id: admin_permission.php 0 2009-06-11 18:47:04Z trabis $ - */ - -require dirname(__FILE__) . '/admin_header.php'; - -$actions = array('list', 'add', 'edit', 'editok', 'del', 'delok'); -$op = isset($_REQUEST['op']) && in_array($_REQUEST['op'], $actions) ? $_REQUEST['op'] : 'list'; - -$itemid = isset($_REQUEST['itemid']) ? intval($_REQUEST['itemid']) : 0; -$limit = isset($_REQUEST['limit']) ? intval($_REQUEST['limit']) : 15; -$start = isset($_REQUEST['start']) ? intval($_REQUEST['start']) : 0; - -$itemid = isset($_REQUEST['permission_id']) ? intval($_REQUEST['permission_id']) : $itemid; -$indexAdmin = new ModuleAdmin(); - -switch ($op) { - case 'list': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_permission.php'); - //defacer_adminMenu(1); - echo defacer_index($start, $limit); - include_once 'admin_footer.php'; - break; - case 'add': - defacer_add(); - break; - case 'edit': - xoops_cp_header(); - echo $indexAdmin->addNavigation('admin_permission.php'); - //defacer_adminMenu(1); - echo defacer_form($itemid); - include_once 'admin_footer.php'; - break; - case 'editok': - defacer_edit($itemid); - break; - case 'del': - defacer_confirmdel($itemid); - break; - case 'delok': - defacer_del($itemid); - break; -} - -function defacer_index($start = 0, $limit = 0) -{ - global $xoopsTpl; - - $defacer =& DefacerDefacer::getInstance(); - - $grouplist_handler =& xoops_gethandler('group'); - $grouplist = $grouplist_handler->getObjects(null, true); - foreach (array_keys($grouplist) as $i) { - $groups[$i] = $grouplist[$i]->getVar('name'); - } - $xoopsTpl->assign('groups', $groups); - - $count = $defacer->getHandler('permission')->getCount(); - $xoopsTpl->assign('count', $count); - - $criteria = new CriteriaCompo(); - $criteria->setStart($start); - $criteria->setLimit($limit); - $objs = $defacer->getHandler('permission')->getObjects($criteria); - - if ($count > $limit) { - include_once XOOPS_ROOT_PATH . '/class/pagenav.php'; - $nav = new XoopsPageNav($count, $limit, $start, 'start', 'op=list'); - $xoopsTpl->assign('pagenav', '<div style="float:left; padding-top:2px;" align="center">' . $nav->renderNav() . '</div>'); - } - - foreach ($objs as $obj) { - $item = $obj->getValues(); - - ... [truncated message content] |
From: <be...@us...> - 2012-05-22 19:10:52
|
Revision: 9575 http://xoops.svn.sourceforge.net/xoops/?rev=9575&view=rev Author: beckmi Date: 2012-05-22 19:10:42 +0000 (Tue, 22 May 2012) Log Message: ----------- author credit updates Modified Paths: -------------- XoopsModules/defacer/trunk/defacer/admin/about.php XoopsModules/defacer/trunk/defacer/docs/credits.txt Modified: XoopsModules/defacer/trunk/defacer/admin/about.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/about.php 2012-05-22 19:00:18 UTC (rev 9574) +++ XoopsModules/defacer/trunk/defacer/admin/about.php 2012-05-22 19:10:42 UTC (rev 9575) @@ -1,5 +1,23 @@ <?php +/* + 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 XUUPS Project http://sourceforge.net/projects/xuups/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package Defacer + * @since 1.0 + * @author trabis <lus...@gm...> + * @version $Id: admin_about.php 0 2009-06-11 18:47:04Z trabis $ + */ + include_once dirname(__FILE__) . '/admin_header.php'; xoops_cp_header(); Modified: XoopsModules/defacer/trunk/defacer/docs/credits.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/credits.txt 2012-05-22 19:00:18 UTC (rev 9574) +++ XoopsModules/defacer/trunk/defacer/docs/credits.txt 2012-05-22 19:10:42 UTC (rev 9575) @@ -1,6 +1,6 @@ Credits =============== -Originally developed by Herv\xE9 Thouzard (hervet), +Originally developed by Ricardo Costa (Trabis, www.xuups.com) Updated to XOOPS 2.5.0 Standard GUI by Michael Beck (Mamba), with contributions by Gregory Mage (Mage) \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-06-19 13:33:52
|
Revision: 9672 http://xoops.svn.sourceforge.net/xoops/?rev=9672&view=rev Author: beckmi Date: 2012-06-19 13:33:41 +0000 (Tue, 19 Jun 2012) Log Message: ----------- Fixing errors reported by Cesag Updating to 1.11 Final Modified Paths: -------------- XoopsModules/defacer/trunk/defacer/docs/changelog.txt XoopsModules/defacer/trunk/defacer/docs/readme.txt XoopsModules/defacer/trunk/defacer/language/english/help/help.html XoopsModules/defacer/trunk/defacer/language/english/modinfo.php XoopsModules/defacer/trunk/defacer/xoops_version.php Modified: XoopsModules/defacer/trunk/defacer/docs/changelog.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/changelog.txt 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/docs/changelog.txt 2012-06-19 13:33:41 UTC (rev 9672) @@ -1,8 +1,13 @@ -<b><u>Version 1.1 Final (2012-05-22)</u></b> +<b><u>Version 1.11 Final (2012-06-19)</u></b> - Converted to XOOPS 2.5.x GUI (mamba) - updated Icons to make them consistent with other modules +<b><u>Version 1.10 Final (2012-05-22)</u></b> + +- Converted to XOOPS 2.5.x GUI (mamba) +- updated Icons to make them consistent with other modules + <b><u> Version 1.0 Final (2009-09-05)</u></b> - Added : jgrowl redirection. Modified: XoopsModules/defacer/trunk/defacer/docs/readme.txt =================================================================== --- XoopsModules/defacer/trunk/defacer/docs/readme.txt 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/docs/readme.txt 2012-06-19 13:33:41 UTC (rev 9672) @@ -1,13 +1,12 @@ -What is Defacer Module (v1.0 Final) ? +What is Defacer Module (v1.0 Final) ====================== -With this Xoops module, your can: +With this Xoops module, you can: - change themes, metadata and permissions for any given page. - enable jgrowl redirection system - use blocks anywhere - Requirements ==================== Modified: XoopsModules/defacer/trunk/defacer/language/english/help/help.html =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/help/help.html 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/language/english/help/help.html 2012-06-19 13:33:41 UTC (rev 9672) @@ -16,7 +16,7 @@ templates </p><br/> <p> - With this Xoops module, your can: + With this Xoops module, you can: <ul> <li>change themes, metadata and permissions for any given page.</li> <li>enable jgrowl redirection system</li> Modified: XoopsModules/defacer/trunk/defacer/language/english/modinfo.php =================================================================== --- XoopsModules/defacer/trunk/defacer/language/english/modinfo.php 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/language/english/modinfo.php 2012-06-19 13:33:41 UTC (rev 9672) @@ -1,6 +1,6 @@ <?php define("_MI_DEFACER_MD_NAME", "Defacer"); -define("_MI_DEFACER_MD_DSC", "This module enables your site to change themes, metadata and group acess permissions for each given page."); +define("_MI_DEFACER_MD_DSC", "This module enables your site to change themes, metadata and group access permissions for each given page."); define("_MI_DEFACER_PAGEMANAGER", "Page Manager"); define("_MI_DEFACER_THEMEMANAGER", "Theme Manager"); @@ -21,9 +21,9 @@ define("_MI_DEFACER_DISPERMISSIONS_DSC", "This will disable all Defacer's permission actions"); define("_MI_DEFACER_XOOPS_URL", "Xoops Url"); -define("_MI_DEFACER_XOOPS_URL_DSC", "Please provide your site url without tralling slash."); +define("_MI_DEFACER_XOOPS_URL_DSC", "Please provide your site url without trailing slash."); -define("_MI_DEFACER_ENABLE_REDIRECT", "Enable jgrowl redirecting system"); +define("_MI_DEFACER_ENABLE_REDIRECT", "Enable jGrowl redirecting system"); define("_MI_DEFACER_ENABLE_REDIRECT_DSC", "Enable this to replace default redirection pages(xoops 2.4 > only)"); //1.1 Modified: XoopsModules/defacer/trunk/defacer/xoops_version.php =================================================================== --- XoopsModules/defacer/trunk/defacer/xoops_version.php 2012-06-19 12:49:12 UTC (rev 9671) +++ XoopsModules/defacer/trunk/defacer/xoops_version.php 2012-06-19 13:33:41 UTC (rev 9672) @@ -24,7 +24,7 @@ * General Information */ $modversion['name'] = _MI_DEFACER_MD_NAME; -$modversion['version'] = 1.1; +$modversion['version'] = 1.11; $modversion['description'] = _MI_DEFACER_MD_DSC; $modversion['author'] = "Trabis (www.xuups.com)"; $modversion['credits'] = "Trabis (http://www.xuups.com), The ImpressCMS Project (http://www.impresscms.org/) & TheRplima (http://community.impresscms.org/userinfo.php?uid=106)"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <be...@us...> - 2012-08-08 07:17:05
|
Revision: 10021 http://xoops.svn.sourceforge.net/xoops/?rev=10021&view=rev Author: beckmi Date: 2012-08-08 07:16:55 +0000 (Wed, 08 Aug 2012) Log Message: ----------- small cosmetic updates Modified Paths: -------------- XoopsModules/defacer/trunk/defacer/admin/admin_footer.php XoopsModules/defacer/trunk/defacer/admin/admin_page.php XoopsModules/defacer/trunk/defacer/xoops_version.php Modified: XoopsModules/defacer/trunk/defacer/admin/admin_footer.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_footer.php 2012-08-08 07:16:09 UTC (rev 10020) +++ XoopsModules/defacer/trunk/defacer/admin/admin_footer.php 2012-08-08 07:16:55 UTC (rev 10021) @@ -1,7 +1,7 @@ <?php 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" + ." <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>"; Modified: XoopsModules/defacer/trunk/defacer/admin/admin_page.php =================================================================== --- XoopsModules/defacer/trunk/defacer/admin/admin_page.php 2012-08-08 07:16:09 UTC (rev 10020) +++ XoopsModules/defacer/trunk/defacer/admin/admin_page.php 2012-08-08 07:16:55 UTC (rev 10021) @@ -214,6 +214,8 @@ function defacer_confirmdel($itemid) { + + global $pathIcon32; xoops_cp_header(); xoops_confirm(array('op' => 'delok', 'itemid' => $itemid), basename(__FILE__), _AM_DEFACER_RUDEL); include_once 'admin_footer.php'; Modified: XoopsModules/defacer/trunk/defacer/xoops_version.php =================================================================== --- XoopsModules/defacer/trunk/defacer/xoops_version.php 2012-08-08 07:16:09 UTC (rev 10020) +++ XoopsModules/defacer/trunk/defacer/xoops_version.php 2012-08-08 07:16:55 UTC (rev 10021) @@ -40,7 +40,7 @@ //about $modversion['release_date'] = '2012/05/22'; -$modversion["module_website_url"] = "http://www.xoops.org/"; +$modversion["module_website_url"] = "www.xoops.org/"; $modversion["module_website_name"] = "XOOPS"; $modversion["module_status"] = "Final"; $modversion['min_php']='5.2'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |