marnix Posted September 14, 2005 Report Share Posted September 14, 2005 ludzu paliidziet. es gribeetu uztaisiit loginu. piemeeram logini un paroles atrodas piemeeram failaa prof.txt un kad cilveeks ielogojaas vins pie manau informaaciju redz 10 minuutes. peec desmit minuuteem vinu izsviez araa na taas redzamaas informaacijas un parole un logins automaatiski izdzeeshaas no faila prof.txt LUUDZU PALIIDZIET!!!!!!!! ;) Link to comment Share on other sites More sharing options...
Klez Posted September 14, 2005 Report Share Posted September 14, 2005 (edited) nu kur tad ir problema ?? taisi taksh. ja kas nesanaak, tad uzraksti kas un mees paliidzeesim. GATVU skriptu neviens tew netaisiis. princips shaads: kad logojas, atveram to failu un paarbaudaam vai user sakriit ar user un pass ar pass. ja sakriit tad izdzeesham [vai iztiiram] to failu, kur glabaajas user un pass, un sesijaa saglabaajam mainiigo ar 10 minuuteem. jeb time() + 10 * 60 un tad paarbaudaam, ja sesijas mainiigaa laiks ir mazaaks par esosho laiku , tad metam aaraa (dzeesjam sesijas mainiigos) ja ienaak lapaa tad paskataamies vai sesijas mainiigais ir lielaaks par 0, ja nau tad zinaam ka nav ielogojies un paarmetam uz login lapu. izmantojamaas funkcijas: header - lai redirekteetu session_start file vai fread time session_destroy konstruktors if vaidzeetu pietikt EDIT: ja veidzees veel ko pats pamekleesi ieksh http://lv.php.net vai shajaa forumaa Edited September 14, 2005 by Klez Link to comment Share on other sites More sharing options...
marnix Posted September 14, 2005 Author Report Share Posted September 14, 2005 paldies!!!!! Link to comment Share on other sites More sharing options...
Klez Posted September 14, 2005 Report Share Posted September 14, 2005 sanaaca ? Link to comment Share on other sites More sharing options...
marnix Posted September 15, 2005 Author Report Share Posted September 15, 2005 nu pusliidz paroli vinsh no txt faila paarbauda bet es veel neesmu uztaisiijis kd vinsh to izdzeesh un atskaita laiku :( Link to comment Share on other sites More sharing options...
Klez Posted September 15, 2005 Report Share Posted September 15, 2005 nekas :) .. ciinies, ja kas nesanaak, tad jautaa, tik paraadi kljuudu zinjojumu un koda gabalu, vai rindinju, kuraa neizpildas kods :) Link to comment Share on other sites More sharing options...
Recommended Posts