<?php //Controller log in require_once 'functions/session.php'; require_once 'models/auth.php'; //Enter point if (!empty($_POST['user_name']) && !empty($_POST['user_password'])) { $temp = flogin($_POST['user_name'], $_POST['user_password']); //username and password check in database if ($temp != false) { cok_a_sess($_POST['user_name']); header('Location: user.php'); // directing script to controller for the users user.php exit; // end of script } } header('Location: index.php?go=login'); // if 1)username and password does no exist database //2) or not entered by user 1. password 2. login 3. password and login together and pressed submit button
<?php $n_online = num_online(); echo "User online HOSxP : <u>" . $n_online . "</u> �� "; echo ",IP Address is : <u>" . $ip . "</u> "; echo "ʶҹ� <font color=white>[ OFF Line ]</font> ��к� HOSxP"; ?> </td> <td width="161" align="center" valign="middle" background="img_mian/bgcolor2.gif" bgcolor="#009AFF" class="headmenu"> <img src="img_mian/blank.gif" width="14" height="18" align="absmiddle"> ��С�� </td> </tr> <tr> <td width="112" height="187" align="right" valign="top"> </td> <td width="527" align="center" valign="top"><br> <br> <br> <?php flogin($sendpage); ?> <br> <br> <br><center>| <a href="#closeform">�Դ˹�ҵ�ҧ</a> | <a href="about.php">About</a> |</center> <br> <br> </td> <td width="155" align="center" valign="top" class="td-right"> <table border="0" align="center" cellpadding="0" cellspacing="0" class="bd-internal"> <tr> <td width="145" align="left" valign="top"><font color="#FFFFFF"><marquee width="150" behavior="scroll" direction="up" onMouseOut="this.start()" onMouseOver="this.stop()" height="237" scrolldelay="150"> ....������������ҹ� �ѧ����� ��˹� ���ʼ�ҹ����Ѻ�����ҹ Web Service ����ҹ Login ����������� HOSxP ��ҹ�֧������ö��˹����ʼ�ҹ����µ���ͧ </marquee></font></td> </tr> </table></td>