File Manager

Current Path : /webspace/www.babilon.be/html/modules/AkismetCheck/
Upload File :
Current File : //webspace/www.babilon.be/html/modules/AkismetCheck/action.defaultadmin.php

<?php

if( !isset($gCms) ) exit;
if (!$this->VisibleToAdminUser()) exit;
if (isset($params["submit"])) {
  if (isset($params["returnwhat"])) $this->SetPreference("returnwhat",$params["returnwhat"]);
  if (isset($params["akismetkey"])) $this->SetPreference("akismetkey",$params["akismetkey"]);
  if (isset($params["reporturl"])) $this->SetPreference("reporturl",$params["reporturl"]);
  if (isset($params["returnonerror"])) $this->SetPreference("returnonerror",$params["returnonerror"]);
  echo $this->ShowMessage($this->Lang("settingssaved"));
}

echo $this->StartTabHeaders();
echo $this->SetTabHeader("settings",$this->Lang("settings"));
echo $this->EndTabHeaders();
echo $this->StartTabContent();
echo $this->StartTab("settings");
  $this->smarty->assign('formstart',$this->CreateFormStart($id,"defaultadmin",$returnid));
  $this->smarty->assign('formend',$this->CreateFormEnd());

  $returns=array($this->Lang("checkaskimet")=>"akismet",$this->Lang("alwaysspam")=>"spam",$this->lang("alwaysgood")=>"notspam");
  $this->smarty->assign('returntext', $this->Lang("returnwhat"));
  $this->smarty->assign('returnhelp', $this->Lang("returnhelp"));
  $this->smarty->assign('returninput', $this->CreateInputDropdown($id,"returnwhat",$returns,"",$this->GetPreference("returnwhat",'akismet')));

  $returns=array($this->Lang("spam")=>"spam",$this->Lang("notspam")=>"notspam");
  $this->smarty->assign('returnonerrortext', $this->Lang("returnonerror"));
  $this->smarty->assign('returnonerrorinput', $this->CreateInputRadiogroup($id,"returnonerror",$returns,$this->GetPreference("returnonerror",'notspam')));
  

  $this->smarty->assign('akismetkeytext', $this->Lang("akismetkey"));
  $this->smarty->assign('akismetkeyhelp', $this->Lang("akismetkeyhelp"));
  $this->smarty->assign('akismetkeyinput', $this->CreateInputText($id,"akismetkey",$this->GetPreference("akismetkey",'')));

  $this->smarty->assign('reporturltext', $this->Lang("reporturltext"));
  $defaulturl=$this->config["root_url"];
  $this->smarty->assign('reporturlinput', $this->CreateInputText($id,"reporturl",$this->GetPreference("reporturl",$defaulturl),40,80));

  $this->smarty->assign('submit', $this->CreateInputSubmit($id,"submit",$this->Lang("savesettings")));//"Gem indstillinger"));

  $this->smarty->assign('lateststatustext', $this->Lang("lateststatustext"));
  $this->smarty->assign('lateststatus', $this->GetPreference("lateststatus"));

  echo $this->ProcessTemplate('settings.tpl');
echo $this->EndTab();


echo $this->EndTabContent();
?>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com