'.join( ' // ', $ctrlOutput ) ); ajaxResponse( 'Used script' ); } } else { ajaxError( "No command received" ); } } ajaxError( 'Unrecognised action or insufficient permissions' ); function ajaxCleanup() { global $socket; if ( !empty( $socket ) ) @socket_close( $socket ); } ?>