Log in

 

 

 Sorry, you need to login first. "; }; IF ($_GET['retry'] == 'yes') { echo "
 Your username or password were incorrect, please enter them again.
"; }; IF ($_GET['logout'] == 'yes') { echo "
 Congratulations - You are now logged off!
"; }; ?>

 

Forgotten your password? Retrieve it now!

 

 

 Congratulations - You are logged on!

 

"; }; include('/home/kidsnetau/box_bottom.txt'); include('/home/kidsnetau/footer_1.txt'); }; //end login page //create account page IF ($action == 'setup') { include('/home/kidsnetau/header_1.txt'); ?>

Create Account

 

Already have an account? Log in.

 

Registering a free account takes only a few seconds and has many benefits including the ability to add / edit content on Kids.Net.Au.

 

Simply choose a username (not the same as your e-mail address) and a unique password and click "create account".

  • For your own security, please choose a password that would be difficult to guess.
  • All spaces and other symbols (i.e. !@#$%^&*()\|/?><,'":;) in your username will be removed, regardless of what you type.
  • Usernames and Passwords are converted to lowercase, as such login details are not case sensitive
  • You do not have to provide an e-mail address, but if you forget your password, you will not be able to regain access to your account without one.
  • You should strongly consider choosing a username that is not connected to you.
  • All contributions that you make on Kids.Net.Au are publicly visible where you have added or edited content.
To help protect against automated account creation, please enter the words that appear below in the box.

Captca image

 

 Enter a Username"; }; IF (($_GET['retry'] != '') AND ($_GET['usernameexists'] == 'yes')) { echo " Choose a different username, the username you selected already exists."; }; ?>
 Enter a Password "; }; IF (($_GET['retry'] != '') AND ($_SESSION['form_password'] != $_SESSION['form_password2'])) { echo " Your Password and your re-typed password must be the same"; }; ?>
 Re-type your password"; }; ?>
 Enter your email address"; }; IF (($_GET['retry'] != '') AND ($_GET['emailexists'] == 'yes')) { echo " Your email address already has an account, Recover your username/password now!"; }; ?>

* E-mail (optional): Allows us to e-mail your password to you if you forget it.

'0') { $usernameexists = 'yes'; }; $query = "SELECT * FROM users WHERE email = '".$_POST['email']."';"; $result = mysql_query($query); $num2 = mysql_num_rows($result); IF ($num2 > '0') { $emailexists = 'yes'; }; IF (($form_username == '') OR ($form_password == '') OR ($form_password2 == '') OR ($form_password != $form_password2) OR ($emailexists == 'yes') OR ($usernameexists == 'yes')) { header("Location:http://www.kids.net.au/members.php?action=setup&retry=yes&usernameexists=".$usernameexists."&emailexists=".$emailexists); }; IF (($emailexists == 'yes') OR ($usernameexists == 'yes')) {} ELSE { include('/home/kidsnetau/header_1.txt'); ?>

Account Creation

 

 Congratulations! Your account has been created.

 

To login to your account click here.

 

\r\n"; //optional headerfields mail($recipient, $subject, $mail_body, $header); //mail command :) }; mysql_select_db ("users") or die ('I cannot select the database because: '. mysql_error()); $query = "INSERT INTO users (`username`,`password`,`email`,`membersince`) VALUES ('".$form_username."' ,'".$form_password."' ,'".$form_email."' ,'".date(YmdHis)."')"; mysql_query($query); //print $query; include('/home/kidsnetau/box_bottom.txt'); include('/home/kidsnetau/footer_1.txt'); }; }; //end login page //Retrieve Login Details IF ($action == 'getpassword') { $_POST['email'] = trim($_POST['email']); $form_email = $_POST['email']; include('/home/kidsnetau/header_1.txt'); ?>

Retrieve Login Details

 

"; $_POST['email'] = trim($_POST['email']); $form_email = $_POST['email']; $query = "SELECT * FROM users WHERE email = '".$form_email."';"; //print $query; IF ($form_email != '') { mysql_select_db ("users") or die ('I cannot select the database because: '. mysql_error()); $result = mysql_query($query); $num1 = mysql_num_rows($result); }; IF ($num1 > '0') { $Name = "Kids.Net.Au"; //senders name $email = "admin@kids.net.au"; //senders e-mail adress $recipient = $form_email; //recipient $mail_body = "Dear ".mysql_result($result,'0','username').", Thank you for setting up an account with http://www.kids.net.au You may now edit content on our site using the following login details: Username: ".mysql_result($result,'0','username')." Password: ".mysql_result($result,'0','password')." URL: http://www.kids.net.au/members.php Feel free to contact us if you require any further information. Kind Regards Kids.Net.Au "; //mail body $subject = "Kids.Net.Au Login Details"; //subject $header = "From: ". $Name . " <" . $email . ">\r\n"; //optional headerfields mail($recipient, $subject, $mail_body, $header); //mail command :) echo "

 

 Congratulations! - Your username and password has been emailed to ".$form_email."

 

To login to your account click here.

 

"; } ELSE { IF ($form_email != '') { echo "

 

 Your email address was not found!

 

"; }; echo "

To have your username and password emailed to you, please enter your email address and click 'Email My Password'

 

 

"; echo "

 

"; }; include('/home/kidsnetau/box_bottom.txt'); include('/home/kidsnetau/footer_1.txt'); }; //end retrieve login details //submit login - log the user on IF ($_GET['action'] == 'login2') { $_POST['username'] = strtolower(trim($_POST['username'])); $_POST['password'] = strtolower(trim($_POST['password'])); mysql_select_db ("users") or die ('I cannot select the database because: '. mysql_error()); $query = "SELECT * FROM users WHERE username = '".$_POST['username']."' AND password = '".$_POST['password']."';"; //print $query; mysql_select_db ("users") or die ('I cannot select the database because: '. mysql_error()); $result = mysql_query($query); $num1 = mysql_num_rows($result); IF ($num1 > '0') { $_SESSION[user][username] = mysql_result($result,'0','username'); $_SESSION[user][password] = mysql_result($result,'0','password'); $_SESSION[user][id] = mysql_result($result,'0','id'); $_SESSION[user][loggedin] = '1'; //print_r($_SESSION[user]); IF ($_SESSION[user][url] != '') { header("Location: ".$_SESSION[user][url]); } ELSE { //loggedin header("Location: http://www.kids.net.au/members.php"); }; } ELSE { header("Location: http://www.kids.net.au/members.php?action=login&retry=yes"); }; }; //end submit //logout IF ($_GET['action'] == 'logout') { $_SESSION[user][id] = ''; $_SESSION[user][username] = ''; $_SESSION[user][password] = ''; $_SESSION[user][loggedin] = ''; $_SESSION[user][url] = ''; session_destroy(); header("Location: http://www.kids.net.au/members.php?action=login&logout=yes"); }; //end logout print_r( $_SESSION[user] ); ?>