Esempio n. 1
0
function __init2()
{
    // consider magic_quotes_gpc:
    if (get_magic_quotes_runtime()) {
        set_magic_quotes_runtime(false);
    }
    if (get_magic_quotes_gpc()) {
        OEDataContainer::$magicQuotesOn = true;
    }
    global $tm_start, $a_tm, $OEConfDynamic;
    $a_tm['after Includes'] = (microtime(true) - $tm_start) * 1000;
    $tm_start = microtime(true);
    //echo "TIME::".((microtime(true) - $tm_start)*1000)." after requires<br/>";
    // global $oedbAjaxMode;
    $oedbAjaxMode = false;
    if (!isset($OEConfDynamic)) {
        if (isset($_POST['json'])) {
            $oedbAjaxMode = true;
        } else {
            exit;
        }
    }
    if ($oedbAjaxMode) {
        $ajax = OEDynUtils::decodeJson($_POST['json']);
        if (!$ajax) {
            exit;
        }
        $htmlVals = $ajax['FormInputs'];
        $relPath = $ajax['RelPagePath'];
        $varPHP = $dir_OEDBphp . '/' . $relPath . '(var).php';
        include_once $varPHP;
        echo $varPHP;
        if (!isset($OEConfDynamic)) {
            exit;
        }
        //var_dump($OEConfDynamic);
        //var_dump($_GET);
        var_dump($_POST);
        exit;
    }
}