Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
buechereielektrik:unapi:unapi.php [2009-12-13 22:23] – some bug fixes strols | buechereielektrik:unapi:unapi.php [2011-01-20 17:12] (current) – content moved strols | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | + | This content was moved to [[https:// |
- | <? | + | |
- | // hatop@ub.uni-marburg.de 2008-12-08 2009-12-03 | ||
- | // http:// | ||
- | |||
- | /* Copyright 2008 2009 Goetz Hatop | ||
- | | ||
- | | ||
- | */ | ||
- | |||
- | /* Copyright 2009 Stephan Rosenke < | ||
- | |||
- | /* This program is free software: you can redistribute it and/or modify | ||
- | | ||
- | | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | * | ||
- | | ||
- | | ||
- | */ | ||
- | |||
- | /* Version: | ||
- | |||
- | /* Changelog | ||
- | | ||
- | | ||
- | * Corrected answer if format='' | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | * Added format " | ||
- | Put header() in the case-loops in final switch(). | ||
- | | ||
- | */ | ||
- | |||
- | require(' | ||
- | |||
- | $noparam = "<? | ||
- | < | ||
- | <format name=\" | ||
- | <format name=\" | ||
- | <format name=\" | ||
- | <format name=\" | ||
- | <format name=\" | ||
- | <format name=\" | ||
- | </ | ||
- | "; | ||
- | |||
- | $idparam = "<? | ||
- | <formats id=\" | ||
- | <format name=\" | ||
- | </ | ||
- | "; | ||
- | |||
- | if (!isset($_GET[id]) || $_GET[id]=='' | ||
- | header(' | ||
- | echo " | ||
- | return; | ||
- | } | ||
- | |||
- | $pica = new Picappn(); | ||
- | $pica-> | ||
- | |||
- | if ($_GET[format] == " | ||
- | echo "< | ||
- | print_r($pica-> | ||
- | echo " </ | ||
- | die(0); | ||
- | } | ||
- | |||
- | switch ($_GET[format]) { | ||
- | case ' | ||
- | $res = $pica-> | ||
- | | ||
- | | ||
- | case ' | ||
- | | ||
- | echo $pica-> | ||
- | | ||
- | case ' | ||
- | | ||
- | echo $pica-> | ||
- | | ||
- | case ' | ||
- | echo $pica-> | ||
- | | ||
- | case ' | ||
- | | ||
- | echo $pica-> | ||
- | | ||
- | case ' | ||
- | $res = $pica-> | ||
- | | ||
- | | ||
- | case ' | ||
- | | ||
- | echo $pica-> | ||
- | | ||
- | case '': | ||
- | | ||
- | | ||
- | echo " | ||
- | | ||
- | default: | ||
- | | ||
- | | ||
- | } | ||
- | ?> | ||
- | </ |