Gestione gruppi proxy

This commit is contained in:
cmaffio
2016-05-17 16:50:51 +02:00
parent 6d7923c5d5
commit d3a75524fa
15 changed files with 256 additions and 41 deletions

27
rewrite.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
include_once ("core/config.php");
$path = ltrim($_SERVER['REQUEST_URI'], '/');
$query = " SELECT
to_url
FROM
rewrite
WHERE
from_url = '$path'
AND
attivo = 1
";
$res = mysql_query( $query, $DB_ID );
if ($valori = mysql_fetch_array ( $res )) {
include ($valori['to_url']);
} else {
print "$path non c'e'";
exit;
}
?>