File Manager

Current Path : /webspace/www.babilon.be/html/modules/News/
Upload File :
Current File : //webspace/www.babilon.be/html/modules/News/action.deletetemplate.php

<?php
if( !isset($gCms) ) exit;
if( ! $this->CheckPermission('Modify Templates') )
  {
    // todo, permissions message here
    return;
  }

if( !(isset($params['template'])) )
  {
    $this->_DisplayErrorPage( $id, $params, $returnid, 
			      $this->Lang('error_insufficientparams'));
    return;
  }

$template = cms_html_entity_decode($params['template']);
$this->DeleteTemplate($template);
$this->myRedirectToTab($id, 'uploadform_template');

?>

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