Files
Codiad/components/fileExtTextMode/getFileExtTextModes.php
Christian von Arnim 9991285d49 Add FileExtensionTextMode plugin
a plugin to customize the join of file extension and the text mode.

also add an API to the editor for this.
2013-05-17 12:38:37 +02:00

19 lines
355 B
PHP

<?php
require_once '../../common.php';
require_once 'defaultValues.php';
Common::checkSession();
$ext = false;
//ignore warnings
$ext = @Common::getJSON('fileExtensions.php');
if(!is_array($ext)){
//default extensions
$ext = $defaultExtensions;
}
echo json_encode(array('status' => 'success', 'msg' => 'Extensions send', 'extensions' => $ext));
?>