XPressME Integration Kit

Trac

source: branches/Ver2.4/xpressme_integration_kit/admin/admin_blocks.php @ 834

Last change on this file since 834 was 151, checked in by toemon, 15 years ago

ブロックテーブルのチェックコード追加 #21
XOOPSモジュール管理メニューに「ブロック権限」と「ブロックチェック」メニューを追加

File size: 720 bytes
Line 
1<?php
2
3include_once('./../../../include/cp_header.php');
4
5global $xoopsModule;
6$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;
7$module_dir = $mydirname;
8//$module_dir = $xoopsModule->getInfo('dirname');
9
10if (file_exists(XOOPS_ROOT_PATH . '/modules/altsys/admin/index.php')){
11        header("Location: ".XOOPS_URL."/modules/altsys/admin/index.php?mode=admin&lib=altsys&page=myblocksadmin&dirname=$module_dir"); 
12} else if (file_exists(XOOPS_ROOT_PATH . '/modules/legacy/admin/index.php')){
13        header("Location: ".XOOPS_URL."/modules/legacy/admin/index.php?action=BlockList");     
14} else {
15        header("Location: ".XOOPS_URL."/modules/system/admin.php?fct=blocksadmin&selmod=".$xoopsModule->getVar("mid"));
16}
17?>
Note: See TracBrowser for help on using the repository browser.