Vylepsena podpora carovych kodu
[mirrors/SokoMan.git] / assistants / go.inc.php
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));
This page took 0.343828 seconds and 4 git commands to generate.