/* ListMessenger - Professional Mailing List Management Copyright © 2007 Silentweb [http://www.silentweb.ca] Developed By: Matt Simpson For the most recent version, visit the ListMessenger website: [http://www.listmessenger.com] License Information is found in docs/licence.html $Id: index.php 107 2007-03-25 19:49:18Z matt.simpson $ */ // Setup PHP and start page setup. @ini_set("include_path", str_replace("\\", "/", dirname(__FILE__))."/includes"); @ini_set("allow_url_fopen", 1); @ini_set("session.name", "LMSID"); @ini_set("session.use_trans_sid", 0); @ini_set("session.cookie_lifetime", 0); @ini_set("session.cookie_secure", 0); @ini_set("session.referer_check", ""); @ini_set("error_reporting", E_ALL ^ E_NOTICE); @ini_set("magic_quotes_runtime", 0); $HEAD = array(); $ONLOAD = array(); $SIDEBAR = array(); $ERROR = 0; $ERRORSTR = array(); $NOTICE = 0; $NOTICESTR = array(); $SUCCESS = 0; $SUCCESSSTR = array(); $RTE_ENABLED = false; $TRIP = true; $SECTION = "login"; require_once("pref_ids.inc.php"); require_once("config.inc.php"); require_once("classes/adodb/adodb.inc.php"); require_once("dbconnection.inc.php"); session_start(); require_once("functions.inc.php"); require_once("loader.inc.php"); ob_start("on_complete"); // Minor version upgrade. switch($_SESSION["config"][PREF_VERSION]) { case "2.0.0" : minor_version_upgrade("2.0.0"); break; case "2.0.1" : case "2.0.2" : minor_version_upgrade("2.0.1"); break; } // Login if((isset($_POST["action"])) && ($_POST["action"] == "login")) { if((checkslashes($_POST["username"]) == $_SESSION["config"][PREF_ADMUSER_ID]) && (checkslashes($_POST["password"]) == $_SESSION["config"][PREF_ADMPASS_ID])) { /** * Added security feature for PHP 4.3.6+ users. */ if(version_compare(phpversion(), "4.3.6", ">")) { if((PREF_DATABASE_SESSIONS == "yes") && (function_exists("adodb_session_regenerate_id"))) { adodb_session_regenerate_id(); } elseif(function_exists("session_regenerate_id")) { session_regenerate_id(); } } $_SESSION["isAuthenticated"] = true; header("Location: index.php"); exit; } else { $ERROR++; $ERRORSTR[] = "Your username or password are invalid. Please re-enter your username and password."; } // Logout } elseif((isset($_GET["action"])) && ($_GET["action"] == "logout")) { if(PREF_DATABASE_SESSIONS == "yes") { @ADOdb_Session::gc(1); } $_SESSION["isAuthenticated"] = false; $_SESSION = array(); session_unset(); session_destroy(); // Reload Preferences } elseif((isset($_GET["action"])) && ($_GET["action"] == "reload")) { reload_configuration(); } if((!isset($_SESSION["isAuthenticated"])) || (!(bool) $_SESSION["isAuthenticated"])) { $SECTION = "login"; } else { if((isset($_GET["section"])) && (trim($_GET["section"]) != "")) { $SECTION = str_replace(array(" ", "..", "/", "\\"), "", trim($_GET["section"])); } else { $SECTION = "subscribers"; } } ?> ListMessenger VERSION_TYPE %HEAD%
ListMessenger Login