From: <luc...@us...> - 2012-08-01 22:03:36
|
Revision: 9974 http://xoops.svn.sourceforge.net/xoops/?rev=9974&view=rev Author: luciorota Date: 2012-08-01 22:03:26 +0000 (Wed, 01 Aug 2012) Log Message: ----------- some bug fixes now module is ready to test ;-) Modified Paths: -------------- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/formajaxfilemanager.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/formmultipleajaxfilemanager.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/formmultiplexoopsimage.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/formxoopsimage.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/formxoopsimageold.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/menu.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/class/sampleform.inc.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/image.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/install/textsanitizer.extensions/ajaxfilemanager/ajaxfilemanager.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/install/textsanitizer.extensions/gmap/gmap.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/install/textsanitizer.extensions/video/video.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/language/english/admin.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/language/english/modinfo.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/xoops_version.php Added Paths: ----------- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/filemanager.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/index.html XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/index.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/menu.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/permissions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/functions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/index.html XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/install_function.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/uninstall_function.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/update_function.php Removed Paths: ------------- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.old.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_functions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/filemanager.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/help.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/index.html XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/index.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/menu.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/permissions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/functions.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/index.html XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/install_function.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/uninstall_function.php XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/include/update_function.php Deleted: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.old.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.old.php 2012-08-01 18:58:48 UTC (rev 9973) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.old.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -1,124 +0,0 @@ -<?php -/** - * Ajax File Manager - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html& ... public license - * @package ajaxfilemanager - * @since 0.1 - * @author luciorota <luc...@gm...> - * @version $Id$ - */ - -include 'admin_header.php'; -$currentFile = basename(__FILE__); -$versionInfo =& $module_handler->get($xoopsModule->getVar('mid')); - -// load classes - -// get/check parameters/post - -// render start here -xoops_cp_header(); - -echo " - <style type=\"text/css\"> - label,text { - display: block; - float: left; - margin-bottom: 2px; - } - label { - text-align: right; - width: 150px; - padding-right: 20px; - } - br { - clear: left; - } - </style> -"; - -echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . $xoopsModule->getVar('name'). "</legend>"; -echo "<div style='padding: 8px;'>"; -echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar('dirname') . "/" . $versionInfo->getInfo('image') . "' alt='' hspace='10' vspace='0' /></a>\n"; -echo "<div style='padding: 5px;'><strong>" . $versionInfo->getInfo('name') . " version " . $versionInfo->getInfo('version') . "</strong></div>\n"; -echo "<label>" . _AM_AJAXFM_ABOUT_RELEASEDATE . ":</label><text>" . date(_SHORTDATESTRING, $versionInfo->getInfo('release')) . "</text><br />"; -echo "<label>" . _AM_AJAXFM_ABOUT_AUTHOR . ":</label><text>" . $versionInfo->getInfo('author') . "</text><br />"; -echo "<label>" . _AM_AJAXFM_ABOUT_CREDITS . ":</label><text>" . $versionInfo->getInfo('credits') . "</text><br />"; -echo "<label>" . _AM_AJAXFM_ABOUT_LICENSE . ":</label><text><a href=\"".$versionInfo->getInfo('license_file')."\" target=\"_blank\" >" . $versionInfo->getInfo('license') . "</a></text>\n"; -echo "</div>"; -echo "</fieldset>"; -echo "<br clear=\"all\" />"; - -echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_AJAXFM_ABOUT_MODULEINFOS . "</legend>"; -echo "<div style='padding: 8px;'>"; -echo "<label>" . _AM_AJAXFM_ABOUT_STATUS . ":</label><text>" . $versionInfo->getInfo('module_status') . "</text><br />"; -echo "<label>" . _AM_AJAXFM_ABOUT_MODULEWEBSITE . ":</label><text>" . "<a href='" . $versionInfo->getInfo('support_site_url') . "' target='_blank'>" . $versionInfo->getInfo('support_site_name') . "</a>" . "</text><br />"; -echo "</div>"; -echo "</fieldset>"; -echo "<br clear=\"all\" />"; - -echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_AJAXFM_ABOUT_AUTHORINFOS . "</legend>"; -echo "<div style='padding: 8px;'>"; -echo "<label>" . _AM_AJAXFM_ABOUT_AUTHOR . ":</label><text>" . $versionInfo->getInfo('author') . "</text><br />"; -echo "<label>" . _AM_AJAXFM_ABOUT_AUTHORWEBSITE . ":</label><text>" . "<a href='" . $versionInfo->getInfo('author_website_url') . "' target='_blank'>" . $versionInfo->getInfo('author_website_name') . "</a>" . "</text><br />"; -echo "<label>" . _AM_AJAXFM_ABOUT_AUTHOREMAIL . ":</label><text>" . "<a href='emailto:" . $versionInfo->getInfo('author_mail') . "' target='_blank'>" . $versionInfo->getInfo('author_mail') . "</a>" . "</text><br />"; -echo "</div>"; - -echo "<br />"; - -// DONATE PAYPAL -$donate = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> -<input type="hidden" name="cmd" value="_s-xclick"> -<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7----- -"> -<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online."> -<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/it_IT/i/scr/pixel.gif" width="1" height="1"> -</form>'; -echo "<div style='padding: 8px;'>"; -echo $donate; -echo "</div>"; - -echo "</fieldset>"; -echo "<br clear=\"all\" />"; - -// get language 'description.html' file -if (file_exists(XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . "/language/" . $xoopsConfig['language'] . "/description.html")) { - $file = XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . "/language/" . $xoopsConfig['language'] . "/description.html"; -} else { - $file = XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . "/language/english/description.html"; -} -if (is_readable($file)) { - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_AJAXFM_ABOUT_DESCRIPTION . "</legend>"; - echo "<div style='padding: 8px;'>"; - echo "<div>". implode('', file($file)) . "</div>"; - echo "</div>"; - echo "</fieldset>"; - echo "<br clear=\"all\" />"; -} - -// get language 'changelog.txt' file -if (file_exists(XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . "/language/" . $xoopsConfig['language'] . "/changelog.txt")) { - $file = XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . "/language/" . $xoopsConfig['language'] . "/changelog.txt"; -} else { - $file = XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar('dirname') . "/language/english/changelog.txt"; -} -if (is_readable($file)) { - echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_AJAXFM_ABOUT_CHANGELOG . "</legend>"; - echo "<div style='padding: 8px;'>"; - echo "<div>" . utf8_encode(implode('<br />', file($file))) . "</div>"; - echo "</div>"; - echo "</fieldset>"; - echo "<br clear=\"all\" />"; -} - -xoops_cp_footer(); -?> \ No newline at end of file Deleted: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php 2012-08-01 18:58:48 UTC (rev 9973) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -1,34 +0,0 @@ -<?php -/** - * **************************************************************************** - * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) - * **************************************************************************** - * XADDRESSES - MODULE FOR XOOPS - * Copyright (c) 2007 - 2012 - * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) - * - * 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. See the - * GNU General Public License for more details. - * --------------------------------------------------------------------------- - * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) - * @license GPL see LICENSE - * @package xaddresses - * @author Rota Lucio ( luc...@gm... ) - * - * Version : 1.0 Mon 2012/07/23 14:17:52 : XOOPS Exp $ - * **************************************************************************** - */ - -include "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 Added: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php (rev 0) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/about.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -0,0 +1,34 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * AJAXFILEMANAGER - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. See the + * GNU General Public License for more details. + * --------------------------------------------------------------------------- + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html& ... public license + * @package ajaxfilemanager + * @since 1.0 + * @author luciorota <luc...@gm...> + * @version $Id$ + */ + +include "admin_header.php"; +xoops_cp_header(); +$aboutAdmin = new ModuleAdmin(); +echo $aboutAdmin->addNavigation("about.php"); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); +include "admin_footer.php"; Deleted: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php 2012-08-01 18:58:48 UTC (rev 9973) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -1,35 +0,0 @@ -<?php -/** - * **************************************************************************** - * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) - * **************************************************************************** - * AJAXFILEMANAGER - MODULE FOR XOOPS - * Copyright (c) 2007 - 2012 - * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) - * - * 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. See the - * GNU General Public License for more details. - * --------------------------------------------------------------------------- - * @copyright Rota Lucio ( http://luciorota.altervista.org/xoops/ ) - * @license GPL see LICENSE - * @package ajaxfilemanager - * @author Rota Lucio ( luc...@gm... ) - * - * Version : 1.0 Mon 2012/07/23 14:17:52 : XOOPS Exp $ - * **************************************************************************** - */ - -global $pathImageAdmin; -echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> - <img src='".$pathImageModule."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; -echo "<div class='center small italic pad5'> - <strong>" . $xoopsModule->getVar('name') . "</strong> " . _AM_AJAXFM_MAINTAINEDBY." - <a href='IN PROGRESS' title='Visit IN PROGRESS' class='tooltip' rel='external'>IN PROGRESS</a></div>"; -xoops_cp_footer(); Added: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php (rev 0) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_footer.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -0,0 +1,35 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * AJAXFILEMANAGER - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. See the + * GNU General Public License for more details. + * --------------------------------------------------------------------------- + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html& ... public license + * @package ajaxfilemanager + * @since 1.0 + * @author luciorota <luc...@gm...> + * @version $Id$ + */ + +global $pathImageAdmin; +echo "<div align='center'><a href='http://www.xoops.org' target='_blank'> + <img src='".$pathImageModule."/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a></div>"; +echo "<div class='center small italic pad5'> + <strong>" . $xoopsModule->getVar('name') . "</strong> " . _AM_AJAXFM_MAINTAINEDBY." + <a href='IN PROGRESS' title='Visit IN PROGRESS' class='tooltip' rel='external'>IN PROGRESS</a></div>"; +xoops_cp_footer(); Deleted: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_functions.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_functions.php 2012-08-01 18:58:48 UTC (rev 9973) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_functions.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -1,104 +0,0 @@ -<?php -/** - * Ajax File Manager - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html& ... public license - * @package ajaxfilemanager - * @since 0.1 - * @author luciorota <luc...@gm...> - * @version $Id$ - */ - -function moduleAdminTabMenu($adminmenu = array(), $currentFile = 0, $breadcrumb = " > ") -{ - if (is_int($currentFile)) { - $currentOption = $currentFile; - } else if (is_string($currentFile)) { - foreach($adminmenu as $key=>$adminitem ) { - preg_match( "/.*[\\/]([^\\/]+.php)\?*.*/", $adminitem['link'], $matches); - if ($matches[1] == $currentFile) $currentOption = $key; - } - } else { - return false; - } - - $moduleLink = XOOPS_URL . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/'; - /* Nice buttons styles */ - $adminTabCss = " - <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('" . $moduleLink . "images/deco/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('" . $moduleLink . "images/deco/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('" . $moduleLink . "images/deco/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; } - div.CPbigTitle{ - font-size: 12px; - color: #606060; - background: no-repeat left top; - font-weight: bold; - height: 30px; - vertical-align: middle; - padding: 10px 0 0 40px; - /*border-bottom: 3px solid #393e41;*/ - border-bottom: none; - } - </style> - "; - - global $xoopsConfig; - xoops_loadLanguage('modinfo', $GLOBALS['xoopsModule']->getVar('dirname')); - - $adminTabHtml = ''; - $adminTabHtml.= "<div id='buttontop'>"; - $adminTabHtml.= "<table style=\"width: 100%; padding: 0; \" cellspacing=\"0\"><tr>"; - $adminTabHtml.= "<td style='font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;'>"; - $adminTabHtml.= "<a class='nobutton' href='" . XOOPS_URL . "/modules/system/admin.php?fct=preferences&op=showmod&mod=" . $GLOBALS['xoopsModule']->getVar('mid') . "'>" . _PREFERENCES . "</a>"; - $adminTabHtml.= " | "; - $adminTabHtml.= "<a href='" . $moduleLink . "index.php'>" . $GLOBALS['xoopsModule']->getVar('name') . "</a>"; - $adminTabHtml.= "</td>"; - $adminTabHtml.= "<td style='font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;'><b>" . $GLOBALS['xoopsModule']->getVar('name') . $breadcrumb . $adminmenu[$currentOption]["title"] . "</b> </td>"; - $adminTabHtml.= "</tr></table>"; - $adminTabHtml.= "</div>"; - - $adminTabHtml.= "<div id='buttonbar'>"; - $adminTabHtml.= "<ul>"; - - foreach(array_keys($adminmenu) as $key ) { - $adminTabHtml.= (($currentOption == $key)? '<li class="current">':'<li>') . '<a href="' . $moduleLink . $adminmenu[$key]["link"] . '"><span>' . $adminmenu[$key]["title"] . '</span></a></li>'; - } - - $adminTabHtml.= "</ul></div>"; - $adminTabHtml.= "<br style='clear:both;' >"; - - $adminTabHtml.= '<div class="CPbigTitle" style="background-image: url(../' . $adminmenu[$currentOption]["icon"] .'); background-repeat: no-repeat; background-position: left; padding-left: 48px; height: 48px;">'; - $adminTabHtml.= '<strong>' . $adminmenu[$currentOption]["title"] . '</strong>'; - $adminTabHtml.= '</div>'; - - return $adminTabCss . $adminTabHtml; -} - - - -function moduleAdminSubmenu ($submenuItems) { - echo "<div class='head'>"; - echo implode($submenuItems, ' | '); - echo "</div>"; -} -?> \ No newline at end of file Deleted: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php 2012-08-01 18:58:48 UTC (rev 9973) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -1,89 +0,0 @@ -<?php -/** - * Ajax File Manager - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html& ... public license - * @package ajaxfilemanager - * @since 0.1 - * @author luciorota <luc...@gm...> - * @version $Id$ - */ - -// Include xoops admin header -include "../../../include/cp_header.php"; - -include_once(XOOPS_ROOT_PATH."/kernel/module.php"); -include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; -include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; -include_once XOOPS_ROOT_PATH."/class/tree.php"; -include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; -include_once XOOPS_ROOT_PATH."/class/pagenav.php"; -include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; - -// Include module functions -include_once("../include/functions.php"); - - - -$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); -$globalLanguage = $GLOBALS['xoopsConfig']['language']; - -if ( file_exists($pathDir . '/language/' . $globalLanguage . '/main.php')){ - include_once $pathDir . '/language/' . $globalLanguage . '/main.php'; -} else { - include_once $pathDir . '/language/english/main.php'; -} - -if ( file_exists($pathDir . '/moduleadmin.php')){ - include_once $pathDir . '/moduleadmin.php'; - //return true; -} else { - xoops_cp_header(); - echo xoops_error(_AM_AJAXFM_NOFRAMEWORKS); - xoops_cp_footer(); - //return false; -} - -$dirname = basename(dirname(dirname( __FILE__ ) )); -$module_handler =& xoops_gethandler('module'); -$xoopsModule = & $module_handler->getByDirname($dirname); -$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); -$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); -$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); -$pathImageModule = XOOPS_URL . '/modules/'. $GLOBALS['xoopsModule']->getVar('dirname') .'/images'; - - - -$myts =& MyTextSanitizer::getInstance(); - -if ( $xoopsUser ) { - $xoopsModule = XoopsModule::getByDirname('ajaxfilemanager'); - if ( !$xoopsUser->isAdmin($GLOBALS['xoopsModule']->mid()) ) { - redirect_header(XOOPS_URL . '/', 3, _NOPERM); - exit(); - } -} else { - redirect_header(XOOPS_URL."/",3,_NOPERM); - exit(); -} - -if ( !isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl']) ) { - include_once $GLOBALS['xoops']->path( "/class/template.php" ); - $GLOBALS['xoopsTpl'] = new XoopsTpl(); -} - -// Include language file -xoops_loadLanguage('admin', 'system'); -xoops_loadLanguage('admin', $GLOBALS['xoopsModule']->getVar('dirname')); -xoops_loadLanguage('modinfo', $GLOBALS['xoopsModule']->getVar('dirname')); - -include_once 'admin_functions.php'; // admin functions -?> \ No newline at end of file Added: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php (rev 0) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/admin_header.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -0,0 +1,95 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * AJAXFILEMANAGER - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. See the + * GNU General Public License for more details. + * --------------------------------------------------------------------------- + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html& ... public license + * @package ajaxfilemanager + * @since 1.0 + * @author luciorota <luc...@gm...> + * @version $Id$ + */ + +// Include xoops admin header +include "../../../include/cp_header.php"; + +include_once(XOOPS_ROOT_PATH."/kernel/module.php"); +include_once XOOPS_ROOT_PATH."/class/xoopstree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php"; +include_once XOOPS_ROOT_PATH."/class/tree.php"; +include_once XOOPS_ROOT_PATH."/class/xoopslists.php"; +include_once XOOPS_ROOT_PATH."/class/pagenav.php"; +include_once XOOPS_ROOT_PATH."/class/xoopsform/grouppermform.php"; + +// Include module functions +include_once("../include/functions.php"); + + + +$pathDir = $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin'); +$globalLanguage = $GLOBALS['xoopsConfig']['language']; + +if ( file_exists($pathDir . '/language/' . $globalLanguage . '/main.php')){ + include_once $pathDir . '/language/' . $globalLanguage . '/main.php'; +} else { + include_once $pathDir . '/language/english/main.php'; +} + +if ( file_exists($pathDir . '/moduleadmin.php')){ + include_once $pathDir . '/moduleadmin.php'; + //return true; +} else { + xoops_cp_header(); + echo xoops_error(_AM_AJAXFM_NOFRAMEWORKS); + xoops_cp_footer(); + //return false; +} + +$dirname = basename(dirname(dirname( __FILE__ ) )); +$module_handler =& xoops_gethandler('module'); +$xoopsModule = & $module_handler->getByDirname($dirname); +$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid')); +$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16'); +$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32'); +$pathImageModule = XOOPS_URL . '/modules/'. $GLOBALS['xoopsModule']->getVar('dirname') .'/images'; + + + +$myts =& MyTextSanitizer::getInstance(); + +if ( $xoopsUser ) { + $xoopsModule = XoopsModule::getByDirname('ajaxfilemanager'); + if ( !$xoopsUser->isAdmin($GLOBALS['xoopsModule']->mid()) ) { + redirect_header(XOOPS_URL . '/', 3, _NOPERM); + exit(); + } +} else { + redirect_header(XOOPS_URL."/",3,_NOPERM); + exit(); +} + +if ( !isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl']) ) { + include_once $GLOBALS['xoops']->path( "/class/template.php" ); + $GLOBALS['xoopsTpl'] = new XoopsTpl(); +} + +// Include language file +xoops_loadLanguage('admin', 'system'); +xoops_loadLanguage('admin', $GLOBALS['xoopsModule']->getVar('dirname')); +xoops_loadLanguage('modinfo', $GLOBALS['xoopsModule']->getVar('dirname')); Deleted: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php 2012-08-01 18:58:48 UTC (rev 9973) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -1,345 +0,0 @@ -<?php -/** - * Ajax File Manager - * - * You may not change or alter any portion of this comment or credits - * of supporting developers from this source code or any supporting source code - * which is considered copyrighted (c) material of the original comment or credit authors. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html& ... public license - * @package ajaxfilemanager - * @since 0.1 - * @author luciorota <luc...@gm...> - * @version $Id$ - */ - -include 'admin_header.php'; -$currentFile = basename(__FILE__); - -// load classes -xoops_load('xoopsformloader'); -$errors = array(); -$output = ''; - -// Get user groups array -$groups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); -// $admin is true if user is an admin -$admin = (is_object($xoopsUser) && $xoopsUser->isAdmin($GLOBALS['xoopsModule']->mid())) ? true : false; - -// get/check parameters/post -if(isset($_POST['op'])) { - $op = $_POST['op']; -} else { - $op = 'default'; -} - - -if(isset($_POST['extension'])) { - $extension = $_POST['extension']; -} - - -switch( $op ) { -case 'dump_images_cache': - if (ajaxfilemanager_delDir(XOOPS_ROOT_PATH . '/uploads/ajaxfilemanager/imagecache', true)) { - if (ajaxfilemanager_makeDir(XOOPS_ROOT_PATH . '/uploads/ajaxfilemanager/imagecache')) { - redirect_header($currentFile, 3, _AM_AJAXFM_DUMP_IMAGES_CACHE_OK); - } else { - redirect_header($currentFile, 3, _AM_AJAXFM_DUMP_IMAGES_CACHE_NOT_OK); - } - } else { - redirect_header($currentFile, 3, _AM_AJAXFM_DUMP_IMAGES_CACHE_NOT_OK); - } - break; -case 'install_tinymce': - ajaxfilemanager_installCustomTinymceSettings(); - redirect_header($currentFile, 3, _AM_AJAXFM_EDITORPLUGIN_INSTALLED_OK); - break; -case 'uninstall_tinymce': - ajaxfilemanager_uninstallCustomTinymceSettings(); - redirect_header($currentFile, 3, _AM_AJAXFM_EDITORPLUGIN_UNINSTALLED_OK); - break; -case 'activate_extension': - ajaxfilemanager_activateExtension($extension); - redirect_header($currentFile, 3, _AM_AJAXFM_EXTENSION_ACTIVATED); - break; -case 'desactivate_extension': - ajaxfilemanager_desactivateExtension($extension); - redirect_header($currentFile, 3, _AM_AJAXFM_EXTENSION_DISABLED); - break; -case 'install_extension': - $source = XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/install/textsanitizer.extensions' . '/' . $extension; - $destination = XOOPS_ROOT_PATH . '/class/textsanitizer/' . $extension; - if(!file_exists($source)) { - redirect_header($currentFile, 3, _AM_AJAXFM_EXT_FILE_DONT_EXIST_SHORT); - break; - } - // Copy extension - if (!ajaxfilemanager_copyDir($source, $destination)) { - redirect_header($currentFile, 3, _AM_AJAXFM_EXT_FILE_NOT_INSTALLABLE); - } - // Activate extension - ajaxfilemanager_activateExtension($extension); - redirect_header($currentFile, 3, _AM_AJAXFM_EXTENSION_INSTALLED . '<br />' . $extension . ' ' . _AM_AJAXFM_EXTENSION_ACTIVATED); - break; -default: -case 'default': - // render start here - xoops_cp_header(); - - // check if estansions path is writable - $extensionsPath = XOOPS_ROOT_PATH . '/class/textsanitizer'; - if (!is_writable($extensionsPath) or !is_writable($extensionsPath . '/config.php')) { - echo '<p>' . sprintf(_AM_AJAXFM_EXTENSION_WARNING1, $extensionsPath, $extensionsPath) . '</p>'; - echo '<p>' . sprintf(_AM_AJAXFM_EXTENSION_WARNING2, $extensionsPath, $extensionsPath) . '</p>'; - } - - echo "<h3>" . _AM_AJAXFM_EXTENSIONS_MANAGER . "</h3>"; - - // Ajax File Manager extensions - echo "<fieldset>"; - echo "<legend style='font-weight:bold; color:#990000;'>" . _AM_AJAXFM_EXTRA_EXTENSION_INFO . '</legend>'; - $source = XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/install/textsanitizer.extensions'; - $extraExtensions = ajaxfilemanager_listExtensions($source); - - echo _AM_AJAXFM_EXTRA_EXTENSION_INFO_DESC; - echo "<table class='' style='width:50%;float:left;'>"; - echo "<tbody>"; - echo "<tr>"; - echo "<th>" . _AM_AJAXFM_EXTENSION . "</th>"; - echo "<th>" . _AM_AJAXFM_EXTENSION_STATUS . "</th>"; - echo "<th>" . _AM_AJAXFM_EXTENSION_ACTION . "</th>"; - echo "</tr>"; - $class = 0; - - foreach ($extraExtensions as $extension) { - $class++; - echo "<tr class='" . (($class&1)?'odd':'even') . "'>"; - echo "<td><h3>" . $extension . "</h3></td>"; - if(!ajaxfilemanager_extensionInstalled($extension)) { - echo "<td>"; - echo " <span style='color:red;'>" . _AM_AJAXFM_EXTENSION_NOT_INSTALLED . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='install_extension' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_INSTALL_EXTENSION . "'' type='submit' />"; - echo " </form>"; - echo "</td>"; - } else { - if(!extensionActivated($extension)) { - echo "<td>"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; - echo " <br />"; - echo " <span style='color:red;'>" . _AM_AJAXFM_EXTENSION_NOT_ACTIVATED . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='activate_extension' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_ACTIVATE_EXTENSION . "'' type='submit' />"; - echo " </form>"; - echo "</td>"; - } else { - echo "<td>"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; - echo " <br />"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_ACTIVATED_OK . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='desactivate_extension' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_DISABLE_EXTENSION . "' type='submit' />"; - echo "</form>"; - echo "</td>"; - } - } - echo "</tr>"; - } - echo "</tbody>"; - echo "</table>"; - echo "<div style='width:50%;float:left;'>"; - // Test dhtmltextarea - $editor_configs = array(); - $editor_configs['name'] = 'test_dhtmltextarea_extra'; - $editor_configs['value'] = _AM_AJAXFM_EDITORPLUGIN_TEST_DHTMLTEXTAREA; - $editor_configs['rows'] = 20; - $editor_configs['cols'] = 160; - $editor_configs['width'] = '100%'; - $editor_configs['height'] = '400px'; - $editor_configs['editor'] = 'dhtmltextarea'; - $dhtmltextarea = new XoopsFormEditor(_AM_AJAXFM_EDITORPLUGIN_TEST_DHTMLTEXTAREA, 'test_dhtmltextarea_extra', $editor_configs); - echo $dhtmltextarea->render(); - echo "</div>"; - echo "<div style='clear:both'></div>"; - echo "</fieldset>"; - - echo "<br />"; - - // Standard or extra Xoops extensions - echo "<fieldset>"; - echo "<legend style='font-weight:bold; color:#990000;'>" . _AM_AJAXFM_EXTENSION_INFO . "</legend>"; - $extensionsPath = XOOPS_ROOT_PATH . '/class/textsanitizer'; - $extensions = ajaxfilemanager_listExtensions($extensionsPath); - $extensions = array_diff($extensions, $extraExtensions); - - echo "<table class='' style='width:50%;float:left;'>"; - echo "<tbody>"; - echo "<tr>"; - echo "<th>" . _AM_AJAXFM_EXTENSION . "</th>"; - echo "<th>" . _AM_AJAXFM_EXTENSION_STATUS . "</th>"; - echo "<th>" . _AM_AJAXFM_EXTENSION_ACTION . "</th>"; - echo "</tr>"; - $class = 0; - foreach ($extensions as $extension) { - $class++; - echo "<tr class='" . (($class&1)?'odd':'even') . "'>"; - echo "<td><h3>" . $extension . "</h3></td>"; - if(!extensionActivated($extension)) { - echo "<td>"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; - echo " <br />"; - echo " <span style='color:red;'>" . _AM_AJAXFM_EXTENSION_NOT_ACTIVATED . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='activate_extension' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_ACTIVATE_EXTENSION . "'' type='submit' />"; - echo " </form>"; - echo "</td>"; - } else { - echo "<td>"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; - echo " <br />"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_ACTIVATED_OK . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='desactivate_extension' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_DISABLE_EXTENSION . "' type='submit' />"; - echo "</form>"; - echo "</td>"; - } - echo "</tr>"; - } - echo "</tbody>"; - echo "</table>"; - echo "<div style='width:50%;float:left;'>"; - // Test dhtmltextarea - $editor_configs = array(); - $editor_configs['name'] = 'test_dhtmltextarea_standard'; - $editor_configs['value'] = _AM_AJAXFM_EDITORPLUGIN_TEST_DHTMLTEXTAREA; - $editor_configs['rows'] = 20; - $editor_configs['cols'] = 160; - $editor_configs['width'] = '100%'; - $editor_configs['height'] = '400px'; - $editor_configs['editor'] = 'dhtmltextarea'; - $dhtmltextarea = new XoopsFormEditor(_AM_AJAXFM_EDITORPLUGIN_TEST_DHTMLTEXTAREA, 'test_dhtmltextarea_standard', $editor_configs); - echo $dhtmltextarea->render(); - echo "</div>"; - echo "<div style='clear:both'></div>"; - echo "</fieldset>"; - - echo "<br />"; - - echo "<h3>" . _AM_AJAXFM_PLUGINS_MANAGER . "</h3>"; - - // Ajax File Manager editors plugins - echo "<fieldset>"; - echo "<legend style='font-weight:bold; color:#990000;'>" . _AM_AJAXFM_EDITORPLUGIN_INFO . "</legend>"; - echo "<table class=''>"; - echo "<tbody>"; - echo "<tr>"; - echo "<th>" . _AM_AJAXFM_EDITOR . "</th>"; - echo "<th>" . _AM_AJAXFM_EDITOR_STATUS . "</th>"; - echo "<th>" . _AM_AJAXFM_EDITOR_ACTION . "</th>"; - echo "</tr>"; - echo "<tr class='odd'>"; - echo "<td>"; - echo "<h3>" . _AM_AJAXFM_EDITORTINYMCE . "</h3>"; - $source = XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/install/tinymce.settings/tinymce.php'; - $destination = $GLOBALS['xoops']->path('var/configs/tinymce.php'); - echo sprintf(_AM_AJAXFM_EDITORTINYMCE_DESC, $source , $destination); - echo "</td>"; - if(!ajaxfilemanager_installedCustomTinymceSettings()) { - echo "<td>"; - echo " <span style='color:red;'>" . _AM_AJAXFM_EDITORPLUGIN_NOT_INSTALLED . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='install_tinymce' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_INSTALL_EDITORPLUGIN . "'' type='submit' />"; - echo " </form>"; - echo "</td>"; - } else { - echo "<td>"; - echo " <span style='color:green;'>" . _AM_AJAXFM_EDITORPLUGIN_INSTALLED . "</span>"; - echo "</td>"; - echo "<td>"; - echo " <form action='" . $currentFile . "' method='post'>"; - echo " <input type='hidden' name='op' value='uninstall_tinymce' />"; - echo " <input type='hidden' name='extension' value='" . $extension . "' />"; - echo " <input class='formButton' value='" . _AM_AJAXFM_UNINSTALL_EDITORPLUGIN . "' type='submit' />"; - echo "</form>"; - echo "</td>"; - } - echo "</tr>"; - echo "</tbody>"; - echo "</table>"; - // Test tinymce - $editor_configs = array(); - $editor_configs['name'] = 'test_tinymce'; - $editor_configs['value'] = _AM_AJAXFM_EDITORPLUGIN_TEST_TINYMCE; - $editor_configs['rows'] = 20; - $editor_configs['cols'] = 160; - $editor_configs['width'] = '100%'; - $editor_configs['height'] = '400px'; - $editor_configs['editor'] = 'tinymce'; - $tinymce = new XoopsFormEditor(_AM_AJAXFM_EDITORPLUGIN_TEST_TINYMCE, 'test_tinymce', $editor_configs); - echo $tinymce->render(); - echo "</fieldset>"; - - echo "<br />"; - - echo "<h3>" . _AM_AJAXFM_EXTRA_MANAGER . "</h3>"; - - // Standard or enhanced image.php in xoops root path? - echo "<fieldset>"; - echo "<legend style='font-weight:bold; color:#990000;'>" . _AM_AJAXFM_IMAGE_PHP_INFO . "</legend>"; - $extensionsPath = XOOPS_ROOT_PATH . '/class/textsanitizer'; - - $originalImagePhp = XOOPS_ROOT_PATH . '/image.php'; - $enhancedImagePhp = XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/image.php'; - $crcOriginalImagePhp = strtoupper(dechex(crc32(file_get_contents($originalImagePhp)))); - $crcEnhancedImagePhp = strtoupper(dechex(crc32(file_get_contents($enhancedImagePhp)))); - - if ($crcOriginalImagePhp != $crcEnhancedImagePhp) { - // files not the same - echo _AM_AJAXFM_IMAGE_PHP_NO_SMART; - echo "<br />"; - echo _AM_AJAXFM_IMAGE_PHP_NO_SMART_DESC; - } else { - // files the same - echo _AM_AJAXFM_IMAGE_PHP_SMART; - echo "<br />"; - echo _AM_AJAXFM_IMAGE_PHP_SMART_DESC; - echo "<br />"; - echo "<form action='" . $currentFile . "' method='post'>"; - echo "<input type='hidden' name='op' value='dump_images_cache' />"; - echo "<input class='formButton' value='" . _AM_AJAXFM_DUMP_IMAGES_CACHE . "'' type='submit' />"; - echo "</form>"; - } - echo "</fieldset>"; - include "admin_footer.php"; - break; -} // switch ( $op ) -?> \ No newline at end of file Added: XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php =================================================================== --- XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php (rev 0) +++ XoopsModules/ajaxfilemanager/trunk/ajaxfilemanager/admin/extensions.php 2012-08-01 22:03:26 UTC (rev 9974) @@ -0,0 +1,341 @@ +<?php +/** + * **************************************************************************** + * - A Project by Developers TEAM For Xoops - ( http://www.xoops.org ) + * **************************************************************************** + * AJAXFILEMANAGER - MODULE FOR XOOPS + * Copyright (c) 2007 - 2012 + * Rota Lucio ( http://luciorota.altervista.org/xoops/ ) + * + * 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. See the + * GNU General Public License for more details. + * --------------------------------------------------------------------------- + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html& ... public license + * @package ajaxfilemanager + * @since 1.0 + * @author luciorota <luc...@gm...> + * @version $Id$ + */ + +include 'admin_header.php'; +$currentFile = basename(__FILE__); + +// load classes +xoops_load('xoopsformloader'); +$errors = array(); +$output = ''; + +// Get user groups array +$groups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); +// $admin is true if user is an admin +$admin = (is_object($xoopsUser) && $xoopsUser->isAdmin($GLOBALS['xoopsModule']->mid())) ? true : false; + +// get/check parameters/post +if(isset($_POST['op'])) { + $op = $_POST['op']; +} else { + $op = 'default'; +} + + +if(isset($_POST['extension'])) { + $extension = $_POST['extension']; +} + + +switch( $op ) { +case 'dump_images_cache': + if (ajaxfilemanager_delDir(XOOPS_ROOT_PATH . '/uploads/ajaxfilemanager/imagecache', true)) { + if (ajaxfilemanager_makeDir(XOOPS_ROOT_PATH . '/uploads/ajaxfilemanager/imagecache')) { + redirect_header($currentFile, 3, _AM_AJAXFM_DUMP_IMAGES_CACHE_OK); + } else { + redirect_header($currentFile, 3, _AM_AJAXFM_DUMP_IMAGES_CACHE_NOT_OK); + } + } else { + redirect_header($currentFile, 3, _AM_AJAXFM_DUMP_IMAGES_CACHE_NOT_OK); + } + break; +case 'install_tinymce': + ajaxfilemanager_installCustomTinymceSettings(); + redirect_header($currentFile, 3, _AM_AJAXFM_EDITORPLUGIN_INSTALLED_OK); + break; +case 'uninstall_tinymce': + ajaxfilemanager_uninstallCustomTinymceSettings(); + redirect_header($currentFile, 3, _AM_AJAXFM_EDITORPLUGIN_UNINSTALLED_OK); + break; +case 'activate_extension': + ajaxfilemanager_activateExtension($extension); + redirect_header($currentFile, 3, _AM_AJAXFM_EXTENSION_ACTIVATED); + break; +case 'desactivate_extension': + ajaxfilemanager_desactivateExtension($extension); + redirect_header($currentFile, 3, _AM_AJAXFM_EXTENSION_DISABLED); + break; +case 'install_extension': + $source = XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/install/textsanitizer.extensions' . '/' . $extension; + $destination = XOOPS_ROOT_PATH . '/class/textsanitizer/' . $extension; + if(!file_exists($source)) { + redirect_header($currentFile, 3, _AM_AJAXFM_EXT_FILE_DONT_EXIST_SHORT); + break; + } + // Copy extension + if (!ajaxfilemanager_copyDir($source, $destination)) { + redirect_header($currentFile, 3, _AM_AJAXFM_EXT_FILE_NOT_INSTALLABLE); + } + // Activate extension + ajaxfilemanager_activateExtension($extension); + redirect_header($currentFile, 3, _AM_AJAXFM_EXTENSION_INSTALLED . '<br />' . $extension . ' ' . _AM_AJAXFM_EXTENSION_ACTIVATED); + break; +default: +case 'default': + // render start here + xoops_cp_header(); + + // check if estansions path is writable + $extensionsPath = XOOPS_ROOT_PATH . '/class/textsanitizer'; + if (!is_writable($extensionsPath) or !is_writable($extensionsPath . '/config.php')) { + echo '<p>' . sprintf(_AM_AJAXFM_EXTENSION_WARNING1, $extensionsPath, $extensionsPath) . '</p>'; + echo '<p>' . sprintf(_AM_AJAXFM_EXTENSION_WARNING2, $extensionsPath, $extensionsPath) . '</p>'; + } + // + // Ajax File Manager extensions + // + echo "<h3>" . _AM_AJAXFM_EXTENSIONS_MANAGER . "</h3>"; + echo "<div style='width:50%;float:right;'>"; + // Test dhtmltextarea + $editor_configs = array(); + $editor_configs['name'] = 'test_dhtmltextarea_standard'; + $editor_configs['value'] = _AM_AJAXFM_EDITORPLUGIN_TEST_DHTMLTEXTAREA; + $editor_configs['rows'] = 20; + $editor_configs['cols'] = 160; + $editor_configs['width'] = '100%'; + $editor_configs['height'] = '400px'; + $editor_configs['editor'] = 'dhtmltextarea'; + $dhtmltextarea = new XoopsFormEditor(_AM_AJAXFM_EDITORPLUGIN_TEST_DHTMLTEXTAREA, 'test_dhtmltextarea_standard', $editor_configs); + echo $dhtmltextarea->render(); + echo "</div>"; + // + echo "<div style='width:50%;'>"; + echo "<fieldset>"; + echo "<legend style='font-weight:bold; color:#990000;'>" . _AM_AJAXFM_EXTRA_EXTENSION_INFO . '</legend>'; + $source = XOOPS_ROOT_PATH . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/install/textsanitizer.extensions'; + $extraExtensions = ajaxfilemanager_listExtensions($source); + echo _AM_AJAXFM_EXTRA_EXTENSION_INFO_DESC; + echo "<table class=''>"; + echo "<tbody>"; + echo "<tr>"; + echo "<th>" . _AM_AJAXFM_EXTENSION . "</th>"; + echo "<th>" . _AM_AJAXFM_EXTENSION_STATUS . "</th>"; + echo "<th>" . _AM_AJAXFM_EXTENSION_ACTION . "</th>"; + echo "</tr>"; + $class = 0; + foreach ($extraExtensions as $extension) { + $class++; + echo "<tr class='" . (($class&1)?'odd':'even') . "'>"; + echo "<td><h3>" . $extension . "</h3></td>"; + if(!ajaxfilemanager_extensionInstalled($extension)) { + echo "<td>"; + echo " <span style='color:red;'>" . _AM_AJAXFM_EXTENSION_NOT_INSTALLED . "</span>"; + echo "</td>"; + echo "<td>"; + echo " <form action='" . $currentFile . "' method='post'>"; + echo " <input type='hidden' name='op' value='install_extension' />"; + echo " <input type='hidden' name='extension' value='" . $extension . "' />"; + echo " <input class='formButton' value='" . _AM_AJAXFM_INSTALL_EXTENSION . "'' type='submit' />"; + echo " </form>"; + echo "</td>"; + } else { + if(!extensionActivated($extension)) { + echo "<td>"; + echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; + echo " <br />"; + echo " <span style='color:red;'>" . _AM_AJAXFM_EXTENSION_NOT_ACTIVATED . "</span>"; + echo "</td>"; + echo "<td>"; + echo " <form action='" . $currentFile . "' method='post'>"; + echo " <input type='hidden' name='op' value='activate_extension' />"; + echo " <input type='hidden' name='extension' value='" . $extension . "' />"; + echo " <input class='formButton' value='" . _AM_AJAXFM_ACTIVATE_EXTENSION . "'' type='submit' />"; + echo " </form>"; + echo "</td>"; + } else { + echo "<td>"; + echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; + echo " <br />"; + echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_ACTIVATED_OK . "</span>"; + echo "</td>"; + echo "<td>"; + echo " <form action='" . $currentFile . "' method='post'>"; + echo " <input type='hidden' name='op' value='desactivate_extension' />"; + echo " <input type='hidden' name='extension' value='" . $extension . "' />"; + echo " <input class='formButton' value='" . _AM_AJAXFM_DISABLE_EXTENSION . "' type='submit' />"; + echo "</form>"; + echo "</td>"; + } + } + echo "</tr>"; + } + echo "</tbody>"; + echo "</table>"; + echo "</fieldset>"; + echo "<br />"; + // Standard or extra Xoops extensions + echo "<fieldset>"; + echo "<legend style='font-weight:bold; color:#990000;'>" . _AM_AJAXFM_EXTENSION_INFO . "</legend>"; + $extensionsPath = XOOPS_ROOT_PATH . '/class/textsanitizer'; + $extensions = ajaxfilemanager_listExtensions($extensionsPath); + $extensions = array_diff($extensions, $extraExtensions); + echo "<table class=''>"; + echo "<tbody>"; + echo "<tr>"; + echo "<th>" . _AM_AJAXFM_EXTENSION . "</th>"; + echo "<th>" . _AM_AJAXFM_EXTENSION_STATUS . "</th>"; + echo "<th>" . _AM_AJAXFM_EXTENSION_ACTION . "</th>"; + echo "</tr>"; + $class = 0; + foreach ($extensions as $extension) { + $class++; + echo "<tr class='" . (($class&1)?'odd':'even') . "'>"; + echo "<td><h3>" . $extension . "</h3></td>"; + if(!extensionActivated($extension)) { + echo "<td>"; + echo " <span style='color:green;'>" . _AM_AJAXFM_EXTENSION_INSTALLED_OK . "</span>"; + echo " <br />"; + echo " <span style='color:red;'>" . _AM_AJAXFM_EXTENSION_NOT_ACTIVATED . "</span>"; + echo "</td>"; + echo "<td>"; + echo " <form action='" . $currentFile . "' method='post'>"; + echo " <input type='hidden' name='op' value='activate_extension' />"; + echo " <input type='hidden' name='extension' value='" . $extension . "' />"; + echo " <input class='formButton' value='" . _AM_AJAXFM_ACTIVATE_EXTENSION . "'' type='submit' />"; + echo " </form>"; + echo "</td>"; + } else { + echo "<td>"; + ... [truncated message content] |