| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Kent -
 
  Joined: 12 Jan 2003 Posts: 137
 
  | 
		
			
				 Posted: Thu Aug 14, 2003 4:28 am    Post subject: A really cool php script I found for multiple sites/url mask | 
				      | 
			 
			
				
  | 
			 
			
				this script when typed in your browser like 
 
http://mysite.com/scriptname.php?page=4
 
and will return the location of the case $site accordingly
 
to the number of the case its pretty cool and can be modified for
 
numerous urls... try it out!
 
 	  | Code: | 	 		  
 
<?
 
$page = $_GET['page']; 
 
switch ($page) { 
 
case "1": 
 
$site = "http://yoursite.net"; 
 
break; 
 
case "2": 
 
$site = "http://yoursite.net"; 
 
break; 
 
case "3": 
 
$site = "http://yoursite.net"; 
 
break; 
 
case "4": 
 
$site = "http://yoursite.net"; 
 
break; 
 
} 
 
 
include "$site";
 
?> | 	 
  | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		kodeking -
 
  Joined: 19 Jun 2003 Posts: 15
 
  | 
		
			
				 Posted: Mon Aug 18, 2003 6:49 am    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				you can also do:
 
http://yoursite.com/page?site=http://blah.com
 
 
 	  | Code: | 	 		  
 
<? 
 
$page = $_GET['page']; 
 
if($page){
 
include "$page";
 
}else{
 
echo "No page requested";
 
} 
 
?> | 	  
 
 
I guess it wouldnt be "masking" though
 
________
 
MARIJUANA NEWS
 
________
 
Gift Cards
  Last edited by kodeking on Sat Feb 19, 2011 6:35 pm; edited 2 times in total | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		os17fan -
 
  Joined: 21 Mar 2003 Posts: 531 Location: USA
  | 
		
			
				 Posted: Mon Aug 18, 2003 4:51 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				I think Blue dogs script is more easier to setup. _________________ This web server is the best ! | 
			 
		  | 
	
	
		| Back to top | 
		
			             | 
		
	
	
		  | 
	
	
		Monne -
 
  Joined: 11 May 2003 Posts: 3
 
  | 
		
			
				 Posted: Sat Aug 23, 2003 4:53 pm    Post subject:  | 
				      | 
			 
			
				
  | 
			 
			
				| Not working;/ | 
			 
		  | 
	
	
		| Back to top | 
		
			          | 
		
	
	
		  | 
	
	
		 |