PageRenderTime 21ms CodeModel.GetById 7ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/!config.ini.dist

http://github.com/snytkine/LampCMS
Unknown | 551 lines | 519 code | 32 blank | 0 comment | 0 complexity | 27b8fa6adb2438f03b4fce612c7f9cae MD5 | raw file
  1;
  2; IMPORTANT: 
  3; If a value in the ini file contains any non-alphanumeric characters 
  4; it needs to be enclosed in double-quotes (")
  5;
  6; Only simple values like a number 
  7; or one-word can be entered with no quotes
  8; but it's best to use double-quotes
  9; around all values to avoid potential errors
 10;
 11[DB]
 12Database_name=LAMPCMS
 13Database_host=localhost
 14TCP_Port_number=
 15Database_type=mysql
 16Database_username=
 17Database_password=
 18Persistent = 0
 19
 20[MONGO]
 21server = "mongodb://127.0.0.2:27017"
 22db = "LAMPCMS"
 23; If you already have existing
 24; Mongo Database with existing collections
 25; you may want to set the prefix
 26; all collections used by this program will
 27; be prefixed with this word. 
 28; For example you may set prefix to "Lampcms"
 29; then collection USERS will become LampcmsUSERS
 30; This will take care of possible name collisions with
 31; existing collections
 32prefix = ""
 33
 34[CACHE_MONGO]
 35; good option to use the same db as in "MONGO" section
 36db = "LAMPCMS"
 37collection = "C_Cache"
 38
 39[CONSTANTS]
 40; set to true when debugging to enable
 41; debug log and raise error reporting level
 42DEBUG = true
 43;
 44; Directory where translations files
 45; are going to be stored
 46; You can rename the directory
 47; and change the value here
 48; if you want to prevent the upgrade
 49; process overriding you custom
 50; translation files
 51; Directory still has to be a sub-directory of the root directory
 52; of the project (where this file is located)
 53TRANSLATIONS_DIR = "translations"
 54;
 55; Minimum number of tags question must have
 56; set to 0 to make tags optional
 57;
 58MIN_QUESTION_TAGS = 1
 59;
 60; Maximum number of tags Question can have
 61; This will be enforced when question is submitted
 62; and when question is retagged
 63MAX_QUESTION_TAGS = 5
 64;
 65; Minimun length of question in chars
 66MIN_QUESTION_CHARS = 10
 67;
 68; Minimum required length of question title
 69MIN_TITLE_CHARS = 10
 70;
 71; Minimum number of words required in question
 72MIN_QUESTION_WORDS = 3
 73;
 74; Minimum length of answer in chars
 75MIN_ANSWER_CHARS = 10
 76;
 77; Minimum number of words required for answer
 78MIN_ANSWER_WORDS = 3
 79; maximum commets per item
 80; set to 0 to disable comments feature
 81MAX_COMMENTS = 20
 82; max comments to show per item
 83SHOW_COMMENTS = 5
 84;
 85; Time interval in minutes in which poster can edit
 86; the comment. After this time editing
 87; is no longer allowed
 88; set to 0 to disable edit timeout
 89COMMENT_EDIT_TIME = 5
 90; time to wait between comments
 91; in seconds
 92COMMENTS_FLOOD_TIME = 30
 93;
 94; time to wait between posting
 95; questions and answers in minutes
 96;
 97FLOOD_CHECK_TIME = 2
 98; number of items per page
 99; on search results page
100PER_PAGE_SEARCH = 10
101; number of answers per page
102; on the question page page
103PER_PAGE_ANSWERS = 20
104; number of questions per page
105; on pages like home page or unanswered
106PER_PAGE_QUESTIONS = 20
107; number of questions per page
108; on pages like home page or unanswered
109PER_PAGE_USERS = 15
110; This will be used in some page as title as well as in some emails as 'From' name
111SITE_TITLE = "LampCms Q and A site"
112SITE_NAME ="LampCMS project"
113;Default language
114DEFAULT_LANG = en
115; Default locale
116; Must be a valid locale string!
117; Also a translation file for this locale
118; must exist in translations directory and contain
119; complete catalog of all messages used on this site
120; For example, if you set DEFAULT_LOCALE to 'en_US'
121; then a file messages.en_US.xliff should already
122; exist in /translations/ directory
123; 
124DEFAULT_LOCALE = en_US
125;set timezone of the server.
126;Must be correct name,
127;see names here: http://us2.php.net/manual/en/timezones.php
128SERVER_TIMEZONE = America/Chicago
129;
130;Set this to true if you dont want to use cache
131;or if you think cache is causing problems
132;or if you are developing new feature
133;of if you dont have memcache at all
134;
135SKIP_CACHE = false
136;
137;Leave blank unless
138;you need to set cookie under some
139;global domain.
140;For example if your Q and A site is on
141;qa.oursite.com
142;but you want to be able to access cookie
143;of oursite.com, then you
144;should set this value
145;
146COOKIE_DOMAIN = 
147;
148; system path to temporary directory. Must we writable to php
149; if not sure - leave blank
150; 
151;
152TEMP_DIR = 
153;
154;Some configuration constants
155;Leave blank if you host images, css and js
156;on the same server as this program,
157;otherwise defile the full path to domain + dir
158;where the files reside, without the '/' at the end
159;
160IMAGE_SITE = ""
161CSS_SITE = ""
162JS_SITE = ""
163AVATAR_IMG_SITE = ""
164;size of square avatar in pixels
165AVATAR_SQUARE_SIZE= 40
166;maximum allowed file size of
167; uploaded avatar in bytes.
168; default 1000000 means 1MB
169MAX_AVATAR_UPLOAD_SIZE = 1024000
170;
171;
172; Set the LOG_PER_SCRIPT to true (default)
173; to always reset log fine for
174; each new script
175; Logging is enabled in debugging mode only
176;
177LOG_PER_SCRIPT = true
178; set LOG_FILE_PATH to point to your writable log file to enable logging
179; for example: /usr/local/apache/sites/qa.lampcms.com/logs/php.log
180LOG_FILE_PATH = php.log
181;/usr/local/apache/sites/lampcms.com/logs/cgiphp.log
182LOG_FILE_PATH_CGI = cgiphp.log
183;
184; base url of your main website. Required value! Leading slash not required.
185SITE_URL="http://localhost"
186; system path to root directory (the directory that contains this file)
187LAMPCMS_PATH ="/"
188; system path to directory that is accessable via browser as /w/
189; This is optional value. Leave blank to use default data dir (recommended)
190LAMPCMS_DATA_DIR =
191;
192POSTFIX_PATH = /usr/sbin/sendmail
193;
194; email address of developer. 
195; Developer will be notified of php errors and various bad situations on the site //message@ptd.net
196EMAIL_DEVELOPER = "me@me.me"
197; email address of admin. Required value!
198; Admin will also be notified on important events and errors
199EMAIL_ADMIN = "me@me.me"
200;
201;
202; Emails to new registrations sent from this domain
203; Required value!
204EMAIL_DOMAIN = 
205;
206; SALT is Required value!
207; Make sure to set the value of SALT to a random string of about 40 chars
208; then write it down and store it like gold!
209; and never change it again!
210; if it's lost, you will not be able to authenticate
211; any existing users - users will never be able to login!
212SALT = 'abcdefg';
213;
214; COOKIE_SALT is Required value
215;Enter some random string BEFORE launching your site
216;but DONT EVER CHANGE IT AFTER
217;you launched your site, otherwise users will not be
218;able to auto-login to site using the 'remember me' cookie
219COOKIE_SALT = 'abcde1234512345'
220;
221; Show page render time in footer? 
222; set to true to have "Page generated in .... seconds
223; added to bottom of pages
224SHOW_TIMER = false;
225;
226; disable autocomplete widget
227; in search form and in Title in "Ask" form
228; Autocomplete does send request to server
229; on every key press, and search by title tags
230; is run on server. 
231; This is fast process and does
232; not add much load to server but if you 
233; still don't want it then set this to true 
234; to disable autocomplete
235;
236DISABLE_AUTOCOMPLETE = false
237;
238; When Geo Location has been enabled
239; by running geo_import.php
240; then if this is set to true
241; a country flag will be added
242; to Questions, Answers, Comments
243SHOW_FLAGS = true
244;
245; CATEGORIES SUPPORT
246; leave empty to not use categories at all
247; If you don't need categories
248; and fine with just using tags, then
249; leave this blank
250; or set to 1 to make categories optional
251; or set to 2 to make categories required
252;
253; Important: make sure to actually
254; add some categories 
255; (using /editcategory/ url) first otherwise
256; you may end up requiring user to select category
257; but there will be no drop-down menu and 
258; user will not be able to post a question at all
259CATEGORIES = 
260; SEPARATOR TO BE USED IN BREADCRUMN 
261; OF CATEGORYIES. 
262; LEAVE INSIDE DOUBLE QUOTES TO PRESERVE SPACES
263CATEGORY_SEPARATOR = " > "
264; Maximin nesting level of category
265; to show in detailed template
266; categories deeper that this level
267; will be shown in minimal details template
268; REMEMBER that level starts at 0 not at 1!
269CATEGORY_DETAILED_LEVEL = 2
270;
271; Options of RTE Editor
272[EDITOR]
273;
274; Add "Code editor" tools to RTE Editor
275; This is very useful for programming - related Q&A Sites
276; but totally unnecessary for non-programming sites,
277; so it's disabled by default
278ENABLE_CODE_EDITOR = false;
279;
280; Add "YouTube" button to editor
281; to allow adding youtube videos
282; to Questions and Answers
283ENABLE_YOUTUBE = true;
284
285[CAPTCHA]
286; to disable captcha for any reason
287; set disabled = true
288; When disabled, captcha will
289; not be added to forms
290disabled = false
291; change this to something between 3 and 25
292secretposition = 15
293; Change this to any random string. CHANGE it to something unique!
294secretstring = "Stuff for captcha"
295; maximum captcha errors. After this ip will be blocked for awhile
296maxtry = 5
297
298; GRAVATAR SUPPORT
299; to Disable automatic
300; use of gravatar for new user's avatars
301; remove the every value of just comment
302; our every value in this section by prefixing the line
303; with the semicolon ;
304; DO NOT REMOVE OR COMMENT OUT this section though!
305[GRAVATAR]
306; base url to gravatar site
307; must have trailing slash (its a directory)
308url = http://www.gravatar.com/avatar/
309
310; default size of avatars
311; we will slightly resize this image
312; from between 32 and 50, so 45 is a good size
313; also when we display the 40x40 avatar some
314; browsers that are not able to resize the 
315; background image will just cut-off the excess from
316; bottom and from right, so setting it close to 40 px
317; is good way to avoid having too much cut off the image
318size = 44
319
320; fallback when user does not have actual 
321; image of gravatar. This can be identicon or monsterid
322; Check with gravatar.com documentation for fallback options
323fallback = identicon
324
325; rating  defaults to PG
326rating = PG
327
328
329[LOGIN_ERROR_LOCK]
330;in what number of seconds login errors occured.
331interval = 360
332;how many seconds since latest login error user must wait before allowed to try again
333wait = 300
334;number of login failures. After this many login failures withing interval
335max_errors = 4
336
337
338
339[MY_IP]
340; list values of ip addresses of developers
341; access from these ips will result in extra debugging console for javascript
342; as well as sql debugging data added to the pages
343; values should be added like this (one per line): 192.168.1.1=office
344; here the word office if for your own info, you can add another ip for 
345; your home and add it on another line: 192.168.1.2=home
346; You can add as many as you like
347127.0.0.1=home
348127.0.0.2=home1
349
350[TWITTER]
351; API_KEY is needed for the @anywhere JS library only
352; get api key and secret from here http://dev.twitter.com/apps/new
353; When creating new application on Twitter Website MAKE SURE 
354; to select READ AND WRITE access (not just READ, else it would not work)
355;
356API_KEY = 
357; twitter consumer key and consumer secret for oauth
358TWITTER_OAUTH_KEY = 
359TWITTER_OAUTH_SECRET = 
360; account name that we use on twitter. We may tweet from it
361; we may also add new user to follow this account when they
362; join
363TWITTER_USERNAME = 
364
365[TUMBLR]
366; You must register your app
367; with Tumblr and get OAUTH_KEY and OAUTH_SECRET
368; Go to this url to get yours: http://www.tumblr.com/oauth/apps
369;
370OAUTH_KEY = 
371OAUTH_SECRET = 
372
373[FACEBOOK]
374; Get your APP_ID and API_SECRET here: 
375; http://developers.facebook.com/setup/
376; To setup new application and get API_KEY
377; go here: http://www.facebook.com/developers/
378;
379; IMPORTANT! when settin up your Facebook APP,
380; DO NOT SET value for "Site Domain" - leave it blank
381; otherwise Facebook will be setting cookie using
382; .yourdomain.com and it will be very difficult to delete
383; this cookie unless you also set the exact same value
384; like .yourdomain.com in site file's COOKIE_DOMAIN setting
385;
386; user picture is not in any json, its simply this:
387; http://graph.facebook.com/$UID/picture
388API_KEY = 
389APP_ID = 
390APP_SECRET = 
391; YOU MUST at least require the email in EXTENDED_PERMS
392; so that you can create email record for facebook user
393; You should require publish_stream also if
394; you want to post something to user 'wall'
395EXTENDED_PERMS = "email,publish_stream,offline_access"
396; Enter full url of your site's logo image
397; This should be fairly small image (about 50x50 or so)
398; If set, it will appear on posts to Facebook as an icon
399SITE_LOGO =
400
401; Custom classes that extend LampcmsObserver
402; can be listed here and they will be automatically
403; registered as observers
404; see clsFloodCheck for an example on how to use it
405[OBSERVERS]
406; To keep track of all login actions
407logins = "\\Lampcms\\Modules\\Observers\\LoginHistory"
408; To activate "whos online" feature
409online = "\\Lampcms\\Modules\\Observers\\Online"
410
411;
412; Order is important
413; since each observer can halt the processing
414; of script, make sure to put most important ones first
415; and most resource-intensive last
416; Make sure Names are Unique - cannot use same filter name twice!
417[INPUT_FILTERS]
418ipFilter= "\\Lampcms\\Modules\\Observers\\IpFilter"
419floodCheck = "\\Lampcms\\Modules\\Observers\\FloodCheck"
420questionSimilar = "\\Lampcms\\Modules\\Observers\\Similars"
421
422; If twitter filter is enabled (not commented out here)
423; then a checkbox to "Post to Twitter" will be
424; added to "Ask" and "Answer" forms
425; Make sure you actually enabled Twitter API integration
426; before enabling this filter otherwise it will not work
427; Check the [TWITTER] section of this file for enabling 
428; the Twitter API
429;
430;twitter = "\\Lampcms\\Modules\\Observers\\PostTweet"
431
432; If facebook filter is enabled (not commented out here)
433; then a checkbox to "Post to Twitter" will be
434; added to "Ask" and "Answer" forms
435; Make sure you actually enabled Facebook API integration
436; before enabling this filter otherwise it will not work
437; Check the [FACEBOOK] section of this file for enabling 
438; the FACEBOOK API
439;
440;facebook = "\\Lampcms\\Modules\\Observers\\PostFacebook"
441
442; If tumblr filter is enabled (not commented out here)
443; then a checkbox to "Post to Tumblr" will be
444; added to "Ask" and "Answer" forms
445; Make sure you actually enabled Tumblr API integration
446; before enabling this filter otherwise it will not work
447; Check the [TUMBLR] section of this file for enabling 
448; the Tumblr API
449;
450;tumblr = "\\Lampcms\\Modules\\Tumblr\\PostTumblr"
451
452; If blogger filter is enabled (not commented out here)
453; then a checkbox to "Post to Blogger" will be
454; added to "Ask" and "Answer" forms
455; Make sure you actually enabled Blogger API integration
456; before enabling this filter otherwise it will not work
457; Check the [BLOGGER] section of this file for enabling 
458; the Blogger API
459;
460;blogger = "\\Lampcms\\Modules\\Blogger\\PostBlogger"
461;
462; If linkedin filter is enabled (not commented out here)
463; then a checkbox to "Post to linkedin" will be
464; added to "Ask" and "Answer" forms
465; Make sure you actually enabled linkedin API integration
466; before enabling this filter otherwise it will not work
467; Check the [LINKEDIN] section of this file for enabling 
468; the LinkedIn API
469;linkedin = "\\Lampcms\\Modules\\Linkedin\\Share"
470
471; EmailNotifier can take long to run
472; it's best to put this filter as the last filter
473; 
474EmailNotifier = "\\Lampcms\\Modules\\Observers\\EmailNotifier"
475
476; bit.ly use used for shortening urls
477; this is useful when posting questions/answers
478; to Twitter.
479; if you not using the Twitter Module then
480; you not going to need this
481; 
482; Signup for bit.ly account to get
483; your username and api key
484; go here to get started: http://bit.ly/a/your_api_key
485; 
486[BITLY]
487user=
488api_key =
489
490[CURL]
491; primary ip address from which curl will connect
492ip = "127.0.0.1"
493; secondary ip address
494ip2 = "127.0.0.2"
495
496[BLOGGER]
497; You must do these steps while logged in to Google with you
498; Google account - this is usually the same as your Gmail account
499;
500; To get your blogger API KEY and Secret start here:
501; http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html
502;
503; You will need to register your domain with Google. 
504; This included downloading some html file from Google 
505; then uploading it to root dir of your site and then clicking "verify" button, 
506; proving to Google that you are the admin of that domain.
507;
508; Once that is done you need to go here: https://www.google.com/accounts/UpdateDomain
509; and enter some string that you must create yourself - 
510; some type of long secret string, into the
511; "Target URL path prefix"
512; That will become your app's OAuth Consumer Key 
513; and Google will generate the OAuth Consumer Secret value for you. 
514; Then enter the values here
515;
516OAUTH_KEY =
517OAUTH_SECRET =
518
519
520
521[API]
522; Maximum results an API can return per page
523MAX_RESULTS = 100
524; Dalily access limit for not logged in users
525DAILY_LIMIT_ANON = 150
526; Daily access limit for logged in users
527DAILY_LIMIT_APP = 3000
528; Daily limit for authenticated user
529DAILY_LIMIT_USER = 10000
530; Max file size for the app icon upload
531; defaults to 700Kb (my be in bytes)
532MAX_ICON_UPLOAD_SIZE = 700000;
533
534
535;
536; Oauth token and secret
537; for Linkedin API
538; Get them here (register your app there)
539; https://www.linkedin.com/secure/developer
540;
541[LINKEDIN]
542;OAUTH_KEY = 
543;OAUTH_SECRET = 
544
545; List supported Language/Locales
546; You should have translation .xlt files
547; made for these languages in
548; translations directory
549[LOCALES]
550en_US = "English (United States)"
551ru_RU = "Russian"