view mconfig.inc.php.example @ 536:380cd0151890

Update example configuration.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 13 Dec 2013 18:26:03 +0200
parents 3640f2311e1c
children dc37dab2a6d7
line wrap: on
line source

<?
//
// Site configuration, important settings that MUST be
// reviewed and set correctly before deployment.
//
$siteSettings = array(

  // Admin interface password
//  "admPassword"     => "xxx",

  // SQL database PHP data source name, etc. Refer to
  // http://www.php.net/manual/en/pdo.construct.php
  "sqlDB"           => "sqlite:fap.sqlite3",
//  "sqlUsername"     => "",
//  "sqlUsername"     => "",

  // Debug information in error log, also enables
  // using GET requests for certain data that normally
  // can only be used via POST. WARNING! Do NOT enable
  // for production databases without a good reason.
  "debug"           => false,

  // Default page
  "defaultPage"     => "about", // Default page

  // Vote key length in characters
  "userKeyLength"   => 8,

  // Voting settings
  "voteMin"         => -1,
  "voteMax"         => 2,
  
  "voteKeyMode"     => -1, // See msite.inc.php for VOTE_*

  "userTimeout"     => 120,
  "admTimeout"      => 15,
);

date_default_timezone_set("Europe/Helsinki");

$securePages = array(
  "/fap2013/admin" => true,
  "/fap2013/register" => true,
  "/fap2013/vote" => false,
);


$pageTitle = "Finnish Amiga Party 2013";
$pageCharset = "utf-8";
$pageCSS = array(
  "main.css" => "",
  "desktop.css" => "only screen and (min-width: 801px)",
  "mobile.css" => "only screen and (max-width: 799px), only screen and (max-device-width: 799px)"
);

?>