Created
November 9, 2022 21:55
-
-
Save saaeiddev/aa45a8edbf53831d74878bfe2a62c1ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* redirecting */ | |
/* follow me on instagram : saaeid.dev | |
follow me on twitter : @metasaeid */ | |
error_reporting(E_ALL ^ E_NOTICE); | |
$id = $_GET["id"]; | |
switch($id){ | |
case 1: | |
$url = 'https://www.saeiddehghan.com'; break; | |
case 2: | |
$url = 'https://www.saeidmedia.ir'; break; | |
case 3: | |
$url = 'https://www.google.com'; break; | |
} | |
if(is_null($url)){ | |
die("ERROR : Invalid destination"); | |
} | |
header("Location : $url"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment