} else { $s3ql['connection'] = 'unsuccessfull'; #Header('Location: http://'.$def.'/s3db/'); exit; } #ini_set("error_reporting", E_ERROR | E_WARNING | E_PARSE); #ini_set("display_errors", '1'); #Get the key, send it to check validity #When the key goes in the header URL, no need to read the xml, go directly to the file include_once S3DB_SERVER_ROOT . '/dbstruct.php'; include_once S3DB_SERVER_ROOT . '/s3dbcore/display.php'; include_once S3DB_SERVER_ROOT . '/s3dbcore/callback.php'; ereg('query=(.*)(&)*', $_SERVER['argv'][0], $tmp); $query = $_REQUEST['query'] != '' ? $_REQUEST['query'] : html_entity_decode($tmp[1]); #echo $query;exit; $s3ql = readInputMessage($query); #read the message from the URL input; #echo 'ola<pre>';print_r($s3ql); $key = $s3ql['key']; include_once 'core.header.php'; if (in_array($s3ql['from'], array_keys($GLOBALS['plurals']))) { $user_id = get_entry('access_keys', 'account_id', 'key_id', $key, $db); } #echo '<pre>';print_r($user_info);exit; $format = $s3ql['format'] != '' ? $s3ql['format'] : $_REQUEST['format']; if ($format == '') { $format = 'html'; } $s3ql['format'] = $format; #these represent all the queries that can be performed on the tables $table = $GLOBALS['s3tables'][$s3ql['from']];
#Get the key, send it to check validity #When the key goes in the header URL, no need to read the xml, go directly to the file include_once S3DB_SERVER_ROOT . '/dbstruct.php'; include_once S3DB_SERVER_ROOT . '/s3dbcore/display.php'; include_once S3DB_SERVER_ROOT . '/s3dbcore/callback.php'; #Profilling... require_once S3DB_SERVER_ROOT . '/pearlib/PEAR.php'; if (is_file(S3DB_SERVER_ROOT . '/pearlib/Benchmark/Timer.php')) { require_once S3DB_SERVER_ROOT . '/pearlib/Benchmark/Timer.php'; $timer = new Benchmark_Timer(); $timer->start(); } ereg('query=(.*)(&)*', $_SERVER['argv'][0], $tmp); $query = $_REQUEST['query'] != '' ? $_REQUEST['query'] : html_entity_decode($tmp[1]); #echo $query;exit; $s3ql = readInputMessage($query, $timer); #read the message from the URL input; #echo 'ola<pre>';print_r($s3ql); $key = $s3ql['key']; if (eregi('on|^t|true', $s3ql['graph'])) { $complete = true; } include_once 's3ql.header.php'; #core.header.php manages all the user authentication $format = $s3ql['format'] != '' ? $s3ql['format'] : $_REQUEST['format']; if ($format == '') { $format = 'html'; } $s3ql['format'] = $format; #these represent all the queries that can be performed on the tables $table = $GLOBALS['s3tables'][$s3ql['from']];