static function deleteActivation($id) { // retrieve model instance $model = ActivationModel::getInstance(); // delegate deletion to the model $result = $model->delete($id); // reload list MenuController::activations(); }
// 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':