| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * This file contains configuration settings specific for the infoarena |
|---|
| 4 | * WEBSITE. |
|---|
| 5 | * |
|---|
| 6 | * Please note that the "big" configuration file (residing one directory up) |
|---|
| 7 | * is meant to keep settings that are common accross all infoarena |
|---|
| 8 | * applications. |
|---|
| 9 | * |
|---|
| 10 | * This file has some decent defaults. |
|---|
| 11 | */ |
|---|
| 12 | |
|---|
| 13 | // client-side HTTP cache |
|---|
| 14 | define("IA_CLIENT_CACHE_ENABLE", true); |
|---|
| 15 | define("IA_CLIENT_CACHE_AGE", 604800); |
|---|
| 16 | |
|---|
| 17 | // maximum attachment size for wiki pages |
|---|
| 18 | define("IA_ATTACH_MAXSIZE", 64*1024*1024); |
|---|
| 19 | |
|---|
| 20 | // maximum jobs to reeval |
|---|
| 21 | define("IA_REEVAL_MAXJOBS", 512); |
|---|
| 22 | |
|---|
| 23 | // maximum file size for user-submitted files - solutions to tasks |
|---|
| 24 | define("IA_SUBMISSION_MAXSIZE", 256*1024); |
|---|
| 25 | |
|---|
| 26 | // maximum avatar file-size |
|---|
| 27 | define("IA_AVATAR_MAXSIZE", 400*1024); |
|---|
| 28 | |
|---|
| 29 | // Number of items in a RSS feed |
|---|
| 30 | define('IA_MAX_FEED_ITEMS', 15); |
|---|
| 31 | date_default_timezone_set('GMT'); |
|---|
| 32 | |
|---|
| 33 | // Constrains and default value for pager display_rows. |
|---|
| 34 | define('IA_PAGER_DEFAULT_DISPLAY_ENTRIES', 50); |
|---|
| 35 | define('IA_PAGER_MAX_DISPLAY_ENTRIES', 250); |
|---|
| 36 | define('IA_PAGER_MIN_DISPLAY_ENTRIES', 3); |
|---|
| 37 | $IA_PAGER_DISPLAY_ENTRIES_OPTIONS = array(25, 50, 100, 250); |
|---|
| 38 | |
|---|
| 39 | // User date formatting. |
|---|
| 40 | // Everything in the database is UTC. |
|---|
| 41 | // Date formatting for the user is done in www/format/format.php |
|---|
| 42 | define('IA_DATE_DEFAULT_TIMEZONE', 'Europe/Bucharest'); |
|---|
| 43 | define('IA_DATE_DEFAULT_FORMAT', '%e %B %Y %H:%M:%S'); |
|---|
| 44 | |
|---|
| 45 | // mail sender |
|---|
| 46 | define("IA_MAIL_SENDER_NO_REPLY", 'infoarena <no-reply@infoarena.ro>'); |
|---|
| 47 | |
|---|
| 48 | // Maximum number of recursive includes in the wiki. |
|---|
| 49 | define('IA_MAX_RECURSIVE_INCLUDES', 5); |
|---|
| 50 | |
|---|
| 51 | // Cache directory |
|---|
| 52 | define('IA_CACHE_ENABLE', true); |
|---|
| 53 | define('IA_IMAGE_CACHE_ENABLE', true); |
|---|
| 54 | define('IA_TEXTILE_CACHE_ENABLE', true); |
|---|
| 55 | // FIXME: proper cleaning mechanism. |
|---|
| 56 | define('IA_CACHE_SIZE', 256 * 1024 * 1024); |
|---|
| 57 | |
|---|
| 58 | // Image resampling |
|---|
| 59 | // - constraints for image resampling |
|---|
| 60 | define("IA_IMAGE_RESIZE_MAX_WIDTH", 800); |
|---|
| 61 | define("IA_IMAGE_RESIZE_MAX_HEIGHT", 800); |
|---|
| 62 | |
|---|
| 63 | // Textblock name for sidebar ad |
|---|
| 64 | define("IA_SIDEBAR_PAGE", "sidebar-ad"); |
|---|
| 65 | |
|---|
| 66 | // Textblock name for blog sidebar |
|---|
| 67 | define("IA_BLOG_SIDEBAR", "blog-sidebar"); |
|---|
| 68 | |
|---|
| 69 | // LaTeX support |
|---|
| 70 | define("IA_LATEX_ENABLE", !IA_DEVELOPMENT_MODE); |
|---|
| 71 | |
|---|
| 72 | // Token constants |
|---|
| 73 | define('IA_TOKENS_MAX', 60); |
|---|
| 74 | define('IA_TOKENS_REGISTER', 61); |
|---|
| 75 | define('IA_TOKENS_CAPTCHA', 5); |
|---|
| 76 | define('IA_TOKENS_LOGIN', 20); |
|---|
| 77 | define('IA_TOKENS_REGEN', 300); |
|---|
| 78 | // List of safe MIME types |
|---|
| 79 | // FIXME: add more? |
|---|
| 80 | $IA_SAFE_MIME_TYPES = array('image/jpeg', 'image/png', 'image/gif', 'image/bmp', 'image/x-ms-bmp'); |
|---|
| 81 | |
|---|
| 82 | ?> |
|---|