/*********************************************************************/
/* CcMail 1.0 */
/* Written by Emanuele Guadagnoli - cicoandcico[at]cicoandcico.com */
/* Reference page: http://www.cicoandcico.com/products.php */
/* License: GPL */
/* DO NOT EDIT UNLESS YOU KNOW WHAT YOU'RE DOING */
/*********************************************************************/
//PROTECT.PHP - Password protection
@session_start();
require_once (dirname(__FILE__) . "/config.php");
$time = date("j F Y G:i:s");
if (!isset($_SESSION['login_attempts'])) $_SESSION['login_attempts'] = 0;
$ip = $_SERVER["REMOTE_ADDR"];
$login_page = "admin_form.php";
$success_page = "admin.php";
$login_err = 'Wrong Username or password!';
$chr_err = 'Invalid syntax. Please retry';
$message = "";
function write_log($filename, $string)
{
if (!is_file($filename)) @touch($filename);
$file = @fopen($filename, "a");
if ($file){
if (flock($file, LOCK_EX)) //acquires lock
{
fwrite($file, $string);
flock($file, LOCK_UN); //releases lock
}
fclose($file);
return true;
}
else print "
Main | Updates | Import | Export | Statistics | Access Log | Schedule | Settings | Help | About | Logout |
|
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||