3 if (!class_exists(
'ProtectorRegistry'))
exit(
'Registry not found');
15 require_once XOOPS_ROOT_PATH.
'/class/template.php' ;
26 require XOOPS_ROOT_PATH.
'/include/cp_functions.php' ;
30 if( file_exists(
"$mydirpath/language/$language/admin.php" ) ) {
32 include_once
"$mydirpath/language/$language/admin.php" ;
33 }
else if( file_exists(
"$mytrustdirpath/language/$language/admin.php" ) ) {
35 include_once
"$mytrustdirpath/language/$language/admin.php" ;
38 include_once
"$mytrustdirpath/language/english/admin.php" ;
43 if( file_exists(
"$mydirpath/language/$language/main.php" ) ) {
45 include_once
"$mydirpath/language/$language/main.php" ;
46 }
else if( file_exists(
"$mytrustdirpath/language/$language/main.php" ) ) {
48 include_once
"$mytrustdirpath/language/$language/main.php" ;
51 include_once
"$mytrustdirpath/language/english/main.php" ;
56 if( ! empty(
$_GET[
'lib'] ) ) {
58 $lib = preg_replace(
'/[^a-zA-Z0-9_-]/' ,
'' ,
$_GET[
'lib'] ) ;
59 $page = preg_replace(
'/[^a-zA-Z0-9_-]/' ,
'' , @
$_GET[
'page'] ) ;
61 if( file_exists( XOOPS_TRUST_PATH.
'/libs/'.$lib.
'/'.
$page.
'.php' ) ) {
62 include XOOPS_TRUST_PATH.
'/libs/'.$lib.
'/'.
$page.
'.php' ;
63 }
else if( file_exists( XOOPS_TRUST_PATH.
'/libs/'.$lib.
'/index.php' ) ) {
64 include XOOPS_TRUST_PATH.
'/libs/'.$lib.
'/index.php' ;
66 die(
'wrong request' ) ;
70 $page = preg_replace(
'/[^a-zA-Z0-9_-]/' ,
'' , @
$_GET[
'page'] ) ;
72 if( file_exists(
"$mytrustdirpath/admin/$page.php" ) ) {
73 include
"$mytrustdirpath/admin/$page.php" ;
74 }
else if( file_exists(
"$mytrustdirpath/admin/index.php" ) ) {
75 include
"$mytrustdirpath/admin/index.php" ;
77 die(
'wrong request' ) ;