# 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";
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;
--- /dev/null
+<?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 © 2005 Positive Gaming AS. All rights reserved.</p>
+ </div>
+ </body>
+</html>
+<!-- Data acquisition and processing took [% timetogenerate %] seconds. -->