# HG changeset patch # User Matti Hamalainen # Date 1382444289 -10800 # Node ID 5837b9333964a321b78a7cc86a3a07675c913589 # Parent 7d9e8c82e744bef971d4c7ea9376cd204df2666f Add new "about" page, and setting for default page. diff -r 7d9e8c82e744 -r 5837b9333964 about.inc.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/about.inc.php Tue Oct 22 15:18:09 2013 +0300 @@ -0,0 +1,12 @@ +More news ...\n"; +} +?> diff -r 7d9e8c82e744 -r 5837b9333964 admajax.php --- a/admajax.php Tue Oct 22 14:40:42 2013 +0300 +++ b/admajax.php Tue Oct 22 15:18:09 2013 +0300 @@ -14,7 +14,7 @@ stSessionEnd(SESS_ADMIN); - header("Location: news"); + header("Location: ".stGetSetting("defaultPage")); exit; } diff -r 7d9e8c82e744 -r 5837b9333964 createdb.php --- a/createdb.php Tue Oct 22 14:40:42 2013 +0300 +++ b/createdb.php Tue Oct 22 15:18:09 2013 +0300 @@ -30,6 +30,9 @@ "requireEMail" => array(VT_BOOL, false, "Require e-mail address in registrations"), + "showNews" => array(VT_BOOL, true, "Enable News link on main menu"), + "showNewsOnAbout" => array(VT_BOOL, true, "Show latest news item on About page"), + "registerInfoText" => array(VT_TEXT, "

Only your handle and the answer to the botcheck are strictly required. If you plan on joining the IRC channel @@ -108,7 +111,10 @@ ", "Site header text"), - "newsDescription" => array(VT_TEXT, " + "newsHeader" => array(VT_TEXT, "", "News page header text"), + + + "aboutDescription" => array(VT_TEXT, "

\"FAP\"

@@ -119,7 +125,7 @@

", - "News page header text"), + "About page text"), "entrySubmitInfo" => array(VT_TEXT, "Rules for entry submission ... ", "Entry submission information blurb"), diff -r 7d9e8c82e744 -r 5837b9333964 index.php --- a/index.php Tue Oct 22 14:40:42 2013 +0300 +++ b/index.php Tue Oct 22 15:18:09 2013 +0300 @@ -42,7 +42,11 @@