mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
48 lines
2.2 KiB
PHP
48 lines
2.2 KiB
PHP
<?php
|
|
|
|
$GLOBALS['version'] = "1.0.0";
|
|
|
|
$GLOBALS['FILE_SIZE_MAX'] = 5242880;
|
|
$GLOBALS['STORAGE_PATH'] = "";
|
|
$GLOBALS['ALONE'] = FALSE;
|
|
|
|
$GLOBALS['DOC_SERV_FILLFORMS'] = array(".oform", ".docx");
|
|
$GLOBALS['DOC_SERV_VIEWD'] = array(".pdf", ".djvu", ".xps", ".oxps");
|
|
$GLOBALS['DOC_SERV_EDITED'] = array(".docx", ".xlsx", ".csv", ".pptx", ".txt", ".docxf");
|
|
$GLOBALS['DOC_SERV_CONVERT'] = array(".docm", ".doc", ".dotx", ".dotm", ".dot", ".odt", ".fodt", ".ott", ".xlsm", ".xls", ".xltx", ".xltm", ".xlt", ".ods", ".fods", ".ots", ".pptm", ".ppt", ".ppsx", ".ppsm", ".pps", ".potx", ".potm", ".pot", ".odp", ".fodp", ".otp", ".rtf", ".mht", ".html", ".htm", ".xml", ".epub", ".fb2");
|
|
|
|
$GLOBALS['DOC_SERV_TIMEOUT'] = "120000";
|
|
|
|
|
|
$GLOBALS['DOC_SERV_SITE_URL'] = "http://documentserver/";
|
|
|
|
$GLOBALS['DOC_SERV_CONVERTER_URL'] = "ConvertService.ashx";
|
|
$GLOBALS['DOC_SERV_API_URL'] = "web-apps/apps/api/documents/api.js";
|
|
$GLOBALS['DOC_SERV_PRELOADER_URL'] = "web-apps/apps/api/documents/cache-scripts.html";
|
|
$GLOBALS['DOC_SERV_COMMAND_URL'] = "coauthoring/CommandService.ashx";
|
|
|
|
$GLOBALS['DOC_SERV_JWT_SECRET'] = "";
|
|
$GLOBALS['DOC_SERV_JWT_HEADER'] = "Authorization";
|
|
|
|
$GLOBALS['EXAMPLE_URL'] = "";
|
|
|
|
$GLOBALS['MOBILE_REGEX'] = "android|avantgo|playbook|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\\/|plucker|pocket|psp|symbian|treo|up\\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino";
|
|
|
|
|
|
$GLOBALS['ExtsSpreadsheet'] = array(".xls", ".xlsx", ".xlsm",
|
|
".xlt", ".xltx", ".xltm",
|
|
".ods", ".fods", ".ots", ".csv");
|
|
|
|
$GLOBALS['ExtsPresentation'] = array(".pps", ".ppsx", ".ppsm",
|
|
".ppt", ".pptx", ".pptm",
|
|
".pot", ".potx", ".potm",
|
|
".odp", ".fodp", ".otp");
|
|
|
|
$GLOBALS['ExtsDocument'] = array(".doc", ".docx", ".docm",
|
|
".dot", ".dotx", ".dotm",
|
|
".odt", ".fodt", ".ott", ".rtf", ".txt",
|
|
".html", ".htm", ".mht", ".xml",
|
|
".pdf", ".djvu", ".fb2", ".epub", ".xps", ".oxps", ".oform");
|
|
|
|
|
|
?>
|