Vylepsena podpora carovych kodu
[mirrors/SokoMan.git] / assistants / go.inc.php
CommitLineData
8acef003
TM
1<?php
2//$script = $_SERVER['SCRIPT_NAME'].'/assistant/go';
3
4$id=$_GET['q'];
5$barcode_prefix_regexp = '/^'.preg_replace('/\//', '\/', BARCODE_PREFIX).'/';
6if(preg_match($barcode_prefix_regexp, $id)) $id=preg_replace($barcode_prefix_regexp, '', $id);
7if(preg_match('/\//', $id)) $this->post_redirect_get($id);
8 else $this->post_redirect_get('?q='.urlencode($id));
This page took 0.081612 seconds and 4 git commands to generate.