HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/web/itpartnership.net (cms)/modules/Search/action.updatesearchtemplate.php
<?php
if (!isset($gCms)) exit;

if( !$this->CheckPermission( 'Modify Templates' ) )
{
  return;
}
if( isset( $params['defaultsbutton'] ) )
{
   // reset to system defaults
   $this->SetTemplate('displaysearch',$this->GetSearchHtmlTemplate());
}
else
{
  $this->SetTemplate('displaysearch', $params['templatecontent']);
}
$params = array('tab_message'=> 'searchtemplateupdated', 'active_tab' => 'search_template');
$this->Redirect($id, 'defaultadmin', '', $params);
?>