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