myconfig.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. <?php
  2. /*
  3. * Dokeos - elearning and course management software
  4. *
  5. * Copyright (c) 2009 Dokeos SPRL
  6. * Copyright (c) 2009 Juan Carlos Raña
  7. * Copyright (c) 2009 Ivan Tcholakov
  8. *
  9. * For a full list of contributors, see "credits.txt".
  10. * The full license can be read in "license.txt".
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License
  14. * as published by the Free Software Foundation; either version 2
  15. * of the License, or (at your option) any later version.
  16. *
  17. * See the GNU General Public License for more details.
  18. *
  19. * Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
  20. * Mail: info@dokeos.com
  21. */
  22. /*
  23. * Custom editor configuration settings, php-side.
  24. *
  25. * Follow this link for more information:
  26. * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
  27. *
  28. */
  29. /*
  30. * Editor's toolbar definitions.
  31. */
  32. $config['ToolbarSets']['Full'] = array(
  33. array('FitWindow','PasteWord','Link','Unlink','Anchor','-','Image','flvPlayer','Flash','EmbedMovies','MP3','YouTube','Table','Rule','-','Subscript', 'Superscript','-','OrderedList','UnorderedList','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),'/',
  34. array('FontFormat','Style','FontName','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor', 'BGColor','-','Source')
  35. );
  36. $config['ToolbarSets']['Middle'] = array(
  37. array('FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Flash','Source')
  38. );
  39. $config['ToolbarSets']['Small'] = array(
  40. array('Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table')
  41. );//used by test ? exercice/feedback.php
  42. ////
  43. ///// Admin tools /////
  44. // Edit platform home page
  45. $config['ToolbarSets']['EditHomePage'] = array(
  46. array('NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'),
  47. array('Link','Unlink','Anchor'),
  48. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  49. array('Table','Smiley','SpecialChar','googlemaps'),
  50. array('FontFormat','FontName','FontSize'),
  51. array('Bold','Italic','Underline'),
  52. array('JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  53. array('Source')
  54. );
  55. // Insert or Edit a page link in the platform home page
  56. $config['ToolbarSets']['LinksHomePage'] = array(
  57. array('NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'),
  58. array('Link','Unlink','Anchor'),
  59. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  60. array('Table','Smiley','SpecialChar','googlemaps'),
  61. array('FontFormat','FontName','FontSize'),
  62. array('Bold','Italic','Underline'),
  63. array('JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  64. array('Source')
  65. );
  66. // System Announcements
  67. $config['ToolbarSets']['SystemAnnouncements'] = array(
  68. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  69. array('Link','Unlink','Anchor'),
  70. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  71. array('Table','SpecialChar'),
  72. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  73. '/',
  74. array('Style','FontFormat','FontName','FontSize'),
  75. array('Bold','Italic','Underline'),
  76. array('JustifyLeft','JustifyCenter','JustifyRight')
  77. );
  78. // Global Agenda
  79. $config['ToolbarSets']['GlobalAgenda'] = array(
  80. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  81. array('Link','Unlink'),
  82. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  83. array('Table','SpecialChar','googlemaps'),
  84. array('FontName','FontSize'),
  85. array('Bold','Italic','Underline'),
  86. array('OrderedList','UnorderedList','-','TextColor','BGColor'),
  87. array('Source')
  88. );
  89. // Admin Templates
  90. $config['ToolbarSets']['AdminTemplates'] = array(
  91. array('NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'),
  92. array('Bold','Italic','Underline'),
  93. array('Link','Unlink','Anchor'),
  94. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  95. array('Table','Smiley','SpecialChar','googlemaps'),
  96. array('FontFormat','FontName','FontSize'),
  97. array('JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  98. array('Source')
  99. );
  100. // FAQ
  101. $config['ToolbarSets']['FAQ'] = array(
  102. array('Save','Preview','Source')
  103. );
  104. ///// users tools /////
  105. // My Profile (optional fields)
  106. $config['ToolbarSets']['Profil'] = array(
  107. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  108. array('Link','Unlink','Anchor'),
  109. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  110. array('Table','Smiley'),
  111. '/',
  112. array('FontName','FontSize'),
  113. array('Bold','Italic','Underline'),
  114. array('JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'),
  115. array('Source')
  116. );
  117. // Messages
  118. $config['ToolbarSets']['Messages'] = array(
  119. array('FitWindow','Undo','Redo'),
  120. array('Link','Unlink'),
  121. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  122. array('Table','Smiley','googlemaps'),
  123. array('Bold','Italic','Underline'),
  124. array('OrderedList','UnorderedList','-','Blockquote','-','TextColor'),
  125. array('ShowBlocks')
  126. );
  127. ///// Course tools /////
  128. // Course introduction
  129. $config['ToolbarSets']['Introduction'] = array(
  130. array('NewPage','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll'),
  131. array('Link','Unlink','Anchor'),
  132. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  133. array('Table','SpecialChar'),
  134. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  135. '/',
  136. array('Style','FontFormat','FontName','FontSize'),
  137. array('Bold','Italic','Underline'),
  138. array('JustifyLeft','JustifyCenter','JustifyRight')
  139. );
  140. // Agenda
  141. $config['ToolbarSets']['Agenda'] = array(
  142. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  143. array('Link','Unlink','Anchor'),
  144. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  145. array('Table','SpecialChar'),
  146. '/',
  147. array('Style','FontFormat','FontName','FontSize'),
  148. array('Bold','Italic','Underline'),
  149. array('JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  150. array('Source')
  151. );
  152. $config['ToolbarSets']['Agenda_Student'] = array(
  153. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  154. array('Link','Unlink','Anchor'),
  155. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  156. array('Table','SpecialChar'),
  157. '/',
  158. array('FontFormat','FontName','FontSize'),
  159. array('Bold','Italic','Underline'),
  160. array('JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  161. array('ShowBlocks')
  162. );
  163. // Announcements
  164. $config['ToolbarSets']['Announcements'] = array(
  165. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  166. array('Link','Unlink','Anchor'),
  167. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  168. array('Table','SpecialChar'),
  169. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  170. '/',
  171. array('Style','FontFormat','FontName','FontSize'),
  172. array('Bold','Italic','Underline'),
  173. array('JustifyLeft','JustifyCenter','JustifyRight')
  174. );
  175. $config['ToolbarSets']['Announcements_Student'] = array(
  176. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  177. array('Link','Unlink','Anchor'),
  178. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  179. array('Table','SpecialChar'),
  180. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  181. '/',
  182. array('Style','FontFormat','FontName','FontSize'),
  183. array('Bold','Italic','Underline'),
  184. array('JustifyLeft','JustifyCenter','JustifyRight'),
  185. array('ShowBlocks')
  186. );
  187. // Blog
  188. $config['ToolbarSets']['Blog'] = array(
  189. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  190. array('Link','Unlink','Anchor'),
  191. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  192. array('Table','googlemaps'),
  193. array('FontName','FontSize'),
  194. array('Bold','Italic','Underline'),
  195. array('JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'),
  196. array('Source')
  197. );
  198. $config['ToolbarSets']['Blog_Student'] = array(
  199. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  200. array('Link','Unlink','Anchor'),
  201. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  202. array('Table','googlemaps'),
  203. array('FontName','FontSize'),
  204. array('Bold','Italic','Underline'),
  205. array('JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'),
  206. array('ShowBlocks')
  207. );
  208. $config['ToolbarSets']['BlogComment'] = array(
  209. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  210. array('Link','Unlink'),
  211. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  212. array('Table','googlemaps'),
  213. array('Bold','Italic','Underline'),
  214. array('JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'),
  215. array('Source')
  216. );
  217. $config['ToolbarSets']['BlogComment_Student'] = array(
  218. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  219. array('Link','Unlink'),
  220. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  221. array('Table','googlemaps'),
  222. array('Bold','Italic','Underline'),
  223. array('JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'),
  224. array('ShowBlocks')
  225. );
  226. // Course Description
  227. $config['ToolbarSets']['CourseDescription'] = array(
  228. array('NewPage','Save','FitWindow','PasteWord','-','Undo','Redo'),
  229. array('Link','Unlink','Anchor'),
  230. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  231. array('Table','SpecialChar'),
  232. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','Source'),
  233. '/',
  234. array('Style','FontFormat','FontName','FontSize'),
  235. array('Bold','Italic','Underline'),
  236. array('JustifyLeft','JustifyCenter','JustifyRight')
  237. );
  238. // Documents
  239. $config['ToolbarSets']['Documents'] = array(
  240. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  241. array('Link','Unlink','Anchor'),
  242. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  243. array('Table','SpecialChar'),
  244. array('Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList','-','Source'),
  245. '/',
  246. array('Style','FontFormat','FontName','FontSize'),
  247. array('Bold','Italic','Underline'),
  248. array('JustifyLeft','JustifyCenter','JustifyRight')
  249. );
  250. $config['ToolbarSets']['Documents_Student'] = array(
  251. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  252. array('Link','Unlink','Anchor'),
  253. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  254. array('Table','SpecialChar'),
  255. array('Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList'),
  256. '/',
  257. array('Style','FontFormat','FontName','FontSize'),
  258. array('Bold','Italic','Underline'),
  259. array('JustifyLeft','JustifyCenter','JustifyRight'),
  260. array('ShowBlocks')
  261. );
  262. // Forum
  263. $config['ToolbarSets']['ForumLight'] = array(
  264. array('Bold','Italic','Underline','StrikeThrough')
  265. );
  266. $config['ToolbarSets']['Forum'] = array(
  267. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  268. array('Link','Unlink','Anchor'),
  269. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  270. array('Table','SpecialChar'),
  271. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','Source'),
  272. '/',
  273. array('Style','FontFormat','FontName','FontSize'),
  274. array('Bold','Italic','Underline'),
  275. array('JustifyLeft','JustifyCenter','JustifyRight')
  276. );
  277. $config['ToolbarSets']['Forum_Student'] = array(
  278. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  279. array('Link','Unlink','Anchor'),
  280. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  281. array('Table','SpecialChar'),
  282. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  283. '/',
  284. array('Style','FontFormat','FontName','FontSize'),
  285. array('Bold','Italic','Underline'),
  286. array('JustifyLeft','JustifyCenter','JustifyRight'),
  287. array('ShowBlocks')
  288. );
  289. // Glossary
  290. $config['ToolbarSets']['Glossary'] = array(
  291. array('Save','FitWindow','PasteWord','-','Undo','Redo'),
  292. array('Link','Unlink','Anchor'),
  293. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  294. array('Table','SpecialChar'),
  295. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  296. '/',
  297. array('Style','FontFormat','FontName','FontSize'),
  298. array('Bold','Italic','Underline'),
  299. array('JustifyLeft','JustifyCenter','JustifyRight')
  300. );
  301. // Learning Path
  302. $config['ToolbarSets']['LearnPath'] = array(
  303. array('PasteWord','-','Undo','Redo'),
  304. array('Link','Unlink','Anchor'),
  305. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','Table','SpecialChar'),
  306. array('Outdent','Indent','TextColor','BGColor','-','OrderedList','UnorderedList','JustifyLeft','JustifyCenter','JustifyRight'),
  307. '/',
  308. array('Style','FontFormat','FontName','FontSize'),
  309. array('Bold','Italic','Underline','-','Source'),
  310. );//save, FitWindow don't run well here
  311. $config['ToolbarSets']['CommentLearningPath'] = array(
  312. array('Link','Unlink','Bold','Italic','TextColor','BGColor','Source')
  313. );
  314. // Notebook
  315. $config['ToolbarSets']['Notebook'] = array(
  316. array('Save','FitWindow','-','PasteWord','-','Undo','Redo'),
  317. array('Link','Unlink','Anchor'),
  318. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  319. array('Table','SpecialChar'),
  320. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  321. '/',
  322. array('Style','FontFormat','FontName','FontSize'),
  323. array('Bold','Italic','Underline'),
  324. array('JustifyLeft','JustifyCenter','JustifyRight')
  325. );
  326. $config['ToolbarSets']['Notebook_Student'] = array(
  327. array('Save','FitWindow','-','PasteWord','-','Undo','Redo'),
  328. array('Link','Unlink','Anchor'),
  329. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  330. array('Table','SpecialChar'),
  331. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  332. '/',
  333. array('Style','FontFormat','FontName','FontSize'),
  334. array('Bold','Italic','Underline'),
  335. array('JustifyLeft','JustifyCenter','JustifyRight'),
  336. array('ShowBlocks')
  337. );
  338. // Survey
  339. $config['ToolbarSets']['Survey'] = array(
  340. array('FitWindow'),
  341. array('Link','Unlink'),
  342. array('Image'),
  343. array('Table'),
  344. array('FontSize'),
  345. array('Bold','Italic'),
  346. array('OrderedList','UnorderedList','-','TextColor'),
  347. array('Source')
  348. );
  349. // Test
  350. $config['ToolbarSets']['TestDescription'] = array(
  351. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  352. array('Link','Unlink','Anchor'),
  353. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  354. array('Table','SpecialChar'),
  355. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  356. '/',
  357. array('Style','FontFormat','FontName','FontSize'),
  358. array('Bold','Italic','Underline'),
  359. array('JustifyLeft','JustifyCenter','JustifyRight')
  360. );
  361. $config['ToolbarSets']['QuestionDescription'] = array(
  362. array('FitWindow','-','PasteWord','-','Undo','Redo'),
  363. array('Link','Unlink'),
  364. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  365. array('Table','SpecialChar'),
  366. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
  367. '/',
  368. array('Style','FontFormat','FontName','FontSize'),
  369. array('Bold','Italic','Underline'),
  370. array('JustifyLeft','JustifyCenter','JustifyRight')
  371. );
  372. $config['ToolbarSets']['Answer'] = array(
  373. array('FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','Source')
  374. );
  375. $config['ToolbarSets']['FreeAnswer'] = array(
  376. array('FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','ShowBlocks')
  377. );
  378. $config['ToolbarSets']['CommentAnswers'] = array(
  379. array('Link','Unlink','Bold','Italic','TextColor','BGColor')
  380. );
  381. // Wiki
  382. $config['ToolbarSets']['Wiki'] = array(
  383. array('NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','-','Undo','Redo','-','SelectAll','-','Find'),
  384. array('Wikilink','Link','Unlink','Anchor'),
  385. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  386. array('Table','Smiley','SpecialChar','googlemaps'),
  387. array('FontFormat','FontName','FontSize'),
  388. array('Bold','Italic','Underline'),
  389. array('Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  390. array('Source')
  391. );
  392. $config['ToolbarSets']['Wiki_Student'] = array(
  393. array('NewPage','Save','PageBreak','Preview','FitWindow','-','PasteText','-','Undo','Redo','-','SelectAll','-','Find'),
  394. array('Wikilink','Link','Unlink','Anchor'),
  395. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  396. array('Table','Smiley','SpecialChar','googlemaps'),
  397. array('FontFormat','FontName','FontSize'),
  398. array('Bold','Italic','Underline'),
  399. array('Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  400. array('ShowBlocks')
  401. );
  402. // Gradebook
  403. $config['ToolbarSets']['Gradebook'] = array(
  404. array('Save','FitWindow','-','PasteWord','-','Undo','Redo'),
  405. array('Link','Unlink','Anchor'),
  406. array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'),
  407. array('Table','SpecialChar'),
  408. array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
  409. '/',
  410. array('Style','FontFormat','FontName','FontSize'),
  411. array('Bold','Italic','Underline'),
  412. array('Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
  413. array('Source')
  414. );