FT3 Posted August 30, 2010 Report Share Posted August 30, 2010 Chaaw. Te tada lieta vjg parastu php password protection scriptu . Paraugs. Ievadu paroli , ja parole pareiza , nekur neparmet bet parada nosleptu codu . Quote Link to comment Share on other sites More sharing options...
briedis Posted August 30, 2010 Report Share Posted August 30, 2010 Ko nemāki? Izveidot formu? Uzrakstīt if'u, kas pārbauda konkrēta lauka vērtību? Ar php izvadīt tekstu? Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 30, 2010 Author Report Share Posted August 30, 2010 tur jau ir ta lieta ka nevis tekstu bet kodu ! daudzus sciptus biju atradis kur beigas teksts , bet apvienot nesanak , jo kodu kuru jaliek teksta vieta parak daudz " ' ; : . un tt Quote Link to comment Share on other sites More sharing options...
briedis Posted August 30, 2010 Report Share Posted August 30, 2010 Kas tas par kodu? Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 30, 2010 Author Report Share Posted August 30, 2010 (edited) <?php error_reporting(0); $action=htmlspecialchars(substr(trim($_POST['action']),0,10)); if ($action == 'nul') { $fod=getcwd(); $fold=$fod."/inc/members"; chdir($fold); $fo=opendir($fold); while ($read=readdir($fo)) { if(($read != ".") && ($read != "..")) { $fnt = file("$read"); $record = explode("¤", trim($fnt[0])); $sd = trim($record[4]); $IO_data = "../data/io_".$sd.".dat"; $io = fopen($IO_data, "w"); $result = fwrite($io, "0¤0"); fclose($IO_data); rsort($note); } } chdir("../../"); closedir($fo); } ?> <form method="POST"><input type="hidden" name="action" value="nul"> <input class=sb2 type="submit" value="Reset Raiting" style="width:180;height:24px"> </form> <?php ?> tads :D Edited August 30, 2010 by FT3 Quote Link to comment Share on other sites More sharing options...
FT3 Posted August 30, 2010 Author Report Share Posted August 30, 2010 sorry pa db , varat taisit ciet topiku lieta atrisinata ! Quote Link to comment Share on other sites More sharing options...
sandis_m Posted August 30, 2010 Report Share Posted August 30, 2010 Vienkārši tāds WTF ! ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.