Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove obsolete code & documentation generation

  • Loading branch information...
commit 66f397cab3b11e1774729883674a6e4a359fefb1 1 parent f22535e
@niv niv authored
Showing with 3 additions and 29,326 deletions.
  1. +0 −3  .gitignore
  2. +3 −9 Makefile
  3. +0 −10 cdb/Rakefile
  4. +0 −80 cdb/app/controllers/account_controller.rb
  5. +0 −90 cdb/app/controllers/application.rb
  6. +0 −8 cdb/app/controllers/audit_controller.rb
  7. +0 −2  cdb/app/controllers/changelog_controller.rb
  8. +0 −255 cdb/app/controllers/character_controller.rb
  9. +0 −52 cdb/app/controllers/chatlog_controller.rb
  10. +0 −15 cdb/app/controllers/chess_controller.rb
  11. +0 −5 cdb/app/controllers/container_controller.rb
  12. +0 −117 cdb/app/controllers/craft_controller.rb
  13. +0 −8 cdb/app/controllers/doc_controller.rb
  14. +0 −66 cdb/app/controllers/gem_chains_controller.rb
  15. +0 −5 cdb/app/controllers/intro_controller.rb
  16. +0 −54 cdb/app/controllers/location_controller.rb
  17. +0 −68 cdb/app/controllers/loot_chains_controller.rb
  18. +0 −115 cdb/app/controllers/merchant_controller.rb
  19. +0 −65 cdb/app/controllers/persistent_objects_controller.rb
  20. +0 −54 cdb/app/controllers/rideables_controller.rb
  21. +0 −63 cdb/app/controllers/scene_descriptions_controller.rb
  22. +0 −18 cdb/app/controllers/set_controller.rb
  23. +0 −74 cdb/app/controllers/stat_controller.rb
  24. +0 −35 cdb/app/controllers/weather_controller.rb
  25. +0 −60 cdb/app/find_cheaters.rb
  26. +0 −33 cdb/app/generate_table_hash.rb
  27. +0 −45 cdb/app/get_playtime_for_cid.rb
  28. +0 −2  cdb/app/helpers/account_helper.rb
  29. +0 −88 cdb/app/helpers/application_helper.rb
  30. +0 −2  cdb/app/helpers/audit_helper.rb
  31. +0 −2  cdb/app/helpers/changelog_helper.rb
  32. +0 −16 cdb/app/helpers/character_helper.rb
  33. +0 −2  cdb/app/helpers/chatlog_helper.rb
  34. +0 −2  cdb/app/helpers/chess_helper.rb
  35. +0 −2  cdb/app/helpers/container_helper.rb
  36. +0 −2  cdb/app/helpers/craft_helper.rb
  37. +0 −2  cdb/app/helpers/doc_helper.rb
  38. +0 −2  cdb/app/helpers/intro_helper.rb
  39. +0 −2  cdb/app/helpers/location_helper.rb
  40. +0 −2  cdb/app/helpers/loot_chains_helper.rb
  41. +0 −2  cdb/app/helpers/merchant_helper.rb
  42. +0 −2  cdb/app/helpers/persistent_objects_helper.rb
  43. +0 −2  cdb/app/helpers/rideables_helper.rb
  44. +0 −2  cdb/app/helpers/scene_descriptions_helper.rb
  45. +0 −2  cdb/app/helpers/set_helper.rb
  46. +0 −2  cdb/app/helpers/stat_helper.rb
  47. +0 −2  cdb/app/helpers/weather_helper.rb
  48. +0 −105 cdb/app/models/account.rb
  49. +0 −3  cdb/app/models/audit.rb
  50. +0 −2  cdb/app/models/changelog.rb
  51. +0 −137 cdb/app/models/character.rb
  52. +0 −10 cdb/app/models/chatlog.rb
  53. +0 −20 cdb/app/models/chess_game.rb
  54. +0 −31 cdb/app/models/comment.rb
  55. +0 −3  cdb/app/models/container.rb
  56. +0 −4 cdb/app/models/craft.rb
  57. +0 −85 cdb/app/models/crafting_product.rb
  58. +0 −12 cdb/app/models/crafting_recipe_book.rb
  59. +0 −10 cdb/app/models/crafting_skill.rb
  60. +0 −14 cdb/app/models/crafting_statistic.rb
  61. +0 −2  cdb/app/models/gem_chain.rb
  62. +0 −18 cdb/app/models/gv_setting.rb
  63. +0 −2  cdb/app/models/kill.rb
  64. +0 −2  cdb/app/models/location.rb
  65. +0 −3  cdb/app/models/loot.rb
  66. +0 −3  cdb/app/models/mentor_data.rb
  67. +0 −4 cdb/app/models/merchant.rb
  68. +0 −3  cdb/app/models/merchant_inventory.rb
  69. +0 −30 cdb/app/models/notifications.rb
  70. +0 −18 cdb/app/models/persistent_object.rb
  71. +0 −2  cdb/app/models/player.rb
  72. +0 −7 cdb/app/models/rideable.rb
  73. +0 −16 cdb/app/models/scene_description.rb
  74. +0 −11 cdb/app/models/time_xp.rb
  75. +0 −19 cdb/app/models/weather_override.rb
  76. +0 −10,228 cdb/app/nwscript
  77. +0 −199 cdb/app/show_monthly_data.bak
  78. +0 −247 cdb/app/show_monthly_data.rb
  79. +0 −188 cdb/app/spells
  80. +0 −24 cdb/app/views/account/amask.rhtml
  81. +0 −28 cdb/app/views/account/details.rhtml
  82. +0 −1  cdb/app/views/account/index.rhtml
  83. +0 −9 cdb/app/views/account/login.rhtml
  84. +0 −1  cdb/app/views/account/logout.rhtml
  85. +0 −11 cdb/app/views/account/show.rhtml
  86. +0 −17 cdb/app/views/audit/_audit_event.rhtml
  87. +0 −9 cdb/app/views/audit/index.rhtml
  88. +0 −10 cdb/app/views/autocomplete/_resref.rhtml
  89. +0 −1  cdb/app/views/changelog/index.rhtml
  90. +0 −24 cdb/app/views/character/_charlistftr.rhtml
  91. +0 −45 cdb/app/views/character/_charlisthdr.rhtml
  92. +0 −41 cdb/app/views/character/_charlistitem.rhtml
  93. +0 −35 cdb/app/views/character/_comment.rhtml
  94. +0 −19 cdb/app/views/character/_search.rhtml
  95. +0 −18 cdb/app/views/character/consistency.rhtml
  96. +0 −44 cdb/app/views/character/index.rhtml
  97. +0 −1  cdb/app/views/character/notify.rhtml
  98. +0 −9 cdb/app/views/character/search_remote.rhtml
  99. +0 −192 cdb/app/views/character/show.rhtml
  100. +0 −10 cdb/app/views/chatlog/_item.rhtml
  101. +0 −13 cdb/app/views/chatlog/index.rhtml
  102. +0 −19 cdb/app/views/chess/_form.rhtml
  103. +0 −24 cdb/app/views/chess/list.rhtml
  104. +0 −1  cdb/app/views/container/_item.rhtml
  105. +0 −2  cdb/app/views/container/index.rhtml
  106. +0 −1  cdb/app/views/craft/_craftftr.rhtml
  107. +0 −10 cdb/app/views/craft/_crafthdr.rhtml
  108. +0 −1  cdb/app/views/craft/_crafthdrt.rhtml
  109. +0 −47 cdb/app/views/craft/_craftitem.rhtml
  110. +0 −7 cdb/app/views/craft/_resref.rhtml
  111. +0 −25 cdb/app/views/craft/enchant.rhtml
  112. +0 −32 cdb/app/views/craft/index.rhtml
  113. +0 −1  cdb/app/views/craft/old/_craftftr.rhtml
  114. +0 −2  cdb/app/views/craft/old/_crafthdr.rhtml
  115. +0 −12 cdb/app/views/craft/old/_craftitem.rhtml
  116. +0 −96 cdb/app/views/craft/show.rhtml
  117. +0 −5 cdb/app/views/craft/skill.rhtml
  118. +0 −21 cdb/app/views/craft/spell.rhtml
  119. +0 −2  cdb/app/views/doc/help.rhtml
  120. +0 −2  cdb/app/views/doc/intro.rhtml
  121. +0 −13 cdb/app/views/gem_chains/_footer.rhtml
  122. +0 −14 cdb/app/views/gem_chains/_header.rhtml
  123. +0 −28 cdb/app/views/gem_chains/_item.rhtml
  124. +0 −28 cdb/app/views/gem_chains/index.rhtml
  125. +0 −47 cdb/app/views/intro/index.rhtml
  126. +0 −104 cdb/app/views/layouts/main.rhtml
  127. +0 −19 cdb/app/views/location/_form.rhtml
  128. +0 −9 cdb/app/views/location/edit.rhtml
  129. +0 −27 cdb/app/views/location/list.rhtml
  130. +0 −8 cdb/app/views/location/new.rhtml
  131. +0 −8 cdb/app/views/location/show.rhtml
  132. +0 −15 cdb/app/views/loot_chains/_footer.rhtml
  133. +0 −16 cdb/app/views/loot_chains/_header.rhtml
  134. +0 −32 cdb/app/views/loot_chains/_item.rhtml
  135. +0 −28 cdb/app/views/loot_chains/index.rhtml
  136. +0 −143 cdb/app/views/merchant/edit.rhtml
  137. +0 −12 cdb/app/views/merchant/index.rhtml
  138. +0 −8 cdb/app/views/notifications/comment.rhtml
  139. +0 −4 cdb/app/views/notifications/register.rhtml
  140. +0 −36 cdb/app/views/notifications/status.rhtml
  141. +0 −5 cdb/app/views/persistent_objects/_form.rhtml
  142. +0 −9 cdb/app/views/persistent_objects/edit.rhtml
  143. +0 −34 cdb/app/views/persistent_objects/list.rhtml
  144. +0 −8 cdb/app/views/persistent_objects/new.rhtml
  145. +0 −10 cdb/app/views/persistent_objects/show.rhtml
  146. +0 −43 cdb/app/views/rideables/_form.rhtml
  147. +0 −9 cdb/app/views/rideables/edit.rhtml
  148. +0 −27 cdb/app/views/rideables/list.rhtml
  149. +0 −8 cdb/app/views/rideables/new.rhtml
  150. +0 −8 cdb/app/views/rideables/show.rhtml
  151. +0 −13 cdb/app/views/scene_descriptions/_form.rhtml
  152. +0 −9 cdb/app/views/scene_descriptions/edit.rhtml
  153. +0 −31 cdb/app/views/scene_descriptions/list.rhtml
  154. +0 −8 cdb/app/views/scene_descriptions/new.rhtml
  155. +0 −8 cdb/app/views/scene_descriptions/show.rhtml
  156. +0 −29 cdb/app/views/set/index.rhtml
  157. +0 −5 cdb/app/views/stat/_mentoritem.rhtml
  158. 0  cdb/app/views/stat/gm_xp.rhtml
  159. +0 −13 cdb/app/views/stat/index.rhtml
  160. +0 −7 cdb/app/views/stat/lph_toplist.rhtml
  161. +0 −37 cdb/app/views/stat/mentor.rhtml
  162. +0 −106 cdb/app/views/stat/time_xp.rhtml
  163. +0 −1  cdb/app/views/weather/_ftr.rhtml
  164. +0 −14 cdb/app/views/weather/_hdr.rhtml
  165. +0 −13 cdb/app/views/weather/_item.rhtml
  166. +0 −2  cdb/app/views/weather/add_override.rhtml
  167. +0 −26 cdb/app/views/weather/index.rhtml
  168. +0 −38 cdb/config/boot.rb
  169. +0 −68 cdb/config/environment.rb
  170. +0 −21 cdb/config/environments/development.rb
  171. +0 −18 cdb/config/environments/production.rb
  172. +0 −19 cdb/config/environments/test.rb
  173. +0 −22 cdb/config/routes.rb
  174. +0 −11 cdb/db/migrate/001_create_chatlogs.rb
  175. +0 −11 cdb/db/migrate/001_create_craft_crafts.rb
  176. +0 −11 cdb/db/migrate/001_create_mentor_datas.rb
  177. +0 −11 cdb/db/migrate/001_create_weather_overrides.rb
  178. +0 −11 cdb/db/migrate/002_create_crafts.rb
  179. +0 −11 cdb/db/migrate/003_create_crafting_products.rb
  180. +0 −11 cdb/db/migrate/004_create_crafting_skills.rb
  181. +0 −11 cdb/db/migrate/005_create_crafting_recipe_books.rb
  182. +0 −11 cdb/db/migrate/006_create_crafting_statistics.rb
  183. +0 −11 cdb/db/migrate/007_create_merchants.rb
  184. +0 −11 cdb/db/migrate/008_create_merchant_inventories.rb
  185. +0 −11 cdb/db/migrate/009_create_persistent_objects.rb
  186. +0 −10 cdb/db/migrate/010_create_time_xps.rb
  187. +0 −10 cdb/db/migrate/011_create_gv_settings.rb
  188. +0 −10 cdb/db/migrate/012_create_loots.rb
  189. +0 −15 cdb/db/migrate/013_create_chess_games.rb
  190. +0 −10 cdb/db/migrate/014_create_gem_chains.rb
  191. +0 −23 cdb/lib/const.rb
  192. +0 −107 cdb/lib/duration.rb
  193. +0 −40 cdb/public/.htaccess
  194. +0 −8 cdb/public/404.html
  195. +0 −8 cdb/public/500.html
  196. +0 −10 cdb/public/dispatch.cgi
  197. +0 −24 cdb/public/dispatch.fcgi
  198. +0 −10 cdb/public/dispatch.rb
  199. 0  cdb/public/favicon.ico
  200. BIN  cdb/public/images/rails.png
  201. +0 −2  cdb/public/javascripts/application.js
  202. +0 −131 cdb/public/javascripts/builder.js
  203. +0 −835 cdb/public/javascripts/controls.js
  204. +0 −944 cdb/public/javascripts/dragdrop.js
  205. +0 −1,090 cdb/public/javascripts/effects.js
  206. +0 −8 cdb/public/javascripts/jquery.interface.js
  207. +0 −1  cdb/public/javascripts/jquery.js
  208. +0 −2,515 cdb/public/javascripts/prototype.js
  209. +0 −980 cdb/public/javascripts/scriptaculous-js-1.7.0/CHANGELOG
  210. +0 −20 cdb/public/javascripts/scriptaculous-js-1.7.0/MIT-LICENSE
  211. +0 −57 cdb/public/javascripts/scriptaculous-js-1.7.0/README
  212. +0 −1  cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/_ajax_inplaceeditor_result.html
  213. +0 −1  cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/_ajax_inplaceeditor_text.html
  214. +0 −9 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/_autocomplete_result.html
  215. +0 −3  cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/_autocomplete_result_single.html
  216. +0 −82 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/ajax_autocompleter2_test.html
  217. +0 −71 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/ajax_autocompleter_test.html
  218. +0 −60 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/ajax_inplacecollectioneditor_test.html
  219. +0 −86 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/ajax_inplaceeditor_test.html
  220. +0 −85 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop2_test.html
  221. +0 −90 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop3_test.html
  222. +0 −41 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop4_test.html
  223. +0 −42 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop5_test.html
  224. +0 −76 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop6_test.html
  225. +0 −211 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop7_test.html
  226. +0 −142 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop8_test.html
  227. +0 −84 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop_delay_test.html
  228. +0 −120 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dragdrop_test.html
  229. BIN  cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/dropmarker.png
  230. +0 −35 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effect_direct_test.html
  231. +0 −65 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effect_puff_test.html
  232. +0 −29 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effect_scale_test.html
  233. +0 −63 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects2_test.html
  234. +0 −36 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects3_test.html
  235. +0 −31 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects4_test.html
  236. +0 −483 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects5_test.html
  237. +0 −61 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects6_test.html
  238. +0 −65 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_blind_test.html
  239. +0 −38 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_float_appear_test.html
  240. +0 −38 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_grow_strink_test.html
  241. +0 −57 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_highlight_bg_image.html
  242. +0 −30 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_queue_limit_test.html
  243. +0 −67 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_queue_test.html
  244. +0 −76 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_random_demo.html
  245. +0 −67 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_test.html
  246. +0 −36 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/effects_toggle_test.html
  247. BIN  cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/icon.png
  248. +0 −86 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/index.html
  249. +0 −124 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/position_clone_test.html
  250. +0 −152 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/slider_test.html
  251. +0 −148 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable2_test.html
  252. +0 −40 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable3_test.html
  253. +0 −88 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable4_test.html
  254. +0 −43 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable5_test.html
  255. +0 −148 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable6_test.html
  256. +0 −105 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable_test.html
  257. +0 −185 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/sortable_tree_test.html
  258. +0 −52 cdb/public/javascripts/scriptaculous-js-1.7.0/test/functional/texteffects_test.html
  259. +0 −20 cdb/public/javascripts/scriptaculous-js-1.7.0/test/run_functional_tests.html
  260. +0 −20 cdb/public/javascripts/scriptaculous-js-1.7.0/test/run_unit_tests.html
  261. +0 −44 cdb/public/javascripts/scriptaculous-js-1.7.0/test/test.css
  262. +0 −1  cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/_ajax_inplaceeditor_result.html
  263. +0 −1  cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/_ajax_inplaceeditor_text.html
  264. +0 −20 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/_ajax_updater_result.html
  265. +0 −11 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/_autocomplete_result.html
  266. +0 −1  cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/_autocomplete_result_nobr.html
  267. +0 −232 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/ajax_autocompleter_test.html
  268. +0 −217 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/ajax_inplaceeditor_test.html
  269. +0 −138 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/bdd_test.html
  270. +0 −214 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/builder_test.html
  271. +0 −131 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/dragdrop_test.html
  272. +0 −293 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/effects_test.html
  273. +0 −112 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/element_test.html
  274. BIN  cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/icon.png
  275. +0 −74 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/index.html
  276. +0 −41 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/loading_test.html
  277. +0 −312 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/position_clone_test.html
  278. +0 −438 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/slider_test.html
  279. +0 −205 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/sortable_test.html
  280. +0 −67 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/string_test.html
  281. +0 −190 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/transform_test.html
  282. +0 −154 cdb/public/javascripts/scriptaculous-js-1.7.0/test/unit/unittest_test.html
  283. +0 −51 cdb/public/javascripts/scriptaculous.js
  284. +0 −278 cdb/public/javascripts/slider.js
  285. +0 −1  cdb/public/robots.txt
  286. +0 −168 cdb/public/stylesheets/main.css
  287. +0 −72 cdb/public/stylesheets/scaffold.css
  288. +0 −3  cdb/script/about
  289. +0 −3  cdb/script/breakpointer
  290. +0 −3  cdb/script/console
  291. +0 −3  cdb/script/destroy
  292. +0 −3  cdb/script/generate
  293. +0 −3  cdb/script/performance/benchmarker
  294. +0 −3  cdb/script/performance/profiler
  295. +0 −3  cdb/script/plugin
  296. +0 −3  cdb/script/process/reaper
  297. +0 −3  cdb/script/process/spawner
  298. +0 −3  cdb/script/runner
  299. +0 −3  cdb/script/server
  300. +0 −5 cdb/test/fixtures/chatlogs.yml
