$userfile = JRequest::getVar('userfile', null, 'files', 'array');
        uploadTheme($userfile);
        break;
    case 'installfromdir':
        $userfile = JRequest::getCmd('userfile', '');
        installTheme($userfile);
        break;
    case 'edit_css':
        editThemeCSS($cid[0]);
        break;
    case 'apply_css':
    case 'save_css':
        saveThemeCSS();
        break;
    case 'remove':
        removeTheme($cid[0]);
        break;
    case 'publish':
        publishTheme($cid[0]);
        break;
    default:
        showThemes();
}
/**
* Compiles a list of installed, version 4.5+ templates
*
* Based on xml files found.  If no xml file found the template
* is ignored
*/
function showThemes()
{
Beispiel #2
0
 case 'add_theme':
 case 'edit_theme':
     edit_theme();
     break;
 case 'theme':
     show_theme();
     break;
 case 'save_theme':
 case 'apply_theme':
     save_theme();
     break;
 case 'cancel_theme':
     cancel_theme();
     break;
 case 'remove_theme':
     removeTheme();
     break;
 case 'preview_theme':
     preview_theme();
     break;
 case 'license':
     license();
     break;
 case 'plugin':
     plugin();
     break;
     ///////ev category
 ///////ev category
 case 'add_event_category':
     edit_event_category();
     break;
Beispiel #3
0
<?php

include_once '../models/connect_bdd.php';
include_once "../models/functions_bdd.php";
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    if ($_POST["name"] == "sp") {
        return removeSp($_POST["id"]);
    }
    if ($_POST["name"] == "e") {
        return removeEchelle($_POST["id"]);
    }
    if ($_POST["name"] == "t") {
        return removeTheme($_POST["id"]);
    }
} else {
    return false;
}