Permalink
Browse files

Commiting, ready for release

  • Loading branch information...
0 parents commit 46137dc1b798e7bc078c9ec17e8c22287b26df21 @snytkine committed Feb 11, 2011
Showing with 50,406 additions and 0 deletions.
  1. +146 −0 !config.ini.dist
  2. +298 −0 !inc.php
  3. +1 −0 .settings/org.eclipse.wst.jsdt.ui.superType.container
  4. +1 −0 .settings/org.eclipse.wst.jsdt.ui.superType.name
  5. +102 −0 README.txt
  6. +37 −0 RewriteRules.txt
  7. +145 −0 acl.ini
  8. BIN fonts/BLOODGUT.TTF
  9. +1,177 −0 lib/Lampcms/Acl/Acl.php
  10. +51 −0 lib/Lampcms/Acl/Role.php
  11. +258 −0 lib/Lampcms/Acl/RoleRegistry.php
  12. +227 −0 lib/Lampcms/Answer.php
  13. +366 −0 lib/Lampcms/AnswerParser.php
  14. +168 −0 lib/Lampcms/Answers.php
  15. +137 −0 lib/Lampcms/Badwords.php
  16. +386 −0 lib/Lampcms/Base.php
  17. +96 −0 lib/Lampcms/Bodytagger.php
  18. +619 −0 lib/Lampcms/Cache.php
  19. +427 −0 lib/Lampcms/CacheHeaders.php
  20. +765 −0 lib/Lampcms/Captcha.php
  21. +432 −0 lib/Lampcms/Controllers/Accept.php
  22. +182 −0 lib/Lampcms/Controllers/Activate.php
  23. +146 −0 lib/Lampcms/Controllers/Answer.php
  24. +118 −0 lib/Lampcms/Controllers/Ask.php
  25. +207 −0 lib/Lampcms/Controllers/Askform.php
  26. +117 −0 lib/Lampcms/Controllers/Changepwd.php
  27. +81 −0 lib/Lampcms/Controllers/Getregform.php
  28. +332 −0 lib/Lampcms/Controllers/Join.php
  29. +153 −0 lib/Lampcms/Controllers/Login.php
  30. +647 −0 lib/Lampcms/Controllers/Logintwitter.php
  31. +144 −0 lib/Lampcms/Controllers/Logout.php
  32. +149 −0 lib/Lampcms/Controllers/Quickreg.php
  33. +310 −0 lib/Lampcms/Controllers/Register.php
  34. +350 −0 lib/Lampcms/Controllers/Remindpwd.php
  35. +169 −0 lib/Lampcms/Controllers/Requestactivation.php
  36. +329 −0 lib/Lampcms/Controllers/Resetpwd.php
  37. +88 −0 lib/Lampcms/Controllers/Settings.php
  38. +154 −0 lib/Lampcms/Controllers/Tagged.php
  39. +106 −0 lib/Lampcms/Controllers/Tweet.php
  40. +193 −0 lib/Lampcms/Controllers/Unanswered.php
  41. +190 −0 lib/Lampcms/Controllers/Userinfo.php
  42. +198 −0 lib/Lampcms/Controllers/Viewqtags.php
  43. +404 −0 lib/Lampcms/Controllers/Viewquestion.php
  44. +295 −0 lib/Lampcms/Controllers/Viewquestions.php
  45. +336 −0 lib/Lampcms/Controllers/Vote.php
  46. +284 −0 lib/Lampcms/Cookie.php
  47. +362 −0 lib/Lampcms/CookieAuth.php
  48. +439 −0 lib/Lampcms/Curl.php
  49. +975 −0 lib/Lampcms/DB.php
  50. +446 −0 lib/Lampcms/DomFeedItem.php
  51. +766 −0 lib/Lampcms/Event/Dispatcher.php
  52. +216 −0 lib/Lampcms/Event/Notification.php
  53. +639 −0 lib/Lampcms/Exception.php
  54. +123 −0 lib/Lampcms/ExternalAuth.php
  55. +674 −0 lib/Lampcms/ExternalAuthFb.php
  56. +513 −0 lib/Lampcms/ExternalAuthGfc.php
  57. +269 −0 lib/Lampcms/Facebook.php
  58. +171 −0 lib/Lampcms/Forms/Answerform.php
  59. +142 −0 lib/Lampcms/Forms/Askform.php
  60. +128 −0 lib/Lampcms/Forms/Changepwd.php
  61. +620 −0 lib/Lampcms/Forms/Form.php
  62. +80 −0 lib/Lampcms/Forms/Pwd.php
  63. +177 −0 lib/Lampcms/Forms/Regform.php
  64. +979 −0 lib/Lampcms/Geoip.php
  65. +234 −0 lib/Lampcms/GeoipLocation.php
  66. +429 −0 lib/Lampcms/Gravatar.php
  67. +256 −0 lib/Lampcms/H2t.php
  68. +715 −0 lib/Lampcms/HtmlSafe.php
  69. +317 −0 lib/Lampcms/Http.php
  70. +328 −0 lib/Lampcms/Ini.php
  71. +526 −0 lib/Lampcms/Interfaces/All.php
  72. +807 −0 lib/Lampcms/Ip.php
  73. +333 −0 lib/Lampcms/Log.php
  74. +245 −0 lib/Lampcms/LoginForm.php
  75. +115 −0 lib/Lampcms/Modules/Observers/FloodCheck.php
  76. +89 −0 lib/Lampcms/Modules/Observers/Similars.php
  77. +293 −0 lib/Lampcms/Mongo.php
  78. +533 −0 lib/Lampcms/MongoCache.php
  79. +748 −0 lib/Lampcms/MongoDoc.php
  80. +188 −0 lib/Lampcms/MongoIncrementor.php
  81. +674 −0 lib/Lampcms/Object.php
  82. +93 −0 lib/Lampcms/Observer.php
  83. +201 −0 lib/Lampcms/Paginator.php
  84. +113 −0 lib/Lampcms/Points.php
  85. +92 −0 lib/Lampcms/PostRegistration.php
  86. +81 −0 lib/Lampcms/ProfileDiv.php
  87. +135 −0 lib/Lampcms/Qtagscounter.php
  88. +163 −0 lib/Lampcms/Qtitletags.php
  89. +440 −0 lib/Lampcms/Question.php
  90. +417 −0 lib/Lampcms/QuestionParser.php
  91. +214 −0 lib/Lampcms/RegBlock.php
  92. +80 −0 lib/Lampcms/RegBlockGfc.php
  93. +179 −0 lib/Lampcms/RegBlockQuickReg.php
  94. +105 −0 lib/Lampcms/RegBlockTwitter.php
  95. +306 −0 lib/Lampcms/Registry.php
  96. +263 −0 lib/Lampcms/Relatedtags.php
  97. +471 −0 lib/Lampcms/Request.php
  98. +97 −0 lib/Lampcms/Resource.php
  99. +212 −0 lib/Lampcms/Responder.php
  100. +153 −0 lib/Lampcms/SimilarItems.php
  101. +367 −0 lib/Lampcms/SiteMap.php
  102. +193 −0 lib/Lampcms/SplClassLoader.php
  103. +704 −0 lib/Lampcms/String.php
  104. +107 −0 lib/Lampcms/SubmittedAnswer.php
  105. +123 −0 lib/Lampcms/SubmittedAnswerWWW.php
  106. +154 −0 lib/Lampcms/SubmittedQuestion.php
  107. +104 −0 lib/Lampcms/SubmittedQuestionWWW.php
  108. +219 −0 lib/Lampcms/Template/Template.php
  109. +109 −0 lib/Lampcms/Template/Urhere.php
  110. +111 −0 lib/Lampcms/TimeAgo.php
  111. +147 −0 lib/Lampcms/TimeZone.php
  112. +102 −0 lib/Lampcms/Tokenizer.php
  113. +482 −0 lib/Lampcms/Twitter.php
  114. +154 −0 lib/Lampcms/UnansweredTags.php
  115. +618 −0 lib/Lampcms/User.php
  116. +135 −0 lib/Lampcms/UserAnswers.php
  117. +411 −0 lib/Lampcms/UserAuth.php
  118. +63 −0 lib/Lampcms/UserExternal.php
  119. +93 −0 lib/Lampcms/UserFacebook.php
  120. +66 −0 lib/Lampcms/UserGfc.php
  121. +108 −0 lib/Lampcms/UserQuestions.php
  122. +132 −0 lib/Lampcms/UserTags.php
  123. +144 −0 lib/Lampcms/UserTagsBlock.php
  124. +76 −0 lib/Lampcms/UserTwitter.php
  125. +102 −0 lib/Lampcms/UserVotesBlock.php
  126. +1,320 −0 lib/Lampcms/Utf8String.php
  127. +238 −0 lib/Lampcms/Validate.php
  128. +960 −0 lib/Lampcms/WebPage.php
  129. +78 −0 lib/Pear/Pager.php
  130. +1,552 −0 lib/Pear/Pager/Common.php
  131. +284 −0 lib/Pear/Pager/HtmlWidgets.php
  132. +262 −0 lib/Pear/Pager/Jumping.php
  133. +309 −0 lib/Pear/Pager/Sliding.php
  134. +677 −0 lib/Pear/XML/HTMLSax3.php
  135. +359 −0 lib/Pear/XML/HTMLSax3/Decorators.php
  136. +287 −0 lib/Pear/XML/HTMLSax3/States.php
  137. +47 −0 lighttpd.conf
  138. +9 −0 mysql.sql
  139. +198 −0 plaintext.xsl
  140. +57 −0 sitemap.php
  141. +447 −0 stopwords.txt
  142. BIN www/favicon.ico
  143. BIN www/images/accept.png
  144. BIN www/images/accepted.png
  145. BIN www/images/clear.png
  146. BIN www/images/fb-user.gif
  147. BIN www/images/fblogin.png
  148. BIN www/images/gfcbutton.jpg
  149. BIN www/images/loading-bar.gif
  150. BIN www/images/rating_thumbs.png
  151. BIN www/images/save.png
  152. BIN www/images/signin.png
  153. BIN www/images/tango-large.png
  154. BIN www/images/tw-user.png
  155. +109 −0 www/index.php
  156. +909 −0 www/js/include.js
  157. +994 −0 www/js/qa.js
  158. +43 −0 www/robots.txt
  159. +1,611 −0 www/style/1/www/main.css
  160. +54 −0 www/style/1/www/tplAnstypes.php
  161. +129 −0 www/style/1/www/tplAnswer.php
  162. +65 −0 www/style/1/www/tplAnswersheader.php
  163. +59 −0 www/style/1/www/tplAvatarblock.php
  164. +84 −0 www/style/1/www/tplBoxrecent.php
  165. +54 −0 www/style/1/www/tplBoxsimilar.php
  166. +57 −0 www/style/1/www/tplCaptcha.php
  167. +55 −0 www/style/1/www/tplComdiv.php
  168. +92 −0 www/style/1/www/tplComform.php
  169. +54 −0 www/style/1/www/tplComformheader.php
  170. +82 −0 www/style/1/www/tplComments.php
  171. +60 −0 www/style/1/www/tplConfirmemail.php
  172. +63 −0 www/style/1/www/tplCounterblock.php
  173. +56 −0 www/style/1/www/tplCounterblocksub.php
  174. +48 −0 www/style/1/www/tplException.php
  175. +58 −0 www/style/1/www/tplFbJs.php
  176. +80 −0 www/style/1/www/tplFormRegister.php
  177. +87 −0 www/style/1/www/tplFormanswer.php
  178. +106 −0 www/style/1/www/tplFormask.php
  179. +94 −0 www/style/1/www/tplFormchangepwd.php
  180. +110 −0 www/style/1/www/tplFormpwd.php
  181. +77 −0 www/style/1/www/tplGfcCode.php
  182. +64 −0 www/style/1/www/tplLinktag.php
  183. +80 −0 www/style/1/www/tplLoginblock.php
  184. +81 −0 www/style/1/www/tplLoginform.php
  185. +150 −0 www/style/1/www/tplMain.php
  186. +60 −0 www/style/1/www/tplNewquestions.php
  187. +42 −0 www/style/1/www/tplOptin.php
  188. +69 −0 www/style/1/www/tplQlist.php
  189. +96 −0 www/style/1/www/tplQrecent.php
  190. +54 −0 www/style/1/www/tplQtags.php
  191. +52 −0 www/style/1/www/tplQtagsclass.php
  192. +70 −0 www/style/1/www/tplQtypesdiv.php
  193. +142 −0 www/style/1/www/tplQuestion.php
  194. +62 −0 www/style/1/www/tplQuntypes.php
  195. +107 −0 www/style/1/www/tplQview.php
  196. +74 −0 www/style/1/www/tplRecentquestions.php
  197. +61 −0 www/style/1/www/tplRecentvideos.php
  198. +133 −0 www/style/1/www/tplRegform.php
  199. +67 −0 www/style/1/www/tplRelatedlink.php
  200. +54 −0 www/style/1/www/tplReplies.php
  201. +56 −0 www/style/1/www/tplSettings.php
  202. +50 −0 www/style/1/www/tplSimitemdiv.php
  203. +65 −0 www/style/1/www/tplSimquestions.php
  204. +66 −0 www/style/1/www/tplSimquestions2.php
  205. +83 −0 www/style/1/www/tplSimtabs.php
  206. +50 −0 www/style/1/www/tplSocial.php
  207. +51 −0 www/style/1/www/tplTagslist.php
  208. +65 −0 www/style/1/www/tplTagsort.php
  209. +60 −0 www/style/1/www/tplToptabs.php
  210. +73 −0 www/style/1/www/tplUanswers.php
  211. +60 −0 www/style/1/www/tplUnanstags.php
  212. +92 −0 www/style/1/www/tplUquestions.php
  213. +65 −0 www/style/1/www/tplUserAnswers.php
  214. +130 −0 www/style/1/www/tplUserInfo.php
  215. +65 −0 www/style/1/www/tplUserQuestions.php
  216. +58 −0 www/style/1/www/tplUserTag.php
  217. +63 −0 www/style/1/www/tplUserTags.php
  218. +70 −0 www/style/1/www/tplUserVotes.php
  219. +65 −0 www/style/1/www/tplUsernameblock.php
  220. +53 −0 www/style/1/www/tplVoteCount.php
  221. +58 −0 www/style/1/www/tplWelcome.php
  222. +59 −0 www/style/1/www/tplYuigrid2.php
  223. +59 −0 www/style/1/www/userinfo.htm
  224. +88 −0 www/twitter.php
  225. +1 −0 www/w/img/.gitignore
  226. BIN www/w/img/avatar/sqr/user.jpg
