subtitles
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@888 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									f1ce267015
								
							
						
					
					
						commit
						94725f1266
					
				@ -117,6 +117,17 @@ function make_link($page=null, $query=null) {
 | 
			
		||||
* Misc                                                                      *
 | 
			
		||||
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
 | 
			
		||||
 | 
			
		||||
function version_check() {
 | 
			
		||||
	if(version_compare(PHP_VERSION, "5.0.0") == -1) {
 | 
			
		||||
		print <<<EOD
 | 
			
		||||
Currently Shimmie 2 doesn't support versions of PHP lower than 5.0.0. Please
 | 
			
		||||
either upgrade your PHP, or tell Shish that PHP 4 support is a big deal for
 | 
			
		||||
you...
 | 
			
		||||
EOD;
 | 
			
		||||
		exit;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function get_thumbnail_size($orig_width, $orig_height) {
 | 
			
		||||
	global $config;
 | 
			
		||||
 | 
			
		||||
@ -418,6 +429,23 @@ function full_copy($source, $target) {
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function stripslashes_r($arr) {
 | 
			
		||||
	return is_array($arr) ? array_map('stripslashes_r', $arr) : stripslashes($arr);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function sanitise_environment() {
 | 
			
		||||
	if(DEBUG) {
 | 
			
		||||
		error_reporting(E_ALL);
 | 
			
		||||
		assert_options(ASSERT_ACTIVE, 1);
 | 
			
		||||
		assert_options(ASSERT_BAIL, 1);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if(get_magic_quotes_gpc()) {
 | 
			
		||||
		$_GET = stripslashes_r($_GET);
 | 
			
		||||
		$_POST = stripslashes_r($_POST);
 | 
			
		||||
		$_COOKIE = stripslashes_r($_COOKIE);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
 | 
			
		||||
* Event API                                                                 *
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										24
									
								
								index.php
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								index.php
									
									
									
									
									
								
							@ -3,29 +3,11 @@
 | 
			
		||||
define("DEBUG", true);
 | 
			
		||||
define("VERSION", '2.2.0-pre1');
 | 
			
		||||
 | 
			
		||||
if(DEBUG) {
 | 
			
		||||
	error_reporting(E_ALL);
 | 
			
		||||
	assert_options(ASSERT_ACTIVE, 1);
 | 
			
		||||
	assert_options(ASSERT_BAIL, 1);
 | 
			
		||||
}
 | 
			
		||||
require_once "core/util.inc.php";
 | 
			
		||||
 | 
			
		||||
if(version_compare(PHP_VERSION, "5.0.0") == -1) {
 | 
			
		||||
	print <<<EOD
 | 
			
		||||
Currently Shimmie 2 doesn't support versions of PHP lower than 5.0.0. Please
 | 
			
		||||
either upgrade your PHP, or tell Shish that PHP 4 support is a big deal for
 | 
			
		||||
you...
 | 
			
		||||
EOD;
 | 
			
		||||
	exit;
 | 
			
		||||
}
 | 
			
		||||
version_check();
 | 
			
		||||
sanitise_environment();
 | 
			
		||||
 | 
			
		||||
function stripslashes_r($arr) {
 | 
			
		||||
	return is_array($arr) ? array_map('stripslashes_r', $arr) : stripslashes($arr);
 | 
			
		||||
}
 | 
			
		||||
if(get_magic_quotes_gpc()) {
 | 
			
		||||
	$_GET = stripslashes_r($_GET);
 | 
			
		||||
	$_POST = stripslashes_r($_POST);
 | 
			
		||||
	$_COOKIE = stripslashes_r($_COOKIE);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// load base files
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user