. * */ $conf = simplexml_load_file("../lib/Dazzler.conf"); session_start(); session_name($conf->conf->session_name); ob_start(); require_once $_SERVER['DOCUMENT_ROOT'].'/BAM/lib/class/Db.inc.php'; $DB = new Db($conf->db->name, $conf->db->host, $conf->db->user, $conf->db->password, 'pg'); $n = $DB->Consulta("select users.id,login,weakhash from (usuarios left join users on(users.id = usuarios.id)) where sesion = {$_SESSION['SesionId']}"); if(!$n) die("SSID: {$_SESSION['SesionId']}"); list($id,$login,$weak) = $DB->SacaTupla(); $weakHash = "{$id}_{$weak}"; $rand = md5 (time()); //random string ob_end_clean(); header("Cache-Control: no-store, no-cache"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); header("Content-Disposition: attachment; filename=\"acct_mgr_login.xml\""); echo " $weakHash $rand 0 "; ?>