$sql=mysql_query("SELECT location FROM i_locations order by location",$conn); while (list($loca)=mysql_fetch_row($sql)) { $all.="$loca|"; } $all.="a\n"; $sql=mysql_query("SELECT ort FROM i_locations order by location",$conn); while (list($loca)=mysql_fetch_row($sql)) { $all.="$loca|"; } $all.="a\n"; $sql=mysql_query("SELECT id FROM i_locations order by location",$conn); while (list($loca)=mysql_fetch_row($sql)) { $all.="$loca|"; } $all.="a\n"; for ($i=0; $i<count($kategorie);$i++) { $all.="$kategorie[$i]|"; } mysql_close($conn); //print $all; print zippit(xor_encode($all,$key[0])); ?>
define("SPHINX_PORT", $config['SPHINX_PORT']); //deal with db password // if (substr($config["DB_PASSWORD"], -1) == 'X'){ // define("DB_PASSWORD", decrypt(substr($config["DB_PASSWORD"], 0, -1), ENCRYPTION_KEY)); // } else { // define("DB_PASSWORD", $config["DB_PASSWORD"]); //Disable Rewrite Password // $config["DB_PASSWORD"] = encrypt($config["DB_PASSWORD"], ENCRYPTION_KEY)."X"; // file_put_contents(dirname(__FILE__).'/../config.php', '<?php return ' . var_export($config, true) . ';? >'); // } if (preg_match("/#LEN\\d{4}#/i", base64_decode($config["DB_PASSWORD"]))) { define("DB_PASSWORD", xor_decode($config["DB_PASSWORD"], ENCRYPTION_KEY)); } else { define("DB_PASSWORD", $config["DB_PASSWORD"]); // Disable Rewrite Password $config["DB_PASSWORD"] = xor_encode($config["DB_PASSWORD"], ENCRYPTION_KEY); file_put_contents(dirname(__FILE__) . '/../config.php', "<?php \n return " . var_export($config, true) . ';?>'); } //define("DB_PASSWORD", $config['DB_PASSWORD']); define("DB_TABLE_NAME", $config["DB_TABLE_NAME"]); define("DB_PORT", $config["DB_PORT"]); define("DB_CHARSET", $config["DB_CHARSET"]); //host configuration define("PHP_HOST", $config["PHP_HOST"]); define("SAVE_LOG", $config['SAVE_LOG']); define("REDIS_HOST", $config['REDIS_HOST']); define("REDIS_PORT", $config['REDIS_PORT']); if (isset($_GET['v']) && intval($_GET['v']) == 1314) { echo 'version ' . VERSION . '(' . BUILD . ') \\nCopyright 2013-2016 Lohas Co., Ltd., All rights reserved.'; } else { if (isset($_GET['author']) && strval($_GET['author']) == 'kaola') {