Ejemplo n.º 1
0
 static function deleteActivation($id)
 {
     // retrieve model instance
     $model = ActivationModel::getInstance();
     // delegate deletion to the model
     $result = $model->delete($id);
     // reload list
     MenuController::activations();
 }
Ejemplo n.º 2
0
//    GNU Affero General Public License for more details.
//
//    You should have received a copy of the GNU Affero General Public License
//    along with this program.  If not, see http://www.gnu.org/licenses/
/*** start the session ***/
session_start();
include 'includes/authorize.php';
include 'controller.php';
include 'model.php';
$zone = $_GET['zone'];
$action = $_GET['action'];
switch ($zone) {
    case 'menu':
        switch ($action) {
            case 'activations':
                MenuController::activations();
                break;
            case 'events':
                MenuController::events();
                break;
            case 'logout':
                MenuController::logout();
                break;
            case 'about':
                MenuController::about();
                break;
            default:
                break;
        }
        break;
    case 'activations':