Brak dostêpu do bazy'); // @mysql_select_db("danmed1"); //$sql = 'select * from sklep_allpay_confirm'; //$res = mysql_query($sql); //while($row = mysql_fetch_row($res)){ // $T[] = $row; //} //var_dump(serialize($T)); //die('przerwa techniczna'); $sql = "INSERT INTO sklep_allpay_confirm SET id = '".$_POST[id]."', status = '".$_POST[status]."', control = '".$_POST[control]."', t_id = '".$_POST[t_id]."', amount = '".$_POST[amount]."', email = '".$_POST[email]."', service = '".$_POST[service]."', code = '".$_POST[code]."', username = '".$_POST[username]."', password = '".$_POST[password]."', t_status = '".$_POST[t_status]."', description = '".$_POST[description]."', md5 = '".$_POST[md5]."', p_info = '".$_POST[p_info]."', p_email = '".$_POST[p_email]."'"; $res = mysql_query($sql); $systemPrev="U##".$_POST['control']."##0##2##1"; $systemHndl=fopen("http://danmednet.lgs.pl/intfc.php?O=".base64_encode($systemPrev),"r"); $systemBffr=fread($systemHndl,65535); ob_end_clean(); $fp = fopen ("allpay.txt", "a"); fwrite( $fp, "---------------------------\n"); fwrite( $fp, date ( "Y-m-d H:i:s")); fwrite( $fp, "\n"); fwrite( $fp, "---------------------------\n"); fwrite( $fp, "GET:\n"); ob_start(); print_r($_GET); $buf = ob_get_contents(); ob_end_clean(); fwrite( $fp, $buf); fwrite( $fp, "\n"); fwrite( $fp, "POST:\n"); ob_start(); print_r($_POST); $buf = ob_get_contents(); ob_end_clean(); fwrite( $fp, $buf); fwrite( $fp, "\n"); echo 'OK'; ?>