*jancis38* Posted December 4, 2007 Report Share Posted December 4, 2007 Tātad šāds te skripts: <?php $login = $_POST['login']; $password = $_POST['password']; $pass = file("p4r0l3s-waxmackajokjaoscjadcjaodicjodasjdosjsoidsjofisdjfosdijfsdoifjdsoifjsdojsdiofjoia jmx,cmlaxkmckamcajaosiad.txt"); $log = "0"; foreach($pass as $user) { $case = explode(":|:", $user); if($login == $case[0] && $password == $case[1]) { $log = "1"; }} if($log == "1") { include("http://csw.sytes.net/members/member.php"); } else { include("http://csw.sytes.net/login/error.php"); } ?> kas man būtu jāizdara lai skripts paliek tas pats, un visulaiku ir viens *.php fails, lai man naw jātaisa vairāki faili.. nu tipo lai mainās tikai šis te.. include("http://csw.sytes.net/members/member.php"); ceru ka sapratāt. Link to comment Share on other sites More sharing options...
Kavacky Posted December 4, 2007 Report Share Posted December 4, 2007 switch ( $x) { case 1: ... break; case 2: ... break; ... } Link to comment Share on other sites More sharing options...
Recommended Posts