Go to the source code of this file.
|
| | $msg = isset($_REQUEST["msg"]) ? $_REQUEST["msg"] : "" |
| |
◆ do_redirect()
Definition at line 11 of file grima.php.
12 if(!headers_sent()) header(
"Location: $url");
13 $url_html = htmlspecialchars($url);
14 echo
"<!DOCTYPE html><html><head><title>Redirect</title><meta http-equiv=refresh content='1; url=$url'></head><body><a href='$url_html'>Go here: $url_html</a></body></html>\n";
18 $msg = isset($_REQUEST[
"msg"]) ? $_REQUEST[
"msg"] :
"";
23 if (preg_match(
"/^print( .*)/",
$msg,$m)) {
30 if (preg_match(
"/^hierarchy( .*)/",
$msg,$m)) {
31 do_redirect(
"hierarchy.php?mms_id=" . ltrim($m[1]));
35 # filter <mms_id> with <filter> 37 if (preg_match(
"/(norm|normalize|filter) (\d+) (with (.*))/",
$msg,$m)) {
38 if (is_mmsid($m[2])) {
39 do_redirect(
"zf.php?mms_id=" . $m[2] .
"&filter=" . $m[4]);
46 # add mfhd <template> to <mms_id> 49 if (preg_match(
"/^add mfhd(.*)/",
$msg,$m)) {
54 # add tree <template> to <mms_id> with barcode <barcode> 59 # insert oclcnum <number> into <mms_id> 61 if (preg_match(
"/insert oclcnum(.*)/",
$msg,$m)) {
62 do_redirect(
"insert-oclcnum.php?query=" . urlencode(ltrim($m[1])));
◆ $msg
| $msg = isset($_REQUEST["msg"]) ? $_REQUEST["msg"] : "" |