* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009, 2010 by Mailer Developer Team *
// Unset/set session variables
function setSession ($var, $value) {
// Abort in CSS mode here
- if (getOutputMode() == 1) return true;
+ if (isCssOutputMode()) return true;
// Trim value and session variable
$var = trim(secureString($var)); $value = trim($value);
// Destroys the admin session
function destroyAdminSession ($destroy = true) {
// Kill maybe existing session variables including array elements
- setSession('admin_login', '');
- setSession('admin_md5' , '');
- setSession('admin_last' , '');
+ setSession('admin_id' , '');
+ setSession('admin_md5' , '');
+ setSession('admin_last', '');
// Destroy session and return status
if ($destroy) {