Exemple #1
0
        } catch (Exception $e) {
            handleAjaxExceptions($e);
        }
        exit;
    }
    if (isset($_GET['reset_theme']) && $_GET['reset_theme'] == $currentSetTheme->{$currentSetTheme->entity}['id']) {
        try {
            $currentSetTheme->applySettings();
        } catch (Exception $e) {
            handleAjaxExceptions($e);
        }
        exit;
    }
    if (isset($_GET['export_theme']) && in_array($_GET['export_theme'], $legalValues) && eF_checkParameter($_GET['export_theme'], 'id')) {
        try {
            $theme = new themes($_GET['export_theme']);
            if ($theme->options['locked']) {
                throw new EfrontThemesException(_THEMELOCKED, EfrontThemesException::THEME_LOCKED);
            }
            $file = $theme->export();
            echo $file['path'];
            //$theme -> applySettings();
            //EfrontConfiguration::setValue('theme', $_GET['set_theme']);
        } catch (Exception $e) {
            handleAjaxExceptions($e);
        }
        exit;
    }
} catch (Exception $e) {
    handleNormalFlowExceptions($e);
}