isAdmin()) die('Access Denied'); $info = $qs = array(); if($template && $_REQUEST['a']!='add'){ $title=__('Update Template'); $action='update'; $submit_text=__('Save Changes'); $info=$template->getInfo(); $info['tpl_id']=$template->getId(); $qs += array('tpl_id' => $template->getId()); }else { $title=__('Add New Template'); $action='add'; $submit_text=__('Add Template'); $info['isactive']=isset($info['isactive'])?$info['isactive']:0; $info['lang_id'] = $cfg->getPrimaryLanguage(); $qs += array('a' => $_REQUEST['a']); } $info=Format::htmlchars(($errors && $_POST)?$_POST:$info, true); ?>