Subversion Repositories fastphp

Rev

Rev 38 | Rev 42 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38 Rev 41
Line 287... Line 287...
287
class FastNodeReader {
287
class FastNodeReader {
288
        public static function readCodeFromEditor() {
288
        public static function readCodeFromEditor() {
289
                $lines = array();
289
                $lines = array();
290
                while ($f = fgets(STDIN)){
290
                while ($f = fgets(STDIN)){
291
                        if (trim($f) == chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8)) break;
291
                        if (trim($f) == chr(1).chr(2).chr(3).chr(4).chr(5).chr(6).chr(7).chr(8)) break;
-
 
292
 
-
 
293
                        // Signal to terminate the code explorer
-
 
294
                        if (trim($f) == chr(8).chr(7).chr(6).chr(5).chr(4).chr(3).chr(2).chr(1)) die();
-
 
295
 
292
                        $lines[] = $f;
296
                        $lines[] = $f;
293
                }
297
                }
294
                return implode("", $lines);
298
                return implode("", $lines);
295
        }
299
        }
296
}
300
}