<?php

class ConfigModifyPage extends CMSWebPageBase{

	function doPost(){
    	if(soy2_check_token()){
		
			if(isset($_POST["toggle_active"])){
				$id = $_POST["plugin_id"];
				$this->run("Plugin.ToggleActiveAction",array("pluginId"=>$id));
				SOY2PageController::redirect($_POST["back_url"]);
			}else if(isset($_POST["toggle_nonactive"])){
				$id = $_POST["plugin_id"];
				$this->run("Plugin.ToggleActiveAction",array("pluginId"=>$id));
				SOY2PageController::redirect($_POST["back_url"]);
			}else if(isset($_POST["category_modify"])){
				//TODO 実装
				$this->run("Plugin.CategoryApplyAction");
				SOY2PageController::redirect($_POST["back_url"]);
			}else{
				//do nothing
			}
    	}
		
	}

    function ConfigModifyPage() {
    	WebPage::WebPage();
    	$this->jump("Plugin");
    }
}
?>