<?
require "config.php";
require "read_options.php";
define("ADMIN", 34);
define("NORMAL", 1);
define("BANNED", 0);
$GUILD_STATUS = array();
$GUILD_STATUS[1] = "Guild Member";
$GUILD_STATUS[2] = "Guild Officer";
$GUILD_STATUS[3] = "Guild Leader";
define("MEMBER", 1);
define("OFFICER", 2);
define("LEADER", 3);
$RACES[1] = "Barbarian";
$RACES[2] = "Dark Elf";
$RACES[3] = "Dwarf";
$RACES[4] = "Erudite";
$RACES[5] = "Gnome";
$RACES[6] = "Half Elf";
$RACES[7] = "Halfling";
$RACES[8] = "High Elf";
$RACES[9] = "Human";
$RACES[10] = "Iksar";
$RACES[11] = "Ogre";
$RACES[12] = "Troll";
$RACES[13] = "Vah Shir";
$RACES[14] = "Wood Elf";
$CLASSES = array(
1 => array("name" => "Bard", 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 1, 14 => 1),
2 => array("name" => "Beastlord", 1 => 1, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 1, 11 => 1, 12 => 1, 13 => 1, 14 => 0),
3 => array("name" => "Cleric", 1 => 0, 2 => 1, 3 => 1, 4 => 1, 5 => 1, 6 => 0, 7 => 1, 8 => 1, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0),
4 => array("name" => "Druid", 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 1),
5 => array("name" => "Enchanter", 1 => 0, 2 => 1, 3 => 0, 4 => 1, 5 => 1, 6 => 0, 7 => 0, 8 => 1, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0),
6 => array("name" => "Magician", 1 => 0, 2 => 1, 3 => 0, 4 => 1, 5 => 1, 6 => 0, 7 => 0, 8 => 1, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0),
7 => array("name" => "Monk", 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 1, 11 => 0, 12 => 0, 13 => 0, 14 => 0),
8 => array("name" => "Necromancer", 1 => 0, 2 => 1, 3 => 0, 4 => 1, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 1, 11 => 0, 12 => 0, 13 => 0, 14 => 0),
9 => array("name" => "Paladin", 1 => 0, 2 => 0, 3 => 1, 4 => 1, 5 => 0, 6 => 1, 7 => 0, 8 => 1, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0),
10 => array("name" => "Ranger", 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 1),
11 => array("name" => "Rogue", 1 => 1, 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 1, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 1, 14 => 1),
12 => array("name" => "Shadow Knight", 1 => 0, 2 => 1, 3 => 0, 4 => 1, 5 => 1, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 1, 11 => 1, 12 => 1, 13 => 0, 14 => 0),
13 => array("name" => "Shaman", 1 => 1, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 0, 10 => 1, 11 => 1, 12 => 1, 13 => 1, 14 => 0),
14 => array("name" => "Warrior", 1 => 1, 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 1, 7 => 1, 8 => 0, 9 => 1, 10 => 1, 11 => 1, 12 => 1, 13 => 1, 14 => 1),
15 => array("name" => "Wizard", 1 => 0, 2 => 1, 3 => 0, 4 => 1, 5 => 1, 6 => 0, 7 => 0, 8 => 1, 9 => 1, 10 => 0, 11 => 0, 12 => 0, 13 => 0, 14 => 0)
);
$RELIGIONS[1] = "Agnostic";
$RELIGIONS[2] = "Bertoxxulous";
$RELIGIONS[3] = "Brell Serilis";
$RELIGIONS[4] = "Bristlebane";
$RELIGIONS[5] = "Cazic Thule";
$RELIGIONS[6] = "Erollisi Marr";
$RELIGIONS[7] = "Innoruuk";
$RELIGIONS[8] = "Karana";
$RELIGIONS[9] = "Mithaniel Marr";
$RELIGIONS[10] = "Prexus";
$RELIGIONS[11] = "Quellious";
$RELIGIONS[12] = "Rallos Zek";
$RELIGIONS[13] = "Rodcet Nife";
$RELIGIONS[14] = "Solusek Ro";
$RELIGIONS[15] = "The Tribunal";
$RELIGIONS[16] = "Tunare";
$RELIGIONS[17] = "Veeshan";
$TIMEZONES = array(
1 => array("name" => "", "offset" => -12),
2 => array("name" => "", "offset" => -11),
3 => array("name" => "HST", "offset" => -10),
4 => array("name" => "", "offset" => -9),
5 => array("name" => "PST", "offset" => -8),
6 => array("name" => "MST", "offset" => -7),
7 => array("name" => "CST", "offset" => -6),
8 => array("name" => "EST", "offset" => -5),
9 => array("name" => "AST", "offset" => -4),
10 => array("name" => "", "offset" => -3),
11 => array("name" => "", "offset" => -2),
12 => array("name" => "", "offset" => -1),
13 => array("name" => "GMT", "offset" => 0),
14 => array("name" => "CET", "offset" => 1),
15 => array("name" => "EET", "offset" => 2),
16 => array("name" => "", "offset" => 3),
17 => array("name" => "", "offset" => 4),
18 => array("name" => "", "offset" => 5),
19 => array("name" => "", "offset" => 6),
20 => array("name" => "WAST", "offset" => 7),
21 => array("name" => "CCT", "offset" => 8),
22 => array("name" => "JST", "offset" => 9),
23 => array("name" => "", "offset" => 10),
24 => array("name" => "", "offset" => 11),
25 => array("name" => "", "offset" => 12)
);
define("ERR_ID_BLANK", "The ID cannot be blank.");
define("ERR_ID_INVALID", "The ID must be numeric.");
define("ERR_ID_NOT_EXIST", "The ID does not exist in the database.");
define("ERR_NOT_ENOUGH_ACCESS", "You do not have enough access to use this feature.");
define("ERR_USER_NOT_OWNER", "You do not own this character.");
define("ERR_NOT_LOGGED_IN", "You must be logged in to use this function.");
define("ERR_ALREADY_LOGGED_IN", "You cannot use this function while logged in.");
define("ERR_IMAGE_TOO_LARGE", "The uploaded image is too large.");
define("ERR_IMAGE_UNKNOWN", "The file uploaded was either not an image or was an unrecognized image type. Please upload only GIFs and JPGs.");
define("ERR_IMAGE_INVALID", "The image is of an invalid file type.");
define("ERR_IMAGE_UNSECURE", "The uploaded file has been tampered with en route to the server.");
define("ERR_IMAGE_NOT_EXIST", "The specified image does not exist.");
define("ERR_IMAGE_NAME_BLANK", "The image name is blank.");
define("ERR_USER_LOGGED_IN", "You must not be logged in to use this feature");
define("ERR_NO_IMAGE_UPLOADED", "There was no image uploaded.");
define("ERR_GUILD_PASSWORD_BLANK", "The guild password is blank.");
define("ERR_IMAGE_COMMENT_TOO_LONG", "The image comment is too long (longer than 65,535 characters).");
define("ERR_GUILD_PASSWORDS_NOT_MATCH", "The guild password is incorrect.");
define("ERR_IMAGE_NAME_TOO_LONG", "The image name is too long (longer than 128 characters).");
define("ERR_IMAGE_COMMENT_BLANK", "The image comment is blank.");
define("ERR_ADD_USER_LOGIN_BLANK", "The login name cannot be blank.");
define("ERR_ADD_USER_LOGIN_INVALID", "The login name may only contain letters and numbers.");
define("ERR_ADD_USER_EMAIL_BLANK", "The e-mail address cannot be blank.");
define("ERR_ADD_USER_EMAIL_INVALID", "The e-mail address is malformed.");
define("ERR_ADD_USER_PASSWORD_BLANK", "The password cannot be blank.");
define("ERR_ADD_USER_VPASSWORD_BLANK", "The verification password cannot be blank.");
define("ERR_ADD_USER_PASSWORDS_NOT_MATCH", "The password and verification password must match.");
define("ERR_ADD_USER_ALREADY_EXISTS", "That username already exists in the database. Please choose another.");
define("ERR_ADD_USER_EMAIL_ALREADY_EXISTS", "That e-mail address already exists in the database. Please use another.");
define("ERR_ADD_USER_GUILD_PASSWORD_WRONG", "The guild password does not match the one in the database.");
define("ERR_ADD_USER_GUILD_PASSWORD_BLANK", "The guild password cannot be blank.");
define("ERR_UPDATE_USERS_LEVEL_BLANK", "The user access levels may not be blank.");
define("ERR_UPDATE_USERS_ACCESS_OOR", "An access level is out of range.");
define("ERR_UPDATE_USERS_TIMEZONE_BLANK", "The user timezone may not be blank.");
define("ERR_UPDATE_USERS_TIMEZONE_OOR", "An timezone is out of range.");
define("ERR_DEL_USER_DEL_SELF", "You cannot delete yourself.");
define("ERR_PASSWD_EMAIL_BLANK", "The e-mail address cannot be blank.");
define("ERR_PASSWD_EMAIL_INVALID", "The e-mail address is malformed.");
define("ERR_PASSWD_USER_NOT_EXIST", "The e-mail address does not exist in the database.");
define("ERR_PASSWD_MAIL_NOT_SENT", "The message could not be sent due to a problem with the mail server.");
?>