Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
buechereielektrik:unapi:bibsonomy.php [2009-12-26 14:45] – made downloadable rosenke | buechereielektrik:unapi:bibsonomy.php [2010-01-27 20:19] – rosenke | ||
---|---|---|---|
Line 1: | Line 1: | ||
<code php Bibsonomy.php> | <code php Bibsonomy.php> | ||
- | <? | + | <?php |
- | // hatop@ub.uni-marburg.de 2008-12-08 2009-12-03 | + | /* |
- | // http:// | + | |
+ | * | ||
+ | | ||
+ | | ||
+ | */ | ||
- | /* Copyright 2008 2009 Goetz Hatop | + | /* |
+ | | ||
+ | * | ||
+ | * Copyright 2008 2009 Goetz Hatop < | ||
| | ||
- | | + | |
+ | * | ||
+ | | ||
+ | | ||
*/ | */ | ||
- | /* | + | /* |
- | + | * | |
- | /* This program is free software: you can redistribute it and/or modify | + | * |
+ | | ||
| | ||
| | ||
Line 26: | Line 37: | ||
*/ | */ | ||
- | /* Version: 0.1 */ | + | /* |
+ | * Version | ||
+ | * | ||
+ | | ||
+ | */ | ||
- | /* Changelog | + | /* |
+ | * Changelog | ||
* | * | ||
+ | | ||
+ | | ||
+ | | ||
| | ||
*/ | */ | ||
- | require_once(' | + | /* |
+ | | ||
+ | * | ||
+ | | ||
+ | | ||
+ | */ | ||
+ | |||
+ | /* | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | */ | ||
+ | |||
+ | // include some objects and methods | ||
+ | require_once(' | ||
+ | |||
+ | // make some GET-variables a little bit handier | ||
+ | $id = $_GET[' | ||
- | if (!isset($_GET[id]) || $_GET[id]=='' | + | // check if $id is not empty |
+ | if (!isset($id) || $id == '' | ||
header(' | header(' | ||
echo "406: Not Acceptable"; | echo "406: Not Acceptable"; | ||
- | return; | + | return; |
- | } | + | } |
+ | // instantiate new Picappn() | ||
$pica = new Picappn(); | $pica = new Picappn(); | ||
- | $pica-> | ||
+ | // set PPN as identifier | ||
+ | $pica-> | ||
+ | |||
+ | // get URL for redirecting to Bibsonomy | ||
$res = $pica-> | $res = $pica-> | ||
- | header(" | + | |
+ | // check if $res is not empty and do redirect | ||
+ | if (!isset($res) || $res == '' | ||
+ | header(' | ||
+ | echo "406: Not Acceptable"; | ||
+ | return; | ||
+ | } else { | ||
+ | | ||
+ | } | ||
?> | ?> | ||
</ | </ |