You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			907 B
		
	
	
	
		
			PHP
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			907 B
		
	
	
	
		
			PHP
		
	
<?php
 | 
						|
/*
 | 
						|
 *
 | 
						|
 * @copyright (c) 2010 animegame.eu
 | 
						|
 * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
 | 
						|
include_once(ROOT_PATH.'/include/fehlerausgabe.inc.php');
 | 
						|
 | 
						|
 | 
						|
function checkref() {
 | 
						|
global $HTTP_REFERER;
 | 
						|
if(preg_match('/^http:\/\/(animegame.animeone.info.*|animegame.de.*|www.animegame.de.*|agforum.animeone.info*)/i',$HTTP_REFERER)) {
 | 
						|
return true;
 | 
						|
} else {
 | 
						|
return false;
 | 
						|
}}
 | 
						|
 | 
						|
 | 
						|
function fehler($fehler, $text) {
 | 
						|
	displayErrorMessage(NULL,$fehler, $text);
 | 
						|
}
 | 
						|
 | 
						|
function gettemplate($template)
 | 
						|
{
 | 
						|
	if(file_exists(''.$template.'.htm'))
 | 
						|
	{
 | 
						|
		$file = file(''.$template.'.htm');
 | 
						|
        	$template = implode("",$file);
 | 
						|
        	$template = str_replace("\"","\\\"",$template);
 | 
						|
        }
 | 
						|
        else $template='Das Template '.$template.' existiert nicht';
 | 
						|
        return $template;
 | 
						|
}
 | 
						|
?>
 |