image(); $inc->operator(); $inc->live(); if (!isset($_GET['departmentid'])) { $_GET['departmentid'] = '0'; } if (isset($_GET['picture']) && isset($_GET['id'])) { header('Content-Type: image/gif'); echo($GLOBALS['operator']->picture(addslashes($_GET['id']))); } else { if (isset($_GET['status'])) { $icon = $GLOBALS['image']->icon(addslashes($_GET['status']), addslashes($_GET['departmentid'])); } else { if ($GLOBALS['live']->status_department(addslashes($_GET['departmentid']))) { $icon = $GLOBALS['image']->icon('online', addslashes($_GET['departmentid'])); } else { $icon = $GLOBALS['image']->icon('offline', addslashes($_GET['departmentid'])); } } header($icon['header']); @readfile($icon['file']); } // do events that need to be done at the end of the file $inc->finished(); ?>