$minifyScripts .= FOLDER . "core/js/front-end/html.js,"; $minifyScripts .= FOLDER . "core/js/front-end/link.js,"; $minifyScripts .= FOLDER . "core/js/front-end/url.js,"; $minifyScripts .= FOLDER . "core/js/front-end/wysiwyg.js,"; // 3rd party scripts $minifyScripts .= FOLDER . "core/js/3rd-party/angular-file-upload.min.js,"; $minifyScripts .= FOLDER . "core/js/3rd-party/angular-translate.min.js,"; $minifyScripts .= FOLDER . "core/js/3rd-party/angular-translate-loader-static-files.min.js,"; // $minifyScripts .= FOLDER."core/js/3rd-party/angular-translate-storage-cookie.min.js,"; $minifyScripts .= FOLDER . "core/js/3rd-party/diff_match_patch.js,"; $minifyScripts .= FOLDER . "core/js/3rd-party/angular-ui-tree.min.js"; $minifyCSS .= FOLDER . "core/css/cosmo-default-style.minify.css"; // Load menus $menus = $Cosmo->menusRead(); // Load theme files $settings = $Cosmo->settingsRead(); $theme = $settings['theme']; if (file_exists("themes/{$theme}/cosmo.json")) { $themeJSON = json_decode(file_get_contents("themes/{$theme}/cosmo.json")); // Add to module list if (!empty($themeJSON->module)) { $angularModules .= ",\n\t\t'" . $themeJSON->module . "'"; } // Get all Directives if (!empty($themeJSON->directives)) { foreach ($themeJSON->directives as $directive) { $directives[] = $directive; } } // Get all classes if (!empty($themeJSON->classes)) {
if ($role === 'admin') { $response = $Cosmo->modulesDelete($segments[1]); } break; } break; ################################################## # Settings # ################################################## ################################################## # Settings # ################################################## case 'settings': switch ($method) { case 'GET': $response = $Cosmo->settingsRead(); break; case 'PUT': $siteName = isset($_PUT['siteName']) ? $_PUT['siteName'] : ''; $slogan = isset($_PUT['slogan']) ? $_PUT['slogan'] : ''; $logo = isset($_PUT['logo']) ? $_PUT['logo'] : ''; $favicon = isset($_PUT['favicon']) ? $_PUT['favicon'] : ''; $email = isset($_PUT['email']) ? $_PUT['email'] : ''; $language = isset($_PUT['language']) ? $_PUT['language'] : ''; $maintenanceURL = isset($_PUT['maintenanceURL']) ? $_PUT['maintenanceURL'] : ''; $maintenanceMode = isset($_PUT['maintenanceMode']) ? $_PUT['maintenanceMode'] : ''; if ($role === 'admin') { $response = $Cosmo->settingsUpdate($siteName, $slogan, $logo, $favicon, $email, $language, $maintenanceURL, $maintenanceMode); } break; default: