zentaobiz.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. $config->file->libreOfficeTurnon = 0;
  3. $config->file->sofficePath = '';
  4. if(isset($lang->excel))
  5. {
  6. $config->excel->editor['feedback'] = array('desc');
  7. $config->excel->freeze->feedback = 'title';
  8. $config->excel->noAutoFilter[] = 'feedback';
  9. $config->excel->editor['ticket'] = array('desc', 'resolution');
  10. $config->excel->freeze->ticket = 'title';
  11. }
  12. $config->file->allAllowExtensions = array('jpeg', 'jpg', 'gif', 'png', '.bmp', "flv", "swf", "mkv", "avi", "rm", "rmvb", "mpeg", "mpg", "ogg", "ogv", "mov", "wmv", "mp4", "webm", "mp3", "wav", "mid", 'doc', 'docx', 'dot', 'wps', 'wri', 'pdf', 'ppt', 'pptx', 'xls', 'xlsx', 'ett', 'xlt', 'xlsm', 'csv');
  13. /* wiki config */
  14. $config->word->wiki = new StdClass();
  15. $config->word->wiki->exportFields[] = 'title';
  16. $config->word->wiki->exportFields[] = 'content';
  17. $config->word->wiki->exportFields[] = 'files';
  18. $config->word->wiki->style['title'] = 'title';
  19. $config->word->wiki->style['content'] = 'showImage';
  20. /* product config */
  21. $config->word->product = new StdClass();
  22. $config->word->product->exportFields[] = 'title';
  23. $config->word->product->exportFields[] = 'content';
  24. $config->word->product->exportFields[] = 'files';
  25. $config->word->product->style['title'] = 'title';
  26. $config->word->product->style['content'] = 'showImage';
  27. /* project config */
  28. $config->word->project = new StdClass();
  29. $config->word->project->exportFields[] = 'title';
  30. $config->word->project->exportFields[] = 'content';
  31. $config->word->project->exportFields[] = 'files';
  32. $config->word->project->style['title'] = 'title';
  33. $config->word->project->style['content'] = 'showImage';
  34. /* execution config */
  35. $config->word->execution = new StdClass();
  36. $config->word->execution->exportFields[] = 'title';
  37. $config->word->execution->exportFields[] = 'content';
  38. $config->word->execution->exportFields[] = 'files';
  39. $config->word->execution->style['title'] = 'title';
  40. $config->word->execution->style['content'] = 'showImage';
  41. /* custom config */
  42. $config->word->custom = new StdClass();
  43. $config->word->custom->exportFields[] = 'title';
  44. $config->word->custom->exportFields[] = 'content';
  45. $config->word->custom->exportFields[] = 'files';
  46. $config->word->custom->style['title'] = 'title';
  47. $config->word->custom->style['content'] = 'showImage';
  48. $config->word->api = new StdClass();
  49. $config->word->api->exportFields[] = 'title';
  50. $config->word->api->exportFields[] = 'content';
  51. $config->word->api->style['title'] = 'title';
  52. $config->word->api->style['content'] = 'showImage';
  53. $config->word->mine = new StdClass();
  54. $config->word->mine->exportFields[] = 'title';
  55. $config->word->mine->exportFields[] = 'content';
  56. $config->word->mine->exportFields[] = 'files';
  57. $config->word->mine->style['title'] = 'title';
  58. $config->word->mine->style['content'] = 'showImage';
  59. $config->word->size = new stdclass();
  60. $config->word->size->titles[1] = 20;
  61. $config->word->size->titles[2] = 18;
  62. $config->word->size->titles[3] = 16;
  63. $config->word->size->titles[4] = 14;
  64. $config->word->imageExtension = array('png', 'jpg', 'gif', 'jpeg');
  65. $config->file->docExportType = 'text,word,ppt,excel,url,article,attachment';
  66. $config->file->docFileType = 'text,word,ppt,excel,url,attachment';