Tryag File Manager
Home
-
Turbo Force
Current Path :
/
home
/
cluster1
/
data
/
bu01
/
1121861
/
html
/
old_jlex_versions
/
beta
/
2005-08-04 php4
/
Upload File :
New :
File
Dir
/home/cluster1/data/bu01/1121861/html/old_jlex_versions/beta/2005-08-04 php4/query_result.php4
<? include_once("mysql_to_xml.php4"); error_reporting(0); session_start(); $vars = array_merge($_POST, $_GET); $converter = new mysql_to_xml(array_merge($_POST, $_GET)); $xml_processing_script = trim($vars["script"]); if(array_key_exists("stylesheet",$vars)) { $stylesheet = trim($vars["stylesheet"]); } else { $stylesheet = ""; } if(array_key_exists("page",$_GET)) { $page = trim($_GET["page"]); } else { $page = ""; } if($page == "") { $main_ids = $converter->query_database(); $_SESSION["main_ids"] = $main_ids; $page = 1; } else { $main_ids = $_SESSION["main_ids"]; } $_SESSION["prev_page"] = $page; $_SESSION["prev_stylesheet"] = $stylesheet; $_SESSION["project_database"] = $_POST["database"]; if($xml_processing_script == "") { $xml = $converter->convert_resultset_to_xml($main_ids, $page, $stylesheet); header("Content-Type: application/xml"); echo $xml; } else { $xml = $converter->convert_resultset_to_xml($main_ids, $page, ""); include($xml_processing_script); } ?>