Mercurial > hg > fapweb
changeset 9:fa9b66f596bb
More work on settings storage.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 06 Dec 2012 13:50:59 +0200 |
parents | 4c5f651aa107 |
children | 11816aad6967 |
files | createdb.php msite.inc.php |
diffstat | 2 files changed, 18 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/createdb.php Thu Dec 06 13:30:46 2012 +0200 +++ b/createdb.php Thu Dec 06 13:50:59 2012 +0200 @@ -23,8 +23,19 @@ "eventDescription" => array(VT_TEXT, ""), "compoDescription" => array(VT_TEXT, ""), - "infoBoxText" => array(VT_TEXT, ""), - "newsDescription" => array(VT_TEXT, ""), + "siteInfoText" => array(VT_TEXT, "<a href=\"news\"><img src=\"img/fapsm.png\" alt=\"Finnish Amiga Party 2012\" class=\"logo\" /></a><div id=\"date\">30.11. - 2.12.2012<br />Helsinki, Finland<br />@ old location<br />Entry 15 EUR + prod</div>"), + "newsDescription" => array(VT_TEXT, " +<div style=\"text-align: center;\"> +<img src=\"img/fap.png\" alt=\"FAP\" /> +<p> +Pure Amiga demoscene party, all traditional Amiga compos and purely Amiga-oriented program. +<br /> +<span class=\"notice\"> +YOU <b>MUST</b> HAVE AT LEAST ONE ENTRY TO COMPETITIONS IF YOU COME TO THE PARTY. +</span> +</p> +</div> + "), ); $sqlTables = array(
--- a/msite.inc.php Thu Dec 06 13:30:46 2012 +0200 +++ b/msite.inc.php Thu Dec 06 13:50:59 2012 +0200 @@ -1,17 +1,20 @@ <? // -// Nothing to touch after this, mostly +// FAPWEB - Demo Party Website System System +// (C) Copyright 2012 Matti 'ccr' Hamalainen <ccr@tnsp.org> // + +// Globals and definitions $errorSet = FALSE; $errorMsg = ""; - define("VT_STR", 1); define("VT_INT", 2); define("VT_BOOL", 3); define("VT_TEXT", 4); + function stError($msg) { global $errorSet, $errorMsg;