Cześć, jakimi funkcjami można zakodować tekst (funkcje podobne do: MD5) i później ponownie je odkodować do normalnego tekstu ?.
Pozdrawiam i z góry bardzo dziękuje.
function send($url) { $curl = curl_init($url) ; curl_setopt( $curl, CURLOPT_URL , $url ); curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ); $source = curl_exec( $curl ); curl_close( $curl ); } else { } return $source; } $wiadomosc2 = '<b><i>Koniec sesji:</i>, Data: 13:15 Piątek, 26 października 2012</b>, <small>Nr. 22</small>'; $user2 = '<i>System</i>'; $send = send('http://********/save.php?msg='.$msgs.'&time='.$data.'&user='.$users.'&ranga='.$user2.'&idrec='.$id_rec.'&datarec='.$da_rec.'&s='.$li.'&s2='.$lis,'r');
$msg = base64_decode($_GET['msg']); $s2 = base64_decode($_GET['s2']); $user = base64_decode($_GET['user']); $time = $_GET['time']; $ranga = $_GET['ranga']; $id_rec = $_GET['idrec']; $da_rec = $_GET['datarec']; $s = $_GET['s']; if($s2 == $s) { if ($msg and $time and $user and $ranga and $id_rec and $da_rec) { mysql_query("INSERT INTO czat_rec SET message='$msg', time='$time', user='$user', ranga='$ranga', id_rec='$id_rec', date_rec='$da_rec'"); } }
$wiadomosc = 'test +++ test'; $user = '<i>System</i>'; $send = send('http:/*********/save.php?msg='.$msgs.'&time='.$data.'&user='.$users.'&ranga=4&idrec='.$id_rec.'&datarec='.$da_rec.'&s='.$li.'&s2='.$lis,'r');
$time = $_GET['time']; $ranga = $_GET['ranga']; $id_rec = $_GET['idrec']; $da_rec = $_GET['datarec']; $s = $_GET['s']; if($s2 == $s) { if ($msg and $time and $user and $ranga and $id_rec and $da_rec) { mysql_query("INSERT INTO czat_rec SET message='$msg', time='$time', user='$user', ranga='$ranga', id_rec='$id_rec', date_rec='$da_rec'"); } }