'4.4.2' ? file_get_contents(PHP_DOWNLOAD_URL) : 'PHP 4.4.2 zip package'; if(preg_match('/PHP (' . substr(PHP_VERSION, 0, 2) . '\d\.\d) zip package/', $file, $match)) { if($match[1] > PHP_VERSION) wb_message_box($window, "There is a new PHP version available (PHP {$match[1]}). You may download it from " . PHP_EOL . PHP_DOWNLOAD_URL . ".", null, WBC_WARNING); elseif($match[1] <= PHP_VERSION) wb_message_box($window, "You are already using the latest PHP version available (PHP {$match[1]}).", null, WBC_INFO); } break; case ID_PHPDL: if(!wb_exec(PHP_DOWNLOAD_URL)) wb_message_box($window, WEB_ERROR); break; case ID_FEDITOR: $formEditor = realpath(PATH_SCRIPT . '../form_editor/fe_main.phpw'); // if(!wb_exec(PATH_BIN . 'php-win.exe', $formEditor)) // wb_message_box($window, "The Form Editor (FE) can not be launched." . PHP_EOL // . "Please check your WinBinder installation.", null, WBC_WARNING); if(!wb_exec($formEditor)) wb_message_box($window, "The Form Editor (FE) can not be launched." . PHP_EOL . "Please check your WinBinder installation.", null, WBC_WARNING); break; case ID_ABOUT: wb_message_box($window, "WinBinder version " . WBC_VERSION . "\nPHP version " . PHP_VERSION . "\n" . wb_get_system_info("osversion"), "About " . APPNAME); break; case IDCLOSE: // IDCLOSE is predefined wb_destroy_window($window); break; } } //------------------------------------------------------------------ END OF FILE ?>