Mercurial > hg > fapweb
view mconfig.inc.php.example @ 1096:bbc0a3d0b51e
Major renaming / refactor of site messages. Some that were previously
modifiable from admin interface are now "hardcoded" in the configuration
file. Having these settings made modifiable from there made no sense
and just took space in the UI.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 27 Jan 2017 22:15:06 +0200 |
parents | faa835271dfd |
children | ea2bc0667482 |
line wrap: on
line source
<?php // // Site configuration, important settings that MUST be // reviewed and set correctly before deployment. // $siteSettings = array( // Admin interface password // "admPassword" => "xxx", "admPassword" => false, // 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 // User key/votekey settings "userKeyMode" => 1, // See msite.inc.php for VOTE_* "userKeyLength" => 6, // Vote key length in characters //"userKeyCase" => true, // If false, keys are case-INsensitive //"userKeyChars" => "abdefghjkmnpqrstwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789", // Characters to be used for key generation // Voting settings "voteMin" => -1, "voteMax" => 2, "admTimeout" => 15, "admTimeout" => 60, // Entry file paths and URL prefixes "entryMaxSize" => 16 * 1024 * 1024, // max file size "entryPath" => "/home/ccr/files/", // should be absolute path "entryPathPerms" => 0755, "entryFilePerms" => 0644, "previewPath" => "/home/ccr/fapdev/previews/", // should be absolute path "previewURL" => "http://localhost:8888/previews/", // can be relative (should point to same dir as previewPath) "previewMaxSize" => 16 * 1024 * 1024, // max file size "thumbnailSubDir" => "tn/", // relative subdir to previewPath and previewURL "previewPathPerms" => 0711, "previewFilePerms" => 0644, // Generated sample files settings // Used for openmpt123 and avconv "sampleFreq" => 44100, // in Hz "sampleChannels" => 1, // 1 = mono, 2 = stereo "sampleDuration" => 30, // in seconds //"avconv_exe" => "ffmpeg", // avconv/ffmpeg binary executable //"gfxconv_exe" => "gfxconv", //"openmpg123_exe" => "openmpt123", "openmpt123_args" => "--filter 1", // Extra commandline arguments for openmpt123 // Samples to be generated, and their avconv settings "sampleTypes" => array( "OggVorbis" => array("-f" => "ogg", "-c:a" => "libvorbis", "-q:a" => 5), "MP3" => array("-f" => "mp3", "-c:a" => "libmp3lame", "-b:a" => "96k"), ), // Preview image files settings "previewNoImage" => "img/nopreview_tn.png", "previewImageType" => "PNG", // Generally PNG or JPEG "previewImageQuality" => 9, // compression (PNG) or quality (JPEG) "previewImageSize" => array(640, 480), // resolution W x H "previewThumbType" => "PNG", "previewThumbQuality" => 9, // compression (PNG) or quality (JPEG) "previewThumbSize" => array(64, 48), // // Various message texts // "siteMenuHeader" => "<a href=\"about\"><img id=\"menuLogo\" src=\"img/fapsm2.png\" alt=\"FAP 2017\" /></a>", "siteMenuFooter" => "", "siteInfoText" => " <div class=\"date\"> <span>??.-??.??.2017</span> <span>Helsinki, Finland</span> <span>@ old location</span> <span class=\"notice\">Entry <b>20 EUR</b> + prod</span> <span><a href=\"irc://#fap2017@ircnet\" style=\"color:#0f0\">#fap2017 @ IRCNet</a></span> </div> ", "siteExtraHTML" => " <div id=\"extra\"><div> <!-- <a href=\"http://scenesat.com/\"><div class=\"scenesat\"></div></a> --> <a href=\"http://demozoo.org/\"><div class=\"demozoo\"></div></a> </div></div> ", "msgAboutDescription" => " <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> ", "msgNewsHeader" => " <h1>The FAPper's news outlet</h1> ", "msgVoteFinished" => " <h1>Yay, you have voted!</h1> <p>Now go FAP some more! And make a demo about it.</p> <p>Or perhaps <a href=\"vote\">vote again!</a></p> ", "msgVotingDisabled" => " <h1>Sorry, voting disabled!</h1> <p>Voting functionality not available at this time.</p> ", "msgUserAuthError" => " <h1>Not logged in</h1> <p> You are not authenticated currently. <a href=\"vote\">Try to login again.</a> </p> ", "msgRegisterDisabled" => " <h1>Sorry, registration disabled!</h1> <p> Registration to the event is not enabled at this time. </p> ", "msgRegisterLimitExceeded" => " <h1>Sorry, registration disabled!</h1> <p> Registration to the event is not available at this time due to number of attendees limit having been reached. <b>:(</b> </p> ", "msgVisitorsPageRegLink" => " <div class=\"reglink\"> To register, use <a href=\"register\">this form</a>. </div> ", "msgRegisterPageBlurb" => " <h1>Registration</h1> ", "msgRegisterInfoText" => " Only your <b>handle</b> and the answer to the botcheck are strictly required. If you plan on joining the IRC channel (<a href=\"irc://#fap2017@ircnet\">#fap2017 @ IRCNet</a>) or staying up to date by other means, <b>e-mail</b> is not required either. </p> ", "msgRegisterPostText" => " <h1>Registration successful</h1> <p>Now go make a demo about it!</p> ", "msgRegisterPostNoEmail" => " <h2>By the way ...</h2> <p>As you did not specify an e-mail contact address, you'll have to get updates and information about the location (if you don't already know it) by some other means (IRC, for example.) </p> ", ); date_default_timezone_set("Europe/Helsinki"); $securePages = array( "register" => true, "vote" => true, ); $pageTitle = "Finnish Amiga Party 2017"; $pageCharset = "utf-8"; $pageCSS = array( "css/main.css" => FALSE, "css/desktop.css" => "only screen and (min-width: 800px)", "css/mobile.css" => "only screen and (max-width: 799px), only screen and (max-device-width: 799px)" ); ?>