Ejemplo n.º 1
0
 public function loadModule()
 {
     global $system, $settings, $lang, $sysVar;
     $sysVar['op'] = empty($_GET['op']) ? $settings['defaultOp'] : $_GET['op'];
     $sysVar['mode'] = empty($_GET['mode']) ? $settings['defaultMode'] : $_GET['mode'];
     if (!empty($_GET['filter'])) {
         $sysVar['filter'] = $_GET['filter'];
     } elseif (!empty($_POST['filter'])) {
         $sysVar['filter'] = $_POST['filter'];
     } else {
         $sysVar['filter'] = null;
     }
     //		print "GOP: $_GET[op]<br>";
     //		print "GMode: $_GET[mode]<br>";
     //
     //		print "DOP: $settings[defaultOp]<br>";
     //		print "DMode: $settings[defaultMode]<br>";
     //
     //		print "OP: $sysVar[op]<br>";
     //		print "Mode: $sysVar[mode]<br>";
     //if(in_array($_SERVER['HTTP_HOST'], $system->security->trustUrl->trustUrlList())){
     $sysVar['secure'] = $system->security->validate->chControl();
     if ($sysVar['op']) {
         if ($system->security->acl->access("`op` = '{$sysVar['op']}' AND `mode` = '{$sysVar['mode']}' AND `active` = '1'", 'r-x')) {
             if (file_exists($settings['moduleAddress'] . "/" . $sysVar['op'] . "/" . "index" . $settings['ext2']) && file_exists($settings[moduleAddress] . "/" . $sysVar['op'] . "/" . "visor" . $settings['ext2'])) {
                 $system->credit->scan();
                 require_once $settings['moduleAddress'] . "/" . $sysVar['op'] . "/" . "visor" . $settings['ext2'];
                 $system->xorg->smarty->assign("settings", $settings);
                 $system->xorg->smarty->assign("sysVar", $sysVar);
                 require_once $settings['moduleAddress'] . "/" . $sysVar['op'] . "/" . "index" . $settings['ext2'];
             } else {
                 $system->xorg->smarty->fetchedVar = $system->xorg->smarty->fetch($settings['commonTpl'] . "404" . $settings['ext4']);
             }
         } else {
             require_once 'module/userMan/model/userMan.php';
             m_userMan::m_accDeny();
         }
     } else {
         $system->xorg->smarty->fetchedVar = $system->xorg->smarty->fetch($settings['customiseTpl'] . "main" . $settings['ext4']);
     }
     /*else{
     			print "here";
     		}*/
     //}else{
     //	print $system->watchDog->exception("w", $lang[securityWarning], $lang[accDeny]);
     //}
 }
Ejemplo n.º 2
0
//require_once "module/keywords/model/keywords.php";
//$keywords = new m_keywords();
//$system->xorg->smarty->assign("jQCloud", $keywords->m_listObject('showList'));
################################
# Google Analytic              #
################################
//$system->xorg->smarty->assign("googleAnalytic", $system->xorg->smarty->fetch($settings[commonTpl] . "googleAnalytic". $settings['ext4']));
################################
# Zopim                        #
################################
//$system->xorg->smarty->assign("zopim", $system->xorg->smarty->fetch($settings[commonTpl] . "zopim". $settings['ext4']));
################################
# Login                        #
################################
require_once "module/userMan/model/userMan.php";
$userMan = new m_userMan();
$system->xorg->smarty->assign("login", $userMan->m_loginContent());
################################
# Forum                        #
################################
//require_once "module/forum/config/config.php";
//require_once "module/forum/model/forum.php";
//$m_forum = new m_forum();
//$system->xorg->smarty->assign("lastForum", $m_forum->m_listObject(10));
################################
# Fs Network Panel             #
################################
//$system->xorg->smarty->assign("fsNetwork", $system->xorg->smarty->fetch($settings[commonTpl] . "fsNetwork". $settings['ext4']));
################################
# Menu                         #
################################