<?php
require_once(SYSTEM_LOGICS . 'developer/logic.php');

class ControlDeveloper extends LogicDeveloper {

	/*-------------------------------------------------------------------------
	* @ メン�?変数
	-------------------------------------------------------------------------*/

	/*-------------------------------------------------------------------------
	* @function_name: ロジック�?�コンストラクタ
	* @parameter	: �?��?�
	* @return		: �?��?�
	-------------------------------------------------------------------------*/
	public function __construct() {
		parent::__construct();
	}
	
	
	/*-------------------------------------------------------------------------
	* @function_name: コントロールパ�?ルシステム動画データ編集ロジック（�?�クラス共通）
	* @parameter	: �?��?�
	* @return		: �?��?�
	-------------------------------------------------------------------------*/
	public function action() {
		try {
		    $this -> checkAvailability("system", function(){
		        require_once($this -> getSystemHTML('TEMPLATE_MAINTENANCE_MODE_SYSTEM_PATH'));
		        exit();
		    });
		    
			// アクション実行
			$this -> logic();
			
			if($this -> getType() == TYPE_NEW_DEV_CREDENTIAL){
			    require_once($this -> getSystemHTML('TEMPLATE_DEVELOPER_NEW_CRED_PATH'));
			}else if($this -> getType() == TYPE_NEW_DEV_CREDENTIAL_CONFIRM){
			    require_once($this -> getSystemHTML('TEMPLATE_DEVELOPER_NEW_CRED_CONFIRM_PATH'));
			}else if($this -> getType() == TYPE_DEV_CREDENTIAL_EDIT){
			    require_once($this -> getSystemHTML('TEMPLATE_DEVELOPER_EDIT_CRED_PATH'));
			}else if($this -> getType() == TYPE_DEV_CREDENTIAL_MODIFY_PASSCODE){
			    require_once($this -> getSystemHTML('TEMPLATE_DEVELOPER_CHANGE_PASSCODE_PATH'));
			}else{
			    require_once($this -> getSystemHTML('TEMPLATE_DEVELOPER_PATH'));
			}
		} catch(Exception $e){
			header("Location: /");
		}	
	}
	
}
			
			

