a0521018779d4b40a6f16f64ecce26936e1ff313
[mirrors/SokoMan.git] / assistants / go.inc.php
1 <?php
2 if(!isset($_GET['q'])) $this->post_redirect_get('',"This assistant shouldn't be used like this");
3 $id=$_GET['q'];
4 $barcode_prefix_regexp = '/^'.preg_replace('/\//', '\/', BARCODE_PREFIX).'/';
5 if(preg_match($barcode_prefix_regexp, $id)) $id=preg_replace($barcode_prefix_regexp, '', $id);
6 if(preg_match('/\//', $id)) $this->post_redirect_get($id);
7 else $this->post_redirect_get('?q='.urlencode($id));
This page took 0.313851 seconds and 3 git commands to generate.