Public feed #598671

Untitled

public text v1 · immutable
Raw Edit
·published 2007-07-01 15:12 UTC
rendered paste body
/**
  * Check if GD exisits, otherwise we will use the default phpbb confirm page ;)
  **/
$gd = true;
if(!extension_loaded("gd")){
	//Gd isn't loaded
	//Display error messages always, or not?
	$gd = false;
}
if(!function_exists("gd_info") || !function_exists('imagettftext')){
	//GD function, gd_info don't exists. GD isn't loaded correctly.
	//Freetype function imagettftext doesn't exists. This is required by this mod.
	$gd = false;
}
if($gd === false){
 	//GD not loaded, or one of the needed functions aren't there. Require usercp_confirm ;)
 	require($phpbb_root_path . 'includes/usercp_confirm.' . $phpEx);
 	die;
}