commands :
";
print "?help : display this dialog
";
print "?img [regex] : (attempt to) display files matching [regex] as thumbnails
";
print "?grep [regex] : show only files matching [regex]
";
print "?[number] : launch slideshow, displaying numbered picture
";
print "
admin commands :
";
print "x/?get [url] : gank resource to identically named local file
";
print "x/?mv [oldfile],[newfile] : rename [oldfile] to [newfile]
";
print "
accesskeys (keyboard shortcuts) :
";
print "on the home page : begin slideshow s , display this dialog /
";
print "during slideshow : previous: [, next: ], home: h
";
print "on this page : home: h
";
print "accesskeys are usually called with ALT-[key] on windows, or CTRL-[key] on mac
";
print "specifics can depend on your browser, seek additional information in case of failure
";
die;
}
// slideshow with accesskeys
if (preg_match("/^([0-9]+)$/", $o, $regs)) {
$j = $regs[1];
$i = $j - 1;
$k = $j + 1;
$count = count($filelist);
print "