From: <ma...@us...> - 2012-05-12 17:30:35
|
Revision: 9491 http://xoops.svn.sourceforge.net/xoops/?rev=9491&view=rev Author: mageg Date: 2012-05-12 17:30:28 +0000 (Sat, 12 May 2012) Log Message: ----------- remove system maintenance Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/maintenance/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/maintenance.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/maintenance.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/maintenance.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_maintenance.html Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/maintenance.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/maintenance.php 2012-05-12 17:26:48 UTC (rev 9490) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/maintenance.php 2012-05-12 17:30:28 UTC (rev 9491) @@ -1,100 +0,0 @@ -<?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. -*/ - -/** - * Maintenance Form Class - * - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @author Andricq Nicolas (AKA MusS) - * @package system - * @subpackage maintenance - * @version $Id$ - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -class SystemMaintenanceForm extends XoopsThemeForm -{ - /** - * @param null $obj - */ - public function __construct($obj = null) - { - } - - /** - * Maintenance Form - * @return void - */ - public function getMaintenance() - { - $maintenance = new SystemMaintenance(); - parent::__construct(_AM_SYSTEM_MAINTENANCE, "form_maintenance", "admin.php", 'post', true); - - $cache = new XoopsFormSelect(_AM_SYSTEM_MAINTENANCE_CACHE, "cache", '', 3, true); - $cache->setDescription(XOOPS_VAR_PATH . "/cache/smarty_cache/<br />" . XOOPS_VAR_PATH . "/cache/smarty_compile/<br />" . XOOPS_VAR_PATH . "/cache/xoops_cache/"); - $cache_arr = array( - 1 => 'smarty_cache', 2 => 'smarty_compile', 3 => 'xoops_cache' - ); - $cache->addOptionArray($cache_arr); - $this->addElement($cache); - - $this->addElement(new XoopsFormRadioYN(_AM_SYSTEM_MAINTENANCE_SESSION, 'session', '', _YES, _NO)); - - $tables_tray = new XoopsFormElementTray(_AM_SYSTEM_MAINTENANCE_TABLES, ' '); - $tables_tray->setDescription(_AM_SYSTEM_MAINTENANCE_TABLES_DESC); - $select_tables = new XoopsFormSelect('', "tables", '', 7, true); - $select_tables->addOptionArray($maintenance->displayTables(true)); - $tables_tray->addElement($select_tables, false); - $choice = new XoopsFormSelect(' ' . _AM_SYSTEM_MAINTENANCE_DUMP_AND . ' ', "maintenance", '', 4, true); - $options = array( - '1' => _AM_SYSTEM_MAINTENANCE_CHOICE1, '2' => _AM_SYSTEM_MAINTENANCE_CHOICE2, - '3' => _AM_SYSTEM_MAINTENANCE_CHOICE3, '4' => _AM_SYSTEM_MAINTENANCE_CHOICE4 - ); - $choice->addOptionArray($options); - $tables_tray->addElement($choice, false); - $this->addElement($tables_tray); - - $this->addElement(new XoopsFormHidden("fct", "maintenance")); - $this->addElement(new XoopsFormHidden("op", "maintenance_save")); - $this->addElement(new XoopsFormButton("", "maintenance_save", _SEND, "submit")); - } - - /** - * @return void - */ - public function getDump() - { - $xoops = Xoops::getInstance(); - $maintenance = new SystemMaintenance(); - parent::__construct(_AM_SYSTEM_MAINTENANCE_DUMP, "form_dump", "admin.php?fct=maintenance", 'post', true); - - $dump_tray = new XoopsFormElementTray(_AM_SYSTEM_MAINTENANCE_DUMP_TABLES_OR_MODULES, ''); - $select_tables1 = new XoopsFormSelect('', "dump_tables", '', 7, true); - $select_tables1->addOptionArray($maintenance->displayTables(true)); - $dump_tray->addElement($select_tables1, false); - $ele = new XoopsFormSelect(' ' . _AM_SYSTEM_MAINTENANCE_DUMP_OR . ' ', 'dump_modules', '', 7, true); - /* @var $module_handler XoopsModuleHandler */ - $module_handler = $xoops->getHandlerModule(); - $criteria = new CriteriaCompo(new Criteria('hasmain', 1)); - $criteria->add(new Criteria('isactive', 1)); - $moduleslist = $module_handler->getNameList($criteria, true); - $ele->addOptionArray($moduleslist); - $dump_tray->addElement($ele); - $this->addElement($dump_tray); - - $this->addElement(new XoopsFormRadioYN(_AM_SYSTEM_MAINTENANCE_DUMP_DROP, 'drop', 1, _YES, _NO)); - - $this->addElement(new XoopsFormHidden("op", "dump_save")); - $this->addElement(new XoopsFormButton("", "dump_save", _SEND, "submit")); - } -} Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/maintenance.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/maintenance.php 2012-05-12 17:26:48 UTC (rev 9490) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/maintenance.php 2012-05-12 17:30:28 UTC (rev 9491) @@ -1,371 +0,0 @@ -<?php -/** - * Maintenance class 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 GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html) - * @author Cointin Maxime (AKA Kraven30) - * @package system - * @version $Id$ - */ - -defined('XOOPS_ROOT_PATH') or die('Restricted access'); - -/** - * System Maintenance - * - * @copyright copyright (c) 2000 XOOPS.org - * @package system - */ -class SystemMaintenance -{ - var $db; - var $prefix; - - /** - * Constructor - */ - function SystemMaintenance() - { - $db = XoopsDatabaseFactory::getDatabaseConnection(); - $this->db = $db; - $this->prefix = $this->db->prefix . '_'; - } - - /** - * Display Tables - * - * @param array - * @return - */ - function displayTables($array = true) - { - $tables = array(); - $result = $this->db->queryF('SHOW TABLES'); - while ($myrow = $this->db->fetchArray($result)) { - $value = array_values($myrow); - $value = substr($value[0], 5); - $tables[$value] = $value; - } - if ($array = true) { - return $tables; - } else { - return join(',', $tables); - } - } - - /** - * Clear sessions - * - * @return - */ - function CleanSession() - { - $result = $this->db->queryF('TRUNCATE TABLE ' . $this->db->prefix('session')); - return true; - } - - /** - * Clean cache 'xoops_data/caches/smarty_cache' - * - * @param array cache - * @return - */ - function CleanCache($cache) - { - for ($i = 0; $i < count($cache); $i++) { - if ($cache[$i] == 1) { - $files = glob(XOOPS_VAR_PATH . '/caches/smarty_cache/*.*'); - foreach ($files as $filename) { - if (basename(strtolower($filename)) != 'index.html') { - unlink($filename); - } - } - } else { - if ($cache[$i] == 2) { - $files = glob(XOOPS_VAR_PATH . '/caches/smarty_compile/*.*'); - foreach ($files as $filename) { - if (basename(strtolower($filename)) != 'index.html') { - unlink($filename); - } - } - } else { - if ($cache[$i] == 3) { - $files = glob(XOOPS_VAR_PATH . '/caches/xoops_cache/*.*'); - foreach ($files as $filename) { - if (basename(strtolower($filename)) != 'index.html') { - unlink($filename); - } - } - } - } - } - } - return true; - } - - /** - * Maintenance database - * - * @param array tables 'list of tables' - * @param array maintenance 'optimize, check, repair, analyze' - * @return array - */ - function CheckRepairAnalyzeOptimizeQueries($tables, $maintenance) - { - $ret = '<table class="outer"><th>' . _AM_SYSTEM_MAINTENANCE_TABLES1 . '</th><th>' . _AM_SYSTEM_MAINTENANCE_TABLES_OPTIMIZE . '</th><th>' . _AM_SYSTEM_MAINTENANCE_TABLES_CHECK . '</th><th>' . _AM_SYSTEM_MAINTENANCE_TABLES_REPAIR . '</th><th>' . _AM_SYSTEM_MAINTENANCE_TABLES_ANALYZE . '</th>'; - $tab = array(); - for ($i = 0; $i < 4; $i++) { - $tab[$i] = $i + 1; - } - $tab1 = array(); - for ($i = 0; $i < 4; $i++) { - if (in_array($tab[$i], $maintenance)) { - $tab1[$i] = $tab[$i]; - } else { - $tab1[$i] = '0'; - } - } - unset($tab); - $class = 'odd'; - for ($i = 0; $i < count($tables); $i++) { - $ret .= '<tr class="' . $class . '"><td align="center">' . $this->prefix . $tables[$i] . '</td>'; - for ($j = 0; $j < 4; $j++) { - if ($tab1[$j] == 1) { - // Optimize - $result = $this->db->queryF('OPTIMIZE TABLE ' . $this->prefix . $tables[$i]); - if ($result) { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td>'; - } else { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>'; - } - } else { - if ($tab1[$j] == 2) { - // Check tables - $result = $this->db->queryF('CHECK TABLE ' . $this->prefix . $tables[$i]); - if ($result) { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td>'; - } else { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>'; - } - } else { - if ($tab1[$j] == 3) { - // Repair - $result = $this->db->queryF('REPAIR TABLE ' . $this->prefix . $tables[$i]); - if ($result) { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td>'; - } else { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>'; - } - } else { - if ($tab1[$j] == 4) { - // Analyze - $result = $this->db->queryF('ANALYZE TABLE ' . $this->prefix . $tables[$i]); - if ($result) { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td>'; - } else { - $ret .= '<td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td>'; - } - } else { - $ret .= '<td> </td>'; - } - } - } - } - } - $ret .= '</tr>'; - $class = ($class == 'even') ? 'odd' : 'even'; - } - $ret .= '</table>'; - return $ret; - } - - /** - * Dump by tables - * - * @param array tables 'list of tables' - * @param int drop - * @return array 'ret[0] = dump, ret[1] = display result - */ - function dump_tables($tables, $drop) - { - $ret = array(); - $ret[0] = "# \n"; - $ret[0] .= "# Dump SQL, Generate by Xoops \n"; - $ret[0] .= "# Date : " . date('d-m-Y � H:i') . " \n"; - $ret[1] = '<table class="outer"><tr><th width="30%">' . _AM_SYSTEM_MAINTENANCE_DUMP_TABLES . '</th><th width="35%">' . _AM_SYSTEM_MAINTENANCE_DUMP_STRUCTURES . '</th><th width="35%">' . _AM_SYSTEM_MAINTENANCE_DUMP_NB_RECORDS . '</th></tr>'; - $class = 'odd'; - for ($i = 0; $i < count($tables); $i++) { - //structure - $ret = $this->dump_table_structure($ret, $this->prefix . $tables[$i], $drop, $class); - //data - $ret = $this->dump_table_datas($ret, $this->prefix . $tables[$i]); - $class = ($class == 'even') ? 'odd' : 'even'; - } - $ret = $this->dump_write($ret); - $ret[1] .= '</table>'; - return $ret; - } - - /** - * Dump by modules - * - * @param array modules 'list of modules' - * @param int drop - * @return array 'ret[0] = dump, ret[1] = display result - */ - function dump_modules($modules, $drop) - { - $xoops = Xoops::getInstance(); - $ret = array(); - $ret[0] = "# \n"; - $ret[0] .= "# Dump SQL, Generate by Xoops \n"; - $ret[0] .= "# Date : " . date('d-m-Y � H:i') . " \n"; - $ret[0] .= "# \n\n"; - $ret[1] = '<table class="outer"><tr><th width="30%">' . _AM_SYSTEM_MAINTENANCE_DUMP_TABLES . '</th><th width="35%">' . _AM_SYSTEM_MAINTENANCE_DUMP_STRUCTURES . '</th><th width="35%">' . _AM_SYSTEM_MAINTENANCE_DUMP_NB_RECORDS . '</th></tr>'; - $class = 'odd'; - for ($i = 0; $i < count($modules); $i++) { - $module_handler = $xoops->getHandlerModule(); - $module = $module_handler->getByDirname($modules[$i]); - $ret[1] .= '<tr><th colspan="3" align="left">' . ucfirst($modules[$i]) . '</th></tr>'; - $modtables = $module->getInfo('tables'); - if ($modtables != false && is_array($modtables)) { - foreach ($modtables as $table) { - //structure - $ret = $this->dump_table_structure($ret, $this->prefix . $table, $drop, $class); - //data - $ret = $this->dump_table_datas($ret, $this->prefix . $table); - $class = ($class == 'even') ? 'odd' : 'even'; - } - } else { - $ret[1] .= '<tr><td colspan="3" align="center">' . _AM_SYSTEM_MAINTENANCE_DUMP_NO_TABLES . '</td></tr>'; - } - } - $ret[1] .= '</table>'; - $ret = $this->dump_write($ret); - return $ret; - } - - /** - * Dump table structure - * - * @param array - * @param string table - * @param int drop - * @param string class - * @return array 'ret[0] = dump, ret[1] = display result - */ - function dump_table_structure($ret, $table, $drop, $class) - { - $verif = false; - $result = $this->db->queryF('SHOW create table `' . $table . '`;'); - if ($result) { - if ($row = $this->db->fetchArray($result)) { - $ret[0] .= "# Table structure for table `" . $table . "` \n\n"; - if ($drop == 1) { - $ret[0] .= "DROP TABLE IF EXISTS `" . $table . "`;\n\n"; - } - $verif = true; - $ret[0] .= $row['Create Table'] . ";\n\n"; - } - } - $ret[1] .= '<tr class="' . $class . '"><td align="center">' . $table . '</td><td class="xo-actions txtcenter">'; - $ret[1] .= ($verif == true) ? '<img src="' . system_AdminIcons('success.png') . '" />' - : '<img src="' . system_AdminIcons('cancel.png') . '" />'; - $ret[1] .= '</td>'; - $this->db->freeRecordSet($result); - return $ret; - } - - /** - * Dump table data - * - * @param array - * @param string table - * @return array 'ret[0] = dump, ret[1] = display result - */ - function dump_table_datas($ret, $table) - { - $count = 0; - $result = $this->db->queryF('SELECT * FROM ' . $table . ';'); - if ($result) { - $num_rows = $this->db->getRowsNum($result); - $num_fields = $this->db->getFieldsNum($result); - - if ($num_rows > 0) { - $field_type = array(); - $i = 0; - while ($i < $num_fields) { - $meta = mysql_fetch_field($result, $i); - array_push($field_type, $meta->type); - $i++; - } - - $ret[0] .= "INSERT INTO `" . $table . "` values\n"; - $index = 0; - while ($row = $this->db->fetchRow($result)) { - $count++; - $ret[0] .= "("; - for ($i = 0; $i < $num_fields; $i++) { - if (is_null($row[$i])) { - $ret[0] .= "null"; - } else { - switch ($field_type[$i]) { - case 'int': - $ret[0] .= $row[$i]; - break; - default: - $ret[0] .= "'" . mysql_real_escape_string($row[$i]) . "'"; - } - } - if ($i < $num_fields - 1) { - $ret[0] .= ","; - } - } - $ret[0] .= ")"; - - if ($index < $num_rows - 1) { - $ret[0] .= ","; - } else { - $ret[0] .= ";"; - } - $ret[0] .= "\n"; - $index++; - } - } - } - $ret[1] .= '<td align="center">'; - $ret[1] .= $count . ' ' . _AM_SYSTEM_MAINTENANCE_DUMP_RECORDS . '</td></tr>'; - $ret[0] .= "\n"; - $this->db->freeRecordSet($result); - $ret[0] .= "\n"; - return $ret; - } - - /** - * Dump Write - * - * @param array - * @return array 'ret[0] = dump, ret[1] = display result - */ - function dump_write($ret) - { - $file_name = "dump_" . date("Y.m.d") . "_" . date("H.i.s") . ".sql"; - $path_file = "./admin/maintenance/dump/" . $file_name; - if (file_put_contents($path_file, $ret[0])) { - $ret[1] .= '<table class="outer"><tr><th colspan="2" align="center">' . _AM_SYSTEM_MAINTENANCE_DUMP_FILE_CREATED . '</th><th>' . _AM_SYSTEM_MAINTENANCE_DUMP_RESULT . '</th></tr><tr><td colspan="2" align="center"><a href="' . XOOPS_URL . '/modules/system/admin/maintenance/dump/' . $file_name . '">' . $file_name . '</a></td><td class="xo-actions txtcenter"><img src="' . system_AdminIcons('success.png') . '" /></td><tr></table>'; - } else { - $ret[1] .= '<table class="outer"><tr><th colspan="2" align="center">' . _AM_SYSTEM_MAINTENANCE_DUMP_FILE_CREATED . '</th><th>' . _AM_SYSTEM_MAINTENANCE_DUMP_RESULT . '</th></tr><tr><td colspan="2" class="xo-actions txtcenter">' . $file_name . '</td><td class="xo-actions txtcenter"><img src="' . system_AdminIcons('cancel.png') . '" /></td><tr></table>'; - } - return $ret; - } -} - -?> \ No newline at end of file Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/maintenance.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/maintenance.php 2012-05-12 17:26:48 UTC (rev 9490) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/language/english/admin/maintenance.php 2012-05-12 17:30:28 UTC (rev 9491) @@ -1,71 +0,0 @@ -<?php -/** - * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ - * @license http://www.fsf.org/copyleft/gpl.html GNU public license - * _LANGCODE en - * _CHARSET UTF-8 - * @version $Id$ - */ - -//Nav -define("_AM_SYSTEM_MAINTENANCE_NAV_MANAGER", "Maintenance"); -define("_AM_SYSTEM_MAINTENANCE_NAV_LIST","All maintenance"); -define("_AM_SYSTEM_MAINTENANCE_NAV_DUMP","Dump"); - -define("_AM_SYSTEM_MAINTENANCE_SESSION","Empty the sessions table"); -define("_AM_SYSTEM_MAINTENANCE_SESSION_OK","Session maintenance : OK"); -define("_AM_SYSTEM_MAINTENANCE_SESSION_NOTOK","Session maintenance : Error"); -define("_AM_SYSTEM_MAINTENANCE_CACHE","Clean cache folder"); -define("_AM_SYSTEM_MAINTENANCE_CACHE_OK","Cache maintenance : OK"); -define("_AM_SYSTEM_MAINTENANCE_CACHE_NOTOK","Cache maintenance : Error"); -define("_AM_SYSTEM_MAINTENANCE_TABLES","Tables maintenance"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_OK","Tables maintenance : OK"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_NOTOK","Tables maintenance : Error"); -define("_AM_SYSTEM_MAINTENANCE_QUERY_DESC","Optimize, Check, Repair and Analyze your tables"); -define("_AM_SYSTEM_MAINTENANCE_QUERY_OK","Maintain database : OK"); -define("_AM_SYSTEM_MAINTENANCE_QUERY_NOTOK","Maintain database : Error"); -define("_AM_SYSTEM_MAINTENANCE_CHOICE1","Optimize table(s)"); -define("_AM_SYSTEM_MAINTENANCE_CHOICE2","Check table(s)"); -define("_AM_SYSTEM_MAINTENANCE_CHOICE3","Repair table(s)"); -define("_AM_SYSTEM_MAINTENANCE_CHOICE4","Analyze table(s)"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_DESC", -"ANALYZE TABLE analyzes and stores the key distribution for a table. During the analysis, the table is locked with a read lock.<br /> -CHECK TABLE checks a table or tables for errors.<br /> -OPTIMIZE TABLE to reclaim the unused space and to defragment the data file.<br /> -REPAIR TABLE repairs a possibly corrupted table."); - -define("_AM_SYSTEM_MAINTENANCE_RESULT","Result"); -define("_AM_SYSTEM_MAINTENANCE_RESULT_NO_RESULT","Not Result"); -define("_AM_SYSTEM_MAINTENANCE_RESULT_CACHE","Clean Cache task"); -define("_AM_SYSTEM_MAINTENANCE_RESULT_SESSION","Clean sessions table task"); -define("_AM_SYSTEM_MAINTENANCE_RESULT_QUERY","Database task"); -define("_AM_SYSTEM_MAINTENANCE_ERROR_MAINTENANCE","No choice for maintenance"); - -define("_AM_SYSTEM_MAINTENANCE_TABLES1","Tables"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_OPTIMIZE","Optimize"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_CHECK","Check"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_REPAIR","Repair"); -define("_AM_SYSTEM_MAINTENANCE_TABLES_ANALYZE","Analyze"); - -//Dump -define("_AM_SYSTEM_MAINTENANCE_DUMP","Dump"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_TABLES_OR_MODULES","Select tables or modules"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_DROP","Add command DROP TABLE IF EXISTS 'tables' in the dump"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_OR", "OR"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_AND", "AND"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_ERROR_TABLES_OR_MODULES", "You must select the tables or modules"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_NO_TABLES", "No tables"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_TABLES", "Tables"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_STRUCTURES", "Structures"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_NB_RECORDS", "Numbers of records"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_FILE_CREATED", "File created"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_RESULT", "Result"); -define("_AM_SYSTEM_MAINTENANCE_DUMP_RECORDS", "record(s)"); - -// Tips -define("_AM_SYSTEM_MAINTENANCE_TIPS", -"<ul> -<li>You can do a simple maintenance of your XOOPS Installation: clear your cache and session table, and do maintenance of your tables</li> -</ul>"); - -?> Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_maintenance.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_maintenance.html 2012-05-12 17:26:48 UTC (rev 9490) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_maintenance.html 2012-05-12 17:30:28 UTC (rev 9491) @@ -1,32 +0,0 @@ -<!--maintenance--> -<{includeq file="admin:system|system_header.html"}> -<!-- Display mailusers form --> -<br /> -<{if $maintenance}> - <{if $verif_cache || $verif_session}> - <table class="outer ui-corner-all" cellspacing="1"> - <tr> - <th><{$smarty.const._AM_SYSTEM_MAINTENANCE}></th> - <th><{$smarty.const._AM_SYSTEM_MAINTENANCE_RESULT}></th> - </tr> - <{if $verif_cache}> - <tr> - <td class="aligntop txtcenter"><{$smarty.const._AM_SYSTEM_MAINTENANCE_RESULT_CACHE}></td> - <td class="aligntop txtcenter"><{if $result_cache}><img width="16" src="<{xoAdminIcons success.png}>" /><{else}><img style="width:16px;" src="<{xoAdminIcons cancel.png}>" alt="Cancel"/><{/if}></td> - </tr> - <{/if}> - - <{if $verif_session}> - <tr> - <td class="aligntop" align="center"><{$smarty.const._AM_SYSTEM_MAINTENANCE_RESULT_SESSION}></td> - <td class="aligntop" align="center"><{if $result_session}><img style="width:16px;" src="<{xoAdminIcons success.png}>" alt="Success"/><{else}><img style="width:16px;" src="<{xoAdminIcons cancel.png}>" alt="Cancel"/><{/if}></td> - </tr> - <{/if}> - </table><br /> - <{/if}> - <{if $verif_maintenance}> - <{$result_maintenance}> - <{/if}> -<{else}> - <{$result_dump}> -<{/if}> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |