if ($_REQUEST['tab']) setcookie('activesection',$_REQUEST['tab']); //@$mlist_domain = $_REQUEST['mlist_domain']; @$acc = $_REQUEST['acc']; @$dom = $_REQUEST['dom']; //Domain admin - use his own domain $domainobjects = array("group"=>1,"list"=>1,"listserv"=>1,"notify"=>1,"catalog"=>1,"exec"=>1,"user"=>1,"route"=>1,"remote"=>1); if(!checkdomainaccess($value) && $domainobjects[$object]==1 && $_SESSION['ACCOUNT']=="DOMAINADMIN") $value = $_SESSION['DOMAIN']; //Initialize datagrid objects - multigrids & dialogs processdatagrid($object,$value,$gObj,$skindata); if (@$editform==1) { if (processformaction($type, $object, $value, $error,$message)){ if (!$noreload) { if (@!$subgrid) $subgrid=0; $closingjs =''; } } else $editform = false; @$result.= $closingjs; $body = processform($type, $object, $value); } if (@!$editform) // Process form $body = processform($type, $object, $value); // Fill template data @$title = getobjecttitle($object, $label, $value); //Content Filters values if ($value=="contentfilters" || $value == 'rules'){ $skindata['cf'] = 1; $skindata['index'] = $_REQUEST['index']; $skindata['index2'] = $_REQUEST['index2']; $skindata['ctype'] = $_REQUEST['ctype']; } if (@$_REQUEST['gridaction']=="cf_up" || @$_REQUEST['gridaction']=="cf_down"){ $skindata['setcfitem']="1"; } //Selected Content Filter item if (isset($selected))$skindata['selected']=$selected; if (!$title) $title = $alang["TConfigForm_TitleLabel"]; $skindata['title'] = $title; @$skindata['meta'] = $meta; $skindata['body'] = $body; $skindata['cfileid'] = $cfileid; $skindata['fileid'] = $fileid; $skindata['path'] = $skin_dir; $skindata['limit'] = $_REQUEST['dgl1']?$_REQUEST['dgl1']:20; @$skindata['type'] = $type; @$skindata['value'] = getstrvalue($value); $skindata['object'] = $object; $skindata['charset'] = $encoding; $skindata['ok'] = $alang["TConnectForm_OKButton"]; $skindata['apply'] = $alang["TConfigForm_ApplyButton"]; $skindata['cancel'] = $alang["TRegisterForm_CancelButton"]; $skindata['domainadmin']['visible'] = $_SESSION["ACCOUNT"] == 'DOMAINADMIN'; $skindata['admin']['visible'] = $_SESSION["ACCOUNT"] == 'ADMIN'; // @$skindata['mlist_domain'] = $mlist_domain; $skindata['resize_available'] = $resize_available; if (@$error) $skindata['error'] = $error; if (@$message) $skindata['message'] = $message; // Run template echo template( $skin_dir . 'edit.tpl', $skindata); if (@$result) echo $result; ?>