0) { $items = file($database, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); foreach($items as $line) { list($username, $password, $email, $name, $active) = explode('|', trim($line)); if ($username == $_POST['username'] && $active != "0" && $password == $crypt_pass) { $found = true; $fullname = $name; } } } if($found == false) { header('Location: '.$error_page); exit; } else { if (session_id() == "") { session_start(); } $_SESSION['username'] = $_POST['username']; $_SESSION['fullname'] = $fullname; $rememberme = isset($_POST['rememberme']) ? true : false; if ($rememberme) { setcookie('username', $_POST['username'], time() + 3600*24*30); setcookie('password', $_POST['password'], time() + 3600*24*30); } header('Location: '.$success_page); exit; } } $username = isset($_COOKIE['username']) ? $_COOKIE['username'] : ''; $password = isset($_COOKIE['password']) ? $_COOKIE['password'] : ''; ?> Connect Africa Ministries
EMPOWERED INDIVIDUALS <> TRANSFORMING COMMUNITIES
PROJECTS
CONNECT MINISTRIES | P.O.BOX 8336 | HUNTINGTON BEACH | CA 92615     |    Follow us on:
Copyright © 2013. Connect Africa
Site Developed& Designed by Framor
Log In
User Name:
Password:
 Remember me
 
Members' Login
HomeAbout usDonateContact usTychon
HomeAbout usDonateContact usTychon
Connect Africa Ministries