Could not register access.
"; return false; } @header("Pragma: "); @header("Cache-Control: "); @header("Expires: Mon, 26 Jul 1980 05:00:00 GMT"); @header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); @header("Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate"); @header("Cache-Control: post-check=0, pre-check=0", false); //get POST vars $username = ""; $password = ""; if (isset($_POST['username'])) $username = $_POST['username']; if (isset($_POST['password'])) $password = $_POST['password']; //if the cookies are set, control if they are right if(isset($_COOKIE["ccalias"]) && isset($_COOKIE["ccuname"]) && isset($_COOKIE["ccpass"])){ $user_exists = false; $user_count = count($uname); //check for user validity for ($i = 1; $i <= $user_count; $i++){ if (crypt($uname[$i], $_COOKIE["ccuname"]) == $_COOKIE["ccuname"] && crypt($upass[$i], $_COOKIE["ccpass"]) == $_COOKIE["ccpass"]){ $user_exists = true; } } if($user_exists); //do nothing (go to admin page) else{ //clear the cookies and display the login form $message='Cookies corrupted! Please close this page and restart the browser.'; setcookie ("ccalias", "", time() - 3600); setcookie ("ccuname", "", time() - 3600); setcookie ("ccpass", "", time() - 3600); require($login_page); exit(); } } else{ //cookies are not set: check POST variables //if the form is empty display login page if($username == "" && $password == ""){ require($login_page); exit(); } else{ //if POST vars are set, make sure that only letters and numbers are entered if (preg_match ("/[^a-zA-Z0-9]/", $username.$password)){ $message = $chr_err; require($login_page); exit(); } } //now check POST vars through all the users to see if they exist $user_count = count($uname); $user_exists = false; for ($i = 1; $i <= $user_count; $i++) { $crypt_pass = crypt($upass[$i]); $crypt_username = crypt($uname[$i]); if (crypt($username, $crypt_username) == $crypt_username && crypt($password, $crypt_pass) == $crypt_pass){ $user_id=$i; $user_exists = true; } } //if checking goes wrong if(!$user_exists){ write_log($data_dir . "/access_log", "$time: access denied to $username ($ip)
\n"); $message = $login_err; sleep(floor((exp($_SESSION['login_attempts'])))-1); $_SESSION['login_attempts']++; require($login_page); exit(); } //if the login is correct then set the cookie so it dies when the browser is closed $alias = $known_as[$user_id]; $cookie_crypt_pass = crypt($upass[$user_id]); $cookie_crypt_uname = crypt($uname[$user_id]); setcookie ("ccalias", $alias, 0); setcookie ("ccuname", $cookie_crypt_uname, 0); setcookie ("ccpass", $cookie_crypt_pass, 0); //Writing Log Access... write_log($data_dir . "/access_log", "$time: $alias logon successfully
\n"); @header("Location: $success_page"); exit(); } KanaSoft KitaMail 1.0 - Administrator Page
CcMail Homepage
 Main   Updates   Import   Export   Statistics   Access Log   Schedule   Settings   Help   About   Logout

CcMail Homepage
"True progress is made only when the advantages of a new technology
are within reach of everyone" - Henry F.

CcMail 1.0.2

Lead Programmer:
      • Emanuele Guadagnoli

PhpMailer class:
      • PHPMailer

HTML editor:
      • FCKEditor

Icons:
      • Crystal SVG by Everaldo

CcMail Translators:
      • Martin Perichon, Slaytanic Wehrmacht, Niko Winckel, Roy Veltman,
      • Asko, Xavier Brochard

Thanks to:
      • Stevel, Jacob, Xavier Brochard and every CcMail user


Report Bugs or Wishes
Software can always be improved, and the CcMail Team is ready to do so. However, you - the user - must tell us when something does not work as expected or could be done better.
If you have a suggestion for improvement then you are welcome to make us know:
Contact the developer!


Join the CcMail Team
You do not have to be a software developer to be a member of the CcMail team. You can join the national teams that translate program interfaces. You can provide graphics, themes, sounds, and improved documentation. You decide!
Contact me if you want to help us!


Help us:
CcMail is available free of charge, but making it is not easy. You may help us with a small donation: click here.
If you like it, let a reference to CcMail's homepage in the signature of your mails.
Another way to help CcMail grow is rating it at Hotscripts.com.
Thank you very much in advance for your support.

Hotscripts.com:
Rate CcMail 1.0!


Valid CSS!