Example #1
0
    include_once $cd . '/include/mb_emulator/mb-emulator.php';
}
/**
 * Include user config file and main functions
 */
require_once $cd . '/include/user_config.inc.php';
require_once $cd . '/include/fnc_base.inc.php';
require_once $cd . '/include/constants.inc.php';
/**
 * Connect to MySQL
 */
db_connect();
/**
 * Config
 */
$cfg = init_config();
/**
 * Select HTTP / HTTPS
 */
$http = !empty($_SERVER['HTTPS']) ? 'https' : 'http';
/**
 * Debug
 */
if ($cfg['debug_mode'] == 'on') {
    error_reporting(E_ALL);
}
/**
 * Start Benchmark
 */
if (isset($cfg['show_generation_time']) == 'yes') {
    $begin_time_str = microtime();
Example #2
0
function init_db()
{
    open_db();
    init_config();
}
Example #3
0
} else {
    # Keep callback
    $XML_SERVER .= '?user='******'update') {
    # Read configuration files
    $array_config = init_config();
    $array_key = init_keys($user, $header);
}
# Process pre-action
switch ($action) {
    # INIT
    case 'init':
        # Remove saved keys
        remove_saved($array_key, $user, $header);
        $action = 'main';
        break;
        # SET LABEL
    # SET LABEL
    case 'set_label':
        # Label must be set
        if ($input1 != '') {