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

Settings
   Settings

Settings   |   Test   |   Reset

General settings:
Company name:  
Company site:  

The URL of the page you placed KitaMail subscription form in.
Subscription form url:  
Form Language:  
The language of the subscription form

This will appear as the Reply-to address.
Company email:  

The following line(s) will be added to any plain-text mail.
If you like KitaMail please leave a reference to it like the displayed one.
Signature:  

Send a copy of any sent Mail to the following address. Leave empty if you don't want to send a copy.
Send copy to:  

Notify administrator on User subscription/unsubscription. A mail will be sent to the address above. Values: YES/NO
Notify admin:  

The following addresses will not be able to subscribe or receive mails. Syntax: addr1, addr2, addr3
Banned addresses:  

Addresses belonging to the following domains will not be able to subscribe or receive mails. Syntax: dom1.com, dom2.net, etc
Banned domains:  

Max displayed recipients before wrapping. Must be a number!
Max displayed recipients:  

Validation settings:
Validation Email:  
 Select to enable Validation Emails
Validation text:  

PHPMailer settings:
These settings are necessary to send Mails. I suggest you to read the manual pages for this section.
Click here to test your configuration.

Mail Priority:  

Send Mails out with intervals to prevent server overload.
Pause for:  
seconds after sending mails.

Send Method:  
Mail() function (not recommended)
SendMail
SMTP (requires the followings:)
Hostname
PORT
HELO
Authentication
(requires the followings:)
Username
Password



Notify settings:
In the following fields you can use these environment variables:
$company_name = Your Company Name.
$company_email = Your Company Email
$company_site = Your Site
$subscription_form_url = Your subscription page URL
$gr_name = The name of the relative Group
[--ADDRESS--] = The recipient's address

The Subject of any Notification mail
Notify message:  

Notify Users on subscription/unsubscription. The following mails will be sent. Values: YES/NO
Notify user:  

The mail that will be authomatically sent to any subscribed user, if Notify User is set to "YES"
On subscription:  

The mail that will be authomatically sent when a user will unsubscribe, if Notify User is set to "YES"
On unsubscription:  

The mail that will be sent to a deleted user (a confirm will be asked).
On user delete:  

The mail that will be sent to a restored user (a confirm will be asked).
On user restore:  

The mail that will be sent to every users when a new group is created (a confirm will be asked).
On group created:  

The mail that will be sent to the users of a group, when it will be deleted (a confirm will be asked).
On group delete:  

The mail that will be sent to the users of a group, when it will be restored (a confirm will be asked).
On group restore:  

Valid CSS!