]> git.sesse.net Git - ccbs/commitdiff
Multiple changes to make it possible to run www.positivegaming.com off the same code...
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 17 Jul 2005 15:19:04 +0000 (15:19 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 17 Jul 2005 15:19:04 +0000 (15:19 +0000)
config.pm
html/ccbs-pg.css
html/ccbs.pm
html/templates/main-pg.tmpl [new file with mode: 0644]

index cfb12ba43529d96b2b990e8495f301b374bc5c23..8c16db80ac3e8dd88f2cc2e2c4357a978e1d8975 100644 (file)
--- 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";
index 2c4abdabad5cfe206fbb266146a6d09513dbdfc0..c9e9c7de5cb5cf35f90eb5ebfc5fc120b743ff31 100644 (file)
@@ -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;
index cd71ce8aeb6f68b3ee318ee5464b03a436b79f1a..9d5c44fd337008ea05f4329fcabf77b54a8a3bb1 100755 (executable)
@@ -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 (file)
index 0000000..90004db
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+  "http://www.w3.org/TR/xhtml11/DTD/xhtml11-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="no">
+  <head>
+    <title>[% title %] - Positive Gaming</title>
+    <link rel="stylesheet" href="ccbs-pg.css" type="text/css" />
+  </head>
+  <body>
+    <p><a href="http://www.positivegaming.com"><img src="http://www.positivegaming.com/multiplayer/img/logo.gif" width="423" height="95" style="border: 0px;" alt="Positive Gaming" /></a></p>
+    <p><img src="http://www.positivegaming.com/multiplayer/img/tab_bar.gif" class="tabbar" alt="===" /></p>
+
+    <div style="margin: 0 15px 0 15px;">
+      <h1>
+        <img src="http://www.positivegaming.com/multiplayer/img/box_top_main_left.gif" class="box_top_main_left" alt="" />
+        <img src="http://www.positivegaming.com/multiplayer/img/box_top_main_right.gif" class="box_top_main_right" alt="" />
+        [% title %]
+      </h1>
+      <div class="content_main">
+[% IF page != "index.tmpl" %]
+         <p><a href="index.pl">Back to main menu</a></p>
+[% END %]
+
+         [% INCLUDE $page %]
+      </div>
+    </div>
+
+    <p><img src="http://www.positivegaming.com/multiplayer/img/tab_bar.gif" class="tabbar" alt="===" /></p>
+
+    <p style="float: right; margin-top: 0em; margin-right: 10px;"><a href="http://www.positivegaming.com/"><img src="http://www.positivegaming.com/multiplayer/img/dancepad_small.gif" alt="Back to front page" /></a></p>
+
+    <div style="text-align: center;">
+      <p style="font-size: 11px;">
+        <a href="http://www.positivegaming.com/company/index.php?id=contact">Contact Us</a>
+      </p>
+      <p>Copyright &copy; 2005 Positive Gaming AS. All rights reserved.</p>
+    </div>
+  </body>
+</html>
+<!-- Data acquisition and processing took [% timetogenerate %] seconds. -->