All pastes #405203 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-21 16:22 UTC
rendered paste body
switch ($code) {
		case (E_STRICT):
		case (E_NOTICE):
		case (E_USER_NOTICE): {
			$type = Ide::INFO;
			$title = gettext('Information');
			$message = '<b><big>';
			$message .= gettext('An Information Notice has been Detected');
			$message .= "</big></b>\n<i>";
			$message .= gettext('The following Information has been detected and logged :');
			$message .= "</i>\n";
			$message .= gettext($errmessage);
			$message .= "\n";
			$message .= gettext('The application will now continue.');
			break;
		}
		case (E_WARNING):
		case (E_USER_WARNING): {
				$type = Ide::WARNING;
				$title = gettext('Warning');
				$message = '<b><big>';
				$message .= gettext('Warning has been Detected');
				$message .= "</big></b>\n<i>";
				$message .= gettext('The following Warning has been detected and logged :');
				$message .= "</i>\n";
				$message .= gettext($errmessage);
				$message .= "\n";
				$message .= gettext('The application will now continue.');
				break;
		}
		default: {
				$type = Ide::ERROR;
				$title = gettext('Error');
				$message = '<b><big>';
				$message .= gettext('An Error has been Detected');
				$message .= "</big></b>\n<i>";
				$message .= gettext('The following Error has been detected and logged :');
				$message .= "</i>\n";
				$message .= gettext($errmessage);
				$message .= "\n";
				$message .= gettext('The application will now terminate.');
		}
	}