From: Steinar H. Gunderson Date: Sun, 17 Jul 2005 15:19:04 +0000 (+0000) Subject: Multiple changes to make it possible to run www.positivegaming.com off the same code... X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=2eafc1f9109e3feea83e25667651c93bf2e24542 Multiple changes to make it possible to run www.positivegaming.com off the same code base as --main. --- 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.

+
+ + +