From 2a58cdf4641ee3d8343649333c3edc9b9045341a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 22 Oct 2005 22:41:10 +0000 Subject: [PATCH] Removed specific references to BugStrike --- printer.php | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) diff --git a/printer.php b/printer.php index 5d1e69f..7c7f468 100644 --- a/printer.php +++ b/printer.php @@ -46,6 +46,12 @@ class Printer */ var $registry = null; + /** + * Realm that we are operating in (displayed in the ) + * @var string + */ + var $realm = '[UNDEFINED REALM]'; + /** * Constructor */ @@ -129,7 +135,7 @@ EOD; return; } - $title = sprintf($this->registry->modules['localize']->string('BugStrike - Administration - %1$s'), $actiontitle); + $title = sprintf($this->registry->modules['localize']->string('%1$s - %2$s - %3$s'), $this->registry->appname, $this->realm, $actiontitle); echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>"; @@ -138,32 +144,9 @@ EOD; echo "\n\t<link rel=\"stylesheet\" href=\"$dotpath/admin.css\" />" . (($extra) ? "\n$extra" : ''); echo "\n</head>\n<body style=\"margin: {$margin}px;\"" . (($pageclass !== ':default:') ? " class=\"$pageclass\"" : '') . (($onload) ? " onload=\"$onload\"" : '') . ">\n"; - if (!defined('HIDE_SETUP') AND $this->registry->userinfo['adminsession']) + if (!defined('HIDE_SETUP') AND function_exists('_printer_page_start')) { - global $globalnav; - - $location = parse_url($_SERVER['SCRIPT_URL']); - $location['path'] = preg_quote(end(explode('/', $location['path']))); - $location['path'] = ((!$location['path']) ? 'index.php' : $location['path']); - - echo "<div class=\"tcat\" style=\"padding: 5px; border-bottom: 4px outset\">\n"; - echo "\n\t<form action=\"jump.php\" method=\"post\" title=\"navigation\" style=\"display: inline\">"; - echo "\n\t<span style=\"float: right\"><a href=\"../\">" . $this->registry->modules['localize']->string('Tracker Home') . "</a></span>"; - echo "\n\t\t" . $this->registry->modules['localize']->string('Navigation') . ": <select name=\"jumplocation\" onchange=\"this.form.submit()\">"; - foreach ($globalnav AS $grouptitle => $links) - { - echo "\n\t\t<optgroup label=\"$grouptitle\">"; - foreach ($links AS $title => $url) - { - $selected = ((preg_match("#$location[path]$#i", $url)) ? ' selected="selected"' : ''); - echo "\n\t\t\t<option value=\"$url\"$selected>$title</option>"; - } - echo "\n\t\t</optgroup>"; - } - echo "\n\t\t</select>"; - echo "\n\t\t<input type=\"submit\" name=\"go\" value=\" " . $this->registry->modules['localize']->string('Go') . " \" />"; - echo "\n\t</form>"; - echo "\n</div>"; + _printer_page_start(); } echo "<div style=\"margin: {$pagemargin}px;\">\n<!-- / page head -->\n\n"; @@ -219,7 +202,7 @@ EOD; */ function page_end() { - $copyright = "\n<br />\n<p align=\"center\" class=\"copyright\">\n\t<a href=\"http://www.iris-studios.com\" target=\"_blank\">BugStrike " . $this->registry->options['trackerversion'] . ", © 2002 - " . date('Y') . " Iris Studios, Inc.</a>\n</p>"; + $copyright = "\n<br />\n<p align=\"center\" class=\"copyright\">\n\t<a href=\"http://www.iris-studios.com\" target=\"_blank\">" . $this->registry->appname . ' ' . $this->registry->appversion . ", © 2002 - " . date('Y') . " Iris Studios, Inc.</a>\n</p>"; if (!defined('HIDE_SETUP')) { -- 2.43.5