/** * 获取controller和action的名称 */ public static function getActionName() { if (php_sapi_name() === 'cli') { //cli模式 $options = getopt("c:a:"); $controllerName = $options['c']; if (!$controllerName) { $controllerName = DEFAULTCONTROLLER; } $actionName = $options['a']; if (!$actionName) { $actionName = DEFAULTACTION; } $controllerName = ucfirst($controllerName) . 'Command'; } else { session_start(); $controllerName = CommonRequest::getRequest('c'); if (!$controllerName) { $controllerName = DEFAULTCONTROLLER; } $actionName = CommonRequest::getRequest('a'); if (!$actionName) { $actionName = DEFAULTACTION; } $controllerName = ucfirst($controllerName) . 'Controller'; } return array($controllerName, $actionName); }
/** * 生成支付跳转链接 * * @return Wap支付中心URL * @throws Exception Wap支付中心连接异常, Wap支付中心初始化返回异常 */ function getURL() { $paraString = parent::genParaStr(); $domain = parent::getDomain(); $url = $domain . parent::$this->WAP_PAY_OPPOSITE_ADDRESS . '?' . $paraString; try { $http = new HttpClientUtil(); $util = new XmlParseUtil(); $str = $http->httpClientCall($url, "utf-8"); $wapPayInitResponse = new WapPayInitResponse($util->openapiXmlToMap($str, "utf-8"), parent::getSecretKey()); } catch (SDKRuntimeException $e) { die($e->errorMessage()); throw new SDKRuntimeException('Wap支付中心连接异常.' . $e->getMessage(), e); } if ($wapPayInitResponse && $wapPayInitResponse->isRetCodeOK()) { return $wapPayInitResponse->getURL(); } else { throw new SDKRuntimeException('Wap支付中心初始化返回异常.' . $wapPayInitResponse->getMessage()); } }
/** * 设置昵称 */ public function setNickName() { $this->outType = 'json'; $number = $_SESSION['number']; $name = CommonRequest::getRequest('name'); $mysql = CommonMysql::getInstance('localhost', 'root', ''); $data = $mysql->query('select nickName from test.user where nickName=:name', array('name' => $name)); if (!empty($data)) { $this->out = array('flag' => true, 'msg' => '该昵称已被占用!'); } else { $mysql->execute("insert into test.user(number,nickName) value ('{$number}','{$name}')"); $id = $mysql->getInsertID(); if (!empty($id)) { $_SESSION['nickName'] = $name; $this->out = array('flag' => true, 'msg' => '该昵称已被占用!'); } else { $this->out = array('flag' => false, 'msg' => '网络异常,请稍后重试!'); } } }
/** * 对于微博的SDK必须传入以下参数 * key=content(代表微博内容,根据http协议,中文作为http参数,必须作encoder操作) * key=picUrl(代表图片的全路径URL地址) * key=fromUrl(在发送微博或分享到qzone时,需要用到的来源地址定义) */ function setParameter($key, $value) { parent::setParameter($key, $value); }
function getURL() { $url = $this->getDomain() . "?" . parent::genParaStr(); return $url; }
/** * secretKey * @param secretKey */ function PayRequest($secretKey) { parent::__construct($secretKey); }
/** * @param string $alias * @throws BaseModuleDialogMethodNotFoundException * @throws BaseModuleDialogClassNotFoundException * @throws BaseModuleDialogFileNotFoundException * @throws BaseModuleDialogMissingException * @throws ProjectSecurityAccessDeniedException * @throws BaseModuleDialogNotFoundException * @throws ItemAddIOClassNotFoundException * @throws ItemAddIOFileNotFoundException * @throws ItemHandlerClassNotFoundException * @throws ItemPositionIDMissingException * @throws ItemParentIDMissingException * @throws ItemParentTypeMissingException * @throws ProjectStatusWithoutExtensionException * @throws BaseExtensionClassNotFoundException * @throws BaseExtensionFileNotFoundException * @throws BaseExtensionNotFoundException * @throws BaseExtensionMissingException */ public static function io_handler($alias) { global $project_security, $session, $transaction; if (isset($_GET['project_id']) and is_numeric($_GET['project_id'])) { $project_security = new ProjectSecurity($_GET['project_id']); if ($_GET['run'] != "new_subproject") { require_once "io/project_common.io.php"; ProjectCommon_IO::tab_header(); } } else { $project_security = new ProjectSecurity(null); } if (isset($_GET['run'])) { switch ($_GET['run']) { case "new": case "new_subproject": require_once "io/project.io.php"; ProjectIO::create(); break; case "myprojects": case "workon": case "accessdata": case "analyse": require_once "io/project.io.php"; ProjectIO::list_user_related_projects(null); break; case "userprojects": require_once "io/project.io.php"; ProjectIO::list_user_related_projects($_GET['id']); break; case "organ_unit": require_once "io/project.io.php"; ProjectIO::list_organisation_unit_related_projects(); break; case "detail": require_once "io/project.io.php"; ProjectIO::detail(); break; case "structure": require_once "io/project.io.php"; ProjectIO::structure(); break; // Project Log // Project Log case "log": require_once "io/project_log.io.php"; ProjectLogIO::list_project_related_logs(); break; // Tasks and Schedule // Tasks and Schedule case "add_task": require_once "io/project_task.io.php"; ProjectTaskIO::add(); break; case "schedule": case "show_tasks": require_once "io/project_task.io.php"; ProjectTaskIO::show(); break; case "task_detail": require_once "io/project_task.io.php"; ProjectTaskIO::detail(); break; case "task_delete": require_once "io/project_task.io.php"; ProjectTaskIO::delete(); break; case "task_edit_start": require_once "io/project_task.io.php"; ProjectTaskIO::edit_start(); break; case "task_edit_end": require_once "io/project_task.io.php"; ProjectTaskIO::edit_end(); break; // Administration // Administration case "admin": require_once "io/project_admin.io.php"; ProjectAdminIO::menu(); break; case "admin_rename": require_once "io/project_admin.io.php"; ProjectAdminIO::rename(); break; case "admin_chown": require_once "io/project_admin.io.php"; ProjectAdminIO::chown(); break; case "admin_move": require_once "io/project_admin.io.php"; ProjectAdminIO::move(); break; case "admin_quota": require_once "io/project_admin.io.php"; ProjectAdminIO::quota(); break; // Administration - Permission // Administration - Permission case "admin_permission": require_once "io/project_admin.io.php"; $project_admin_io = new ProjectAdminIO(); ProjectAdminIO::permission(); break; case "admin_permission_add_user": require_once "io/project_admin.io.php"; ProjectAdminIO::permission_add_user(); break; case "admin_permission_add_group": require_once "io/project_admin.io.php"; ProjectAdminIO::permission_add_group(); break; case "admin_permission_add_ou": require_once "io/project_admin.io.php"; ProjectAdminIO::permission_add_organisation_unit(); break; case "admin_permission_edit": require_once "io/project_admin.io.php"; ProjectAdminIO::permission_edit(); break; case "admin_permission_delete": require_once "io/project_admin.io.php"; ProjectAdminIO::permission_delete(); break; // Item Lister // Item Lister case "item_list": if ($project_security->is_access(1, false) == true) { if ($_GET['dialog']) { if ($_GET['dialog'] == "data") { $path_stack_array = array(); $folder_id = ProjectFolder::get_folder_by_project_id($_GET['project_id']); $folder = Folder::get_instance($folder_id); $init_array = $folder->get_object_id_path(); foreach ($init_array as $key => $value) { $temp_array = array(); $temp_array['virtual'] = false; $temp_array['id'] = $value; array_unshift($path_stack_array, $temp_array); } if (!$_GET['folder_id']) { $session->write_value("stack_array", $path_stack_array, true); } } $module_dialog = ModuleDialog::get_by_type_and_internal_name("item_list", $_GET['dialog']); if (file_exists($module_dialog['class_path'])) { require_once $module_dialog['class_path']; if (class_exists($module_dialog['class'])) { if (method_exists($module_dialog['class'], $module_dialog['method'])) { $module_dialog['class']::$module_dialog['method']("project", $_GET['project_id'], true); } else { throw new BaseModuleDialogMethodNotFoundException(); } } else { throw new BaseModuleDialogClassNotFoundException(); } } else { throw new BaseModuleDialogFileNotFoundException(); } } else { throw new BaseModuleDialogMissingException(); } } else { throw new ProjectSecurityAccessDeniedException(); } break; // Item Add // Item Add case "item_add": case "item_edit": if ($project_security->is_access(3, false) == true) { if ($_GET['dialog']) { if ($_GET['run'] == "item_add") { $module_dialog = ModuleDialog::get_by_type_and_internal_name("item_add", $_GET['dialog']); } elseif ($_GET['run'] == "item_edit") { $module_dialog = ModuleDialog::get_by_type_and_internal_name("item_edit", $_GET['dialog']); } if (is_array($module_dialog) and $module_dialog['class_path']) { if (file_exists($module_dialog['class_path'])) { require_once $module_dialog['class_path']; if (class_exists($module_dialog['class'])) { if (method_exists($module_dialog['class'], $module_dialog['method'])) { $project = new Project($_GET['project_id']); $project_item = new ProjectItem($_GET['project_id']); $project_item->set_status_id($project->get_current_status_id()); $project_item->set_gid($_GET['key']); $description_required = $project_item->is_description_required(); $keywords_required = $project_item->is_keywords_required(); if ($description_required and !$_POST['description'] and !$_GET['idk_unique_id'] or $keywords_required and !$_POST['keywords'] and !$_GET['idk_unique_id']) { require_once "core/modules/item/io/item.io.php"; ItemIO::information(http_build_query($_GET), $description_required, $keywords_required); } else { $current_status_requirements = $project->get_current_status_requirements($project->get_current_status_id()); if ($_GET['run'] == "item_add") { $module_dialog['class']::$module_dialog['method']($current_status_requirements[$_GET['key']]['type_id'], $current_status_requirements[$_GET['key']]['category_id'], "Project", $_GET['project_id'], $_GET['key']); } elseif ($_GET['run'] == "item_edit") { $module_dialog['class']::$module_dialog['method']($current_status_requirements[$_GET['key']]['fulfilled'][0]['item_id']); } } } else { throw new BaseModuleDialogMethodNotFoundException(); } } else { throw new BaseModuleDialogClassNotFoundException(); } } else { throw new BaseModuleDialogFileNotFoundException(); } } else { throw new BaseModuleDialogNotFoundException(); } } else { throw new BaseModuleDialogMissingException(); } } else { throw new ProjectSecurityAccessDeniedException(); } break; // Sub Item Add and Edit // Sub Item Add and Edit case "sub_item_add": case "sub_item_edit": if ($project_security->is_access(3, false) == true) { if ($_GET['parent']) { if (is_numeric($_GET['parent_id'])) { if (is_numeric($_GET['key'])) { $item_handling_class = Item::get_handling_class_by_type($_GET['parent']); if (class_exists($item_handling_class)) { $item_io_handling_class = $item_handling_class::get_item_add_io_handling_class(); if (file_exists("core/modules/" . $item_io_handling_class[0])) { require_once "core/modules/" . $item_io_handling_class[0]; if (class_exists($item_io_handling_class[1])) { if ($_GET['run'] == "sub_item_add") { $item_io_handling_class[1]::item_add_edit_handler("add"); } elseif ($_GET['run'] == "sub_item_edit") { $item_io_handling_class[1]::item_add_edit_handler("edit"); } } else { throw new ItemAddIOClassNotFoundException(); } } else { throw new ItemAddIOFileNotFoundException(); } } else { throw new ItemHandlerClassNotFoundException(); } } else { throw new ItemPositionIDMissingException(); } } else { throw new ItemParentIDMissingException(); } } else { throw new ItemParentTypeMissingException(); } } else { throw new ProjectSecurityAccessDeniedException(); } break; // Extension /** * @todo type filter */ // Extension /** * @todo type filter */ case "extension": if ($_GET['extension']) { $extension_id = Extension::get_id_by_identifier($_GET['extension']); if ($extension_id) { $extension = new Extension($extension_id); $main_file = constant("EXTENSION_DIR") . "/" . $extension->get_folder() . "/" . $extension->get_main_file(); $main_class = $extension->get_class(); if (file_exists($main_file)) { require_once $main_file; if (class_exists($main_class)) { $project = new Project($_GET['project_id']); $project_item = new ProjectItem($_GET['project_id']); $project_status_requirements = $project->get_current_status_requirements(); if (is_array($project_status_requirements) and count($project_status_requirements) >= 1) { foreach ($project_status_requirements as $key => $value) { if ($value['element_type'] == "extension" and $value['extension'] == $_GET['extension']) { if (is_array($value['filter']) and count($value['filter']) >= 1) { $filter_array = $value['filter']; } else { $filter_array = null; } break; } } } else { throw new ProjectStatusWithoutExtensionException(); } if ($filter_array) { $item_array = array(); foreach ($filter_array as $key => $value) { if (is_numeric($value['status'])) { $item_array = array_merge($item_array, $project_item->get_project_status_items($value['status'], true)); } } } else { $item_array = $project_item->get_project_items(true); } $event_identifier = uniqid("", true); if ($session->is_value("PROJECT_EXTENSION_EVENT_IDENTIFIER_ARRAY")) { $project_extension_event_identifier_array = $session->read_value("PROJECT_EXTENSION_EVENT_IDENTIFIER_ARRAY"); $project_extension_event_identifier_array[$event_identifier] = $_GET['project_id']; } else { $project_extension_event_identifier_array = array(); $project_extension_event_identifier_array[$event_identifier] = $_GET['project_id']; } $session->write_value("PROJECT_EXTENSION_EVENT_IDENTIFIER_ARRAY", $project_extension_event_identifier_array); $main_class::set_event_identifier($event_identifier); $main_class::set_target_folder_id(ProjectStatusFolder::get_folder_by_project_id_and_project_status_id($_GET['project_id'], $project->get_current_status_id())); $main_class::push_data($item_array); } else { throw new BaseExtensionClassNotFoundException(); } } else { throw new BaseExtensionFileNotFoundException(); } } else { throw new BaseExtensionNotFoundException(); } } else { throw new BaseExtensionMissingException(); } break; // Common Dialogs // Common Dialogs case "common_dialog": require_once "core/modules/base/common.request.php"; CommonRequest::common_dialog(); break; // Default // Default default: require_once "io/project.io.php"; ProjectIO::list_user_related_projects(null); break; } } else { require_once "io/project.io.php"; ProjectIO::list_user_related_projects(null); } }
/** * @param string $alias * @throws SampleSecurityAccessDeniedException * @throws BaseModuleDialogMethodNotFoundException * @throws BaseModuleDialogClassNotFoundException * @throws BaseModuleDialogFileNotFoundException * @throws BaseModuleDialogMissingException * @throws BaseModuleDialogNotFoundException * @throws ItemAddIOClassNotFoundException * @throws ItemAddIOFileNotFoundException * @throws ItemHandlerClassNotFoundException * @throws ItemPositionIDMissingException * @throws ItemParentIDMissingException * @throws ItemParentTypeMissingException */ public static function io_handler($alias) { global $sample_security, $session, $transaction; if ($_GET['sample_id']) { $sample_security = new SampleSecurity($_GET['sample_id']); require_once "io/sample_common.io.php"; SampleCommon_IO::tab_header(); } else { $sample_security = new SampleSecurity(null); } switch ($_GET['run']) { case "new": case "new_subsample": require_once "io/sample.io.php"; SampleIO::create(); break; case "clone": require_once "io/sample.io.php"; SampleIO::clone_sample(); break; case "organ_unit": require_once "io/sample.io.php"; SampleIO::list_organisation_unit_related_samples(); break; case "detail": require_once "io/sample.io.php"; SampleIO::detail(); break; case "move": require_once "io/sample.io.php"; SampleIO::move(); break; case "set_availability": require_once "io/sample.io.php"; SampleIO::set_availability(); break; case "location_history": require_once "io/sample.io.php"; SampleIO::location_history(); break; // Administration // Administration case "delete": require_once "io/sample_admin.io.php"; SampleAdminIO::delete(); break; case "rename": require_once "io/sample_admin.io.php"; SampleAdminIO::rename(); break; case "admin_permission_user": require_once "io/sample_admin.io.php"; SampleAdminIO::user_permission(); break; case "admin_permission_user_add": require_once "io/sample_admin.io.php"; SampleAdminIO::user_permission_add(); break; case "admin_permission_user_delete": require_once "io/sample_admin.io.php"; SampleAdminIO::user_permission_delete(); break; case "admin_permission_ou": require_once "io/sample_admin.io.php"; SampleAdminIO::ou_permission(); break; case "admin_permission_ou_add": require_once "io/sample_admin.io.php"; SampleAdminIO::ou_permission_add(); break; case "admin_permission_ou_delete": require_once "io/sample_admin.io.php"; SampleAdminIO::ou_permission_delete(); break; // Item Lister // Item Lister case "item_list": if ($sample_security->is_access(1, false) == true) { if ($_GET['dialog']) { if ($_GET['dialog'] == "data") { $path_stack_array = array(); $folder_id = SampleFolder::get_folder_by_sample_id($_GET['sample_id']); $folder = Folder::get_instance($folder_id); $init_array = $folder->get_object_id_path(); foreach ($init_array as $key => $value) { $temp_array = array(); $temp_array['virtual'] = false; $temp_array['id'] = $value; array_unshift($path_stack_array, $temp_array); } if (!$_GET['folder_id']) { $session->write_value("stack_array", $path_stack_array, true); } } $module_dialog = ModuleDialog::get_by_type_and_internal_name("item_list", $_GET['dialog']); if (file_exists($module_dialog['class_path'])) { require_once $module_dialog['class_path']; if (class_exists($module_dialog['class'])) { if (method_exists($module_dialog['class'], $module_dialog['method'])) { $module_dialog['class']::$module_dialog['method']("sample", $_GET['sample_id'], true, false); } else { throw new BaseModuleDialogMethodNotFoundException(); } } else { throw new BaseModuleDialogClassNotFoundException(); } } else { throw new BaseModuleDialogFileNotFoundException(); } } else { throw new BaseModuleDialogMissingException(); } } else { throw new SampleSecurityAccessDeniedException(); } break; case "item_add": case "item_edit": if ($sample_security->is_access(2, false) == true) { if ($_GET['dialog']) { if ($_GET['run'] == "item_add") { $module_dialog = ModuleDialog::get_by_type_and_internal_name("item_add", $_GET['dialog']); } elseif ($_GET['run'] == "item_edit") { $module_dialog = ModuleDialog::get_by_type_and_internal_name("item_edit", $_GET['dialog']); } if (is_array($module_dialog) and $module_dialog['class_path']) { if (file_exists($module_dialog['class_path'])) { require_once $module_dialog['class_path']; if (class_exists($module_dialog['class'])) { if (method_exists($module_dialog['class'], $module_dialog['method'])) { $sample_item = new SampleItem($_GET['sample_id']); $sample_item->set_gid($_GET['key']); $description_required = $sample_item->is_description_required(); $keywords_required = $sample_item->is_keywords_required(); if ($description_required and !$_POST['description'] and !$_GET['idk_unique_id'] or $keywords_required and !$_POST['keywords'] and !$_GET['idk_unique_id']) { require_once "core/modules/item/io/item.io.php"; ItemIO::information(http_build_query($_GET), $description_required, $keywords_required); } else { $sample = new Sample($_GET['sample_id']); $current_requirements = $sample->get_requirements(); if ($_GET['run'] == "item_add") { $module_dialog['class']::$module_dialog['method']($current_requirements[$_GET['key']]['type_id'], $current_requirements[$_GET['key']]['category_id'], "Sample", $_GET['sample_id'], $_GET['key']); } elseif ($_GET['run'] == "item_edit") { $module_dialog['class']::$module_dialog['method']($current_requirements[$_GET['key']]['fulfilled'][0]['item_id']); } } } else { throw new BaseModuleDialogMethodNotFoundException(); } } else { throw new BaseModuleDialogClassNotFoundException(); } } else { throw new BaseModuleDialogFileNotFoundException(); } } else { throw new BaseModuleDialogNotFoundException(); } } else { throw new BaseModuleDialogMissingException(); } } else { throw new SampleSecurityAccessDeniedException(); } break; // Sub Item Add // Sub Item Add case "sub_item_add": case "sub_item_edit": if ($sample_security->is_access(2, false) == true) { if ($_GET['parent']) { if (is_numeric($_GET['parent_id'])) { if (is_numeric($_GET['key'])) { $item_handling_class = Item::get_handling_class_by_type($_GET['parent']); if (class_exists($item_handling_class)) { $item_io_handling_class = $item_handling_class::get_item_add_io_handling_class(); if (file_exists("core/modules/" . $item_io_handling_class[0])) { require_once "core/modules/" . $item_io_handling_class[0]; if (class_exists($item_io_handling_class[1])) { if ($_GET['run'] == "sub_item_add") { $item_io_handling_class[1]::item_add_edit_handler("add"); } else { $item_io_handling_class[1]::item_add_edit_handler("edit"); } } else { throw new ItemAddIOClassNotFoundException(); } } else { throw new ItemAddIOFileNotFoundException(); } } else { throw new ItemHandlerClassNotFoundException(); } } else { throw new ItemPositionIDMissingException(); } } else { throw new ItemParentIDMissingException(); } } else { throw new ItemParentTypeMissingException(); } } else { throw new SampleSecurityAccessDeniedException(); } break; // Parent Item Lister // Parent Item Lister case "parent_item_list": if ($sample_security->is_access(1, false) == true) { if ($_GET['dialog']) { $sample = new Sample($_GET['sample_id']); $item_id = $sample->get_item_id(); $module_dialog = ModuleDialog::get_by_type_and_internal_name("parent_item_list", $_GET['dialog']); if (file_exists($module_dialog['class_path'])) { require_once $module_dialog['class_path']; if (class_exists($module_dialog['class'])) { if (method_exists($module_dialog['class'], $module_dialog['method'])) { $module_dialog['class']::$module_dialog['method']($item_id); } else { throw new BaseModuleDialogMethodNotFoundException(); } } else { throw new BaseModuleDialogClassNotFoundException(); } } else { throw new BaseModuleDialogFileNotFoundException(); } } else { throw new BaseModuleDialogMissingException(); } } else { throw new SampleSecurityAccessDeniedException(); } break; // Common Dialogs // Common Dialogs case "common_dialog": require_once "core/modules/base/common.request.php"; CommonRequest::common_dialog(); break; default: require_once "io/sample.io.php"; SampleIO::list_user_related_samples(); break; } }
/** * @param string $alias */ public static function io_handler($alias) { switch ($_GET['action']) { // General case "permission": require_once "io/data.io.php"; DataIO::permission(); break; case "chown": require_once "io/data.io.php"; DataIO::change_owner(); break; case "chgroup": require_once "io/data.io.php"; DataIO::change_group(); break; case "image_browser_detail": require_once "io/data.io.php"; DataIO::image_browser_detail(); break; case "image_browser_multi": require_once "io/data.io.php"; DataIO::image_browser_multi(); break; // Values // Values case "value_detail": require_once "io/value.io.php"; ValueIO::detail(); break; case "value_history": require_once "io/value.io.php"; ValueIO::history(); break; case "value_delete_version": require_once "io/value.io.php"; ValueIO::delete_version(); break; // File // File case "file_add": require_once "io/file.io.php"; FileIO::upload(); break; case "file_update": case "file_update_minor": require_once "io/file.io.php"; FileIO::update(); break; case "file_detail": require_once "io/file.io.php"; FileIO::detail(); break; case "file_history": require_once "io/file.io.php"; FileIO::history(); break; case "file_delete": require_once "io/file.io.php"; FileIO::delete(); break; case "file_delete_version": require_once "io/file.io.php"; FileIO::delete_version(); break; // Parameter // Parameter case "parameter_detail": require_once "io/parameter.io.php"; ParameterIO::detail(); break; case "parameter_history": require_once "io/parameter.io.php"; ParameterIO::history(); break; // Common Dialogs // Common Dialogs case "common_dialog": require_once "core/modules/base/common.request.php"; CommonRequest::common_dialog(); break; // Default // Default default: require_once "io/data.io.php"; DataIO::browser(); break; } }
/** * @param string $alias * @throws BaseModuleDialogMethodNotFoundException * @throws BaseModuleDialogClassNotFoundException * @throws BaseModuleDialogFileNotFoundException * @throws BaseModuleDialogMissingException */ public static function io_handler($alias) { global $user; if (isset($_GET['run']) and $_GET['run'] == "common_dialog" and isset($_GET['dialog'])) { require_once "common.request.php"; CommonRequest::common_dialog(); } else { switch ($alias) { case "search": switch ($_GET['run']) { case "search": require_once "io/search.io.php"; SearchIO::search($_GET['dialog']); break; case "header_search": require_once "io/search.io.php"; SearchIO::header_search($_POST['string'], $_POST['current_module']); break; default: require_once "io/search.io.php"; SearchIO::main(); break; } break; default: if (isset($_GET['run'])) { switch ($_GET['run']) { // BASE case "sysmsg": require_once "io/base.io.php"; BaseIO::list_system_messages(); break; case "system_info": require_once "io/base.io.php"; BaseIO::system_info(); break; case "software_info": require_once "io/base.io.php"; BaseIO::software_info(); break; case "license": require_once "io/base.io.php"; BaseIO::license(); break; case "base_user_lists": if ($_GET['dialog']) { $module_dialog = ModuleDialog::get_by_type_and_internal_name("base_user_lists", $_GET['dialog']); if (file_exists($module_dialog['class_path'])) { require_once $module_dialog['class_path']; if (class_exists($module_dialog['class'])) { if (method_exists($module_dialog['class'], $module_dialog['method'])) { $module_dialog['class']::$module_dialog['method'](); } else { throw new BaseModuleDialogMethodNotFoundException(); } } else { throw new BaseModuleDialogClassNotFoundException(); } } else { throw new BaseModuleDialogFileNotFoundException(); } } else { throw new BaseModuleDialogMissingException(); } break; // USER // USER case "user_profile": require_once "io/user.io.php"; UserIO::profile(); break; case "user_details": require_once "io/user.io.php"; UserIO::details(); break; case "user_change_personal": require_once "io/user.io.php"; UserIO::change_personal(); break; case "user_change_my_settings": require_once "io/user.io.php"; UserIO::change_my_settings(); break; case "user_change_password": require_once "io/user.io.php"; UserIO::change_password(); break; default: require_once "io/home.io.php"; break; } } else { require_once "io/home.io.php"; } break; } } }