Added example.
This commit is contained in:
42
OnlineEditorsExample/OnlineEditorsExamplePHP/config.php
Normal file
42
OnlineEditorsExample/OnlineEditorsExamplePHP/config.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
define('WEB_ROOT_URL', 'http://localhost');
|
||||
|
||||
$GLOBALS['FILE_SIZE_MAX'] = 5242880;
|
||||
$GLOBALS['STORAGE_PATH'] = "";
|
||||
|
||||
$GLOBALS['MODE'] = "";
|
||||
|
||||
$GLOBALS['DOC_SERV_VIEWD'] = array(".ppt",".pps",".odp",".pdf",".djvu",".fb2",".epub",".xps");
|
||||
$GLOBALS['DOC_SERV_EDITED'] = array(".docx",".doc",".odt",".xlsx",".xls",".ods",".csv",".pptx",".ppsx",".rtf",".txt",".mht",".html",".htm");
|
||||
$GLOBALS['DOC_SERV_CONVERT'] = array(".doc",".odt",".xls",".ods",".ppt",".pps",".odp",".rtf",".mht",".html",".htm",".fb2",".epub");
|
||||
|
||||
$GLOBALS['DOC_SERV_TIMEOUT'] = "120000";
|
||||
|
||||
$GLOBALS['DOC_SERV_STORAGE_URL'] = "https://doc.onlyoffice.com/FileUploader.ashx";
|
||||
$GLOBALS['DOC_SERV_CONVERTER_URL'] = "https://doc.onlyoffice.com/ConvertService.ashx";
|
||||
$GLOBALS['DOC_SERV_API_URL'] = "https://doc.onlyoffice.com/OfficeWeb/apps/api/documents/api.js";
|
||||
|
||||
$GLOBALS['DOC_SERV_PRELOADER_URL'] = "https://doc.onlyoffice.com/OfficeWeb/apps/api/documents/cache-scripts.html";
|
||||
|
||||
|
||||
$GLOBALS['ExtsSpreadsheet'] = array(".xls", ".xlsx",
|
||||
".ods", ".csv");
|
||||
|
||||
$GLOBALS['ExtsPresentation'] = array(".pps", ".ppsx",
|
||||
".ppt", ".pptx",
|
||||
".odp");
|
||||
|
||||
$GLOBALS['ExtsDocument'] = array(".docx", ".doc", ".odt", ".rtf", ".txt",
|
||||
".html", ".htm", ".mht", ".pdf", ".djvu",
|
||||
".fb2", ".epub", ".xps");
|
||||
|
||||
if ( !defined('ServiceConverterMaxTry') )
|
||||
define( 'ServiceConverterMaxTry', 3);
|
||||
|
||||
if ( !defined('ServiceConverterTenantId') )
|
||||
define( 'ServiceConverterTenantId', '_ContactUs_');
|
||||
if ( !defined('ServiceConverterKey') )
|
||||
define( 'ServiceConverterKey', '_ContactUs_');
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user