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)
21 function FauxContext() {
22 $this->Dictionary
= array();
25 function GetDefinition($Code) {
26 if (array_key_exists($Code, $this->Dictionary
)) {
27 return $this->Dictionary
[$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'); ?>">
44 <title
><?php
echo $Context->GetDefinition('TermsOfService'); ?
></title
>
45 <style type
="text/css">
51 body
, div
, h1
, h2
, p
{
52 font
-family
: "Trebuchet MS", tahoma
, arial
, verdana
;
79 a
, a
:link
, a
:visited
{
82 text
-decoration
: none
;
87 text
-decoration
: none
;
92 <?php
echo $Context->GetDefinition('TermsOfServiceBody'); ?
>