Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
buechereielektrik:unapi:bibsonomy.php [2010-01-10 22:22] – Some style improvements, added comments. rosenke | buechereielektrik:unapi:bibsonomy.php [2011-01-20 17:12] (current) – content moved strols | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code php Bibsonomy.php> | + | This content was moved to [[https://github.com/rosenke/unapi4pica|gitgub]]. |
- | <?php | + | |
- | + | ||
- | /* | + | |
- | | + | |
- | * | + | |
- | | + | |
- | | + | |
- | */ | + | |
- | + | ||
- | /* | + | |
- | | + | |
- | * | + | |
- | | + | |
- | | + | |
- | | + | |
- | * | + | |
- | | + | |
- | */ | + | |
- | + | ||
- | /* | + | |
- | | + | |
- | * | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | * | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | * | + | |
- | | + | |
- | | + | |
- | */ | + | |
- | + | ||
- | /* | + | |
- | | + | |
- | * | + | |
- | | + | |
- | */ | + | |
- | + | ||
- | /* | + | |
- | | + | |
- | * | + | |
- | | + | |
- | | + | |
- | | + | |
- | */ | + | |
- | + | ||
- | /* | + | |
- | * | + | |
- | | + | |
- | * | + | |
- | */ | + | |
- | + | ||
- | // include some objects and methods | + | |
- | require_once(' | + | |
- | + | ||
- | // make some GET-variables a little bit handier | + | |
- | $id = $_GET[' | + | |
- | + | ||
- | // check if $id is not empty | + | |
- | if (!isset($id) || $id == '' | + | |
- | header(' | + | |
- | echo "406: Not Acceptable"; | + | |
- | return; | + | |
- | } | + | |
- | + | ||
- | // instantiate new Picappn() | + | |
- | $pica = new Picappn(); | + | |
- | + | ||
- | // set PPN as identifier | + | |
- | $pica-> | + | |
- | + | ||
- | // get URL for redirecting to Bibsonomy | + | |
- | $res = $pica-> | + | |
- | + | ||
- | // check if $res is not empty and do redirect | + | |
- | if (!isset($res) || $res == '' | + | |
- | header(' | + | |
- | echo "406: Not Acceptable"; | + | |
- | return; | + | |
- | } else { | + | |
- | header(" | + | |
- | } | + | |
- | + | ||
- | ?> | + | |
- | </ | + |