template(); $inc->live(); if (isset($_GET['operatorid'])) { $operatorid = addslashes($_GET['operatorid']); } else { $operatorid = ''; } if (isset($_GET['retry'])) { $retry = 'true'; } else { $retry = 'false'; } if (!$GLOBALS['live']->status_operator($operatorid)) { header('Location: '.$GLOBALS['conf']['url'].'/live/divert.php?operator='.$operatorid.'&referrer='.$_SERVER['PHP_SELF']); } $GLOBALS['template']->assign('avaliable', $GLOBALS['live']->avaliable_operator($operatorid)); $GLOBALS['template']->assign('operatorid', $operatorid); $GLOBALS['template']->assign('retry', $retry); // Display the output $GLOBALS['template']->display('live_operator.tpl'); // do events that need to be done at the end of the file $inc->finished(); ?>