'. print_r($domain_data, true) .''; $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 '
'. print_r($aesList, true) .''; 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')) echo '
'. print_r($aes_df_result, true) .''; tool_main_update_hd_data_for_domain($domain_data['domain_id'], $aes_df_result); } unset($adminService); } } } } if (defined('NELTOOL_CRON_DEBUG')) echo "checked ". sizeof($aesList) ." servers!\n"; if (defined('NELTOOL_CRON_DEBUG')) { if ($fp = fopen("./logs/checkdisk_". date("YmdHis", time()) .".log", "w")) { fputs($fp, ob_get_contents()); fclose($fp); } } ob_end_clean(); ?>