Predpokladana a Doporucena cena pro debily (wolfuv pozadavek)
[mirrors/SokoMan.git] / apis / go.inc.php
CommitLineData
8acef003 1<?php
35916247 2if(!isset($_GET['q'])) $this->post_redirect_get('',"This assistant shouldn't be used like this");
8acef003
TM
3$id=$_GET['q'];
4$barcode_prefix_regexp = '/^'.preg_replace('/\//', '\/', BARCODE_PREFIX).'/';
5if(preg_match($barcode_prefix_regexp, $id)) $id=preg_replace($barcode_prefix_regexp, '', $id);
81ab8aef 6if(preg_match('/\//', $id)) $this->post_redirect_get(strtolower($id));
8acef003 7 else $this->post_redirect_get('?q='.urlencode($id));
This page took 0.127095 seconds and 4 git commands to generate.