Index: trunk/admin/block_check.php
===================================================================
--- trunk/admin/block_check.php	(revision 151)
+++ trunk/admin/block_check.php	(revision 170)
@@ -30,6 +30,32 @@
 //include_once 'cp_functions.php';
 $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
-include_once('./../../../include/cp_header.php');
+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');
 
