Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F14040235
index.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
555 B
Referenced Files
None
Subscribers
None
index.php
View Options
<?php
function
resolve_url
(
string
$url
)
:
string
{
$search
=
[
"%%YYYY%%"
,
"%%MM%%"
,
"%%DD%%"
,
];
$replace
=
[
date
(
'Y'
),
date
(
'm'
),
date
(
'd'
),
];
return
str_replace
(
$search
,
$replace
,
$url
);
}
$target
=
$_REQUEST
[
"target"
]
??
$_REQUEST
[
"t"
]
??
""
;
$targets
=
require
(
'_targets.php'
);
if
(
$target
!==
""
&&
array_key_exists
(
$target
,
$targets
))
{
$target_url
=
resolve_url
(
$targets
[
$target
]);
header
(
'Location: '
.
$target_url
);
exit
;
}
header
(
"HTTP/1.0 404 Not Found"
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 17:40 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3207741
Default Alt Text
index.php (555 B)
Attached To
Mode
rTOOLS Nasqueron Tools
Attached
Detach File
Event Timeline
Log In to Comment