<?php /* * (c) Codiad & ccvca (https://github.com/ccvca) * @author ccvca (https://github.com/ccvca) * This Code is released under the same licence as Codiad (https://github.com/Codiad/Codiad) * See [root]/license.txt for more. This information must remain intact. */ require_once 'class.fileextension_textmode.php'; $fileExTM = new fileextension_textmode(); echo $fileExTM->processForms();
<?php /* * (c) Codiad & ccvca (https://github.com/ccvca) * @author ccvca (https://github.com/ccvca) * This Code is released under the same licence as Codiad (https://github.com/Codiad/Codiad) * See [root]/license.txt for more. This information must remain intact. */ require_once 'class.fileextension_textmode.php'; //check Session is done in constructor $fileExTM = new fileextension_textmode(); if (!isset($_GET['action'])) { die('Missing $_GET["action"]'); } switch ($_GET['action']) { ////////////////////////////////////////////////////////////////// //The form for edit the assotiations ////////////////////////////////////////////////////////////////// case 'fileextension_textmode_form': if (!Common::checkAccess()) { die('You are not allowed to edit the file extensions.'); } ////////////////////////////////////////////////////////////////// //Reading the current extensions ////////////////////////////////////////////////////////////////// $ext = false; //ignore warnings $ext = @Common::getJSON(fileextension_textmode::storeFilename); if (!is_array($ext)) { //default extensions $ext = $fileExTM->getDefaultExtensions();