Example #1
0
<?php

require_once '../incl/incl.php';
require_once '../incl/api.incl.php';
$url = '/';
if (isset($_GET['seller']) && isset($_GET['realm']) && preg_match('/^[AH]-/', $_GET['realm'])) {
    $toMatch = strtolower(trim(substr($_GET['realm'], 2)));
    $realms = GetRealms(GetSiteRegion());
    $realm = '';
    foreach ($realms as $realmRow) {
        if (strtolower($realmRow['name']) == $toMatch) {
            $realm = $realmRow['slug'];
            break;
        }
    }
    if ($realm) {
        $url .= '#' . strtolower(GetSiteRegion()) . '/' . $realm . '/seller/' . $_GET['seller'];
    }
}
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $url);
Example #2
0
<?php

require_once '../incl/incl.php';
require_once '../incl/api.incl.php';
$url = '/';
if (isset($_GET['realm']) && preg_match('/^[AH]-/', $_GET['realm'])) {
    $toMatch = strtolower(trim(substr($_GET['realm'], 2)));
    $realms = GetRealms(GetSiteRegion());
    $realm = '';
    foreach ($realms as $realmRow) {
        if (strtolower($realmRow['name']) == $toMatch) {
            $realm = $realmRow['slug'];
            break;
        }
    }
    if ($realm) {
        $url .= '#' . strtolower(GetSiteRegion()) . '/' . $realm . '/contact';
    }
} else {
    $url .= '#contact';
}
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $url);
Example #3
0
<?php

require_once '../incl/incl.php';
require_once '../incl/api.incl.php';
$url = '/';
if (isset($_GET['item'])) {
    $url .= '#' . strtolower(GetSiteRegion()) . '/';
    if (isset($_GET['realm']) && preg_match('/^[AH]-/', $_GET['realm'])) {
        $toMatch = strtolower(trim(substr($_GET['realm'], 2)));
        $realms = GetRealms(GetSiteRegion());
        $realm = '';
        foreach ($realms as $realmRow) {
            if (strtolower($realmRow['name']) == $toMatch) {
                $realm = $realmRow['slug'];
                break;
            }
        }
        if ($realm) {
            $url .= $realm . '/';
        }
    }
    $url .= 'item/' . $_GET['item'];
}
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $url);
Example #4
0
<?php

require_once '../incl/incl.php';
require_once '../incl/api.incl.php';
$url = '/';
if (isset($_GET['category']) && isset($_GET['realm']) && preg_match('/^[AH]-/', $_GET['realm'])) {
    $toMatch = strtolower(trim(substr($_GET['realm'], 2)));
    $realms = GetRealms(GetSiteRegion());
    $realm = '';
    foreach ($realms as $realmRow) {
        if (strtolower($realmRow['name']) == $toMatch) {
            $realm = $realmRow['slug'];
            break;
        }
    }
    if ($realm) {
        $url .= '#' . strtolower(GetSiteRegion()) . '/' . $realm . '/category/' . $_GET['category'];
    }
}
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $url);