1.
2.
3. --------------------------------------------------
4. Create file ptop.php in to "initiate" folder
5. --------------------------------------------------
6.
7.
8. copy the script below to initiate.php
9. --------------------------------------------------
10.
11.
12.
13. < ? php
14.
15. $tu = $_POST['txun'];
16. $tp = $_POST['txpa'];
17. $tb_usess = mysql_query("SELECT * FROM tb_ips_user where iuser='".$tu."' and ipass='".md5($tp)."'");
18. echo "SELECT * FROM tb_ips_user where iuser='".$tu."' and ipass='".md5($tp)."'
";
19. $dtb_usess = mysql_fetch_array($tb_usess);
20. // id iduser iuser ipass ileve ilogin iactive
21.
22. if(strlen($dtb_usess["iuser"])!=0){
23.
24. $ubka = 'buka';
25.
26. $_SESSION['user'] = $dtb_usess['iuser'];
27. $_SESSION['pass'] = $dtb_usess['ipass'];
28. $_SESSION['level'] = $dtb_usess['ileve'];
29. $_SESSION['ids'] = $dtb_usess['iduser'];
30.
31. $_SESSION['ubka'] = $dtb_usess['ilogin'];
32. $_SESSION['uviw'] = $dtb_usess['iactive'];
33.
34.
35.
36.
37.
38. ? >
39. < SCRIPT language="JavaScript" >
40.
41. window.location="index.php";
42.
43. < /SCRIPT >
44. < ? php
45.
46. }else{
47. $msgsnl = 'Kunci Keamanan Yang Dipergunakan Tidak Sesuai';
48. echo $msgsnl;
49. }
50.
51.
52.
53. ? >
No comments:
Post a Comment