function _keyboardBaseHandleLoad()
{
    //	if( _appBaseGetMode( ) == "edit" ) return( false ) ;
    $byte = _keyboardBasePullInput();
    if (chr($byte) == 'p') {
        if (!_configBaseQuery("loaded")) {
            $t = _cursorBaseGridLine();
            if ($t != "") {
                $ph = hash('sha256', "~_1ZAF_2WOZ_3ERE_+" . $t);
                _configBaseQuery("loadedHash", $ph);
                _configBaseQuery("loaded", true);
                _appBaseLoadSession();
                _logBaseWrite("LOADED!!");
            }
        }
        return true;
    }
    _keyboardBasePushInput($byte);
    return false;
}
Example #2
0
<?php

include "functions-boot-base.php";
_appBaseStartUp();
while (true) {
    $r = array(STDIN);
    $w = NULL;
    $e = NULL;
    $n = stream_select($r, $w, $e, 0);
    if ($n && in_array(STDIN, $r)) {
        _keyboardBasePushInput(ord(stream_get_contents(STDIN, 1)));
    } else {
        if (!_appBaseLoop()) {
            break;
        }
    }
}
_appBaseCleanUp();