mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-23 09:26:51 +01:00
a plugin to customize the join of file extension and the text mode. also add an API to the editor for this.
19 lines
355 B
PHP
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));
|
|
|
|
?>
|