// Unset/set session variables
function setSession ($var, $value) {
// Abort in CSS mode here
- if ($GLOBALS['output_mode'] == 1) return true;
+ if (getOutputMode() == 1) return true;
// Trim value and session variable
$var = trim(SQL_ESCAPE($var)); $value = trim($value);