XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 9, 2009, 12:52:12 AM (15 years ago)
Author:
toemon
Message:

Bump Ver0.30 #100 ImpressCMSでのモジュール管理画面ではモジュールのサブメニューが出ないので、画面トップにメニューを付け加える
ついでにALTSYSに対応メニューとする。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/block_check.php

    r151 r170  
    3030//include_once 'cp_functions.php'; 
    3131$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ; 
    32 include_once('./../../../include/cp_header.php'); 
     32require_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 
     37if( 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'); 
    3357xoops_cp_header(); 
     58include( './mymenu.php' ) ; 
     59 
    3460include_once(dirname(__FILE__) . '/../class/check_blocks_class.php'); 
    3561 
Note: See TracChangeset for help on using the changeset viewer.