// Enable SMTP authentication $Mail->isHTML(true); // Set eMail format to HTML /* $Mail->setFrom ( "*****@*****.**", "KBBDaily Jobs"); $Mail->addAddress ( "*****@*****.**", "Craig Dennis"); $Mail->Subject = "Here is the subject"; $Mail->Body = "This is the HTML message body <b>in bold!</b>"; echo ($Mail->send()) ? "Success" : "Failed: ".$Mail->ErrorInfo; */ } /* Administrator ------------------------------*/ if (true && class_exists("Administrator")) { Administrator::$UsernameSessionField = "admin_username"; Administrator::$PasswordSessionField = "admin_password"; if (!isset($_SESSION[Administrator::$UsernameSessionField])) { $_SESSION[Administrator::$UsernameSessionField] = CookieHelper::Get(Administrator::$UsernameSessionField); $_SESSION[Administrator::$PasswordSessionField] = CookieHelper::Get(Administrator::$PasswordSessionField); } if (isset($_SESSION[Administrator::$UsernameSessionField])) { CookieHelper::Set(Administrator::$UsernameSessionField, $_SESSION[Administrator::$UsernameSessionField]); CookieHelper::Set(Administrator::$PasswordSessionField, $_SESSION[Administrator::$PasswordSessionField]); $Administrator = Administrator::GetSingle(array("username", "=", $_SESSION[Administrator::$UsernameSessionField])); if (substr($Administrator->Data["last_active"], 1) > time() - Administrator::$InactiveTime) { $Administrator->Login(); } else { $Administrator->Logout(); } } if (!isset($Administrator) || !$Administrator->LoggedIn()) {