parent
e27d28559f
commit
2dbf1c8b78
@ -1,10 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
//Redirects to web/certificates/X |
||||
|
||||
require_once '../main/inc/global.inc.php'; |
||||
$id = isset($_GET['id']) ? intval($_GET['id']) : null; |
||||
$url = Certificate::getCertificatePublicURL($id); |
||||
header("Location: $url"); |
||||
exit; |
||||
@ -1,9 +0,0 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
//Temporal hack to redirect calls to the new web/index.php |
||||
require_once 'main/inc/global.inc.php'; |
||||
$id = isset($_GET['id']) ? intval($_GET['id']) : null; |
||||
$path = api_get_path(WEB_PUBLIC_PATH); |
||||
header('Location: '.$path.'news/'.$id); |
||||
exit; |
||||
@ -1,11 +0,0 @@ |
||||
<?php |
||||
//Redirects calls to user.php?admin to web/user/admin |
||||
require_once 'main/inc/global.inc.php'; |
||||
$path = api_get_path(WEB_PUBLIC_PATH); |
||||
$array_keys = isset($_GET) ? array_keys($_GET) : null; |
||||
|
||||
if (!empty($array_keys)) { |
||||
$username = Security::remove_XSS(substr($array_keys[0], 0, 100)); // max len of an username |
||||
header('Location: '.$path.'user/'.$username); |
||||
} |
||||
exit; |
||||
Loading…
Reference in new issue