1
+ − 1
<?php
+ − 2
+ − 3
/*
+ − 4
* Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
536
+ − 5
* Version 1.1.4 (Caoineag alpha 4)
+ − 6
* Copyright (C) 2006-2008 Dan Fuhry
1
+ − 7
* constants.php - important defines used Enano-wide
+ − 8
*
+ − 9
* This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
+ − 10
* as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+ − 11
*
+ − 12
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ − 13
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
+ − 14
*/
+ − 15
+ − 16
// Ban types
+ − 17
+ − 18
define('BAN_IP', 1);
+ − 19
define('BAN_USER', 2);
+ − 20
define('BAN_EMAIL', 3);
+ − 21
+ − 22
// ACL permission types
+ − 23
define('AUTH_ALLOW', 4);
+ − 24
define('AUTH_WIKIMODE', 3); // User can do this if wiki mode is enabled
+ − 25
define('AUTH_DISALLOW', 2);
+ − 26
define('AUTH_DENY', 1); // A Deny setting overrides *everything*
+ − 27
+ − 28
define('ACL_TYPE_GROUP', 1);
+ − 29
define('ACL_TYPE_USER', 2);
+ − 30
define('ACL_TYPE_PRESET', 3);
+ − 31
554
+ − 32
// ACL inheritance debugging info
+ − 33
define('ACL_INHERIT_GLOBAL_EVERYONE', 9);
+ − 34
define('ACL_INHERIT_GLOBAL_GROUP', 8);
+ − 35
define('ACL_INHERIT_GLOBAL_USER', 7);
+ − 36
define('ACL_INHERIT_PG_EVERYONE', 6);
+ − 37
define('ACL_INHERIT_PG_GROUP', 5);
+ − 38
define('ACL_INHERIT_PG_USER', 4);
+ − 39
define('ACL_INHERIT_LOCAL_EVERYONE', 3);
+ − 40
define('ACL_INHERIT_LOCAL_GROUP', 2);
+ − 41
define('ACL_INHERIT_LOCAL_USER', 1);
+ − 42
513
+ − 43
// ACL color scale minimal shade for red and green ends
+ − 44
// The lower, the more saturated the color on the scale.
+ − 45
// Purely cosmetic. 0x0 - 0xFF, 0xFF will basically disable the scale
+ − 46
define('ACL_SCALE_MINIMAL_SHADE', 0xA8);
+ − 47
511
f88c8c79d784
Made some improvements to ACL system including: warning on setting Deny for Everyone on the entire site, added ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL, and changed behavior as noted in the docs so that Deny for Everyone is no longer able to be overridden
Dan
diff
changeset
+ − 48
// ACL switch
f88c8c79d784
Made some improvements to ACL system including: warning on setting Deny for Everyone on the entire site, added ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL, and changed behavior as noted in the docs so that Deny for Everyone is no longer able to be overridden
Dan
diff
changeset
+ − 49
// If this is defined, administrators can edit ACLs regardless of current
f88c8c79d784
Made some improvements to ACL system including: warning on setting Deny for Everyone on the entire site, added ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL, and changed behavior as noted in the docs so that Deny for Everyone is no longer able to be overridden
Dan
diff
changeset
+ − 50
// permissions. This is enabled by default.
f88c8c79d784
Made some improvements to ACL system including: warning on setting Deny for Everyone on the entire site, added ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL, and changed behavior as noted in the docs so that Deny for Everyone is no longer able to be overridden
Dan
diff
changeset
+ − 51
define('ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL', 1);
f88c8c79d784
Made some improvements to ACL system including: warning on setting Deny for Everyone on the entire site, added ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL, and changed behavior as noted in the docs so that Deny for Everyone is no longer able to be overridden
Dan
diff
changeset
+ − 52
1
+ − 53
// System groups
541
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 54
define('GROUP_ID_EVERYONE', 1);
1
+ − 55
define('GROUP_ID_ADMIN', 2);
+ − 56
define('GROUP_ID_MOD', 3);
+ − 57
541
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 58
// System ranks
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 59
define('RANK_ID_MEMBER', 1);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 60
define('RANK_ID_MOD', 2);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 61
define('RANK_ID_ADMIN', 3);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 62
define('RANK_ID_GUEST', 4);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 63
73
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
diff
changeset
+ − 64
// Page group types
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
diff
changeset
+ − 65
define('PAGE_GRP_CATLINK', 1);
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
diff
changeset
+ − 66
define('PAGE_GRP_TAGGED', 2);
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
diff
changeset
+ − 67
define('PAGE_GRP_NORMAL', 3);
156
+ − 68
define('PAGE_GRP_REGEX', 4);
73
0a74676a2f2f
Made the move to Loch Ness, and got some basic page grouping functionality working. TODO: fix some UI issues in Javascript ACL editor and change non-JS ACL editor to work with page groups too
Dan
diff
changeset
+ − 69
511
f88c8c79d784
Made some improvements to ACL system including: warning on setting Deny for Everyone on the entire site, added ACL_ALWAYS_ALLOW_ADMIN_EDIT_ACL, and changed behavior as noted in the docs so that Deny for Everyone is no longer able to be overridden
Dan
diff
changeset
+ − 70
// Identifier for the default pseudo-language
205
+ − 71
define('LANG_DEFAULT', 0);
+ − 72
541
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 73
// Image types
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 74
define('IMAGE_TYPE_PNG', 1);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 75
define('IMAGE_TYPE_GIF', 2);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 76
define('IMAGE_TYPE_JPG', 3);
acb7e23b6ffa
Massive commit with various changes. Added user ranks system (no admin interface yet) and ability for users to have custom user titles. Made cron framework accept fractions of hours through floating-point intervals. Modifed ACL editor to use miniPrompt framework for close confirmation box. Made avatar system use a special page as opposed to fetching the files directly for caching reasons.
Dan
diff
changeset
+ − 77
1
+ − 78
//
+ − 79
// User types - don't touch these
+ − 80
//
+ − 81
+ − 82
// User can do absolutely everything
+ − 83
define('USER_LEVEL_ADMIN', 9);
+ − 84
+ − 85
// User can edit/[un]approve comments and do some basic administration
+ − 86
define('USER_LEVEL_MOD', 5);
+ − 87
+ − 88
// Default for members. When authed at this level, the user can change his/her password.
+ − 89
define('USER_LEVEL_CHPREF', 3);
+ − 90
+ − 91
// The level that you will be running at most of the time
+ − 92
define('USER_LEVEL_MEMBER', 2);
+ − 93
+ − 94
// Special level for guests
+ − 95
define('USER_LEVEL_GUEST', 1);
+ − 96
+ − 97
// Group status
+ − 98
+ − 99
define('GROUP_CLOSED', 1);
+ − 100
define('GROUP_REQUEST', 2);
+ − 101
define('GROUP_HIDDEN', 3);
+ − 102
define('GROUP_OPEN', 4);
+ − 103
334
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 104
// Private message flags
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 105
define('PM_UNREAD', 1);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 106
define('PM_STARRED', 2);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 107
define('PM_SENT', 4);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 108
define('PM_DRAFT', 8);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 109
define('PM_ARCHIVE', 16);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 110
define('PM_TRASH', 32);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 111
define('PM_DELIVERED', 64);
c72b545f1304
More localization work. Resolved major issue with JSON parser not parsing files over ~50KB. Switched JSON parser to the one from the Zend Framework (BSD licensed). Forced to split enano.json into five different files.
Dan
diff
changeset
+ − 112
526
b2fb50d572c7
New plugin manager half-implemented. Most of the UI/frontend code is done. Moved sql_parse.php to /includes/ to allow use after installation - TODO: check installer, etc. for breakage
Dan
diff
changeset
+ − 113
// Plugin status
b2fb50d572c7
New plugin manager half-implemented. Most of the UI/frontend code is done. Moved sql_parse.php to /includes/ to allow use after installation - TODO: check installer, etc. for breakage
Dan
diff
changeset
+ − 114
define('PLUGIN_INSTALLED', 1);
b2fb50d572c7
New plugin manager half-implemented. Most of the UI/frontend code is done. Moved sql_parse.php to /includes/ to allow use after installation - TODO: check installer, etc. for breakage
Dan
diff
changeset
+ − 115
define('PLUGIN_DISABLED', 2);
b2fb50d572c7
New plugin manager half-implemented. Most of the UI/frontend code is done. Moved sql_parse.php to /includes/ to allow use after installation - TODO: check installer, etc. for breakage
Dan
diff
changeset
+ − 116
define('PLUGIN_OUTOFDATE', 4);
b2fb50d572c7
New plugin manager half-implemented. Most of the UI/frontend code is done. Moved sql_parse.php to /includes/ to allow use after installation - TODO: check installer, etc. for breakage
Dan
diff
changeset
+ − 117
1
+ − 118
// Other stuff
+ − 119
+ − 120
define('MAX_PMS_PER_BATCH', 7); // The maximum number of users that users can send PMs to in one go; restriction does not apply to users with mod_misc rights
+ − 121
define('SEARCH_RESULTS_PER_PAGE', 10);
+ − 122
define('MYSQL_MAX_PACKET_SIZE', 1048576); // 1MB; this is the default in MySQL 4.x I think
328
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 123
define('ENANO_SUPPORT_AVATARS', 1);
1
+ − 124
+ − 125
// Sidebar
+ − 126
+ − 127
define('BLOCK_WIKIFORMAT', 0);
+ − 128
define('BLOCK_TEMPLATEFORMAT', 1);
+ − 129
define('BLOCK_HTML', 2);
+ − 130
define('BLOCK_PHP', 3);
+ − 131
define('BLOCK_PLUGIN', 4);
+ − 132
define('SIDEBAR_LEFT', 1);
+ − 133
define('SIDEBAR_RIGHT', 2);
+ − 134
+ − 135
define('GENERAL_ERROR', 'General error');
+ − 136
define('GENERAL_NOTICE', 'Information');
+ − 137
define('CRITICAL_ERROR', 'Critical error');
+ − 138
468
+ − 139
// Protection levels
+ − 140
// These are still hardcoded in some places, so don't change them
+ − 141
define('PROTECT_NONE', 0);
+ − 142
define('PROTECT_FULL', 1);
+ − 143
define('PROTECT_SEMI', 2);
+ − 144
345
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 145
//
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 146
// Enano versions progress
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 147
//
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 148
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 149
// These constants are used to perform "at least version X" type logic in plugins. Constants should
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 150
// be defined as ENANO_ATLEAST_<major version>_<minor version>, and they should match the version of
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 151
// the Enano API, not any forked version. This is to ensure that plugins know what features to enable
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 152
// and disable for compatibility with both branches.
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 153
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 154
define('ENANO_ATLEAST_1_0', '');
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 155
define('ENANO_ATLEAST_1_1', '');
4ccdfeee9a11
WiP commit for admin panel localization. All modules up to Admin:UserManager (working down the list) are localized except Admin:ThemeManager, which is due for a rewrite
Dan
diff
changeset
+ − 156
1
+ − 157
// You can un-comment the next line to require database backups to be encrypted using the site's unique key.
+ − 158
// This keeps the file safe in transit, but also prevents any type of editing to the file. This is NOT
+ − 159
// recommended except for tiny sites because encrypting an average of 2MB of data will take a while.
+ − 160
// define('SQL_BACKUP_CRYPT', '');
+ − 161
+ − 162
// Security
+ − 163
98
6457a9b983c6
Fixed non-object reference in databaseless template, added locking for Javascript paginator, made comments on AES key size more clear in constants, and disallowed "anonymous" and IP addresses for admin username in install.php; Loch Ness release candidate
Dan
diff
changeset
+ − 164
// AES cipher strength - defaults to 192 and cannot be changed after installation.
6457a9b983c6
Fixed non-object reference in databaseless template, added locking for Javascript paginator, made comments on AES key size more clear in constants, and disallowed "anonymous" and IP addresses for admin username in install.php; Loch Ness release candidate
Dan
diff
changeset
+ − 165
// This can be 128, 192, or 256.
6457a9b983c6
Fixed non-object reference in databaseless template, added locking for Javascript paginator, made comments on AES key size more clear in constants, and disallowed "anonymous" and IP addresses for admin username in install.php; Loch Ness release candidate
Dan
diff
changeset
+ − 166
define('AES_BITS', 192);
1
+ − 167
+ − 168
// Define this to enable Mcrypt support which makes encryption work faster. This is only triggered if Mcrypt support is detected.
+ − 169
// THIS IS DISABLED BECAUSE MCRYPT DOES NOT SEEM TO SUPPORT THE AES BLOCK SIZES THAT ENANO USES.
+ − 170
//define('MCRYPT_ACCEL', '');
+ − 171
+ − 172
//if(defined('MCRYPT_RIJNDAEL_' . AES_BITS))
+ − 173
//{
+ − 174
// eval('$bs = MCRYPT_RIJNDAEL_' . AES_BITS . ';');
+ − 175
// $bs = mcrypt_module_get_algo_block_size($bs);
+ − 176
// $bs = $bs * 8;
+ − 177
// define('AES_BLOCKSIZE', $bs);
+ − 178
//}
+ − 179
// else
+ − 180
// {
+ − 181
// define('AES_BLOCKSIZE', AES_BITS);
+ − 182
// }
+ − 183
348
87e08a6e4fec
Welcome to the new Enano installer. Much distance still to be covered but the basics are there.
Dan
diff
changeset
+ − 184
// You probably don't want to change the block size because it will cause the Javascript test vectors to fail. Changing it doesn't
87e08a6e4fec
Welcome to the new Enano installer. Much distance still to be covered but the basics are there.
Dan
diff
changeset
+ − 185
// significantly increase encryption strength either.
1
+ − 186
define('AES_BLOCKSIZE', 128);
+ − 187
352
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 188
// Our list of tables included in Enano
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 189
$system_table_list = Array(
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 190
'categories',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 191
'comments',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 192
'config',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 193
'logs',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 194
'page_text',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 195
'session_keys',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 196
'pages',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 197
'users',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 198
'users_extra',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 199
'themes',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 200
'buddies',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 201
'banlist',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 202
'files',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 203
'privmsgs',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 204
'sidebar',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 205
'hits',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 206
'groups',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 207
'group_members',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 208
'acl',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 209
'page_groups',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 210
'page_group_members',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 211
'tags',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 212
'language',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 213
'language_strings',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 214
'lockout',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 215
'search_index'
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 216
);
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 217
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 218
if ( defined('table_prefix') )
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 219
{
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 220
foreach ( $system_table_list as $i => $_ )
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 221
{
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 222
$system_table_list[$i] = table_prefix . $system_table_list[$i];
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 223
}
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 224
}
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 225
1
+ − 226
/*
+ − 227
* MIMETYPES
+ − 228
*
+ − 229
* This array defines the 166 known MIME types used by the Enano file-extension filter. Whether extensions are allowed or not is
+ − 230
* determined by a bitfield in the config table.
+ − 231
*/
+ − 232
+ − 233
global $mime_types, $mimetype_exps, $mimetype_extlist;
+ − 234
+ − 235
// IMPORTANT: this array can NEVER have items removed from it or key indexes changed
+ − 236
$mime_types = Array (
+ − 237
'ai' => 'application/postscript',
+ − 238
'aif' => 'audio/x-aiff',
+ − 239
'aifc' => 'audio/x-aiff',
+ − 240
'aiff' => 'audio/x-aiff',
+ − 241
'au' => 'audio/basic',
+ − 242
'avi' => 'video/x-msvideo',
+ − 243
'bcpio' => 'application/x-bcpio',
+ − 244
'bin' => 'application/octet-stream',
+ − 245
'bmp' => 'image/bmp',
+ − 246
'bz2' => 'application/x-bzip',
+ − 247
'cdf' => 'application/x-netcdf',
+ − 248
'cgm' => 'image/cgm',
+ − 249
'class' => 'application/octet-stream',
+ − 250
'cpio' => 'application/x-cpio',
+ − 251
'cpt' => 'application/mac-compactpro',
+ − 252
'csh' => 'application/x-csh',
+ − 253
'css' => 'text/css',
+ − 254
'dcr' => 'application/x-director',
+ − 255
'dir' => 'application/x-director',
+ − 256
'djv' => 'image/vnd.djvu',
+ − 257
'djvu' => 'image/vnd.djvu',
+ − 258
'dll' => 'application/octet-stream',
+ − 259
'dms' => 'application/octet-stream',
+ − 260
'doc' => 'application/msword',
+ − 261
'dtd' => 'application/xml-dtd',
+ − 262
'dvi' => 'application/x-dvi',
+ − 263
'dxr' => 'application/x-director',
+ − 264
'eps' => 'application/postscript',
+ − 265
'etx' => 'text/x-setext',
+ − 266
'exe' => 'application/octet-stream',
+ − 267
'ez' => 'application/andrew-inset',
+ − 268
'gif' => 'image/gif',
+ − 269
'gram' => 'application/srgs',
+ − 270
'grxml' => 'application/srgs+xml',
+ − 271
'gtar' => 'application/x-gtar',
+ − 272
'gz' => 'application/x-gzip',
+ − 273
'hdf' => 'application/x-hdf',
+ − 274
'hqx' => 'application/mac-binhex40',
+ − 275
'htm' => 'text/html',
+ − 276
'html' => 'text/html',
+ − 277
'ice' => 'x-conference/x-cooltalk',
+ − 278
'ico' => 'image/x-icon',
+ − 279
'ics' => 'text/calendar',
+ − 280
'ief' => 'image/ief',
+ − 281
'ifb' => 'text/calendar',
+ − 282
'iges' => 'model/iges',
+ − 283
'igs' => 'model/iges',
+ − 284
'jar' => 'application/zip',
+ − 285
'jpe' => 'image/jpeg',
+ − 286
'jpeg' => 'image/jpeg',
+ − 287
'jpg' => 'image/jpeg',
+ − 288
'js' => 'application/x-javascript',
+ − 289
'kar' => 'audio/midi',
+ − 290
'latex' => 'application/x-latex',
+ − 291
'lha' => 'application/octet-stream',
+ − 292
'lzh' => 'application/octet-stream',
+ − 293
'm3u' => 'audio/x-mpegurl',
+ − 294
'man' => 'application/x-troff-man',
+ − 295
'mathml' => 'application/mathml+xml',
+ − 296
'me' => 'application/x-troff-me',
+ − 297
'mesh' => 'model/mesh',
+ − 298
'mid' => 'audio/midi',
+ − 299
'midi' => 'audio/midi',
+ − 300
'mif' => 'application/vnd.mif',
+ − 301
'mov' => 'video/quicktime',
+ − 302
'movie' => 'video/x-sgi-movie',
+ − 303
'mp2' => 'audio/mpeg',
+ − 304
'mp3' => 'audio/mpeg',
+ − 305
'mpe' => 'video/mpeg',
+ − 306
'mpeg' => 'video/mpeg',
+ − 307
'mpg' => 'video/mpeg',
+ − 308
'mpga' => 'audio/mpeg',
+ − 309
'ms' => 'application/x-troff-ms',
+ − 310
'msh' => 'model/mesh',
+ − 311
'mxu' => 'video/vnd.mpegurl',
+ − 312
'nc' => 'application/x-netcdf',
+ − 313
'oda' => 'application/oda',
+ − 314
'ogg' => 'application/ogg',
+ − 315
'ogm' => 'application/ogg',
+ − 316
'pbm' => 'image/x-portable-bitmap',
+ − 317
'pdb' => 'chemical/x-pdb',
+ − 318
'pdf' => 'application/pdf',
+ − 319
'pgm' => 'image/x-portable-graymap',
+ − 320
'pgn' => 'application/x-chess-pgn',
+ − 321
'png' => 'image/png',
+ − 322
'pnm' => 'image/x-portable-anymap',
+ − 323
'ppm' => 'image/x-portable-pixmap',
+ − 324
'ppt' => 'application/vnd.ms-powerpoint',
+ − 325
'ps' => 'application/postscript',
+ − 326
'psd' => 'image/x-photoshop',
+ − 327
'qt' => 'video/quicktime',
+ − 328
'ra' => 'audio/x-realaudio',
+ − 329
'ram' => 'audio/x-pn-realaudio',
+ − 330
'ras' => 'image/x-cmu-raster',
+ − 331
'rdf' => 'text/xml',
+ − 332
'rgb' => 'image/x-rgb',
+ − 333
'rm' => 'audio/x-pn-realaudio',
+ − 334
'roff' => 'application/x-troff',
+ − 335
'rpm' => 'audio/x-pn-realaudio-plugin',
+ − 336
'rss' => 'text/xml',
+ − 337
'rtf' => 'text/rtf',
+ − 338
'rtx' => 'text/richtext',
+ − 339
'sgm' => 'text/sgml',
+ − 340
'sgml' => 'text/sgml',
+ − 341
'sh' => 'application/x-sh',
+ − 342
'shar' => 'application/x-shar',
+ − 343
'silo' => 'model/mesh',
+ − 344
'sit' => 'application/x-stuffit',
+ − 345
'skd' => 'application/x-koan',
+ − 346
'skm' => 'application/x-koan',
+ − 347
'skp' => 'application/x-koan',
+ − 348
'skt' => 'application/x-koan',
+ − 349
'smi' => 'application/smil',
+ − 350
'smil' => 'application/smil',
+ − 351
'snd' => 'audio/basic',
+ − 352
'so' => 'application/octet-stream',
+ − 353
'spl' => 'application/x-futuresplash',
+ − 354
'src' => 'application/x-wais-source',
+ − 355
'stc' => 'application/zip',
+ − 356
'std' => 'application/zip',
+ − 357
'sti' => 'application/zip',
+ − 358
'stm' => 'application/zip',
+ − 359
'stw' => 'application/zip',
+ − 360
'sv4cpio' => 'application/x-sv4cpio',
+ − 361
'sv4crc' => 'application/x-sv4crc',
+ − 362
'svg' => 'image/svg+xml',
+ − 363
'swf' => 'application/x-shockwave-flash',
+ − 364
'sxc' => 'application/zip',
+ − 365
'sxd' => 'application/zip',
+ − 366
'sxi' => 'application/zip',
+ − 367
'sxm' => 'application/zip',
+ − 368
'sxw' => 'application/zip',
+ − 369
't' => 'application/x-troff',
+ − 370
'tar' => 'application/x-tar',
+ − 371
'tcl' => 'application/x-tcl',
+ − 372
'tex' => 'application/x-tex',
+ − 373
'texi' => 'application/x-texinfo',
+ − 374
'texinfo' => 'application/x-texinfo',
+ − 375
'tif' => 'image/tiff',
+ − 376
'tiff' => 'image/tiff',
+ − 377
'tr' => 'application/x-troff',
+ − 378
'tsv' => 'text/tab-separated-values',
+ − 379
'txt' => 'text/plain',
+ − 380
'ustar' => 'application/x-ustar',
+ − 381
'vcd' => 'application/x-cdlink',
+ − 382
'vrml' => 'model/vrml',
+ − 383
'vxml' => 'application/voicexml+xml',
+ − 384
'wav' => 'audio/x-wav',
+ − 385
'wbmp' => 'image/vnd.wap.wbmp',
+ − 386
'wbxml' => 'application/vnd.wap.wbxml',
+ − 387
'wml' => 'text/vnd.wap.wml',
+ − 388
'wmlc' => 'application/vnd.wap.wmlc',
+ − 389
'wmls' => 'text/vnd.wap.wmlscript',
+ − 390
'wmlsc' => 'application/vnd.wap.wmlscriptc',
+ − 391
'wrl' => 'model/vrml',
+ − 392
'xbm' => 'image/x-xbitmap',
+ − 393
'xcf' => 'image/xcf',
+ − 394
'xht' => 'application/xhtml+xml',
+ − 395
'xhtml' => 'application/xhtml+xml',
+ − 396
'xls' => 'application/vnd.ms-excel',
+ − 397
'xml' => 'text/xml',
+ − 398
'xpi' => 'application/zip',
+ − 399
'xpm' => 'image/x-xpixmap',
+ − 400
'xsl' => 'text/xml',
+ − 401
'xslt' => 'text/xml',
+ − 402
'xwd' => 'image/x-xwindowdump',
+ − 403
'xyz' => 'chemical/x-xyz',
+ − 404
'zip' => 'application/zip',
293
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 405
'odt' => 'application/vnd.oasis.opendocument.text',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 406
'ott' => 'application/vnd.oasis.opendocument.text-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 407
'odg' => 'application/vnd.oasis.opendocument.graphics',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 408
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 409
'odp' => 'application/vnd.oasis.opendocument.presentation',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 410
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 411
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 412
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 413
'odc' => 'application/vnd.oasis.opendocument.chart',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 414
'otc' => 'application/vnd.oasis.opendocument.chart-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 415
'odi' => 'application/vnd.oasis.opendocument.image',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 416
'oti' => 'application/vnd.oasis.opendocument.image-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 417
'odf' => 'application/vnd.oasis.opendocument.formula',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 418
'otf' => 'application/vnd.oasis.opendocument.formula-template',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 419
'odm' => 'application/vnd.oasis.opendocument.text-master',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 420
'oth' => 'application/vnd.oasis.opendocument.text-web'
1
+ − 421
);
+ − 422
+ − 423
$mimetype_extlist = Array(
+ − 424
'application/andrew-inset'=>'ez',
+ − 425
'application/mac-binhex40'=>'hqx',
+ − 426
'application/mac-compactpro'=>'cpt',
+ − 427
'application/mathml+xml'=>'mathml',
+ − 428
'application/msword'=>'doc',
+ − 429
'application/octet-stream'=>'bin dms lha lzh exe class so dll',
+ − 430
'application/oda'=>'oda',
+ − 431
'application/ogg'=>'ogg ogm',
+ − 432
'application/pdf'=>'pdf',
+ − 433
'application/postscript'=>'ai eps ps',
+ − 434
'application/rdf+xml'=>'rdf',
+ − 435
'application/smil'=>'smi smil',
+ − 436
'application/srgs'=>'gram',
+ − 437
'application/srgs+xml'=>'grxml',
+ − 438
'application/vnd.mif'=>'mif',
+ − 439
'application/vnd.ms-excel'=>'xls',
+ − 440
'application/vnd.ms-powerpoint'=>'ppt',
+ − 441
'application/vnd.wap.wbxml'=>'wbxml',
+ − 442
'application/vnd.wap.wmlc'=>'wmlc',
+ − 443
'application/vnd.wap.wmlscriptc'=>'wmlsc',
+ − 444
'application/voicexml+xml'=>'vxml',
+ − 445
'application/x-bcpio'=>'bcpio',
+ − 446
'application/x-bzip'=>'gz bz2',
+ − 447
'application/x-cdlink'=>'vcd',
+ − 448
'application/x-chess-pgn'=>'pgn',
+ − 449
'application/x-cpio'=>'cpio',
+ − 450
'application/x-csh'=>'csh',
+ − 451
'application/x-director'=>'dcr dir dxr',
+ − 452
'application/x-dvi'=>'dvi',
+ − 453
'application/x-futuresplash'=>'spl',
+ − 454
'application/x-gtar'=>'gtar tar',
+ − 455
'application/x-gzip'=>'gz',
+ − 456
'application/x-hdf'=>'hdf',
+ − 457
'application/x-jar'=>'jar',
+ − 458
'application/x-javascript'=>'js',
+ − 459
'application/x-koan'=>'skp skd skt skm',
+ − 460
'application/x-latex'=>'latex',
+ − 461
'application/x-netcdf'=>'nc cdf',
+ − 462
'application/x-sh'=>'sh',
+ − 463
'application/x-shar'=>'shar',
+ − 464
'application/x-shockwave-flash'=>'swf',
+ − 465
'application/x-stuffit'=>'sit',
+ − 466
'application/x-sv4cpio'=>'sv4cpio',
+ − 467
'application/x-sv4crc'=>'sv4crc',
+ − 468
'application/x-tar'=>'tar',
+ − 469
'application/x-tcl'=>'tcl',
+ − 470
'application/x-tex'=>'tex',
+ − 471
'application/x-texinfo'=>'texinfo texi',
+ − 472
'application/x-troff'=>'t tr roff',
+ − 473
'application/x-troff-man'=>'man',
+ − 474
'application/x-troff-me'=>'me',
+ − 475
'application/x-troff-ms'=>'ms',
+ − 476
'application/x-ustar'=>'ustar',
+ − 477
'application/x-wais-source'=>'src',
+ − 478
'application/x-xpinstall'=>'xpi',
+ − 479
'application/xhtml+xml'=>'xhtml xht',
+ − 480
'application/xslt+xml'=>'xslt',
+ − 481
'application/xml'=>'xml xsl',
+ − 482
'application/xml-dtd'=>'dtd',
+ − 483
'application/zip'=>'zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw ',
+ − 484
'audio/basic'=>'au snd',
+ − 485
'audio/midi'=>'mid midi kar',
+ − 486
'audio/mpeg'=>'mpga mp2 mp3',
+ − 487
'audio/ogg'=>'ogg ',
+ − 488
'audio/x-aiff'=>'aif aiff aifc',
+ − 489
'audio/x-mpegurl'=>'m3u',
+ − 490
'audio/x-ogg'=>'ogg ',
+ − 491
'audio/x-pn-realaudio'=>'ram rm',
+ − 492
'audio/x-pn-realaudio-plugin'=>'rpm',
+ − 493
'audio/x-realaudio'=>'ra',
+ − 494
'audio/x-wav'=>'wav',
+ − 495
'chemical/x-pdb'=>'pdb',
+ − 496
'chemical/x-xyz'=>'xyz',
+ − 497
'image/bmp'=>'bmp',
+ − 498
'image/cgm'=>'cgm',
+ − 499
'image/gif'=>'gif',
+ − 500
'image/ief'=>'ief',
+ − 501
'image/jpeg'=>'jpeg jpg jpe',
+ − 502
'image/png'=>'png',
+ − 503
'image/svg+xml'=>'svg',
+ − 504
'image/tiff'=>'tiff tif',
+ − 505
'image/vnd.djvu'=>'djvu djv',
+ − 506
'image/vnd.wap.wbmp'=>'wbmp',
+ − 507
'image/x-cmu-raster'=>'ras',
+ − 508
'image/x-icon'=>'ico',
+ − 509
'image/x-portable-anymap'=>'pnm',
+ − 510
'image/x-portable-bitmap'=>'pbm',
+ − 511
'image/x-portable-graymap'=>'pgm',
+ − 512
'image/x-portable-pixmap'=>'ppm',
+ − 513
'image/x-rgb'=>'rgb',
+ − 514
'image/x-photoshop'=>'psd',
+ − 515
'image/x-xbitmap'=>'xbm',
+ − 516
'image/x-xpixmap'=>'xpm',
+ − 517
'image/x-xwindowdump'=>'xwd',
+ − 518
'model/iges'=>'igs iges',
+ − 519
'model/mesh'=>'msh mesh silo',
+ − 520
'model/vrml'=>'wrl vrml',
+ − 521
'text/calendar'=>'ics ifb',
+ − 522
'text/css'=>'css',
+ − 523
'text/html'=>'html htm',
+ − 524
'text/plain'=>'txt',
+ − 525
'text/richtext'=>'rtx',
+ − 526
'text/rtf'=>'rtf',
+ − 527
'text/sgml'=>'sgml sgm',
+ − 528
'text/tab-separated-values'=>'tsv',
+ − 529
'text/vnd.wap.wml'=>'wml',
+ − 530
'text/vnd.wap.wmlscript'=>'wmls',
+ − 531
'text/xml'=>'xml xsl xslt rss rdf',
+ − 532
'text/x-setext'=>'etx',
+ − 533
'video/mpeg'=>'mpeg mpg mpe',
+ − 534
'video/ogg'=>'ogm ogg',
+ − 535
'video/quicktime'=>'qt mov',
+ − 536
'video/vnd.mpegurl'=>'mxu',
+ − 537
'video/x-msvideo'=>'avi',
+ − 538
'video/x-ogg'=>'ogm ogg',
+ − 539
'video/x-sgi-movie'=>'movie',
+ − 540
'x-conference/x-cooltalk'=>'ice',
+ − 541
// Added for Enano
+ − 542
'image/xcf' => 'xcf xcfbz2 xcf.bz2',
293
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 543
'application/vnd.oasis.opendocument.text' => 'odt',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 544
'application/vnd.oasis.opendocument.text-template' => 'ott',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 545
'application/vnd.oasis.opendocument.graphics' => 'odg',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 546
'application/vnd.oasis.opendocument.graphics-template' => 'otg',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 547
'application/vnd.oasis.opendocument.presentation' => 'odp',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 548
'application/vnd.oasis.opendocument.presentation-template' => 'otp',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 549
'application/vnd.oasis.opendocument.spreadsheet' => 'ods',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 550
'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 551
'application/vnd.oasis.opendocument.chart' => 'odc',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 552
'application/vnd.oasis.opendocument.chart-template' => 'otc',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 553
'application/vnd.oasis.opendocument.image' => 'odi',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 554
'application/vnd.oasis.opendocument.image-template' => 'oti',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 555
'application/vnd.oasis.opendocument.formula' => 'odf',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 556
'application/vnd.oasis.opendocument.formula-template' => 'otf',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 557
'application/vnd.oasis.opendocument.text-master' => 'odm',
3f98d4ba1e33
Added OpenDocument MIME types and extensions; make sql_report page show total time taken for SQL queries
Dan
diff
changeset
+ − 558
'application/vnd.oasis.opendocument.text-web' => 'oth'
1
+ − 559
);
+ − 560
+ − 561
$k = array_keys($mime_types);
+ − 562
$mimetype_exps = Array();
+ − 563
foreach($k as $s => $x)
+ − 564
{
+ − 565
$mimetype_exps[$x] = pow(2, $s);
+ − 566
}
+ − 567
+ − 568
unset($k, $s, $x);
328
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 569
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 570
/******************************************************************************
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 571
* Global Variable: JPEG_Segment_Names
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 572
*
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 573
* Contents: The names of the JPEG segment markers, indexed by their marker number. This data is from the PHP JPEG Metadata Toolkit. Licensed under the GPLv2 or later.
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 574
*
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 575
******************************************************************************/
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 576
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 577
$GLOBALS[ "JPEG_Segment_Names" ] = array(
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 578
0xC0 => "SOF0", 0xC1 => "SOF1", 0xC2 => "SOF2", 0xC3 => "SOF4",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 579
0xC5 => "SOF5", 0xC6 => "SOF6", 0xC7 => "SOF7", 0xC8 => "JPG",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 580
0xC9 => "SOF9", 0xCA => "SOF10", 0xCB => "SOF11", 0xCD => "SOF13",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 581
0xCE => "SOF14", 0xCF => "SOF15",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 582
0xC4 => "DHT", 0xCC => "DAC",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 583
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 584
0xD0 => "RST0", 0xD1 => "RST1", 0xD2 => "RST2", 0xD3 => "RST3",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 585
0xD4 => "RST4", 0xD5 => "RST5", 0xD6 => "RST6", 0xD7 => "RST7",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 586
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 587
0xD8 => "SOI", 0xD9 => "EOI", 0xDA => "SOS", 0xDB => "DQT",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 588
0xDC => "DNL", 0xDD => "DRI", 0xDE => "DHP", 0xDF => "EXP",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 589
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 590
0xE0 => "APP0", 0xE1 => "APP1", 0xE2 => "APP2", 0xE3 => "APP3",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 591
0xE4 => "APP4", 0xE5 => "APP5", 0xE6 => "APP6", 0xE7 => "APP7",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 592
0xE8 => "APP8", 0xE9 => "APP9", 0xEA => "APP10", 0xEB => "APP11",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 593
0xEC => "APP12", 0xED => "APP13", 0xEE => "APP14", 0xEF => "APP15",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 594
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 595
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 596
0xF0 => "JPG0", 0xF1 => "JPG1", 0xF2 => "JPG2", 0xF3 => "JPG3",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 597
0xF4 => "JPG4", 0xF5 => "JPG5", 0xF6 => "JPG6", 0xF7 => "JPG7",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 598
0xF8 => "JPG8", 0xF9 => "JPG9", 0xFA => "JPG10", 0xFB => "JPG11",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 599
0xFC => "JPG12", 0xFD => "JPG13",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 600
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 601
0xFE => "COM", 0x01 => "TEM", 0x02 => "RES",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 602
);
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 603