Revision cd8ca22f
Added by Scott Ullrich over 17 years ago
usr/local/sbin/pfSsh.php | ||
---|---|---|
13 | 13 |
echo "."; |
14 | 14 |
$g['booting'] = false; |
15 | 15 |
|
16 |
function more($text) { |
|
16 |
function more($text, $count=24) {
|
|
17 | 17 |
$counter=0; |
18 | 18 |
$lines = split("\n", $text); |
19 | 19 |
foreach($lines as $line) { |
20 |
if($counter > 24) {
|
|
20 |
if($counter > $count) {
|
|
21 | 21 |
echo "Press RETURN to continue ..."; |
22 | 22 |
$fp = fopen('php://stdin', 'r'); |
23 | 23 |
$pressreturn = chop(fgets($fp)); |
24 |
if($pressreturn == "q" || $pressreturn == "quit") |
|
25 |
return; |
|
24 | 26 |
fclose($fp); |
25 | 27 |
$counter = 0; |
26 | 28 |
} |
Also available in: Unified diff
Add second argument of more allowing control of when press Return is displayed