summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_edit.php
diff options
context:
space:
mode:
authorErik Kristensen <ekristen@pfsense.org>2005-07-17 00:01:09 +0000
committerErik Kristensen <ekristen@pfsense.org>2005-07-17 00:01:09 +0000
commitafe4a7d36f5f3189203850d83a538b27837a467f (patch)
treeccd600ce6e6c1644c5c8ca5b2a9d5365907d81d8 /usr/local/www/pkg_edit.php
parentc2e4efb50daba005bead13c0276e800eeac673c4 (diff)
downloadpfsense-afe4a7d36f5f3189203850d83a538b27837a467f.zip
pfsense-afe4a7d36f5f3189203850d83a538b27837a467f.tar.gz
It no longer breaks when the output of a package is displayed.
Diffstat (limited to 'usr/local/www/pkg_edit.php')
-rwxr-xr-xusr/local/www/pkg_edit.php21
1 files changed, 18 insertions, 3 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index f5c34a6..5cb171d 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -92,12 +92,27 @@ if ($_POST) {
if($pkg['custom_add_php_command']) {
if($pkg['donotsave'] <> "" or $pkg['preoutput'] <> "") {
?>
+
+<?
+/*
+ * if user has selected a custom template, use it.
+ * otherwise default to pfsense tempalte
+ */
+if($config['template'] <> "")
+ $g['template'] = $config['template'];
+else
+ $g['template'] = "pfsense";
+
+?>
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
-<title><?=$pgtitle;?></title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<link href="gui.css" rel="stylesheet" type="text/css">
+ <title><?=$pgtitle;?></title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <link rel="stylesheet" href="/templates/<?php echo $g['template']; ?>/all.css" media="all" />
+ <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print" />
+ <script type="text/javascript" src="/niftyjsCode.js"></script>
</head>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
OpenPOWER on IntegriCloud