[151] | 1 | <?php
|
---|
| 2 | // $Id: xoops_version.php,v 1.8 2005/06/03 01:35:02 phppp Exp $
|
---|
| 3 | // ------------------------------------------------------------------------ //
|
---|
| 4 | // XOOPS - PHP Content Management System //
|
---|
| 5 | // Copyright (c) 2000 XOOPS.org //
|
---|
| 6 | // <http://www.xoops.org/> //
|
---|
| 7 | // ------------------------------------------------------------------------ //
|
---|
| 8 | // This program is free software; you can redistribute it and/or modify //
|
---|
| 9 | // it under the terms of the GNU General Public License as published by //
|
---|
| 10 | // the Free Software Foundation; either version 2 of the License, or //
|
---|
| 11 | // (at your option) any later version. //
|
---|
| 12 | // //
|
---|
| 13 | // You may not change or alter any portion of this comment or credits //
|
---|
| 14 | // of supporting developers from this source code or any supporting //
|
---|
| 15 | // source code which is considered copyrighted (c) material of the //
|
---|
| 16 | // original comment or credit authors. //
|
---|
| 17 | // //
|
---|
| 18 | // This program is distributed in the hope that it will be useful, //
|
---|
| 19 | // but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
---|
| 20 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
---|
| 21 | // GNU General Public License for more details. //
|
---|
| 22 | // //
|
---|
| 23 | // You should have received a copy of the GNU General Public License //
|
---|
| 24 | // along with this program; if not, write to the Free Software //
|
---|
| 25 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
|
---|
| 26 | // ------------------------------------------------------------------------ //
|
---|
| 27 | // Author: phppp (D.J.) //
|
---|
| 28 | // URL: http://xoopsforge.com, http://xoops.org.cn //
|
---|
| 29 | // ------------------------------------------------------------------------- //
|
---|
| 30 | //include_once 'cp_functions.php';
|
---|
| 31 | $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
|
---|
| 32 | include_once('./../../../include/cp_header.php');
|
---|
| 33 | xoops_cp_header();
|
---|
| 34 | include_once(dirname(__FILE__) . '/../class/check_blocks_class.php');
|
---|
| 35 |
|
---|
| 36 | //BLOCK CHECK
|
---|
| 37 | echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . 'Check ' . $mydirname . ' block table' . "</legend>";
|
---|
| 38 | echo "<div style='padding: 8px;'>";
|
---|
| 39 |
|
---|
| 40 | $xoops_block_check =& xoops_block_check::getInstance();
|
---|
| 41 |
|
---|
| 42 | if ( !$xoops_block_check->is_admin() )
|
---|
| 43 | {
|
---|
| 44 | include XOOPS_ROOT_PATH.'/footer.php';
|
---|
| 45 | exit();
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | switch ( $xoops_block_check->get_op() )
|
---|
| 49 | {
|
---|
| 50 | case "remove_block":
|
---|
| 51 | echo $xoops_block_check->remove_block();
|
---|
| 52 | break;
|
---|
| 53 |
|
---|
| 54 | default:
|
---|
| 55 | if ($xoops_block_check->check_blocks($mydirname)){
|
---|
| 56 | echo $xoops_block_check->get_message();
|
---|
| 57 | echo "<br /><br />";
|
---|
| 58 | echo _AM_XP_BLOCK_OK ;
|
---|
| 59 | } else {
|
---|
| 60 |
|
---|
| 61 | echo $xoops_block_check->get_message();
|
---|
| 62 | echo "<br /><br />\n";
|
---|
| 63 | echo _AM_XP_BLOCK_NG."<br />\n";
|
---|
| 64 | echo _AM_XP_BLOCK_REPAIR_HOWTO."<br />\n";
|
---|
| 65 | echo '<form method="POST">'."\n";
|
---|
| 66 | echo _AM_XP_BLOCK_REPAIR_STEP1 .' : '."\n";
|
---|
| 67 | echo '<input type="submit" name="mid:'.$xoops_block_check->module_id.'" value="' . _AM_XP_BLOCK_REMOVE . ': '.$xoops_block_check->module_name.'" />'."<br />\n";
|
---|
| 68 | echo '     ';
|
---|
| 69 | echo _AM_XP_BLOCK_REMOVE_NOTE;
|
---|
| 70 | echo "</form>\n";
|
---|
| 71 | echo "<br />\n";
|
---|
| 72 | echo _AM_XP_BLOCK_REPAIR_STEP2 . ' : ' . _AM_XP_BLOCK_UPDATE . "<br />\n";
|
---|
| 73 | echo '     ';
|
---|
| 74 | echo '<a href="'.$xoops_block_check->update_link.'">' .$xoops_block_check->module_name . ' ' . _AM_XP_TO_MODELE_UPDATE .'</a>';
|
---|
| 75 | echo "<br />\n";
|
---|
| 76 | echo "<br />\n";
|
---|
| 77 |
|
---|
| 78 | echo _AM_XP_BLOCK_REPAIR_STEP3 . ' : ' . _AM_XP_BLOCK_ADMIN_SETTING . "<br />\n";
|
---|
| 79 | echo '     ';
|
---|
| 80 | echo '<a href="admin_blocks.php">' .$xoops_block_check->module_name . ' ' . _AM_XP_BLOCK_TO_SETTING .'</a>';
|
---|
| 81 | echo "<br />\n";
|
---|
| 82 | }
|
---|
| 83 | break;
|
---|
| 84 |
|
---|
| 85 | }
|
---|
| 86 |
|
---|
| 87 | //if ( $xoops_block_check->get_xoops_version() == '2.1' ) {
|
---|
| 88 | // $xoopsTpl->assign( 'xoops_contents', $cont );
|
---|
| 89 | //} else {
|
---|
| 90 | //}
|
---|
| 91 | echo "</fieldset>";
|
---|
| 92 | xoops_cp_footer();
|
---|
| 93 |
|
---|
| 94 | ?> |
---|