Changeset 170 for trunk/admin/block_check.php
- Timestamp:
- Apr 9, 2009, 12:52:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/block_check.php
r151 r170 30 30 //include_once 'cp_functions.php'; 31 31 $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 32 include_once('./../../../include/cp_header.php'); 32 require_once '../../../include/cp_header.php' ; 33 //require_once '../include/gtickets.php' ; 34 //define( '_MYMENU_CONSTANT_IN_MODINFO' , '_MI_TELLAFRIEND_MODNAME' ) ; 35 36 // branch for altsys 37 if( defined( 'XOOPS_TRUST_PATH' ) && ! empty( $_GET['lib'] ) ) { 38 $mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 39 $mydirpath = dirname( dirname( __FILE__ ) ) ; 40 41 // common libs (eg. altsys) 42 $lib = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , $_GET['lib'] ) ; 43 $page = preg_replace( '/[^a-zA-Z0-9_-]/' , '' , @$_GET['page'] ) ; 44 45 if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ) ) { 46 include XOOPS_TRUST_PATH.'/libs/'.$lib.'/'.$page.'.php' ; 47 } else if( file_exists( XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ) ) { 48 include XOOPS_TRUST_PATH.'/libs/'.$lib.'/index.php' ; 49 } else { 50 die( 'wrong request' ) ; 51 } 52 exit ; 53 } 54 55 //include_once('./menu.php'); 56 //include_once('./../../../include/cp_header.php'); 33 57 xoops_cp_header(); 58 include( './mymenu.php' ) ; 59 34 60 include_once(dirname(__FILE__) . '/../class/check_blocks_class.php'); 35 61
Note: See TracChangeset
for help on using the changeset viewer.