view mconfig.inc.php.example @ 773:133197d0e48a

Adjust entry editing look.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 20 Nov 2014 14:56:44 +0200
parents 6cd2ae354e0a
children 546058da8f07
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
  // Has been tested with SQLite3 and PostgreSQL backends.
  "sqlDB"           => "sqlite:fap.sqlite3",
//  "sqlDB"           => "pgsql:dbname=fap2014",
//  "sqlUsername"     => "",  // Leave unset if not needed
//  "sqlPassword"     => "",  // --""--
//  "sqlOptions"      => array(), // See PDO documentation

  // Log debug information in error_log, also enables use of GET
  // requests for certain data that normally can only be used via
  // POST (for easier manual testing). WARNING! Do NOT enable
  // for production sites 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, // In minutes
  "admTimeout"      => 15,

  // Entry file paths and URL prefixes
  "entryPath" => "/home/ccr/files/", // should be absolute path
  "previewPath" => "/home/ccr/fapdev/files/", // should be absolute path
  "previewURL" => "http://localhost:8888/files/", // can be relative (should point to same dir as previewPath)
  "thumbnailSubDir" => "tn/", // relative subdir to previewPath and previewURL
  
  "previewImageSize" => array(640, 480),
  "previewThumbSize" => array(64, 48),
);

date_default_timezone_set("Europe/Helsinki");

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


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

?>