5tarl0rd

Current Path : /home/tiporg/www/manage/
Upload File :
Current File : /home/tiporg/www/manage/login.php

<?php

include("classes/access_user_class.php"); 



$my_access = new Access_user(false);



// $my_access->language = "de"; // use this selector to get messages in other languages

if (isset($_GET['activate']) && isset($_GET['ident'])) { // this two variables are required for activating/updating the account/password

	$my_access->auto_activation = true; // use this (true/false) to stop the automatic activation

	$my_access->activate_account($_GET['activate'], $_GET['ident']); // the activation method 

}

if (isset($_GET['validate']) && isset($_GET['id'])) { // this two variables are required for activating/updating the new e-mail address

	$my_access->validate_email($_GET['validate'], $_GET['id']); // the validation method 

}

if (isset($_POST['Submit'])) {

	$my_access->save_login = (isset($_POST['remember'])) ? $_POST['remember'] : "no"; // use a cookie to remember the login

	$my_access->count_visit = false; // if this is true then the last visitdate is saved in the database (field extra info)

	$my_access->login_user($_POST['login'], $_POST['password']); // call the login method

	

} 

$error = $my_access->the_msg; 

?>



<html>

<head>

<title>Administrator Login </title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<script language="javascript">

function loginCheck()

{

//alert(document.login.txtlogid.value );

if(document.login.txtlogid.value == "" || document.login.txtpwd.value == "") {

alert("Please fill all the fields");

return false;

}

return true;

}



function focusOnID()

{

document.login.txtlogid.focus();





return true;

}



</script>



<link href="css/login.css" rel="stylesheet" type="text/css">

</head>



<body topmargin="0" leftmargin="0" rightmargin="0">

<?php include("includes/header.php");?>

<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">



  <tr>

    <td rowspan="2" align="left" background="images/white_left_bar.gif"></td>

    <td>&nbsp;</td>

    <td width="1%" rowspan="2" align="right" background="images/white_right_bar.gif">&nbsp;</td>

  </tr>

  <tr>

    <td width="99%">

	<p>

	</p>	<p>

	</p>

	<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">

      <tr>

        <td><img src="images/white_left_corner.gif" width="9" height="9"></td>

        <td background="images/white_top_bar.gif"><img src="images/white_top_bar.gif" width="4" height="9"></td>

        <td><img src="images/white_right_corner.gif" width="9" height="9"></td>

      </tr>

      <tr>

        <td background="images/white_left_bar.gif">&nbsp;</td>

        <td><table width="100%" border="0" cellspacing="2" cellpadding="2">

          <tr>

            <td><table width="100%" border="0" align="center">

              <tr>

                <td colspan="2" align="left" valign="middle"><h1 align="left" class="loginHeading"> Administration

                    Login </h1></td>

              </tr>

              <tr>

                <td align="center" valign="top"><table width="100%" border="0" align="center" cellPadding="0" cellSpacing="0">

                  <tr align="center">

                    <td width="52%" align="left" class="mainText">Use a valid username and password to gain access to the administration console.<br>

                                <br>

                                <br>

                                <div align="center"></div>

                      <br>                    </tr>

                  <tr align="center">

                    <td width="40%" class="TextBlack" >                  </tr>

                </table>

                          <img src="images/mycomputer.jpg" width="128" height="128"></td>

                <td><table width="100%" border="0" cellspacing="2" cellpadding="2">

                  

					<?php

				if(isset($error))

				{

					echo '<tr>

                    <td class="messageTableBorder" ><img src="images/error.gif">'.$error.'</td>

                  </tr>';

				}

			?>

                  <tr>

                    <td> 

					<form name="form1" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">

                      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

                        <tr>

                          <td width="1%" align="left"><img src="images/corner_05_lrft.gif" width="17" height="26"></td>

                          <td width="98%" background="images/corner_04.gif"><img src="images/corner_04.gif" width="22" height="26"></td>

                          <td width="1%" align="right"><img src="images/corner_05.gif" width="17" height="26"></td>

                        </tr>

                        <tr>

                          <td width="1%" align="left" background="images/corner_left_bar_08.gif"><img src="images/corner_left_bar_08.gif" width="17" height="8"></td>

                          <td width="98%" bgcolor="#F6F6F6"><TABLE width="100%" height="39%" border="0" align="center" cellPadding="2" cellSpacing="2" id="Table1">

                              <TR>

                                <TD class="labelText" noWrap align="left">Username</TD>

                                <TD>

								<input type="text" name="login" size="15" onFocus="javascript:this.className='textFieldFocus';" onBlur="javascript:this.className='textField';" style="width:120px;" class="textField" value="<?php echo (isset($_POST['login'])) ? $_POST['login'] : $my_access->user; ?>">                              </TR>

                              <TR>

                                <TD class="labelText" align="left">Password</TD>

                                <TD>

								<input type="password" name="password" onFocus="javascript:this.className='textFieldFocus';" onBlur="javascript:this.className='textField';" style="width:120px;" class="textField" size="15" value="<?php if (isset($_POST['password'])) echo $_POST['password']; ?>">                                </TR>

                              

                                <input type="hidden" name="remember" value="no"<?php echo ($my_access->is_cookie == true) ? " checked" : ""; ?>>                          

                              

                                <TD></TD>

                                <TD align="right" class="SubmitButton">

								

								<input type="hidden" name="Submit" value="Login"><input name="log" type="image" id="log" src="images/login_bttn.gif">                                </TD>

                              </TR>

                              <TR>

                                <TD colspan="2"><a href="./forgot_password.php">Forgot your password?</a></TD>

                                </TR>

                              <TR>

                                <TD></TD>

                                <TD></TD>

                              </TR>

                          </TABLE></td>

                          <td width="1%" align="right" background="images/corner_right_bar_08.gif"><img src="images/corner_right_bar_08.gif" width="17" height="8"></td>

                        </tr>

                        <tr>

                          <td width="1%" align="left"><img src="images/corner_05_left_bottm.gif" width="17" height="26"></td>

                          <td width="98%" background="images/corner_04_bottom.gif"><img src="images/corner_04_bottom.gif" width="22" height="26"></td>

                          <td width="1%" align="right"><img src="images/corner_05_right_bottom.gif" width="17" height="26"></td>

                        </tr>

                      </table>

                    </form></td>

                  </tr>

                </table></td>

              </tr>

            </table></td>

          </tr>

        </table></td>

        <td background="images/white_right_bar.gif"><img src="images/white_right_bar.gif" width="9" height="5"></td>

      </tr>

      <tr>

        <td><img src="images/white_left_bottom_corner.gif" width="9" height="9"></td>

        <td background="images/white_bottom_bar.gif"><img src="images/white_bottom_bar.gif" width="4" height="9"></td>

        <td><img src="images/white_right_bottom_corner.gif" width="9" height="9"></td>

      </tr>

    </table>

    <p>&nbsp;</p>

    <p>&nbsp;</p></td>

  </tr>

  <tr>

    <td><img src="images/white_left_bottom_corner.gif" width="9" height="9"></td>

    <td width="98%" background="images/white_bottom_bar.gif"><img src="images/white_bottom_bar.gif" width="4" height="9"></td>

    <td width="1%"><img src="images/white_right_bottom_corner.gif" width="9" height="9"></td>

  </tr>

</table>

</body>

</html>


5tarL0rd By 5tarl0rd Being Anonymous