function process_classes($window, $id, $ctrl, $lparam1 = 0, $lparam2 = 0) { global $wb, $mainwin, $classes_table; switch ($id) { case IDCLOSE: $nclasses = count($wb->classes); for ($i = 0; $i < $nclasses; $i++) { $const = "IDC_" . strtoupper($wb->classes[$i][1]); $c = wb_get_control($wb->classdlg, constant($const)); } wb_destroy_window($window); wb_set_selected($wb->mainmenu, ID_TOOLBOX, false); $wb->classdlg = null; break; default: process_main($window, $id, $ctrl, $lparam1, $lparam2); break; } }
<?php chdir("c:/Program Files/lxlabs/kloxo/httpdocs"); include_once "lib/include.php"; process_main(); function process_main() { global $gbl, $sgbl, $login, $ghtml; ob_start(); $exitchar = $sgbl->__var_exit_char; $res = new Remote(); $res->exception = null; $res->ddata = "hello"; $res->message = "hello"; $in = fopen('php://stdin', 'r'); $out = fopen('php://stdout', 'w'); $total = null; while (true) { $buf = fgets($in, 30); //$buf = fgets($in); if ($buf) { $total .= $buf; } if (strstr($total, $exitchar)) { fprint("GOt Full {$total}"); $reply = process_server_input(null, $total); ob_end_clean(); print "{$reply}\n{$exitchar}\n"; flush(); //fprint("here"); ob_start();