forked from xoopscube/legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
myblocksadmin.php
76 lines (62 loc) · 2.13 KB
/
myblocksadmin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
// ------------------------------------------------------------------------- //
// myblocksadmin.php (altsys) //
// - XOOPS block admin for each modules - //
// GIJOE <http://www.peak.ne.jp/> //
// ------------------------------------------------------------------------- //
require_once dirname(__FILE__).'/class/AltsysBreadcrumbs.class.php' ;
require_once dirname(__FILE__).'/include/gtickets.php' ;
include_once dirname(__FILE__).'/include/altsys_functions.php' ;
include_once dirname(__FILE__).'/include/mygrouppermform.php' ;
include_once XOOPS_ROOT_PATH.'/class/xoopsblock.php' ;
// language file
altsys_include_language_file( 'myblocksadmin' ) ;
// fork by core types
switch( altsys_get_core_type() ) {
case ALTSYS_CORE_TYPE_X22 :
include_once dirname(__FILE__).'/class/MyBlocksAdminForX22.class.php' ;
$myba =& MyBlocksAdminForX22::getInstance() ;
break ;
case ALTSYS_CORE_TYPE_X25 :
include_once dirname(__FILE__).'/class/MyBlocksAdminForX25.class.php' ;
$myba =& MyBlocksAdminForX25::getInstance() ;
break ;
case ALTSYS_CORE_TYPE_XCL21 :
include_once dirname(__FILE__).'/class/MyBlocksAdminForXCL21.class.php' ;
$myba =& MyBlocksAdminForXCL21::getInstance() ;
break ;
case ALTSYS_CORE_TYPE_ICMS :
include_once dirname(__FILE__).'/class/MyBlocksAdminForICMS.class.php' ;
$myba =& MyBlocksAdminForICMS::getInstance() ;
break ;
case ALTSYS_CORE_TYPE_X20S :
case ALTSYS_CORE_TYPE_X23P :
include_once dirname(__FILE__).'/class/MyBlocksAdminForX20S.class.php' ;
$myba =& MyBlocksAdminForX20S::getInstance() ;
break ;
default :
include_once dirname(__FILE__).'/class/MyBlocksAdmin.class.php' ;
$myba =& MyBlocksAdmin::getInstance() ;
break ;
}
// permission
$myba->checkPermission() ;
// set parameters target_mid , target_dirname etc.
$myba->init( $xoopsModule ) ;
//
// transaction stage
//
if( ! empty( $_POST ) ) {
$myba->processPost() ;
}
//
// form stage
//
// header
xoops_cp_header() ;
// mymenu
altsys_include_mymenu() ;
$myba->processGet() ;
// footer
xoops_cp_footer() ;
?>