Added extension: vanilla-voting-0.2beta-0.2beta.zip
[vanilla-miry.git] / termsofservice.php
blobf521615683ce3ee99f0160dcd9c2857077052639
1 <?php
2 /*
3 * Copyright 2003 Mark O'Sullivan
4 * This file is part of Vanilla.
5 * Vanilla is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
6 * Vanilla is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
7 * You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
8 * The latest source code for Vanilla is available at www.lussumo.com
9 * Contact Mark O'Sullivan at mark [at] lussumo [dot] com
11 * Description: Terms of use for the vanilla forum - should be customized by Vanilla user
13 include('appg/settings.php');
14 include('conf/settings.php');
15 // Create a faux-context (don't need all that extra overhead for this simple page - just the dictionary)
17 class FauxContext {
18 var $Dictionary;
20 // Constructor
21 function FauxContext() {
22 $this->Dictionary = array();
25 function GetDefinition($Code) {
26 if (array_key_exists($Code, $this->Dictionary)) {
27 return $this->Dictionary[$Code];
28 } else {
29 return $Code;
33 $Context = new FauxContext();
35 header ('content-type: text/html; charset='.$Configuration['CHARSET']);
37 // DEFINE THE LANGUAGE DICTIONARY
38 include($Configuration['LANGUAGES_PATH'].$Configuration['LANGUAGE'].'/definitions.php');
39 include($Configuration['APPLICATION_PATH'].'conf/language.php');
41 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
42 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $Context->GetDefinition('XMLLang'); ?>">
43 <head>
44 <title><?php echo $Context->GetDefinition('TermsOfService'); ?></title>
45 <style type="text/css">
46 body {
47 background: #ffffff;
48 margin: 10px;
49 padding-bottom: 10px;
51 body, div, h1, h2, p {
52 font-family: "Trebuchet MS", tahoma, arial, verdana;
53 color: #000;
54 line-height: 160%;
56 h1 {
57 font-size: 22px;
59 h2 {
60 color: #c00;
61 font-size: 14px;
62 margin-bottom: 20px;
65 strong {
66 color: #c00;
67 font-weight: normal;
69 p {
70 font-size: 12px;
71 padding: 0px;
72 margin-left: 0px;
73 margin-right: 0px;
74 margin-top: 0px;
75 margin-bottom: 10px;
76 font-size: 12px;
77 color: #333;
79 a, a:link, a:visited {
80 color: #36f;
81 background: #ffc;
82 text-decoration: none;
84 a:hover {
85 color: #3300FF;
86 background: #ffa;
87 text-decoration: none;
89 </style>
90 </head>
91 <body>
92 <?php echo $Context->GetDefinition('TermsOfServiceBody'); ?>
93 </body>
94 </html>