Viewing file: index.php (1.13 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php define('_JEXEC', 1);
if (file_exists(dirname(__FILE__) . '/defines.php')) { include_once dirname(__FILE__) . '/defines.php'; }
if (!defined('_JDEFINES')) { define('JPATH_BASE', dirname(__FILE__)); require_once JPATH_BASE.'/includes/defines.php';}
require_once JPATH_BASE.'/includes/model.php'; $obj = new module; $obj->lib_menu();
$task = $obj->get_input('task'); $scr = $obj->get_input('scr'); $link_up = $obj->get_input('link_up');
$msg_on = $obj->get_input('msg_on'); $msg_of = $obj->get_input('msg_of'); $status = $obj->get_input('status');
$access = $obj->get_input('access'); $token = $obj->get_input('token');
switch ($task)
{ case null: $obj->token($token); $path = PATH_LOGIN.'default.php'; require $path; break;
case 'login': $path = PATH_LOGIN.$task.'.php'; require $path; break;
default: $obj->sitename(); $login = $obj->get_input('login');
include PATH_DOCUMENT.$obj->root.'/modules/home.php';
if ($access != null) {$obj->item($scr,$link_up,$msg_on,$msg_of,$status,$access,$login);}
}
?>
|