// // ------------------------------------------------------------------------ // // 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. // // // // 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. // // // // 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // // Author: phppp (D.J.) // // URL: http://xoopsforge.com, http://xoops.org.cn // // ------------------------------------------------------------------------- // //include_once 'cp_functions.php'; $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; require_once '../../../include/cp_header.php' ; //require_once '../include/gtickets.php' ; //define( '_MYMENU_CONSTANT_IN_MODINFO' , '_MI_TELLAFRIEND_MODNAME' ) ; // branch for altsys if( defined( 'XOOPS_TRUST_PATH' ) && ! empty( $_GET['lib'] ) ) { $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; $mydirpath = dirname( dirname( __FILE__ ) ) ; // common libs (eg. altsys) $lib = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $_GET['lib'] ) ; $page = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , @$_GET['page'] ) ; if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ) ) { include XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ; } else if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ) ) { include XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ; } else { die( 'wrong request' ) ; } exit ; } //include_once('./menu.php'); //include_once('./../../../include/cp_header.php'); xoops_cp_header(); include( './mymenu.php' ) ; include_once(dirname(__FILE__) . '/../class/check_blocks_class.php'); //BLOCK CHECK echo "
" . 'Check ' . $mydirname . ' block table' . ""; echo "
"; $xoops_block_check =& xoops_block_check::getInstance(); if ( !$xoops_block_check->is_admin() ) { include XOOPS_ROOT_PATH.'/footer.php'; exit(); } switch ( $xoops_block_check->get_op() ) { case "remove_block": echo $xoops_block_check->remove_block(); break; default: if ($xoops_block_check->check_blocks($mydirname)){ echo $xoops_block_check->get_message(); echo "

"; echo _AM_XP_BLOCK_OK ; } else { echo $xoops_block_check->get_message(); echo "

\n"; echo _AM_XP_BLOCK_NG."
\n"; echo _AM_XP_BLOCK_REPAIR_HOWTO."
\n"; echo '
'."\n"; echo _AM_XP_BLOCK_REPAIR_STEP1 .' : '."\n"; echo ''."
\n"; echo '     '; echo _AM_XP_BLOCK_REMOVE_NOTE; echo "
\n"; echo "
\n"; echo _AM_XP_BLOCK_REPAIR_STEP2 . ' : ' . _AM_XP_BLOCK_UPDATE . "
\n"; echo '     '; echo '' .$xoops_block_check->module_name . ' ' . _AM_XP_TO_MODELE_UPDATE .''; echo "
\n"; echo "
\n"; echo _AM_XP_BLOCK_REPAIR_STEP3 . ' : ' . _AM_XP_BLOCK_ADMIN_SETTING . "
\n"; echo '     '; echo '' .$xoops_block_check->module_name . ' ' . _AM_XP_BLOCK_TO_SETTING .''; echo "
\n"; } break; } //if ( $xoops_block_check->get_xoops_version() == '2.1' ) { // $xoopsTpl->assign( 'xoops_contents', $cont ); //} else { //} echo "
"; xoops_cp_footer(); ?>