@@ -0,0 +1,146 @@
+[DB]
+Database_name=LAMPCMS
+Database_host=localhost
+TCP_Port_number=
+Database_type=mysql
+Database_username=
+Database_password=
+Persistent = 0
+
+[MONGO]
+server = "mongodb://127.0.0.2:27017"
+db = "LAMPCMS"
+
+[CACHE_MONGO]
+; good option to use the same db as in "MONGO" section
+db = "LAMPCMS"
+collection = "C_Cache"
+
+[CONSTANTS]
+; set to true when debugging to enable
+; debug log and raize error reporting level
+DEBUG = false;
+; This will be used in some page as title as well as in some emails as 'From' name
+SITE_TITLE = "Site"
+SITE_NAME ="Site"
+
+; set LOG_FILE_PATH to point to your writable log file to enable logging
+; for example: /usr/local/apache/sites/qa.lampcms.com/logs/php.log
+LOG_FILE_PATH = php.log
+;/usr/local/apache/sites/lampcms.com/logs/cgiphp.log
+LOG_FILE_PATH_CGI = cgiphp.log
+;
+; base url of your main website. Required value!
+SITE_URL="http://localhost"
+; system path to root directory (the one that contains this file)
+LAMPCMS_PATH ="/"
+; system path to directory that is accessable via browser as /w/
+LAMPCMS_DATA_DIR =
+;
+POSTFIX_PATH = /usr/sbin/sendmail
+;
+; email address of developer.
+; Developer will be notified of php errors and various bad situations on the site //message@ptd.net
+EMAIL_DEVELOPER = "me@me.me"
+; email address of admin. Admin will also be notified on important events and errors
+EMAIL_ADMIN = "me@me.me"
+;
+; emails to new registrations sent from this domain
+EMAIL_DOMAIN =
+; Make sure to set the value of SALT to a random string of about 40 chars
+; then write it down and store it like gold!
+; and never change it again!
+; if it's lost, you will not be able to authenticate
+; any existing users - users will never be able to login!
+SALT = 'abcdefg';
+
+; If using Google friend connect, then you need to have the site id
+; sing up with Google Friend Connect first and get your site id
+; Create account here http://www.google.com/friendconnect/
+; After you signup and reviewing your site's settings,
+; the id will be in url of the browser, for example:
+; http://www.google.com/friendconnect/admin/site/overview?id=231123423423
+;
+GFC_ID =
+;
+
+[CAPTCHA]
+; change this to something between 3 and 25
+secretposition = 15
+; Change this to any random string. CHANGE it to something unique!
+secretstring = "Stuff for captcha"
+; maximum captcha errors. After this ip will be blocked for awhile
+maxtry = 5
+
+[LOGIN_ERROR_LOCK]
+;in what number of seconds login errors occured.
+interval = 360
+;how many seconds since latest login error user must wait before allowed to try again
+wait = 300
+;number of login failures. After this many login failures withing interval
+max_errors = 4
+
+
+
+[MY_IP]
+; list values of ip addresses of developers
+; access from these ips will result in extra debugging console for javascript
+; as well as sql debugging data added to the pages
+; values should be added like this (one per line): 192.168.1.1=office
+; here the word office if for your own info, you can add another ip for
+; your home and add it on another line: 192.168.1.2=home
+; You can add as many as you like
+24.238.90.139=home
+75.97.204.207=home1
+
+[TWITTER]
+; API_KEY is needed for the @anywhere JS library only
+; get api key and secret from here http://dev.twitter.com/apps/new
+;
+API_KEY =
+; twitter consumer key and consumer secret for oauth
+TWITTER_OAUTH_KEY =
+TWITTER_OAUTH_SECRET =
+; account name that we use on twitter. We may tweet from it
+; we may also add new user to follow this account when they
+; join
+TWITTER_USERNAME = devcomments
+
+[FACEBOOK]
+; Get your APP_ID and API_SECRET here:
+; http://developers.facebook.com/setup/
+; To setup new application and get API_KEY
+; go here: http://www.facebook.com/developers/
+;
+; user picture is not in any json, its simply this:
+; http://graph.facebook.com/$UID/picture
+API_KEY =
+APP_ID =
+APP_SECRET =
+; YOU MUST at least require the email in EXTENDED_PERMS
+; so that you can create email record for facebook user
+; You should require publish_stream also if
+; you want to post something to user 'wall'
+EXTENDED_PERMS = "email,publish_stream,offline_access"
+POST_TO_WALL = true
+
+; Custom classes that extend LampcmsObserver
+; can be listed here and they will be automatically
+; registered as observers
+; see clsFloodCheck for an example on how to use it
+[OBSERVERS]
+;questionView = "Viewobserver"
+;
+; Order is important
+; since each observer can halt the processing
+; of script, make sure to put most important ones first
+; and most resource-intensive last
+[INPUT_FILTERS]
+floodCheck = "\\Lampcms\\Modules\\Observers\\FloodCheck"
+questionSimilar = "\\Lampcms\\Modules\\Observers\\Similars"
+
+[CURL]
+; primary ip address from which curl will connect
+ip = "127.0.0.1"
+; secondary ip address
+ip2 = "127.0.0.2"
Oops, something went wrong.

0 comments on commit 46137dc

Please sign in to comment.