torrentz Posted April 18, 2008 Report Share Posted April 18, 2008 Reku koda gabals: http://paste.php.lv/7205 kaa var aizvietot kaartas_numurs.txt (1.txt, 2.txt, 3.txt utt.) faila cipars ir taads pats kaa rindinjas numurs ieksh ip.dan faila. Skripts meklee ip.dan failaa vai ir jau taada IP $ip un ja ir tad skripts paarbauda vai parole $parole atbilst ip.dan faila parolei. probleema saakas tad, kad es gribu kaartas_numurs.txt failaa aizvietot nosaukumu portu utt... kaa var aizvietot kaadu rindinju ieksh taa faila? Link to comment Share on other sites More sharing options...
mounkuls Posted April 18, 2008 Report Share Posted April 18, 2008 kartas_numurs :||:te jaabuut ip adresei:||:te jaabuut parolei kur arī attiecīgi ieraksti pirms raksti kartas_numurs.txt . Otrs variants ir kādā count.txt raksti kātras numuru, kuru esi jau ierakstijis. Patīkami, ka WAP cilvēki ar te ko iepostē:) Link to comment Share on other sites More sharing options...
torrentz Posted April 18, 2008 Author Report Share Posted April 18, 2008 (edited) beidzot tiku galaa pasha speekiem :) <?php $ss = @file("/home/lfsserv/ip.dan"); $strok = sizeof($ss); $ns=0; while($ns<$strok){ $text=@file("/home/lfsserv/ip.dan"); $text=explode(":||:",$text[$ns]); $prov=trim($text[1]); $pll=trim($text[2]); if($prov==$ip){ if($pll==$parole) { $ns++; $fp=@fopen("$rek/$ns.tat","w"); @fputs($fp,"$versija|<br/>|$nosaukums|<br/>|$ports|<br/>|$ip|<br/>|$parole"); @fclose($fp); @chmod ("$rek/$ns.tat", 0777); header("location: http://liveforspeed.xxx.lv"); die(); //print"$ns"; } else { print"IP adrese: $ip jau pievienota un parole nav pareiza!"; die(); } } $ns=$ns+1;} ?> p. s. xxx.lv domeenis nepieder man (bet kaa gribeetos, lai taa buutu =) ) Edited April 18, 2008 by torrentz Link to comment Share on other sites More sharing options...
Recommended Posts