Esempio n. 1
0
 function index_page()
 {
     global $config, $lang;
     require_once $config['basepath'] . '/include/class/template/core.inc.php';
     $page = new page_admin();
     $page->load_page($config['admin_template_path'] . '/or_index.html');
     //echo "Start Index Page :\r\n".print_r($page->page,TRUE)."\r\n--- End Index Page\r\n\r\n";
     $page->replace_tags(array('general_info', 'openrealty_links', 'baseurl', 'lang', 'user_id', 'addon_links'));
     //echo "Start Index Page Replace :\r\n".print_r($page->page,TRUE)."\r\n--- End Index Page Replace\r\n\r\n";
     return $page->return_page();
 }
Esempio n. 2
0
if (isset($_GET['action']) && $_GET['action'] == 'log_out') {
    $login->log_out();
}
if (!isset($_GET['action'])) {
    $_GET['action'] = 'index';
}
if (strpos($_GET['action'], '://') !== false) {
    $_GET['action'] = 'index';
}
// Add GetMicroTime Function
require_once $config['basepath'] . '/include/misc.inc.php';
$misc = new misc();
$start_time = $misc->getmicrotime();
require_once $config['basepath'] . '/include/class/template/core.inc.php';
// NEW TEMPLATE SYSTEM
$page = new page_admin();
if (isset($_GET['popup']) && $_GET['popup'] != 'blank') {
    $page->load_page($config['admin_template_path'] . '/popup.html');
} else {
    $page->load_page($config['admin_template_path'] . '/main.html');
}
// Allow Addons/Functions to pass back custom jscript.
global $jscript, $jscript_last;
$jscript = '';
$jscript_last = '';
//Load Content
$page->auto_replace_tags('', true);
if ($_GET['action'] == 'edit_page') {
    $page->replace_permission_tags();
    $page->replace_urls();
    $page->replace_css_template_tags(true);
Esempio n. 3
0
                }
                break;
            case ERROR_MUSTBELOGGEDIN:
                $this->_CurrState = new error_MustBeLoggedIn();
                break;
            case 0:
            default:
                $this->_CurrState = new error_UnknownAction();
                break;
        }
    }
}
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc="admin.php entry">
$thispage = new page_admin();
$state = _ADMINPAGE::ANNOUNCEMENTS;

if (_S::IsLoggedIn()){
    $action = _FCORE::IsSetGET(ACTION);
    if ($action != null && $action != 0){
        if ($action==_ADMINPAGE::PAGES_CREATE ||
            $action==_ADMINPAGE::PAGES_MANAGE){
            if (_SESSION::GetCanCDOther() || _SESSION::GetCanCDSelf()){
                $state = $action;
            }
        }
        if ($action==_ADMINPAGE::MESSAGES_LIST ||
            $action==_ADMINPAGE::MESSAGES_VIEW ||
            $action==_ADMINPAGE::MESSAGES_WRITE ||
            $action==_ADMINPAGE::PAGES_WRITE){