Commit | Line | Data |
---|---|---|
8acef003 TM |
1 | <?php |
2 | //$script = $_SERVER['SCRIPT_NAME'].'/assistant/go'; | |
3 | ||
4 | $id=$_GET['q']; | |
5 | $barcode_prefix_regexp = '/^'.preg_replace('/\//', '\/', BARCODE_PREFIX).'/'; | |
6 | if(preg_match($barcode_prefix_regexp, $id)) $id=preg_replace($barcode_prefix_regexp, '', $id); | |
7 | if(preg_match('/\//', $id)) $this->post_redirect_get($id); | |
8 | else $this->post_redirect_get('?q='.urlencode($id)); |