} require_once '../common.php'; require_once '../functions_tool_main.php'; $domainList = tool_admin_domains_get_list(); $service_command = "aes.execScript df"; if (defined('NELTOOL_CRON_DEBUG')) { echo "domainList\n" . print_r($domainList, true) . "\n"; } $aesList = array(); if (is_array($domainList)) { reset($domainList); foreach ($domainList as $domain_data) { if ($domain_data['domain_hd_check'] == 1) { //echo '<pre>'. print_r($domain_data, true) .'</pre>'; $adminService = new MyAdminService(); if (@$adminService->connect($domain_data['domain_as_host'], $domain_data['domain_as_port'], $res) !== false) { $status = $adminService->getStates(); $domainServices = tool_main_parse_status($status); $aesList = tool_main_get_aes_from_status($domainServices); //echo '<pre>'. print_r($aesList, true) .'</pre>'; if (sizeof($aesList)) { reset($aesList); foreach ($aesList as $service) { $adminService->serviceCmd($service, $service_command); if (!$adminService->waitCallback()) { // error } } $aes_df_result = $tpl->get_template_vars('tool_execute_result'); $tpl->clear_assign('tool_execute_result'); if (defined('NELTOOL_NO_USER_NEEDED') && defined('NELTOOL_CRON_DEBUG')) {
} if (tool_admin_applications_check('tool_guild_locator_manage_forums')) { $tpl->assign('restriction_tool_guild_locator_manage_forums', true); } if ($view_domain_id) { $tool_as_error = null; $AS_Name = tool_main_get_domain_name($view_domain_id); $AS_Host = tool_main_get_domain_host($view_domain_id); $AS_Port = tool_main_get_domain_port($view_domain_id); $AS_ShardName = tool_main_get_shard_name($view_shard_id); $MFS_Web = tool_main_get_domain_data($view_domain_id, 'domain_mfs_web'); $tpl->assign('tool_page_title', 'Guild Locator - ' . $AS_Name . ($AS_ShardName != '' ? ' / ' . $AS_ShardName : '')); $tool_as_error = null; if ($AS_Host && $AS_Port) { $adminService = new MyAdminService(); if (@$adminService->connect($AS_Host, $AS_Port, $res) === false) { nt_common_add_debug($res); $tpl->assign('tool_domain_error', $res); } else { $tool_services_gl = null; if (isset($NELTOOL['POST_VARS']['services_gl'])) { $tool_services_gl = $NELTOOL['POST_VARS']['services_gl']; } elseif (isset($NELTOOL['GET_VARS']['services_gl'])) { $tool_services_gl = $NELTOOL['GET_VARS']['services_gl']; } if ($tool_services_gl) { $tpl->assign('tool_post_data', base64_encode(serialize($NELTOOL['POST_VARS']))); switch ($tool_services_gl) { case 'display guilds': $service_list = tool_main_get_checked_services(); if (sizeof($service_list)) {