$ cvs diff -ua admtemplates.php
Index: admtemplates.php
===================================================================
RCS file: /forum21/install/www_root/adm/admtemplates.php,v
retrieving revision 1.1
diff -u -a -r1.1 admtemplates.php
--- admtemplates.php 7 Sep 2009 15:49:52 -0000 1.1
+++ admtemplates.php 14 Sep 2009 19:03:53 -0000
@@ -14,13 +14,13 @@
fud_use('compiler.inc', true);
fud_use('theme.inc', true);
- require($WWW_ROOT_DISK . 'adm/admpanel.php');
-
if (isset($_POST['tname'], $_POST['tlang'], $_POST['btn_edit'])) {
header('Location: tmpllist.php?tname='.$_POST['tname'].'&tlang='.$_POST['tlang'].'&'.__adm_rsidl);
exit;
}
+ require($WWW_ROOT_DISK . 'adm/admpanel.php');
+
/* Limit theme names to sane characters */
if (isset($_POST['newname'], $_POST['btn_create'])) {
$_POST['newname'] = preg_replace('![^A-Za-z0-9_]!', '_', trim($_POST['newname']));