mirror of
https://github.com/Codiad/Codiad.git
synced 2026-03-05 00:44:00 +01:00
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) Codiad & Kent Safranski (codiad.com), distributed
|
|
* as-is and without warranty under the MIT License. See
|
|
* [root]/license.txt for more. This information must remain intact.
|
|
*/
|
|
|
|
|
|
require_once('../../common.php');
|
|
require_once('class.plugin_manager.php');
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// Verify Session or Key
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
checkSession();
|
|
|
|
$Plugin_manager = new Plugin_manager();
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// Deactivate Plugin
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
if($_GET['action']=='deactivate'){
|
|
if(checkAccess()) {
|
|
$Plugin_manager->Deactivate($_GET['name']);
|
|
}
|
|
}
|
|
|
|
//////////////////////////////////////////////////////////////////
|
|
// Activate Plugin
|
|
//////////////////////////////////////////////////////////////////
|
|
|
|
if($_GET['action']=='activate'){
|
|
if(checkAccess()) {
|
|
$Plugin_manager->Activate($_GET['name']);
|
|
}
|
|
}
|
|
|
|
|
|
?>
|