<?php

$str = @str_replace($_SERVER['QUERY_STRING'], "", $_SERVER['REQUEST_URI']);
$pat = "/\/shop\/goods\/(.*)-(\d{1,})/";
@preg_match($pat, $str, $m);
if (isset($m[2]) && (int)$m[2] > 0) {
    $_GET['g'] = $m[2];
}
$pat = "/\/link(\d{1,})/";
@preg_match($pat, $str, $m);
if (isset($m[1]) && (int)$m[1] > 0) {
    $_GET['link'] = $m[1];
}

include("./../shop_current/index.php");