Sorry, we could not display the entire diff because too many files (362) changed.
View
3  .gitignore
@@ -12,8 +12,5 @@ config.log
config.status
linnwnx2/*/Makefile
linnwnx2/configure
-naturaldocs-project/Data/*
-naturaldocs-project/Menu_Backup*
-generated-doc/*
*.zip
*.hak
View
12 Makefile
@@ -1,15 +1,9 @@
-.PHONY: mod documentation hak
+.PHONY: mod hak
+
+all: mod hak
mod:
make -C mod all
-documentation:
- naturaldocs -o framedhtml generated-doc -i . \
- -xi generated-doc \
- -xi naturaldocs-project \
- -xi build \
- -xi linnwnx2 \
- -s sternenfall -p naturaldocs-project
-
hak:
make -C hak all
View
10 cdb/Rakefile
@@ -1,10 +0,0 @@
-# Add your own tasks in files placed in lib/tasks ending in .rake,
-# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
-
-require(File.join(File.dirname(__FILE__), 'config', 'boot'))
-
-require 'rake'
-require 'rake/testtask'
-require 'rake/rdoctask'
-
-require 'tasks/rails'
View
80 cdb/app/controllers/account_controller.rb
@@ -1,80 +0,0 @@
-require 'duration'
-
-class AccountController < ApplicationController
-
- before_filter :authenticate, :only => ['logout', 'show']
- before_filter(:only => ['show', 'amask']) {|c| c.authenticate(Account::CAN_SEE_ACCOUNT_DETAILS) }
-
- def login
- @param = params
-
- if get_user.nil? && params['login'] != nil
- accobj = Account.authenticate(params['login']['account'], params['login']['password'])
- if accobj.nil?
- flash[:notice] = "Benutzername nicht gefunden, oder falsches Passowrt!"
- flash[:error] = true
- else
- session[:uid] = accobj['id']
- redirect_to :controller => 'character', :action => 'index'
- end
- end
- end
-
- def logout
- session[:uid] = nil
- end
-
- def index
- redirect_to :action => "details"
- end
-
- def details
- @account = get_user
- det = params['account']
- if det != nil
- if !get_user.update_attributes(det)
- flash[:notice] = "Konnte die Werte nicht speichern!"
- flash[:errors] = get_user.errors
- else
- flash[:notice] = "Okay, abgespeichert!"
- redirect_to :controller => 'character', :action => 'index'
- end
- end
- end
-
- def show
- @u = Account.find(:first, :conditions => ["id = ?", params['id']])
- end
-
-
- def amask
-
- id = params[:id]
- begin
- @account = Account::find(id)
- rescue
- @account = nil
- return
- end
-
- new_mask = params[:mask]
- if new_mask && amask?(Account::CAN_DO_BACKEND)
-
- mask = 0
-
- new_mask = new_mask.to_a.reject {|x| x[0] !~ /^AMASK_/ }.each {|k,v|
- mask |= Account::AMASK[k] if Account::AMASK[k]
- }
- @account.update_attribute('amask', mask)
-
- if !@account.save
- flash[:errors] = @account.errors
- flash[:notice] = "cannot save new amask?"
- else
- flash[:notice] = "new mask = #{mask}, saved"
- end
- end
-
- @pusers = Account::find(:all, :conditions => 'amask > 0', :order => 'amask desc')
- end
-end
View
90 cdb/app/controllers/application.rb
@@ -1,90 +0,0 @@
-# Filters added to this controller will be run for all controllers in the application.
-# Likewise, all the methods added will be available for all controllers.
-
-require 'const'
-
-class ApplicationController < ActionController::Base
- layout "main"
-
- after_filter :set_charset
-
- def set_charset
- charset = "iso-8859-15"
- content_type = headers["Content-Type"] || "text/html"
- if /^text\//.match(content_type)
- headers["Content-Type"] = "#{content_type}; charset=#{charset}"
- end
- end
-
-
- # returns the currently logged in user
- def get_user
- return nil if !session[:uid] || session[:uid] < 1
- Account::find(session[:uid])
- end
-
- def amask(mask)
- logger.warn("amask(n) is deprecated")
- amask?(mask)
- end
-
- def amask?(mask)
- return false if !get_user
- return get_user.amask & mask > 0
- end
-
- def goback
- if session[:redirect_to]
- redirect_to_url(session[:redirect_to]) if session[:redirect_to] != request.request_uri
- elsif session[:last_url2]
- redirect_to_url(session[:last_url2]) if session[:last_url2] != request.request_uri
- else session[:last_url]
- redirect_to_url(session[:last_url]) if session[:last_url] != request.request_uri
- end
- end
-
-
- def authenticate mask = 0
- if !get_user
- session[:redirect_to] = request.request_uri
- flash[:notice] = "Du musst dich einloggen um auf diese Seite zuzugreifen."
- redirect_to :controller => "account", :action => "login"
- return false
- end
-
- unless enter_details
- return false
- end
-
-
- #flash[:notice] = self.method('amask').call(mask)
- #redirect_to :controller => "account", :action => "details"
- #return false
-
- if mask > 0 && !amask?(mask)
- flash[:notice] = "Du hast nicht die noetigen Rechte, um diese Seite zu sehen."
- redirect_to :controller => "account", :action => "details"
- return false
- end
- end
-
-
- protected
-
- def enter_details
- unless get_user && get_user.details?
- session[:redirect_to] = request.request_uri
- flash[:notice] = "Bitte trage deine persoenlichen Details ein, bevor du deine Anmeldung bearbeitest."
- redirect_to :controller => "account", :action => "details"
- return false
- end
- return true
- end
-
- def gobackfilter
- session[:last_url2] = session[:last_url] #request.request_uri
- session[:last_url] = request.request_uri
- true
- end
-
-end
View
8 cdb/app/controllers/audit_controller.rb
@@ -1,8 +0,0 @@
-class AuditController < ApplicationController
- before_filter {|c| c.authenticate(Account::CAN_SEE_AUDIT_TRAILS) }
-
-
- def index
- @audit_pages, @audit = paginate :audit, :order => "id desc", :per_page => 100
- end
-end
View
2  cdb/app/controllers/changelog_controller.rb
@@ -1,2 +0,0 @@
-class ChangelogController < ApplicationController
-end
View
255 cdb/app/controllers/character_controller.rb
@@ -1,255 +0,0 @@
-class CharacterController < ApplicationController
- before_filter :authenticate
-
- before_filter(:only => ['consistency']) {|c| c.authenticate(Account::CAN_SEE_AUDIT_TRAILS) }
- before_filter(:only => ['notify']) {|c| c.authenticate(Account::CAN_SEE_AUDIT_TRAILS) }
-
-
-
- def search_remote
- index true
- render :action => 'search_remote', :layout => false
- end
-
- def index no_redirect = false
- return if !get_user
-
- perpage = 30
- @onlineonly = "1"
- @onlineonly = params['onlineonly'] || "0"
-
- @sort = "last_login"
- @sort = params['sort'] if params['sort'] && %w{id character race gold xp last_login status create_on register_on}.index(params['sort'])
- @order = "desc"
- @order = params['order'] if params['order'] && %w{asc desc}.index(params['order'])
- order = "`#{@sort}` #{@order}"
-
- @search = params['search'] || ""
-
- cond = get_search_conditions_for @search, @onlineonly
-
- if cond.size > 0
- @character_pages, @characters = paginate :characters, :order => order, :conditions => cond, :per_page => perpage
- if !no_redirect && @characters.size == 1 && @search != ""
- redirect_to :controller => 'character', :action => 'show', :id => @characters[0].id
- return
- end
- else
- @character_pages, @characters = paginate :characters, :order => order, :per_page => perpage
- end
-
- # now do the updating
- #if amask?(Account::IS_CHARACTER_ADMIN)
- # @query = qn = params.keys.map {|n| $1 if n =~ /^character_(\d+)$/}.compact
- # qn.each {|cu|
- # cn = Character.find(:first, :conditions => ['id = ?', cu])
- # next if !cn
-#
-# oldstat = cn.status
-# cn.update_attributes(params["character_#{cu}"])
-# if cn.status != oldstat
-# co = Comment.new(:body => "Status: #{oldstat} -> #{cn.status}", :status => 'system')
-# co.account = get_user.id
-# co.character = cn.id
-# co.save
-# end
-# }
-# end
-
-
-
- lv = Character.find(:all, :conditions => cond).map {
- |ch| ch.class1_level + ch.class2_level + ch.class3_level
- }
-
- max = 0
- lv.each {|n| max += n }
- @average_level = max.to_f / lv.size.to_f
-
- @latest_comments = Comment.find(:all, :limit => 20, :order => "date desc"
- #:group => "`character`"
- ) if
- amask?(Account::SEE_ALL_CHARACTERS)
- end
-
-
- # Returns the SQL condition string for "search, onlineonly" as an array
- def get_search_conditions_for search, onlineonly
- return if !get_user
-
- cond_s = ""
- cond_a = []
- cond_s = "`current_time` > 0 and " if @onlineonly == "1"
-
- # cond_s = "`race` != 'Bleistift' and " if @loggedonly == "1"
-
- if amask?(Account::SEE_ALL_CHARACTERS)
- if search != ""
- if Character::StatusFields.index(search)
- cond_s += "`status` like ? "
- cond_a = ['%' + search + '%']
- #i f search == "register"
- # cond_s += "or (`status` = 'acc' ) "
- # end
- cond_s += "and "
- elsif search =~ /^\d+$/
- cond_s += '`id` = ? and '
- cond_a = [search]
- else
- search = '%' + search + '%'
-
- acc = Account.find(:all, :conditions => ['`account` like ?', search])
- cond_s += "("
- cond_s += ("account = ? or " * acc.size)
- cond_s += "`character` like ? or create_key like ? or "
- cond_s += "other_keys like ? or create_ip like ? or race like ? or "
- cond_s += "subrace like ? or "
- cond_s += "class1 like ? or class2 like ? or class3 like ? or "
- cond_s += "status like ? or familiar_name like ? or "
- cond_s += "deity like ? "
- cond_s += ") and "
- cond_a = [acc.map {|n| n.id }, [search] * 12].flatten
- end
- end
- else
- cond_s = "account = ? and "
- cond_a = [get_user.id]
- end
- cond = [cond_s + " 1=1", cond_a].flatten
-
- return cond
- end
-
-# private :get_search_results_for
-
-
- def show
- @debug = []
- order = "id asc"
- if amask(Account::SEE_ALL_CHARACTERS)
- @c = Character.find(:first, :conditions => ['id = ?', params[:id]], :order => order)
- else
- @c = Character.find(:first, :conditions => ['id = ? and account = ?', params[:id], get_user.id], :order => order)
- end
-
- @audit = @c.last_audited_logins(50)
-
- if params['c'] && @c != nil
- @debug << "updating file"
- # Only char_admins may change character status
- if !amask(Account::IS_CHARACTER_ADMIN)
- @debug << "not charadmin"
- @debug << params['c']['status'].inspect
- @debug << @c.status
-
- if (!params['c']['status'] || params['c']['status'] == "") && @c.status == "new"
- @debug << "updating status"
- params['c']['status'] = "register"
- else
- return
- end
- end
-
- params['c']['register_on'] = Time.now if @c.register_on.nil? && params['c']['status'] == "register"
- (params['c']['biography'] || "").strip!
- (params['c']['traits'] || "").strip!
- (params['c']['appearance'] || "").strip!
-
- oldstat = @c.status
-
- if !@c.update_attributes(params['c'])
- flash[:notice] = "Konnte nicht abspeichern."
- flash[:errors] = @c.errors
- else
- flash[:notice] = "Abgespeichert."
- status = params['c']['status']
-
- if status != oldstat
- co = Comment.new(:body => "Status: #{oldstat} -> #{status}", :status => 'system')
- co.account = get_user.id
- co.character = @c.id
- co.save
- end
-
- # Send notification to all char_admins if status is now register and was new
- if status == "register" && oldstat == "new"
- to = Account.find(:all, :conditions => ['amask & ?', Account::IS_CHARACTER_ADMIN])
- Notifications.deliver_register(@c, to)
- end
-
- # Send notification to user if status != new and status != register
- if status != "new" && status != "register" && status != "register_accept" && get_user != @c.account
- to = [@c.account]
- em = Notifications.deliver_status(@c, to)
- end
- end
- end
-
- if params['comment'] && @c != nil
- params['comment']['status'] = "private"
- params['comment']['status'] = "public" if params['comment']['public'] == "1"
- params['comment'].delete "public"
-
- params['comment']['body'].strip!
-
- if Comment::count(:conditions => ['account = ? and `character` = ? and body = ?', get_user.id, params[:id], params['comment']['body']]) > 0
- flash[:notice] = "Bereits einen Kommentar geposted. Werde nicht noch einmal posten."
- return
- end
-
- c = Comment.new(params['comment'])
-
- if !amask(Account::SEE_ALL_CHARACTERS)
- c.status = 'public'
- end
-
- c.account = get_user.id
- c.character = params[:id]
- # c.date = Time.now
- # c.parent = 0
-
- if !c.save
- flash[:notice] = "Konnte nicht abspeichern!"
- flash[:errors] = c.errors
- else
- flash[:notice] = "Posted."
-
- # Send notification to all char_admins if the owner of the commented on char posted
- if @c.account == get_user && c.status == "public" && !amask(Account::IS_CHARACTER_ADMIN)
- to = Account.find(:all, :conditions => ['amask & ?', Account::IS_CHARACTER_ADMIN])
- Notifications.deliver_comment(c, to)
- flash[:notice] = "Posted, sowie Email an alle char_admins geschickt." if to.size > 0
- end
-
- # Send notification to the owning account if a public comment was posted by a char_admin
- if amask(Account::IS_CHARACTER_ADMIN) && c.status == "public"
- to = [c.character.account]
- Notifications.deliver_comment(c, to)
- flash[:notice] = "Posted, sowie Email an Spieler geschickt."
- end
-
- end
- end
- end
-
- def consistency
- return unless params['run_check']
-
- dupes = []
- Character.find(:all).each do |char|
-
- # Find duplicates in character names
- ch = Character.find(:all, :conditions => ['`character` = ?', char.character])
- dupes << ch if ch.size > 1
-
- # find duplicates in account names
- ch = Character.find(:all, :conditions => ['`account` = ?', char.account])
- dupes << ch if ch.size > 1
-
- end
-
-
- # flatten the stuff and filter out same rows
- @characters = dupes.flatten.uniq
- end
-end
View
52 cdb/app/controllers/chatlog_controller.rb
@@ -1,52 +0,0 @@
-class ChatlogController < ApplicationController
- before_filter {|c| c.authenticate(Account::CAN_SEE_CHATLOGS) }
-
- def index
- if params['goto']
- # parse date!
- # session['cl_goto'] = @goto
- end
- @goto = session['cl_goto'] || Time.now
-
- search = (params['chatlog_search'] || "").strip
- @csearch = search
- search = search.split(" ").reject{|x| x.strip == ""}.compact
- cond = "!(mode & 8) and timestamp >= date_sub(now(), interval 3 month) and ( "
- conda = []
- if search.size > 0
- search.each {|s|
- s = '%' + s + '%'
- cond += " "
- cond += " ("
- cond += " character_s like ? "
- cond += " or account_s like ? "
- cond += " or area like ? "
- cond += " ) or "
- conda << [s] * 3
- }
- end
- cond += " 1=1 )"
- order = "timestamp asc"
- perpage = 100
-
- if search.size > 0
- @log_pages, @logs = paginate :chatlogs, :order => order, :per_page => perpage, :conditions => [cond, conda].flatten
- else
- @log_pages, @logs = paginate :chatlogs, :order => order, :per_page => perpage, :conditions => [cond, conda].flatten
- end
-
- goto_index = Chatlog::find(:first, :conditions => ['timestamp >= from_unixtime(?)', @goto.to_i])
- if goto_index.nil?
- goto_index = Chatlog::find(:first, :order => 'timestamp desc')
- end
-
- # all items
- goto_count = Chatlog::count(:conditions => [cond,conda].flatten)
- if goto_index != nil
- cp = 5
- @log_pages.current_page = cp
- #render :text => "goto_count => #{goto_count}, perpage => #{perpage}, goto_index = #{goto_index.inspect}"
- end
- end
-
-end
View
15 cdb/app/controllers/chess_controller.rb
@@ -1,15 +0,0 @@
-class ChessController < ApplicationController
- def index
- list
- render :action => 'list'
- end
-
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
- verify :method => :post, :only => [ :destroy, :create, :update ],
- :redirect_to => { :action => :list }
-
- def list
- @chess_game_pages, @chess_games = paginate :chess_games, :per_page => 10
- end
-
-end
View
5 cdb/app/controllers/container_controller.rb
@@ -1,5 +0,0 @@
-class ContainerController < ApplicationController
-
- def index
- end
-end
View
117 cdb/app/controllers/craft_controller.rb
@@ -1,117 +0,0 @@
-class CraftController < ApplicationController
- before_filter {|c| c.authenticate(Account::CAN_SEE_CRAFTING) }
- before_filter(:only => %w{index}) {|c| c.authenticate(Account::CAN_SEE_CRAFTING) }
- before_filter(:only => %w{new show kill skill copy spell enchant}) {|c| c.authenticate(Account::CAN_EDIT_CRAFTING) }
-
- def enchant
- end
-
- def spell
- rspell = params['spell'] || -1
- rspell = rspell.to_i
-
- spellIDs = []
- for i in 0..9 do
- spellIDs << (params['spell_' + i.to_s] != nil ? params['spell_' + i.to_s].to_i : -1)
- end
- s = 0
- names = []
- max = 2048
-
- for i in 0..9 do
- break if spellIDs[i] < 0
- names << SPELLS.index(spellIDs[i])
- s += (i * max) + spellIDs[i]
- end
-
- @names = names
- @spell = s
-
- if rspell > -1
- @rnames = ["1", "2"]
- end
- end
-
- # Show a list of all recipes
- def index
- show_craft = params[:id].to_i
- @current_craft = show_craft
-
- session['last_show_craft'] = show_craft == 0 ? nil : show_craft
-
- @crafts = Craft.find(:all)
-
- @products = show_craft == 0 ?
- CraftingProduct.find(:all,
- :order => "cskill asc, cskill_min asc, cskill_max asc, name asc"
- # , :group => 'cskill'
- ) : CraftingProduct.find(:all,
- :conditions => ['cskill = ?', show_craft],
- :order => "cskill asc, cskill_min asc, cskill_max asc, name asc"
- # , :group => 'cskill'
- )
- end
-
- # Show/set the skills for a specific character id
- def skill
- @skills = CraftingSkill.find(:all, :conditions => ['`character`=?', params['id']])
- end
-
-
- # show/edit a specific recipe
- def show
- @product = CraftingProduct.find(params[:id])
-
- last_show_craft = session['last_show_craft'] || 0
-
- save = params['product']
-
- if save && @product
- save.delete("id")
- save['ability'] = ABILITY[save['ability']]
- save['skill'] = SKILLS[save['skill']]
- save['feat'] = FEATS[save['feat']]
- # save['spell'] = SPELLS[save['spell']]
- # save['spell_fail'] = SPELLS[save['spell_fail']]
- save['cskill'] = Craft.find(:first, :conditions => ['name = ?', save['cskill']]).cskill
-
-
- if @product.update_attributes(save)
- flash[:notice] = "Saved."
- redirect_to :action => 'index', :id => last_show_craft
- else
- flash[:notice] = "Failed."
- flash[:errors] = @product.errors
- end
- end
- end
-
- def new
- pd = CraftingProduct.create(:cskill => 1)
- redirect_to :action => 'show', :id => pd.id
- end
-
- def kill
- CraftingProduct.delete(params[:id])
- last_show_craft = session['last_show_craft'] || 0
- redirect_to :action => 'index', :id => last_show_craft
- end
-
- def copy
- p = CraftingProduct.find(params[:id])
- if !p
- notice[:error] = "Cannot find ID #{params[:id]}"
- redirect_to :action => 'show', :id => params[:id]
- else
- cp = p.clone
- if !cp.save
- notice[:error] = "Error saving stuff"
- notice[:errors] = cp.errors
- redirect_to :action => 'show', :id => params[:id]
- else
- redirect_to :action => 'show', :id => cp['id']
- end
- end
- end
-
-end
View
8 cdb/app/controllers/doc_controller.rb
@@ -1,8 +0,0 @@
-class DocController < ApplicationController
-
- def intro
- end
-
- def help
- end
-end
View
66 cdb/app/controllers/gem_chains_controller.rb
@@ -1,66 +0,0 @@
-class GemChainsController < ApplicationController
- before_filter() {|c| c.authenticate(Account::CAN_SEE_LOOT_CHAINS) }
- before_filter(:only => %w{add kill}) {|c| c.authenticate(Account::CAN_EDIT_LOOT_CHAINS) }
-
- ORDER = "stone, area, `order` asc"
-
- def auto_complete_for_new_loot
- auto_complete_responder_for_resrefs(params[:new][:loot])
- end
-
-
- def index
- @new = GemChain::new
- @loot_chains = GemChain::find(:all, :order => ORDER)
-
- # Save any changes.
- if amask(Account::CAN_EDIT_LOOT_CHAINS) && params['loot_chains']
- params['loot_chains'].each do |k,l|
- ll = @loot_chains[k.to_i]
- ll.update_attributes(l)
- if !ll.save
- flash[:notice] = "Cannot save."
- flash[:errors] = lo.errors
- return
- end
- end
- flash[:notice] = "Created/saved."
- end
-
- if amask(Account::CAN_EDIT_LOOT_CHAINS) && params['new']
- n = GemChain::new(params['new'])
- # n.racial_type = -1 if n.racial_type == nil
- if !n.save
- flash[:notice] = "Cannot create new item."
- flash[:errors] = n.errors
- return
- end
- flash[:notice] = "Created/saved."
- @loot_chains = GemChain::find(:all, :order => ORDER)
- end
- end
-
- def kill
- id = params[:id]
- begin
- GemChain::delete(id)
- rescue
- end
- redirect_to :action => 'index', :controller => 'gem_chains'
- end
-
- private
- def auto_complete_responder_for_resrefs(ref)
- # resref => { :name }
- ref = ref.downcase
- @resrefs = CraftingProduct::RESREFS.reject{|resref,hash|
- resref.downcase !~ /^.*#{Regexp.escape(ref)}.*$/ &&
- (hash[:name] || "").downcase !~ /^.*#{Regexp.escape(ref)}.*$/
- }
-
- @resrefs = @resrefs.sort[0,15]
-
- render :partial => 'autocomplete/resref'
- end
-
-end
View
5 cdb/app/controllers/intro_controller.rb
@@ -1,5 +0,0 @@
-class IntroController < ApplicationController
-
- def index
- end
-end
View
54 cdb/app/controllers/location_controller.rb
@@ -1,54 +0,0 @@
-class LocationController < ApplicationController
- before_filter() {|c| c.authenticate(Account::IS_GM) }
- before_filter(:only => %w{new create edit update destroy}) {|c| c.authenticate(Account::IS_GLOBAL_GM) }
-
- def index
- list
- render :action => 'list'
- end
-
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
- verify :method => :post, :only => [ :destroy, :create, :update ],
- :redirect_to => { :action => :list }
-
- def list
- @location_pages, @locations = paginate :locations, :per_page => 100, :order => "name asc"
- end
-
- def show
- @location = Location.find(params[:id])
- end
-
- def new
- @location = Location.new
- end
-
- def create
- @location = Location.new(params[:location])
- if @location.save
- flash[:notice] = 'Location was successfully created.'
- redirect_to :action => 'list'
- else
- render :action => 'new'
- end
- end
-
- def edit
- @location = Location.find(params[:id])
- end
-
- def update
- @location = Location.find(params[:id])
- if @location.update_attributes(params[:location])
- flash[:notice] = 'Location was successfully updated.'
- redirect_to :action => 'show', :id => @location
- else
- render :action => 'edit'
- end
- end
-
- def destroy
- Location.find(params[:id]).destroy
- redirect_to :action => 'list'
- end
-end
View
68 cdb/app/controllers/loot_chains_controller.rb
@@ -1,68 +0,0 @@
-class LootChainsController < ApplicationController
- before_filter() {|c| c.authenticate(Account::CAN_SEE_LOOT_CHAINS) }
- before_filter(:only => %w{add kill}) {|c| c.authenticate(Account::CAN_EDIT_LOOT_CHAINS) }
-
- ORDER = "racial_type, tag, resref, `name`, `order` asc"
-
- def auto_complete_for_new_loot
- auto_complete_responder_for_resrefs(params[:new][:loot])
- end
-
-
- def index
- @new = Loot::new
- @loot_chains = Loot::find(:all, :order => ORDER)
-
- # Save any changes.
- if amask(Account::CAN_EDIT_LOOT_CHAINS) && params['loot_chains']
- params['loot_chains'].each do |k,l|
- ll = @loot_chains[k.to_i]
- ll.update_attributes(l)
- if !ll.save
- flash[:notice] = "Cannot save."
- flash[:errors] = lo.errors
- return
- end
- end
- flash[:notice] = "Created/saved."
- end
-
- if amask(Account::CAN_EDIT_LOOT_CHAINS) && params['new'] &&
- (params['new']['resref'] != "" || params['new']['racial_type'] != 0 ||
- params['new']['tag'] != "") && params['new']['loot'] != ""
- n = Loot::new(params['new'])
- # n.racial_type = -1 if n.racial_type == nil
- if !n.save
- flash[:notice] = "Cannot create new item."
- flash[:errors] = n.errors
- return
- end
- flash[:notice] = "Created/saved."
- @loot_chains = Loot::find(:all, :order => ORDER)
- end
- end
-
- def kill
- id = params[:id]
- begin
- Loot::delete(id)
- rescue
- end
- redirect_to :action => 'index', :controller => 'loot_chains'
- end
-
- private
- def auto_complete_responder_for_resrefs(ref)
- # resref => { :name }
- ref = ref.downcase
- @resrefs = CraftingProduct::RESREFS.reject{|resref,hash|
- resref.downcase !~ /^.*#{Regexp.escape(ref)}.*$/ &&
- (hash[:name] || "").downcase !~ /^.*#{Regexp.escape(ref)}.*$/
- }
-
- @resrefs = @resrefs.sort[0,15]
-
- render :partial => 'autocomplete/resref'
- end
-
-end
View
115 cdb/app/controllers/merchant_controller.rb
@@ -1,115 +0,0 @@
-class MerchantController < ApplicationController
- before_filter(:only => %w{index}) {|c| c.authenticate(Account::CAN_SEE_MERCHANTS) }
- before_filter(:only => %w{kill_merc kill_inv add}) {|c| c.authenticate(Account::CAN_EDIT_MERCHANTS) }
-
- # List all merchants and their inventory
- def index
- @merchants = Merchant.find(:all)
- end
-
- def kill_merc
- m = params[:id]
- MerchantInventory.delete_all("merchant = ?", m)
- Merchant.delete(m)
- redirect_to :action => 'index', :controller => 'merchant'
- end
-
- def kill_inv
- m = MerchantInventory::find(params[:id]).merchant
- MerchantInventory.delete(params[:id])
- redirect_to :action => 'edit', :controller => 'merchant', :id => m
- end
-
- def add
- m = Merchant.new({
- 'text_buy' => 'So waehlt aus meinen exzellenten Waren!',
- 'text_sell' => 'Ich bin sicher, dass wir ins Geschaefte kommen.',
- 'text_nothingtobuy' => 'Nichts das Ihr mir anbietet findet Platz in meinem Geschaefte.',
- 'text_nothingtosell' => 'Derzeit habe ich keine Waren, die fuer Eure genannten Zwecke sinnvoll sind.',
- 'text_pcnomoney' => 'Mit Verlaub, mitnichten. Wovon wollt Ihr mich nur bezahlen?',
- 'text_mercnomoney' => 'Derzeit kann ich Euch leider nicht entlohnen. Versucht es zu spaeterer Zeit.',
- })
- m.tag = params['tag']
- m.save
- redirect_to :action => 'edit', :id => m.id
- end
-
-
- def edit
- if params[:id] == 0 || params[:id] == ""
- @m = Merchant.new
- else
- begin
- @m = Merchant.find(params[:id])
- rescue
- @m = nil
- return
- end
- end
-
- @mm = @m.merchant_inventory
-
-if amask(Account::CAN_EDIT_MERCHANTS)
- defaults = {
- 'resref' => "",
- 'min' => 0,
- 'cur' => 1,
- 'max' => 25,
- 'buy_markup' => 1.0,
- 'sell_markdown' => 1.0,
- 'comment' => 'add by %s' % [get_user.account],
- }
-
- @new = MerchantInventory.new(defaults)
- @new.merchant = @m.id
-
- params['mm'].each do |k, m|
- mi = @mm[k.to_i]
- if !mi || mi.merchant.to_i != @m['id'].to_i
- flash[:notice] = "Merchant ID invalid. stop frelling around with it (#{mi.merchant.to_i} vs #{@m['id'].to_i}"
- else
- mi.update_attributes(m)
- if !mi.save
- flash[:notice] = "Cannot save!"
- flash[:errors] = mi.errors
- return
- end
- end
- end if params['mm']
-
- if params['new'] && params['new']['resref'] != ""
- n = MerchantInventory::new(params['new'])
- n.merchant = @m.id
- if !n.save
- flash[:notice] = "Cannot save!"
- flash[:errors] = n.errors
- return
- end
- flash[:notice] = "Saved!"
- end
-
-
- @m.update_attributes(params['m'])
- @m.save
- end
-end
-
- def auto_complete_for_new_resref
- auto_complete_responder_for_resrefs(params[:new][:resref])
- end
-
- private
- def auto_complete_responder_for_resrefs(ref)
- # resref => { :name }
- ref = ref.downcase
- @resrefs = CraftingProduct::RESREFS.reject{|resref,hash|
- resref.downcase !~ /^.*#{Regexp.escape(ref)}.*$/ &&
- (hash[:name] || "").downcase !~ /^.*#{Regexp.escape(ref)}.*$/
- }
-
- @resrefs = @resrefs.sort[0,15]
-
- render :partial => 'autocomplete/resref'
- end
-
-end
View
65 cdb/app/controllers/persistent_objects_controller.rb
@@ -1,65 +0,0 @@
-class PersistentObjectsController < ApplicationController
- before_filter {|c| c.authenticate(Account::CAN_SET_PERSISTENCY) }
-
- def index
- list
- render :action => 'list'
- end
-
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
- verify :method => :post, :only => [ :destroy, :create, :update ],
- :redirect_to => { :action => :list }
-
- def list
- cond_str = '1=1'
- cond = []
-
- @filter_str = params['filter_str'] || session['po_filter'] || 'blut bloodstain knochen move_'
- session['po_filter'] = params['filter_str'] if params['filter_str']
-
- @filter_str.split(/\s+/).map {|x| x.gsub(/[^a-z]/i, "")}.each {|x|
- cond_str += ' and resref not like ? '
- cond << '%' + x + '%'
- }
- @persistent_object_pages, @persistent_objects = paginate :persistent_objects,
- :conditions => [cond_str].concat(cond),
- :per_page => 100
- end
-
- def show
- @persistent_object = PersistentObject.find(params[:id])
- end
-
- def new
- @persistent_object = PersistentObject.new
- end
-
- def create
- @persistent_object = PersistentObject.new(params[:persistent_object])
- if @persistent_object.save
- flash[:notice] = 'PersistentObject was successfully created.'
- redirect_to :action => 'list'
- else
- render :action => 'new'
- end
- end
-
- def edit
- @persistent_object = PersistentObject.find(params[:id])
- end
-
- def update
- @persistent_object = PersistentObject.find(params[:id])
- if @persistent_object.update_attributes(params[:persistent_object])
- flash[:notice] = 'PersistentObject was successfully updated.'
- redirect_to :action => 'show', :id => @persistent_object
- else
- render :action => 'edit'
- end
- end
-
- def destroy
- PersistentObject.find(params[:id]).destroy
- redirect_to :action => 'list'
- end
-end
View
54 cdb/app/controllers/rideables_controller.rb
@@ -1,54 +0,0 @@
-class RideablesController < ApplicationController
- before_filter() {|c| c.authenticate(Account::CAN_SEE_RIDEABLES) }
- before_filter(:only => %w{create edit update destroy} ) {|c| c.authenticate(Account::CAN_EDIT_RIDEABLES) }
-
- def index
- list
- render :action => 'list'
- end
-
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
- verify :method => :post, :only => [ :destroy, :create, :update ],
- :redirect_to => { :action => :list }
-
- def list
- @rideable_pages, @rideables = paginate :rideables, :per_page => 10
- end
-
- def show
- @rideable = Rideable.find(params[:id])
- end
-
- def new
- @rideable = Rideable.new
- end
-
- def create
- @rideable = Rideable.new(params[:rideable])
- if @rideable.save
- flash[:notice] = 'Rideable was successfully created.'
- redirect_to :action => 'list'
- else
- render :action => 'new'
- end
- end
-
- def edit
- @rideable = Rideable.find(params[:id])
- end
-
- def update
- @rideable = Rideable.find(params[:id])
- if @rideable.update_attributes(params[:rideable])
- flash[:notice] = 'Rideable was successfully updated.'
- redirect_to :action => 'show', :id => @rideable
- else
- render :action => 'edit'
- end
- end
-
- def destroy
- Rideable.find(params[:id]).destroy
- redirect_to :action => 'list'
- end
-end
View
63 cdb/app/controllers/scene_descriptions_controller.rb
@@ -1,63 +0,0 @@
-class SceneDescriptionsController < ApplicationController
- before_filter {|c| c.authenticate(Account::CAN_SET_PERSISTENCY) }
-
- def index
- list
- render :action => 'list'
- end
-
- # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
- verify :method => :post, :only => [ :destroy, :create, :update ],
- :redirect_to => { :action => :list }
-
- def list
- @show_locked = params['show_locked'] == '1'
- if params['show_locked'] == '1'
- @scene_description_pages, @scene_descriptions = paginate :scene_descriptions,
- :per_page => 100,
- :order => 'pid asc'
- else
- @scene_description_pages, @scene_descriptions = paginate :scene_descriptions,
- :per_page => 100,
- :conditions => ['`locked` = ?', 'false'],
- :order => 'pid asc'
- end
- end
-
- def show
- @scene_description = SceneDescription.find(params[:id])
- end
-
- def new
- @scene_description = SceneDescription.new
- end
-
- def create
- @scene_description = SceneDescription.new(params[:scene_description])
- if @scene_description.save
- flash[:notice] = 'SceneDescription was successfully created.'
- redirect_to :action => 'list'
- else
- render :action => 'new'
- end
- end
-
- def edit
- @scene_description = SceneDescription.find(params[:id])
- end
-
- def update
- @scene_description = SceneDescription.find(params[:id])
- if @scene_description.update_attributes(params[:scene_description])
- flash[:notice] = 'SceneDescription was successfully updated.'
- redirect_to :action => 'show', :id => @scene_description
- else
- render :action => 'edit'
- end
- end
-
- def destroy
- SceneDescription.find(params[:id]).destroy
- redirect_to :action => 'list'
- end
-end
View
18 cdb/app/controllers/set_controller.rb
@@ -1,18 +0,0 @@
-class SetController < ApplicationController
-
- def index
- @settings = GVSetting::find(:all, :order => '`type`, `key` desc')
-
- params['settings'].each do |k, m|
- mi = @settings[k.to_i]
- mi.update_attributes(m)
- if !mi.save
- flash[:notice] = "Cannot save!"
- flash[:errors] = mi.errors
- return
- end
-
- end if params['settings'] && amask?(Account::AMASK_CAN_EDIT_GV)
-
- end
-end
View
74 cdb/app/controllers/stat_controller.rb
@@ -1,74 +0,0 @@
-class StatController < ApplicationController
-
- before_filter {|c| c.authenticate(Account::SEE_ALL_CHARACTERS) }
-
- def mentor
- @totalmentor = MentorData.find_by_sql("select aid,sum(xp) as xp from mentordata group by aid order by xp desc")
- #:all, :group => "xp", :order => "xp desc")
- @mentor = MentorData.find(:all, :order => "aid asc, xp desc")
- end
-
- def time_xp
- @for_cid = (params[:id] || 0).to_i
-
- if params[:sub] == "Only today"
- @tend = Time.mktime(Time.now.year, Time.now.month, Time.now.day)
- @tstart = @tend
- else
-
- if params[:tend]
- @tend = Time.mktime(params[:tend][:year], params[:tend][:month], params[:tend][:day])
- session['timexp_end'] = @tend
- else
- if session['timexp_end']
- @tend = session['timexp_end']
- else
- @tend = Time.now - Time.now.hour * 3600
- end
- end
-
- if params[:tstart]
- @tstart = Time.mktime(params[:tstart][:year], params[:tstart][:month], params[:tstart][:day])
- session['timexp_start'] = @start
- else
- if session['timexp_start']
- @tstart = session['timexp_start']
- else
- @tstart = @tend - (3600 * 24 * 30 * 12) # 1yr
- end
- end
-
- end
-
- sort_by = params[:sort_by]
- sort_order = params[:sort_order] == 'asc' ? 'asc' : 'desc'
-
- where = " where cid != 0 and "
- where += " unix_timestamp(str_to_date(concat(day, '.', month, '.', year), '%%d.%%m.%%Y')) <= %d" % [@tend.to_i]
- where += " and unix_timestamp(str_to_date(concat(day, '.', month, '.', year), '%%d.%%m.%%Y')) >= %d" % [@tstart.to_i]
- where += " and cid = %d" % [@for_cid] if @for_cid > 0
- @where = where
- @xp_total = TimeXP.find_by_sql("select sum(xp) as xp from time_xp %s" % where)
-
- @xp_per_cid = TimeXP.find_by_sql("select cid, sum(xp) as xp, \
- min(day) as min_day, min(month) as min_month, min(year) as min_year, \
- max(day) as max_day, max(month) as max_month, max(year) as max_year \
- from time_xp %s group by cid order by xp %s" % [where, sort_order])
-
- @xp_per_cid_per_month = TimeXP.find_by_sql("select cid, sum(xp) as xp, month, year from time_xp %s group by cid, year, month order by xp %s" % [where, sort_order])
-
- @xp_per_cid_per_day = TimeXP.find_by_sql("select cid, sum(xp) as xp, day, month, year, str_to_date(concat(day,'.',month,'.',year), '%%d.%%m.%%Y') as ts from time_xp %s group by cid, day, year, month order by ts %s" % [where, sort_order])
-
- @xp_per_month = TimeXP.find_by_sql("select month,year,sum(xp) as xp, str_to_date(concat(month,'.',year), '%%m.%%Y') as ts from time_xp %s group by year,month order by ts %s" % [where, sort_order])
-
- @xp_per_day = TimeXP.find_by_sql("select day,month,year,sum(xp) as xp, str_to_date(concat(day,'.',month,'.',year), '%%d.%%m.%%Y') as ts from time_xp %s group by day,year,month order by ts %s" % [where, sort_order])
- end
-
-
-
- def lph_toplist
- @lph = Character::find_by_sql(
- 'select `character`, (messages / (total_time / 3600)) as `lph` from `characters` where messages > 400 and total_time > 3600 * 3 order by `lph` desc;'
- )
- end
-end
View
35 cdb/app/controllers/weather_controller.rb
@@ -1,35 +0,0 @@
-class WeatherController < ApplicationController
- before_filter {|c| c.authenticate(Account::CAN_CHANGE_WEATHER) }
-
- def index
- @overrides = WeatherOverride.find(:all, :order => "atype desc, ayear asc, amonth asc, aday asc")
- end
-
- def del
- WeatherOverride.delete(params['id'])
- redirect_to :action => 'index'
- end
-
- def add
- o = {'aid' => get_user['id'] }
- %w{atype ayear amonth aday zyear zmonth zday temp wind prec}.each do |i|
- o[i] = params[i]
- end
- o['wind'] = WeatherOverride.type_to_val(WeatherOverride::WIND_TYPES, o['wind'])
- o['temp'] = WeatherOverride.type_to_val(WeatherOverride::TEMP_TYPES, o['temp'])
- o['prec'] = WeatherOverride.type_to_val(WeatherOverride::PREC_TYPES, o['prec'])
-
- %w{wind prec temp ayear amonth aday zyear zmonth zday}.each do |i|
- o[i] = o[i].to_i
- end
-
- w = WeatherOverride.new(o)
- if !w.save
- flash[:error] = "Cannot save."
- flash[:errors] = w.errors
- else
- flash[:notice] = "Added."
- end
- redirect_to :action => "index", :controller => "weather"
- end
-end
View
60 cdb/app/find_cheaters.rb
@@ -1,60 +0,0 @@
-#!/usr/bin/ruby
-
-require 'rubygems'
-require_gem 'activerecord'
-
-
-def field(data, field)
- r = {}
- x = data.split(":")
- r[x.shift] = x.shift while x.size > 0
- r[field]
-end
-
-class Audit < ActiveRecord::Base
- set_table_name "audit"
-end
-ActiveRecord::Base.establish_connection(
- :adapter => 'mysql', :username => 'silm_nwserver', :password => 'NE6uYK2zuV4LEwsh', :database => 'silm_nwserver'
-)
-puts "connected"
-
-puts "Collecting"
-logs = Audit.find(:all, :conditions => ["category='module' and (event='login' or event='logout')"], :order => "date asc")
-puts "Collected #{logs.size} audit trails"
-
-# CAP!
-limit=820
-
-chr = {}
-xp = ""
-total_per_login = 0
-
-logs.each do |log|
- xp = field(log.data, "xp")
- if log.event == "login"
- chr[log.player + log.char] = [log.date, xp]
- else
- if (xp = chr[log.player + log.char]).nil?
- $stderr.print log.player + " " + log.char
- $stderr.puts ": logout without login"
- else
- date = xp[0]
- xp = xp[1]
- xp2 = field(log.data, "xp").to_i
- xp = xp.to_i
- diff = xp2-xp
- total_per_login += diff
- next if diff >= 6000 && diff < 6000+limit
- if diff > limit
- print log.player + " " + log.char
- print ": got " + diff.to_s + " on " + log.date.strftime("%c")
- puts ", logged in for " + (log.date - date).to_s + "s"
- end
- end
- chr.delete(log.player + log.char)
- end
-end
-
-print "average: "
-puts (total_per_login/logs.size).to_s
View
33 cdb/app/generate_table_hash.rb
@@ -1,33 +0,0 @@
-#!/usr/bin/ruby -w
-
-inf = $stdin.read
-indent = ARGV.shift.to_i
-
-spells = {}
-feats = {}
-skills = {}
-abilities = {}
-
-inf.each_line do |l|
- l.strip!
- case l
- when /^int\s+(SPELL_\S+)\s+=\s+(\d+);$/
- spells[$1] = $2.to_i;
- when /^int\s+(FEAT_\S+)\s+=\s+(\d+);$/
- feats[$1] = $2.to_i;
- when /^int\s+(SKILL_\S+)\s+=\s+(\d+);$/
- skills[$1] = $2.to_i;
- when /^int\s+(ABILITY_\S+)\s+=\s+(\d+);$/
- abilities[$1] = $2.to_i;
- end
-end
-
-spells["none"] = -1
-skills["none"] = -1
-feats["none"] = -1
-abilities["none"] = -1
-
-print "SPELLS = "; p spells
-print "FEATS = "; p feats
-print "SKILLS = "; p skills
-print "ABILITY = "; p abilities
View
45 cdb/app/get_playtime_for_cid.rb
@@ -1,45 +0,0 @@
-#!/usr/bin/ruby
-
-require 'rubygems'
-require_gem 'activerecord'
-
-cid = ARGV.shift or fail "No char specified."
-cid = "%" + cid + "%"
-
-def field(data, field)
- r = {}
- x = data.split(":")
- r[x.shift] = x.shift while x.size > 0
- r[field]
-end
-
-class Audit < ActiveRecord::Base
- set_table_name "audit"
-end
-ActiveRecord::Base.establish_connection(
- :adapter => 'mysql', :username => 'silm_nwserver', :password => 'NE6uYK2zuV4LEwsh', :database => 'silm_nwserver'
-)
-puts "connected"
-
-puts "Collecting"
-logs = Audit.find(:all, :conditions => ["category='module' and (event='login' or event='logout' or event='startup') and `char` like ?", cid], :order => "date asc")
-puts "Collected #{logs.size} audit trails"
-
-alltime = 0
-
-login = nil
-
-logs.each do |log|
- case log.event
- when 'startup', 'logout'
- if login != nil
- alltime += (log.date - login.date)
- login = nil
- end
-
- when 'login'
- login = log
- end
-end
-
-puts "all time in seconds: #{alltime}"
View
2  cdb/app/helpers/account_helper.rb
@@ -1,2 +0,0 @@
-module AccountHelper
-end
View
88 cdb/app/helpers/application_helper.rb
@@ -1,88 +0,0 @@
-# Methods added to this helper will be available to all templates in the application.
-module ApplicationHelper
- def link_to_product p, short = false
- t = link_to((p.name.nil? ? "<i>Unbenutzer Eintrag!</i>" : p.name), :controller => 'craft', :action => 'show', :id => p.id)
- t += " </b>(%d/%d/%s)" % [p.cskill_min, p.cskill_max, p.checks_s] if !short
- t += " <b>%.2f</b>" % [p.practical_xp_factor] if p.practical_xp_factor.to_f != 1.0
- t += " <span id='craft_prod_mag'>(m)</span>" if p.spell != -1
- t += " <span id='craft_prod_script'>(%s)</span>" % [p.s_craft] if p.s_craft != ""
- t
- end
-
-
- def link_to_character(c, short = false)
- return "Character not found" if c.nil?
- t = link_to((case c.status
- when "new"
- "<i>" + c.character + "</i>"
- when /^register/
- "<b>" + c.character + "</b>"
- when "ban"
- "<strike>" + c.character + "</strike>"
- else
- c.character
- end), {:controller => "character", :action => "show", :id => c.id }
- )
- t += " <u>#{c.class1_level + c.class2_level + c.class3_level}</u>" if !short
-
- if !short
- cx = c.comments.reject {|n| amask(Account::SEE_ALL_CHARACTERS) && !n.public? }.reject {|n| n.system? }
- t += " (#{cx.size} comment" + (cx.size > 1 ? "s" : "") + ")" if cx.size > 0
-
- t += " <a id='online'>Online!</a>" if c.online?
- end
-
-
- if amask(Account::SEE_ALL_CHARACTERS)
- if !short
- t += "<br><small>&nbsp;>"
- end
- if !short
- t += " "
- t += c.account.nil? ? "<i>Stray character, no such account_id!</i>" :
- link_to(c.account.account, :controller => 'character', :action => 'index', :search => c.account.account)
- end
- t += " " + link_to_account(c.account, true)
- end
-
-
- t
- end
-
- def link_to_account(a, short = false)
- t = ""
- t += link_to(short ? "?" : a.account, :controller => 'account', :action => 'show', :id => a.id)
- t += (short ? "" : " ") + link_to("a", :controller => 'account', :action => 'amask', :id => a.id) if a.amask > 0
- t
- end
-
-
- def strftime(otime)
- otime.strftime(session[:user].nil? || session[:user].strftime == "" ? "%c" : session[:user].strftime)
- end
-
- def fmt(t, tex = false)
- !tex ? simple_format(sanitize(t)) : textilize(t)
- end
-
- def amask(mask)
- return false if !get_user
- return (get_user.amask & mask > 0)
- end
-
-
-
- def get_current_month()
- return GVSetting.find(:first, :conditions => ["`key` = 't_month'"]).value
- end
-
- def get_current_day()
- return GVSetting.find(:first, :conditions => ["`key` = 't_day'"]).value
- end
-
- def get_user
- return nil if !session[:uid] || session[:uid] < 1
- return Account::find(session[:uid])
- end
-
-end
View
2  cdb/app/helpers/audit_helper.rb
@@ -1,2 +0,0 @@
-module AuditHelper
-end
View
2  cdb/app/helpers/changelog_helper.rb
@@ -1,2 +0,0 @@
-module ChangelogHelper
-end
View
16 cdb/app/helpers/character_helper.rb
@@ -1,16 +0,0 @@
-module CharacterHelper
- def status2string(status)
- return case status
- when "new"
- "Neu"
- when "register"
- "Anmeldung abgeschickt"
- when "accept"
- "Angemeldet"
- when "ban"
- "Abgelehnt"
- when "invalidate"
- "Invalidate Character"
- end
- end
-end
View
2  cdb/app/helpers/chatlog_helper.rb
@@ -1,2 +0,0 @@
-module ChatlogHelper
-end
View
2  cdb/app/helpers/chess_helper.rb
@@ -1,2 +0,0 @@
-module ChessHelper
-end
View
2  cdb/app/helpers/container_helper.rb
@@ -1,2 +0,0 @@
-module ContainerHelper
-end
View
2  cdb/app/helpers/craft_helper.rb
@@ -1,2 +0,0 @@
-module CraftHelper
-end
View
2  cdb/app/helpers/doc_helper.rb
@@ -1,2 +0,0 @@
-module DocHelper
-end
View
2  cdb/app/helpers/intro_helper.rb
@@ -1,2 +0,0 @@
-module IntroHelper
-end
View
2  cdb/app/helpers/location_helper.rb
@@ -1,2 +0,0 @@
-module LocationHelper
-end
View
2  cdb/app/helpers/loot_chains_helper.rb
@@ -1,2 +0,0 @@
-module LootChainsHelper
-end
View
2  cdb/app/helpers/merchant_helper.rb
@@ -1,2 +0,0 @@
-module MerchantHelper
-end
View
2  cdb/app/helpers/persistent_objects_helper.rb
@@ -1,2 +0,0 @@
-module PersistentObjectsHelper
-end
View
2  cdb/app/helpers/rideables_helper.rb
@@ -1,2 +0,0 @@
-module RideablesHelper
-end
View
2  cdb/app/helpers/scene_descriptions_helper.rb
@@ -1,2 +0,0 @@
-module SceneDescriptionsHelper
-end
View
2  cdb/app/helpers/set_helper.rb
@@ -1,2 +0,0 @@
-module SetHelper
-end
View
2  cdb/app/helpers/stat_helper.rb
@@ -1,2 +0,0 @@
-module StatHelper
-end
View
2  cdb/app/helpers/weather_helper.rb
@@ -1,2 +0,0 @@
-module WeatherHelper
-end
View
105 cdb/app/models/account.rb
@@ -1,105 +0,0 @@
-class Account < ActiveRecord::Base
- AMASK = {
- 'AMASK_ANY' , 0,
- 'AMASK_SEE_ALL_CHARACTERS' , 1,
- 'AMASK_CAN_SEE_ALL_CHARACTERS' , 1,
- 'AMASK_IS_CHARACTER_ADMIN' , 2,
- 'AMASK_CAN_USE_MACROS' , 4,
- 'AMASK_SEE_ALL_MENTORS' , 8,
- 'AMASK_CAN_SEE_ALL_MENTORS' , 8,
- 'AMASK_IS_GM' , 16,
- 'AMASK_GM' , 16,
- 'AMASK_IS_GLOBAL_GM' , 32,
- 'AMASK_GLOBAL_GM' , 32,
- 'AMASK_FORCETALK' , 64,
- 'AMASK_GLOBAL_FORCETALK' , 128,
- 'AMASK_CAN_SET_PERSISTENCY' , 256,
- 'AMASK_CAN_CHANGE_WEATHER' , 512,
- 'AMASK_CAN_SEE_CRAFTING' , 1024,
- 'AMASK_CAN_EDIT_CRAFTING' , 2048,
- 'AMASK_CAN_SEE_MERCHANTS' , 4096,
- 'AMASK_CAN_EDIT_MERCHANTS' , 8192,
- 'AMASK_CAN_SEE_CHATLOGS' , 16384,
- 'AMASK_CAN_SEE_PRIVATE_CHATLOGS' , 32768,
- 'AMASK_CAN_SEE_AUDIT_TRAILS' , 65536,
- 'AMASK_CAN_RESTART_SERVER' , 131072,
- 'AMASK_CAN_SEE_GV' , 262144,
- 'AMASK_CAN_EDIT_GV' , 524288,
- 'AMASK_CAN_SEE_ACCOUNT_DETAILS', 1048576,
- 'AMASK_CAN_SEE_RIDEABLES', 2097152,
- 'AMASK_CAN_EDIT_RIDEABLES', 4194304,
- 'AMASK_CAN_SEE_LOOT_CHAINS', 8388608,