Example #1
0
<?php

ob_start('ob_gzhandler');
// Set flag that this is a parent file.
define('PARENT_FILE', 1);
$site_path = realpath('../../');
define('__SITE_PATH', $site_path);
/*{START_PHP_INI_PATH}*/
define('__PHP_PATH', realpath(__SITE_PATH . '/../../uthando/php'));
/*{END_PHP_INI_PATH}*/
// Set include paths.
$ini_path = ini_get('include_path') . PATH_SEPARATOR . __PHP_PATH . PATH_SEPARATOR . __PHP_PATH . '/PEAR' . PATH_SEPARATOR . __PHP_PATH . '/Uthando' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/Admin' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/Admin/FileManager' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/functions' . PATH_SEPARATOR . __SITE_PATH . '/modules' . PATH_SEPARATOR . __SITE_PATH . '/components';
set_include_path($ini_path);
// Include functions.
require_once 'functions.php';
$registry = new Admin_Registry(true);
$registry->setSite(realpath(__SITE_PATH . '/../../uthando/ini/uthandoSites.ini.php'));
$registry->loadIniFiles(array('admin_config' => 'uthandoAdmin', 'config' => 'uthando'));
$registry->setDefaults();
if (isset($_POST['session'])) {
    $pwd = $_POST['session'][0];
    $iv = $_POST['session'][1];
}
$registry->sessionId = Utility::decodeString($pwd, $iv);
$uthando = new UthandoAdmin($registry);
try {
    $registry->db = new DB_Admin($registry);
    $registry->session = new Session($registry);
    UthandoUser::setUserInfo();
    if ($uthando->authorize()) {
        $ushop = new UShop_Manager($registry);
Example #2
0
define('TEMPLATES', BASE . DS . 'Uthando-Templates' . DS);
define('JS', BASE . DS . 'Uthando-JS' . DS);
define('CSS', BASE . DS . 'Uthando-CSS' . DS);
define('IMAGE', BASE . DS . 'Uthando-Images' . DS);
define('SCHEME', isset($_SERVER['HTTPS']) ? 'https://' : 'http://');
define('HOST', $_SERVER['HTTP_HOST']);
define('REQUEST_URI', $_SERVER['REQUEST_URI']);
// Set include paths.
$ini_path = get_include_path() . PS . CLASSES . PS . FUNCS . PS . MODULES . PS . COMPONENTS;
set_include_path($ini_path);
// Include functions.
require_once 'functions.php';
require_once 'admin_functions.php';
$timer = new Benchmark_Timer();
$timer->start();
$registry = new Admin_Registry();
$registry->setSite(BASE . DS . 'Uthando-ini' . DS . 'UthandoSites.ini' . EXT);
$registry->loadIniFiles(array('admin_config' => 'uthandoAdmin', 'config' => 'uthando'));
$registry->setDefaults();
$uthando = new Admin_Uthando($registry);
$registry->template = new HTML_Template($registry, $registry->get('admin_config.site.template'));
require 'Dbug/FirePHP.class.php';
$registry->firephp = FirePHP::getInstance(true);
try {
    $registry->db = new DB_Admin($registry);
    $registry->session = new Session($registry);
    UthandoUser::setUserInfo();
    if ($uthando->authorize()) {
        $registry->template->addParameter('login_status', 'You are logged in as: ' . $_SESSION['username']);
        // Load component.
        $uthando->loadComponent();
Example #3
0
// Set flag that this is a parent file
define('PARENT_FILE', 1);
$site_path = realpath(dirname(__FILE__));
define('__SITE_PATH', $site_path);
/*{START_PHP_INI_PATH}*/
define('__PHP_PATH', realpath(__SITE_PATH . '/../../uthando/php'));
/*{END_PHP_INI_PATH}*/
// Set include paths.
$ini_path = ini_get('include_path') . PATH_SEPARATOR . __PHP_PATH . PATH_SEPARATOR . __PHP_PATH . '/PEAR' . PATH_SEPARATOR . __PHP_PATH . '/Uthando' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/Admin' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/functions' . PATH_SEPARATOR . __SITE_PATH . '/modules' . PATH_SEPARATOR . __SITE_PATH . '/components';
ini_set('include_path', $ini_path);
// Include functions.
require_once 'functions.php';
require_once 'admin_functions.php';
$timer = new Benchmark_Timer();
$timer->start();
$registry = new Admin_Registry();
$registry->setSite(realpath(__SITE_PATH . '/../../uthando/ini/uthandoSites.ini.php'));
$registry->loadIniFiles(array('admin_config' => 'uthandoAdmin', 'config' => 'uthando'));
$registry->setDefaults();
$uthando = new UthandoAdmin($registry);
$registry->template = new HTML_Template($registry, $registry->get('admin_config.site.template'));
require 'Dbug/FirePHP.class.php';
$registry->firephp = FirePHP::getInstance(true);
try {
    $registry->db = new DB_Admin($registry);
    $registry->session = new Session($registry);
    UthandoUser::setUserInfo();
    if ($uthando->authorize()) {
        $registry->template->addParameter('login_status', 'You are logged in as: ' . $_SESSION['username']);
        // Load component.
        $uthando->loadComponent();
Example #4
0
define('ADMIN', BASE . DS . 'Uthando-Admin' . DS);
define('CLASSES', BASE . DS . 'Uthando-Classes' . DS);
define('MODULES', BASE . DS . 'Uthando-Lib' . DS . 'modules' . DS);
define('COMPONENTS', BASE . DS . 'Uthando-Lib' . DS . 'components' . DS . 'admin' . DS);
define('LANG', BASE . DS . 'Uthando-Lib' . DS . 'langs' . DS);
define('FUNCS', BASE . DS . 'Uthando-Lib' . DS . 'functions' . DS);
define('TEMPLATES', BASE . DS . 'Uthando-Templates' . DS);
define('SCHEME', isset($_SERVER['HTTPS']) ? 'https://' : 'http://');
define('HOST', $_SERVER['HTTP_HOST']);
define('REQUEST_URI', $_SERVER['REQUEST_URI']);
// Set include paths.
$ini_path = get_include_path() . PS . CLASSES . PS . FUNCS . PS . MODULES . PS . COMPONENTS;
set_include_path($ini_path);
// Include functions.
require_once 'functions.php';
$registry = new Admin_Registry(true);
$registry->setSite(BASE . DS . 'Uthando-ini' . DS . 'UthandoSites.ini' . EXT);
$registry->loadIniFiles(array('admin_config' => 'uthandoAdmin', 'config' => 'uthando'));
$registry->setDefaults(true);
if (isset($_GET['session'])) {
    $pwd = $_GET['session'][0];
    $iv = $_GET['session'][1];
} elseif (isset($_POST['session'])) {
    $pwd = $_POST['session'][0];
    $iv = $_POST['session'][1];
}
$registry->sessionId = Utility::decodeString($pwd, $iv);
try {
    $registry->db = new DB_Admin($registry);
    $registry->session = new Session($registry);
    //user_agent|s:15:"Shockwave Flash";remote_addr|s:9:"127.0.0.1"
Example #5
0
<?php

ob_start('ob_gzhandler');
// Set flag that this is a parent file.
define('PARENT_FILE', 1);
$site_path = realpath('../../');
define('__SITE_PATH', $site_path);
/*{START_PHP_INI_PATH}*/
define('__PHP_PATH', realpath(__SITE_PATH . '/../../uthando/php'));
/*{END_PHP_INI_PATH}*/
// Set include paths.
$ini_path = ini_get('include_path') . PATH_SEPARATOR . __PHP_PATH . PATH_SEPARATOR . __PHP_PATH . '/PEAR' . PATH_SEPARATOR . __PHP_PATH . '/Uthando' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/Admin' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/Admin/FileManager' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/functions' . PATH_SEPARATOR . __SITE_PATH . '/modules' . PATH_SEPARATOR . __SITE_PATH . '/components';
set_include_path($ini_path);
// Include functions.
require_once 'functions.php';
$registry = new Admin_Registry(true);
$registry->setSite(realpath(__SITE_PATH . '/../../uthando/ini/uthandoSites.ini.php'));
$registry->loadIniFiles(array('admin_config' => 'uthandoAdmin', 'config' => 'uthando'));
$registry->setDefaults();
if (isset($_GET['session'])) {
    $pwd = $_GET['session'][0];
    $iv = $_GET['session'][1];
} elseif (isset($_POST['session'])) {
    $pwd = $_POST['session'][0];
    $iv = $_POST['session'][1];
}
$registry->sessionId = Utility::decodeString($pwd, $iv);
try {
    $registry->db = new DB_Admin($registry);
    $registry->session = new Session($registry);
    //user_agent|s:15:"Shockwave Flash";remote_addr|s:9:"127.0.0.1"