From 2eafc1f9109e3feea83e25667651c93bf2e24542 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 17 Jul 2005 15:19:04 +0000 Subject: [PATCH 1/1] Multiple changes to make it possible to run www.positivegaming.com off the same code base as --main. --- config.pm | 3 +++ html/ccbs-pg.css | 2 +- html/ccbs.pm | 2 +- html/templates/main-pg.tmpl | 40 +++++++++++++++++++++++++++++++++++++ 4 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 html/templates/main-pg.tmpl diff --git a/config.pm b/config.pm index cfb12ba..8c16db8 100644 --- a/config.pm +++ b/config.pm @@ -12,6 +12,9 @@ our $dbdebug = 0; # Set this flag to disable any admin tasks -- it's quite crude, but hey :-) our $noadmin = 0; +# The main template, giving the overall look-and-feel +our $main_template = 'main.tmpl'; + # The database connection details our $dbname = "ccbs"; our $dbhost = "www.positivegaming.com"; diff --git a/html/ccbs-pg.css b/html/ccbs-pg.css index 2c4abda..c9e9c7d 100644 --- a/html/ccbs-pg.css +++ b/html/ccbs-pg.css @@ -47,7 +47,7 @@ h1 { color: #164D85; width: 100%; line-height: 22px; - background-image: url(/multiplayer/img/box_top_main_back.gif); + background-image: url(http://www.positivegaming.com/multiplayer/img/box_top_main_back.gif); font-weight: bold; font-size: 14px; margin-bottom: 0em; diff --git a/html/ccbs.pm b/html/ccbs.pm index cd71ce8..9d5c44f 100755 --- a/html/ccbs.pm +++ b/html/ccbs.pm @@ -92,7 +92,7 @@ sub process_template { my $template = Template->new($config); my $output = ''; - $template->process('main.tmpl', $vars, \$output) + $template->process($ccbs::config::main_template, $vars, \$output) or die $template->error(); print $output; diff --git a/html/templates/main-pg.tmpl b/html/templates/main-pg.tmpl new file mode 100644 index 0000000..90004db --- /dev/null +++ b/html/templates/main-pg.tmpl @@ -0,0 +1,40 @@ + + + + + [% title %] - Positive Gaming + + + +

Positive Gaming

+

===

+ +
+

+ + + [% title %] +

+
+[% IF page != "index.tmpl" %] +

Back to main menu

+[% END %] + + [% INCLUDE $page %] +
+
+ +

===

+ +

Back to front page

+ +
+

+ Contact Us +

+

Copyright © 2005 Positive Gaming AS. All rights reserved.

+
+ + + -- 2.39.2