Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
buechereielektrik:unapi:coins.php [2010-01-11 22:22] – created rosenke | buechereielektrik:unapi:coins.php [2011-01-20 17:12] (current) – content moved strols | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code PHP Coins.php> | + | This content was moved to [[https:// |
- | <?php | + | |
- | /* | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | | ||
- | */ | ||
- | |||
- | /* | ||
- | | ||
- | * | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | */ | ||
- | |||
- | /* | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | */ | ||
- | |||
- | /* | ||
- | | ||
- | * | ||
- | | ||
- | */ | ||
- | |||
- | /* | ||
- | | ||
- | * | ||
- | | ||
- | */ | ||
- | |||
- | /* | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | */ | ||
- | |||
- | /* | ||
- | | ||
- | */ | ||
- | |||
- | // Default text for COinS | ||
- | $text = ''; | ||
- | |||
- | /* | ||
- | * | ||
- | | ||
- | * | ||
- | */ | ||
- | |||
- | // 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 return COinS with JavaScript | ||
- | if (!isset($res) || $res == '' | ||
- | header(' | ||
- | return; | ||
- | } else { | ||
- | echo ' | ||
- | '</ | ||
- | } | ||
- | |||
- | ?> | ||
- | </ |