# This file redirects a user after serving an image and meta tags # Author: Claude # Date: 2023-06-06 $requestURI = explode("/", $_SERVER["REQUEST_URI"]); # Explode the request URI into an array $scriptName = explode("/",$_SERVER["SCRIPT_NAME"]); # Explode the script name into an array for($i= 0;$i < sizeof($scriptName);$i++) { # Loop through the script name array if ($requestURI[$i] == $scriptName[$i]) { # If the request URI part matches the script name part, unset it unset($requestURI[$i]); } } $command = array_values($requestURI); # Re-index the $requestURI array keys if (isset($command[0])) { # If a first element exists in $command, set $url $url =base64_decode($command[0]); } else { # Otherwise set $url to empty $url = ''; } if (isset($command[1])) { # If a second element exists, set $image $image = base64_decode($command[1]); } else { # Otherwise set $image to empty $image = ''; } if (isset($command[2])) { # If a third element exists, set $title $title = base64_decode($command[2]); } else { # Otherwise set $title to empty $title = ''; } $metaDesc = ''; if (count($command) >= 4) { # If a fourth element exists, set $metaDesc $metaDesc = base64_decode($command[3]); } echo ''; # Output HTML echo '
'; # Output head echo ''; echo ''; echo ''; echo ''; echo ''; echo '