- Joined
- Jan 21, 2009
- Messages
- 148
- Reaction score
- 8
I dont know if anyone wants this but say if you want to have seperate CP's for Admins GMs and players, you can pass word protect a page so Only GMs and such can access other 'certain features'.
I dunno....I'm trying to learn php. C is to hard
tt1:
I dunno....I'm trying to learn php. C is to hard

Code:
<?php
// Define your username and password
$username = "someuser";
$password = "somepassword";
if ($_POST['txtUsername'] != $username || $_POST['txtPassword'] != $password) {
?>
<h1>Login</h1>
<form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<p><label for="txtUsername">Username:</label>
<br /><input type="text" title="Enter your Username" name="txtUsername" /></p>
<p><label for="txtpassword">Password:</label>
<br /><input type="password" title="Enter your password" name="txtPassword" /></p>
<p><input type="submit" name="Submit" value="Login" /></p>
</form>
<?php
}
else {
?>
<p>Insert text here. :P </p>
<?php
}
?>