XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
index.php
Go to the documentation of this file.
1 <?php
2 
3 require '../../mainfile.php' ;
4 if( ! defined( 'XOOPS_TRUST_PATH' ) ) die( 'set XOOPS_TRUST_PATH in mainfile.php' ) ;
5 
6 $mydirname = basename( dirname( __FILE__ ) ) ;
7 $mydirpath = dirname( __FILE__ ) ;
8 require $mydirpath.'/mytrustdirname.php' ; // set $mytrustdirname
9 
10 if( @$_GET['mode'] == 'admin' ) {
11  require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/admin.php' ;
12 } else {
13  require XOOPS_TRUST_PATH.'/modules/'.$mytrustdirname.'/main.php' ;
14 }
15 
16 ?>