|
From: Benjamin C. <bc...@us...> - 2002-04-13 19:40:31
|
Update of /cvsroot/phpbt/phpbt/admin
In directory usw-pr-cvs1:/tmp/cvs-serv27952/admin
Added Files:
removetemplates.php
Log Message:
Allow the admin to clear out compiled templates. This makes it possible to remove the c_templates dir w/out having root access.
--- NEW FILE: removetemplates.php ---
<?php
// removetemplates.php - Clean out the template directories
// ------------------------------------------------------------------------
// Copyright (c) 2001, 2002 The phpBugTracker Group
// ------------------------------------------------------------------------
// This file is part of phpBugTracker
//
// phpBugTracker is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// phpBugTracker is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with phpBugTracker; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// ------------------------------------------------------------------------
// $Id: removetemplates.php,v 1.1 2002/04/13 19:40:25 bcurtis Exp $
chdir('..');
define('TEMPLATE_PATH', 'admin');
include 'include.php';
$perm->check('Admin');
$t->clear_all_cache();
$t->clear_compiled_tpl();
include 'templates/default/base/removetemplates.html';
?>
|