1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
<?php
/**
* squal_exit.php
*
* SourceForge: Breaking Down the Barriers to Open Source Development
* Copyright 1999-2001 (c) VA Linux Systems
* http://sourceforge.net
*
* @version $Id: squal_exit.php 4994 2005-11-25 15:53:25Z danper $
*/
/**
* exit_error() - Exit with error
*
* @param string Error title
* @param string Error text
*/
function exit_error($title,$text) {
print 'ERROR - '.$text;
exit;
}
/**
* exit_permission_denied() - Return a 'Permission Denied' error
*/
function exit_permission_denied() {
exit_error('','PERMISSION DENIED');
}
/**
* exit_not_logged_in() - Return a 'Not Logged in' error
*/
function exit_not_logged_in() {
exit_error('','NOT LOGGED IN');
}
/**
* exit_no_group() - Return a 'Choose A Project/Group' error
*/
function exit_no_group() {
exit_error('','CHOOSE A PROJECT/GROUP');
}
/**
* exit_missing_param() - Return a 'Missing Required Parameters' error
*/
function exit_missing_param() {
exit_error('','MISSING REQUIRED PARAMETERS');
}
/**
* exit_disabled() - Return a 'Disabled Feature' error
*/
function exit_disabled() {
exit_error('','DISABLED FEATURE');
}
?>
|