1
+ − 1
<?php
+ − 2
+ − 3
/*
+ − 4
* Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
1081
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 5
* Copyright (C) 2006-2009 Dan Fuhry
1
+ − 6
* constants.php - important defines used Enano-wide
+ − 7
*
+ − 8
* This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
+ − 9
* as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+ − 10
*
+ − 11
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+ − 12
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
+ − 13
*/
+ − 14
+ − 15
// Ban types
+ − 16
define('BAN_IP', 1);
+ − 17
define('BAN_USER', 2);
+ − 18
define('BAN_EMAIL', 3);
+ − 19
+ − 20
// ACL permission types
+ − 21
define('AUTH_ALLOW', 4);
+ − 22
define('AUTH_WIKIMODE', 3); // User can do this if wiki mode is enabled
+ − 23
define('AUTH_DISALLOW', 2);
+ − 24
define('AUTH_DENY', 1); // A Deny setting overrides *everything*
+ − 25
+ − 26
define('ACL_TYPE_GROUP', 1);
+ − 27
define('ACL_TYPE_USER', 2);
+ − 28
define('ACL_TYPE_PRESET', 3);
+ − 29
554
+ − 30
// ACL inheritance debugging info
556
63e131c38876
More work done on effective permissions API, namely reporting of page group and usergroup names
Dan
diff
changeset
+ − 31
define('ACL_INHERIT_ENANO_DEFAULT', 10);
554
+ − 32
define('ACL_INHERIT_GLOBAL_EVERYONE', 9);
+ − 33
define('ACL_INHERIT_GLOBAL_GROUP', 8);
+ − 34
define('ACL_INHERIT_GLOBAL_USER', 7);
+ − 35
define('ACL_INHERIT_PG_EVERYONE', 6);
+ − 36
define('ACL_INHERIT_PG_GROUP', 5);
+ − 37
define('ACL_INHERIT_PG_USER', 4);
+ − 38
define('ACL_INHERIT_LOCAL_EVERYONE', 3);
+ − 39
define('ACL_INHERIT_LOCAL_GROUP', 2);
+ − 40
define('ACL_INHERIT_LOCAL_USER', 1);
+ − 41
513
+ − 42
// ACL color scale minimal shade for red and green ends
+ − 43
// The lower, the more saturated the color on the scale.
+ − 44
// Purely cosmetic. 0x0 - 0xFF, 0xFF will basically disable the scale
+ − 45
define('ACL_SCALE_MINIMAL_SHADE', 0xA8);
+ − 46
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
+ − 47
// 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
+ − 48
// 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
+ − 49
// 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
+ − 50
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
+ − 51
1
+ − 52
// 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
+ − 53
define('GROUP_ID_EVERYONE', 1);
1
+ − 54
define('GROUP_ID_ADMIN', 2);
+ − 55
define('GROUP_ID_MOD', 3);
+ − 56
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
+ − 57
// 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
+ − 58
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
+ − 59
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
+ − 60
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
+ − 61
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
+ − 62
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
+ − 63
// 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
+ − 64
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
+ − 65
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
+ − 66
define('PAGE_GRP_NORMAL', 3);
156
+ − 67
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
+ − 68
825
9d5c04c1414f
Added (very basic) spam filtering plugin support. Plugins can mark a message as spam by hooking into the spam check API, which is documented in functions.php. No spam checking functionality is built-in.
Dan
diff
changeset
+ − 69
// Comment types
9d5c04c1414f
Added (very basic) spam filtering plugin support. Plugins can mark a message as spam by hooking into the spam check API, which is documented in functions.php. No spam checking functionality is built-in.
Dan
diff
changeset
+ − 70
define('COMMENT_APPROVED', 1);
9d5c04c1414f
Added (very basic) spam filtering plugin support. Plugins can mark a message as spam by hooking into the spam check API, which is documented in functions.php. No spam checking functionality is built-in.
Dan
diff
changeset
+ − 71
define('COMMENT_UNAPPROVED', 0);
9d5c04c1414f
Added (very basic) spam filtering plugin support. Plugins can mark a message as spam by hooking into the spam check API, which is documented in functions.php. No spam checking functionality is built-in.
Dan
diff
changeset
+ − 72
define('COMMENT_SPAM', 2);
9d5c04c1414f
Added (very basic) spam filtering plugin support. Plugins can mark a message as spam by hooking into the spam check API, which is documented in functions.php. No spam checking functionality is built-in.
Dan
diff
changeset
+ − 73
688
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 74
// Session key types
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 75
// Short keys last for getConfig('session_short_time', '720'); in minutes and auto-renew.
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 76
// Long keys last for getConfig('session_remember_time', '30'); in days and do NOT auto-renew.
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 77
// Elevated keys have a hard-coded 15-minute limit for security reasons and because
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 78
// that's how Enano's done it since before beta 1.
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 79
define('SK_SHORT', 0);
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 80
define('SK_LONG', 1);
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 81
define('SK_ELEV', 2);
f2a824ce5f18
Added customizable parameters for session length and the long-missing "remember me" option (or rather, the ability to turn it off and make sessions temporary)
Dan
diff
changeset
+ − 82
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
+ − 83
// Identifier for the default pseudo-language
205
+ − 84
define('LANG_DEFAULT', 0);
+ − 85
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
+ − 86
// 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
+ − 87
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
+ − 88
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
+ − 89
define('IMAGE_TYPE_JPG', 3);
621
+ − 90
define('IMAGE_TYPE_GRV', 4);
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
+ − 91
592
+ − 92
// token types
+ − 93
define('TOKEN_VARIABLE', 1);
+ − 94
define('TOKEN_BOOLOP', 2);
+ − 95
define('TOKEN_PARENTHLEFT', 3);
+ − 96
define('TOKEN_PARENTHRIGHT', 4);
+ − 97
define('TOKEN_NOT', 5);
+ − 98
711
+ − 99
// DST constants
+ − 100
define('FIRST_SUNDAY', 1);
+ − 101
define('SECOND_SUNDAY', 2);
+ − 102
define('THIRD_SUNDAY', 3);
+ − 103
define('LAST_SUNDAY', 4);
+ − 104
1081
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 105
// Date types
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 106
define('DATE_1', 'y/m/d');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 107
define('DATE_2', 'y/d/m');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 108
define('DATE_3', 'Y-m-d');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 109
define('DATE_4', 'F d, Y');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 110
// 12 hour, no seconds
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 111
define('TIME_12_NS', 'g:i A');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 112
// 12 hour, seconds
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 113
define('TIME_12_S', 'g:i:s A');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 114
// 24 hour, no seconds
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 115
define('TIME_24_NS', 'G:i');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 116
// 24 hour, seconds
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 117
define('TIME_24_S', 'G:i:s');
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 118
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 119
define('ED_DATE', 1);
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 120
define('ED_TIME', 2);
745200a9cc2a
Fixed some upgrade bugs; added support for choosing one's own date/time formats; rebrand as 1.1.7
Dan
diff
changeset
+ − 121
832
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 122
// Rendering options!
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 123
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 124
/**
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 125
* Render using template/wiki hybrid syntax (Enano processing + template variable/logic access)
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 126
* @const int
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 127
*/
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 128
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 129
define('RENDER_WIKI_TEMPLATE', 2);
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 130
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 131
/**
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 132
* Only render block-level things, like paragraphs, divs, etc.
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 133
* @const int
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 134
*/
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 135
1027
+ − 136
define('RENDER_BLOCK', 4);
832
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 137
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 138
/**
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 139
* Only render inline-level things, like links.
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 140
* @const int
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 141
*/
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 142
1027
+ − 143
define('RENDER_INLINE', 8);
832
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 144
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 145
/**
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 146
* Disable smilies when rendering.
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 147
* @const int
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 148
*/
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 149
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 150
define('RENDER_NOSMILIES', 16);
7152ca0a0ce9
Major redesign of rendering pipeline that separates pages saved with MCE from pages saved with the plaintext editor (full description in long commit message)
Dan
diff
changeset
+ − 151
1027
+ − 152
/**
+ − 153
* Render using the default engine
+ − 154
* @const int
+ − 155
*/
+ − 156
+ − 157
define('RENDER_WIKI_DEFAULT', RENDER_BLOCK | RENDER_INLINE);
+ − 158
+ − 159
// parser order
+ − 160
define('PO_BEFORE', 1);
+ − 161
define('PO_AFTER', 2);
+ − 162
define('PO_FIRST', 3);
+ − 163
define('PO_LAST', 4);
+ − 164
1
+ − 165
//
+ − 166
// User types - don't touch these
+ − 167
//
+ − 168
+ − 169
// User can do absolutely everything
+ − 170
define('USER_LEVEL_ADMIN', 9);
+ − 171
+ − 172
// User can edit/[un]approve comments and do some basic administration
+ − 173
define('USER_LEVEL_MOD', 5);
+ − 174
+ − 175
// Default for members. When authed at this level, the user can change his/her password.
+ − 176
define('USER_LEVEL_CHPREF', 3);
+ − 177
+ − 178
// The level that you will be running at most of the time
+ − 179
define('USER_LEVEL_MEMBER', 2);
+ − 180
+ − 181
// Special level for guests
+ − 182
define('USER_LEVEL_GUEST', 1);
+ − 183
+ − 184
// Group status
+ − 185
define('GROUP_CLOSED', 1);
+ − 186
define('GROUP_REQUEST', 2);
+ − 187
define('GROUP_HIDDEN', 3);
+ − 188
define('GROUP_OPEN', 4);
+ − 189
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
+ − 190
// 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
+ − 191
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
+ − 192
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
+ − 193
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
+ − 194
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
+ − 195
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
+ − 196
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
+ − 197
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
+ − 198
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
+ − 199
// 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
+ − 200
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
+ − 201
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
+ − 202
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
+ − 203
1
+ − 204
// Other stuff
+ − 205
+ − 206
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
+ − 207
define('SEARCH_RESULTS_PER_PAGE', 10);
+ − 208
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
+ − 209
define('ENANO_SUPPORT_AVATARS', 1);
771
+ − 210
// don't change this next line in upstream (it has to be auto-patched by the dynamic download script)
+ − 211
// define('WINDOWS_MOD_REWRITE_WORKAROUNDS', '');
1
+ − 212
+ − 213
// Sidebar
+ − 214
+ − 215
define('BLOCK_WIKIFORMAT', 0);
+ − 216
define('BLOCK_TEMPLATEFORMAT', 1);
+ − 217
define('BLOCK_HTML', 2);
+ − 218
define('BLOCK_PHP', 3);
+ − 219
define('BLOCK_PLUGIN', 4);
+ − 220
define('SIDEBAR_LEFT', 1);
+ − 221
define('SIDEBAR_RIGHT', 2);
+ − 222
+ − 223
define('GENERAL_ERROR', 'General error');
+ − 224
define('GENERAL_NOTICE', 'Information');
+ − 225
define('CRITICAL_ERROR', 'Critical error');
+ − 226
468
+ − 227
// Protection levels
+ − 228
// These are still hardcoded in some places, so don't change them
+ − 229
define('PROTECT_NONE', 0);
+ − 230
define('PROTECT_FULL', 1);
+ − 231
define('PROTECT_SEMI', 2);
+ − 232
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
+ − 233
//
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
+ − 234
// 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
+ − 235
//
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
+ − 236
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
+ − 237
// 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
+ − 238
// 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
+ − 239
// 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
+ − 240
// 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
+ − 241
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
+ − 242
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
+ − 243
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
+ − 244
1
+ − 245
// You can un-comment the next line to require database backups to be encrypted using the site's unique key.
+ − 246
// This keeps the file safe in transit, but also prevents any type of editing to the file. This is NOT
+ − 247
// recommended except for tiny sites because encrypting an average of 2MB of data will take a while.
+ − 248
// define('SQL_BACKUP_CRYPT', '');
+ − 249
+ − 250
// Security
+ − 251
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
+ − 252
// 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
+ − 253
// 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
+ − 254
define('AES_BITS', 192);
1
+ − 255
+ − 256
// Define this to enable Mcrypt support which makes encryption work faster. This is only triggered if Mcrypt support is detected.
+ − 257
// THIS IS DISABLED BECAUSE MCRYPT DOES NOT SEEM TO SUPPORT THE AES BLOCK SIZES THAT ENANO USES.
+ − 258
//define('MCRYPT_ACCEL', '');
+ − 259
+ − 260
//if(defined('MCRYPT_RIJNDAEL_' . AES_BITS))
+ − 261
//{
+ − 262
// eval('$bs = MCRYPT_RIJNDAEL_' . AES_BITS . ';');
+ − 263
// $bs = mcrypt_module_get_algo_block_size($bs);
+ − 264
// $bs = $bs * 8;
+ − 265
// define('AES_BLOCKSIZE', $bs);
+ − 266
//}
+ − 267
// else
+ − 268
// {
+ − 269
// define('AES_BLOCKSIZE', AES_BITS);
+ − 270
// }
+ − 271
348
87e08a6e4fec
Welcome to the new Enano installer. Much distance still to be covered but the basics are there.
Dan
diff
changeset
+ − 272
// 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
+ − 273
// significantly increase encryption strength either.
1
+ − 274
define('AES_BLOCKSIZE', 128);
+ − 275
352
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 276
// 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
+ − 277
$system_table_list = Array(
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 278
'categories',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 279
'comments',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 280
'config',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 281
'logs',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 282
'page_text',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 283
'session_keys',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 284
'pages',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 285
'users',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 286
'users_extra',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 287
'themes',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 288
'buddies',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 289
'banlist',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 290
'files',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 291
'privmsgs',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 292
'sidebar',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 293
'hits',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 294
'groups',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 295
'group_members',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 296
'acl',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 297
'page_groups',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 298
'page_group_members',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 299
'tags',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 300
'language',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 301
'language_strings',
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 302
'lockout',
719
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 303
'search_index',
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 304
'captcha',
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 305
'diffiehellman',
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 306
'plugins',
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 307
'ranks'
352
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 308
);
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 309
719
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 310
if ( defined('table_prefix') && !defined('ENANO_TABLELIST_PREFIXED') )
352
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 311
{
719
f82da241eaf8
Fixed system table list; added safeguard against twice prefixing the tables in $system_table_list
Dan
diff
changeset
+ − 312
define('ENANO_TABLELIST_PREFIXED', 1);
352
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 313
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
+ − 314
{
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 315
$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
+ − 316
}
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 317
}
9d7225c0db6d
Enano's new installable installer, alpha 1. No upgrade and (in some parts) very little localization.
Dan
diff
changeset
+ − 318
1
+ − 319
/*
+ − 320
* MIMETYPES
+ − 321
*
+ − 322
* This array defines the 166 known MIME types used by the Enano file-extension filter. Whether extensions are allowed or not is
+ − 323
* determined by a bitfield in the config table.
+ − 324
*/
+ − 325
+ − 326
global $mime_types, $mimetype_exps, $mimetype_extlist;
+ − 327
+ − 328
// IMPORTANT: this array can NEVER have items removed from it or key indexes changed
+ − 329
$mime_types = Array (
+ − 330
'ai' => 'application/postscript',
+ − 331
'aif' => 'audio/x-aiff',
+ − 332
'aifc' => 'audio/x-aiff',
+ − 333
'aiff' => 'audio/x-aiff',
+ − 334
'au' => 'audio/basic',
+ − 335
'avi' => 'video/x-msvideo',
+ − 336
'bcpio' => 'application/x-bcpio',
+ − 337
'bin' => 'application/octet-stream',
+ − 338
'bmp' => 'image/bmp',
+ − 339
'bz2' => 'application/x-bzip',
+ − 340
'cdf' => 'application/x-netcdf',
+ − 341
'cgm' => 'image/cgm',
+ − 342
'class' => 'application/octet-stream',
+ − 343
'cpio' => 'application/x-cpio',
+ − 344
'cpt' => 'application/mac-compactpro',
+ − 345
'csh' => 'application/x-csh',
+ − 346
'css' => 'text/css',
+ − 347
'dcr' => 'application/x-director',
+ − 348
'dir' => 'application/x-director',
+ − 349
'djv' => 'image/vnd.djvu',
+ − 350
'djvu' => 'image/vnd.djvu',
+ − 351
'dll' => 'application/octet-stream',
+ − 352
'dms' => 'application/octet-stream',
+ − 353
'doc' => 'application/msword',
+ − 354
'dtd' => 'application/xml-dtd',
+ − 355
'dvi' => 'application/x-dvi',
+ − 356
'dxr' => 'application/x-director',
+ − 357
'eps' => 'application/postscript',
+ − 358
'etx' => 'text/x-setext',
+ − 359
'exe' => 'application/octet-stream',
+ − 360
'ez' => 'application/andrew-inset',
+ − 361
'gif' => 'image/gif',
+ − 362
'gram' => 'application/srgs',
+ − 363
'grxml' => 'application/srgs+xml',
+ − 364
'gtar' => 'application/x-gtar',
+ − 365
'gz' => 'application/x-gzip',
+ − 366
'hdf' => 'application/x-hdf',
+ − 367
'hqx' => 'application/mac-binhex40',
+ − 368
'htm' => 'text/html',
+ − 369
'html' => 'text/html',
+ − 370
'ice' => 'x-conference/x-cooltalk',
+ − 371
'ico' => 'image/x-icon',
+ − 372
'ics' => 'text/calendar',
+ − 373
'ief' => 'image/ief',
+ − 374
'ifb' => 'text/calendar',
+ − 375
'iges' => 'model/iges',
+ − 376
'igs' => 'model/iges',
+ − 377
'jar' => 'application/zip',
+ − 378
'jpe' => 'image/jpeg',
+ − 379
'jpeg' => 'image/jpeg',
+ − 380
'jpg' => 'image/jpeg',
+ − 381
'js' => 'application/x-javascript',
+ − 382
'kar' => 'audio/midi',
+ − 383
'latex' => 'application/x-latex',
+ − 384
'lha' => 'application/octet-stream',
+ − 385
'lzh' => 'application/octet-stream',
+ − 386
'm3u' => 'audio/x-mpegurl',
+ − 387
'man' => 'application/x-troff-man',
+ − 388
'mathml' => 'application/mathml+xml',
+ − 389
'me' => 'application/x-troff-me',
+ − 390
'mesh' => 'model/mesh',
+ − 391
'mid' => 'audio/midi',
+ − 392
'midi' => 'audio/midi',
+ − 393
'mif' => 'application/vnd.mif',
+ − 394
'mov' => 'video/quicktime',
+ − 395
'movie' => 'video/x-sgi-movie',
+ − 396
'mp2' => 'audio/mpeg',
+ − 397
'mp3' => 'audio/mpeg',
+ − 398
'mpe' => 'video/mpeg',
+ − 399
'mpeg' => 'video/mpeg',
+ − 400
'mpg' => 'video/mpeg',
+ − 401
'mpga' => 'audio/mpeg',
+ − 402
'ms' => 'application/x-troff-ms',
+ − 403
'msh' => 'model/mesh',
+ − 404
'mxu' => 'video/vnd.mpegurl',
+ − 405
'nc' => 'application/x-netcdf',
+ − 406
'oda' => 'application/oda',
+ − 407
'ogg' => 'application/ogg',
+ − 408
'ogm' => 'application/ogg',
+ − 409
'pbm' => 'image/x-portable-bitmap',
+ − 410
'pdb' => 'chemical/x-pdb',
+ − 411
'pdf' => 'application/pdf',
+ − 412
'pgm' => 'image/x-portable-graymap',
+ − 413
'pgn' => 'application/x-chess-pgn',
+ − 414
'png' => 'image/png',
+ − 415
'pnm' => 'image/x-portable-anymap',
+ − 416
'ppm' => 'image/x-portable-pixmap',
+ − 417
'ppt' => 'application/vnd.ms-powerpoint',
+ − 418
'ps' => 'application/postscript',
+ − 419
'psd' => 'image/x-photoshop',
+ − 420
'qt' => 'video/quicktime',
+ − 421
'ra' => 'audio/x-realaudio',
+ − 422
'ram' => 'audio/x-pn-realaudio',
+ − 423
'ras' => 'image/x-cmu-raster',
+ − 424
'rdf' => 'text/xml',
+ − 425
'rgb' => 'image/x-rgb',
+ − 426
'rm' => 'audio/x-pn-realaudio',
+ − 427
'roff' => 'application/x-troff',
+ − 428
'rpm' => 'audio/x-pn-realaudio-plugin',
+ − 429
'rss' => 'text/xml',
+ − 430
'rtf' => 'text/rtf',
+ − 431
'rtx' => 'text/richtext',
+ − 432
'sgm' => 'text/sgml',
+ − 433
'sgml' => 'text/sgml',
+ − 434
'sh' => 'application/x-sh',
+ − 435
'shar' => 'application/x-shar',
+ − 436
'silo' => 'model/mesh',
+ − 437
'sit' => 'application/x-stuffit',
+ − 438
'skd' => 'application/x-koan',
+ − 439
'skm' => 'application/x-koan',
+ − 440
'skp' => 'application/x-koan',
+ − 441
'skt' => 'application/x-koan',
+ − 442
'smi' => 'application/smil',
+ − 443
'smil' => 'application/smil',
+ − 444
'snd' => 'audio/basic',
+ − 445
'so' => 'application/octet-stream',
+ − 446
'spl' => 'application/x-futuresplash',
+ − 447
'src' => 'application/x-wais-source',
+ − 448
'stc' => 'application/zip',
+ − 449
'std' => 'application/zip',
+ − 450
'sti' => 'application/zip',
+ − 451
'stm' => 'application/zip',
+ − 452
'stw' => 'application/zip',
+ − 453
'sv4cpio' => 'application/x-sv4cpio',
+ − 454
'sv4crc' => 'application/x-sv4crc',
+ − 455
'svg' => 'image/svg+xml',
+ − 456
'swf' => 'application/x-shockwave-flash',
+ − 457
'sxc' => 'application/zip',
+ − 458
'sxd' => 'application/zip',
+ − 459
'sxi' => 'application/zip',
+ − 460
'sxm' => 'application/zip',
+ − 461
'sxw' => 'application/zip',
+ − 462
't' => 'application/x-troff',
+ − 463
'tar' => 'application/x-tar',
+ − 464
'tcl' => 'application/x-tcl',
+ − 465
'tex' => 'application/x-tex',
+ − 466
'texi' => 'application/x-texinfo',
+ − 467
'texinfo' => 'application/x-texinfo',
+ − 468
'tif' => 'image/tiff',
+ − 469
'tiff' => 'image/tiff',
+ − 470
'tr' => 'application/x-troff',
+ − 471
'tsv' => 'text/tab-separated-values',
+ − 472
'txt' => 'text/plain',
+ − 473
'ustar' => 'application/x-ustar',
+ − 474
'vcd' => 'application/x-cdlink',
+ − 475
'vrml' => 'model/vrml',
+ − 476
'vxml' => 'application/voicexml+xml',
+ − 477
'wav' => 'audio/x-wav',
+ − 478
'wbmp' => 'image/vnd.wap.wbmp',
+ − 479
'wbxml' => 'application/vnd.wap.wbxml',
+ − 480
'wml' => 'text/vnd.wap.wml',
+ − 481
'wmlc' => 'application/vnd.wap.wmlc',
+ − 482
'wmls' => 'text/vnd.wap.wmlscript',
+ − 483
'wmlsc' => 'application/vnd.wap.wmlscriptc',
+ − 484
'wrl' => 'model/vrml',
+ − 485
'xbm' => 'image/x-xbitmap',
+ − 486
'xcf' => 'image/xcf',
+ − 487
'xht' => 'application/xhtml+xml',
+ − 488
'xhtml' => 'application/xhtml+xml',
+ − 489
'xls' => 'application/vnd.ms-excel',
+ − 490
'xml' => 'text/xml',
+ − 491
'xpi' => 'application/zip',
+ − 492
'xpm' => 'image/x-xpixmap',
+ − 493
'xsl' => 'text/xml',
+ − 494
'xslt' => 'text/xml',
+ − 495
'xwd' => 'image/x-xwindowdump',
+ − 496
'xyz' => 'chemical/x-xyz',
+ − 497
'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
+ − 498
'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
+ − 499
'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
+ − 500
'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
+ − 501
'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
+ − 502
'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
+ − 503
'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
+ − 504
'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
+ − 505
'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
+ − 506
'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
+ − 507
'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
+ − 508
'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
+ − 509
'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
+ − 510
'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
+ − 511
'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
+ − 512
'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
+ − 513
'oth' => 'application/vnd.oasis.opendocument.text-web'
1
+ − 514
);
+ − 515
+ − 516
$mimetype_extlist = Array(
+ − 517
'application/andrew-inset'=>'ez',
+ − 518
'application/mac-binhex40'=>'hqx',
+ − 519
'application/mac-compactpro'=>'cpt',
+ − 520
'application/mathml+xml'=>'mathml',
+ − 521
'application/msword'=>'doc',
+ − 522
'application/octet-stream'=>'bin dms lha lzh exe class so dll',
+ − 523
'application/oda'=>'oda',
+ − 524
'application/ogg'=>'ogg ogm',
+ − 525
'application/pdf'=>'pdf',
+ − 526
'application/postscript'=>'ai eps ps',
+ − 527
'application/rdf+xml'=>'rdf',
+ − 528
'application/smil'=>'smi smil',
+ − 529
'application/srgs'=>'gram',
+ − 530
'application/srgs+xml'=>'grxml',
+ − 531
'application/vnd.mif'=>'mif',
+ − 532
'application/vnd.ms-excel'=>'xls',
+ − 533
'application/vnd.ms-powerpoint'=>'ppt',
+ − 534
'application/vnd.wap.wbxml'=>'wbxml',
+ − 535
'application/vnd.wap.wmlc'=>'wmlc',
+ − 536
'application/vnd.wap.wmlscriptc'=>'wmlsc',
+ − 537
'application/voicexml+xml'=>'vxml',
+ − 538
'application/x-bcpio'=>'bcpio',
+ − 539
'application/x-bzip'=>'gz bz2',
+ − 540
'application/x-cdlink'=>'vcd',
+ − 541
'application/x-chess-pgn'=>'pgn',
+ − 542
'application/x-cpio'=>'cpio',
+ − 543
'application/x-csh'=>'csh',
+ − 544
'application/x-director'=>'dcr dir dxr',
+ − 545
'application/x-dvi'=>'dvi',
+ − 546
'application/x-futuresplash'=>'spl',
+ − 547
'application/x-gtar'=>'gtar tar',
+ − 548
'application/x-gzip'=>'gz',
+ − 549
'application/x-hdf'=>'hdf',
+ − 550
'application/x-jar'=>'jar',
+ − 551
'application/x-javascript'=>'js',
+ − 552
'application/x-koan'=>'skp skd skt skm',
+ − 553
'application/x-latex'=>'latex',
+ − 554
'application/x-netcdf'=>'nc cdf',
+ − 555
'application/x-sh'=>'sh',
+ − 556
'application/x-shar'=>'shar',
+ − 557
'application/x-shockwave-flash'=>'swf',
+ − 558
'application/x-stuffit'=>'sit',
+ − 559
'application/x-sv4cpio'=>'sv4cpio',
+ − 560
'application/x-sv4crc'=>'sv4crc',
+ − 561
'application/x-tar'=>'tar',
+ − 562
'application/x-tcl'=>'tcl',
+ − 563
'application/x-tex'=>'tex',
+ − 564
'application/x-texinfo'=>'texinfo texi',
+ − 565
'application/x-troff'=>'t tr roff',
+ − 566
'application/x-troff-man'=>'man',
+ − 567
'application/x-troff-me'=>'me',
+ − 568
'application/x-troff-ms'=>'ms',
+ − 569
'application/x-ustar'=>'ustar',
+ − 570
'application/x-wais-source'=>'src',
+ − 571
'application/x-xpinstall'=>'xpi',
+ − 572
'application/xhtml+xml'=>'xhtml xht',
+ − 573
'application/xslt+xml'=>'xslt',
+ − 574
'application/xml'=>'xml xsl',
+ − 575
'application/xml-dtd'=>'dtd',
+ − 576
'application/zip'=>'zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw ',
+ − 577
'audio/basic'=>'au snd',
+ − 578
'audio/midi'=>'mid midi kar',
+ − 579
'audio/mpeg'=>'mpga mp2 mp3',
+ − 580
'audio/ogg'=>'ogg ',
+ − 581
'audio/x-aiff'=>'aif aiff aifc',
+ − 582
'audio/x-mpegurl'=>'m3u',
+ − 583
'audio/x-ogg'=>'ogg ',
+ − 584
'audio/x-pn-realaudio'=>'ram rm',
+ − 585
'audio/x-pn-realaudio-plugin'=>'rpm',
+ − 586
'audio/x-realaudio'=>'ra',
+ − 587
'audio/x-wav'=>'wav',
+ − 588
'chemical/x-pdb'=>'pdb',
+ − 589
'chemical/x-xyz'=>'xyz',
+ − 590
'image/bmp'=>'bmp',
+ − 591
'image/cgm'=>'cgm',
+ − 592
'image/gif'=>'gif',
+ − 593
'image/ief'=>'ief',
+ − 594
'image/jpeg'=>'jpeg jpg jpe',
+ − 595
'image/png'=>'png',
+ − 596
'image/svg+xml'=>'svg',
+ − 597
'image/tiff'=>'tiff tif',
+ − 598
'image/vnd.djvu'=>'djvu djv',
+ − 599
'image/vnd.wap.wbmp'=>'wbmp',
+ − 600
'image/x-cmu-raster'=>'ras',
+ − 601
'image/x-icon'=>'ico',
+ − 602
'image/x-portable-anymap'=>'pnm',
+ − 603
'image/x-portable-bitmap'=>'pbm',
+ − 604
'image/x-portable-graymap'=>'pgm',
+ − 605
'image/x-portable-pixmap'=>'ppm',
+ − 606
'image/x-rgb'=>'rgb',
+ − 607
'image/x-photoshop'=>'psd',
+ − 608
'image/x-xbitmap'=>'xbm',
+ − 609
'image/x-xpixmap'=>'xpm',
+ − 610
'image/x-xwindowdump'=>'xwd',
+ − 611
'model/iges'=>'igs iges',
+ − 612
'model/mesh'=>'msh mesh silo',
+ − 613
'model/vrml'=>'wrl vrml',
+ − 614
'text/calendar'=>'ics ifb',
+ − 615
'text/css'=>'css',
+ − 616
'text/html'=>'html htm',
+ − 617
'text/plain'=>'txt',
+ − 618
'text/richtext'=>'rtx',
+ − 619
'text/rtf'=>'rtf',
+ − 620
'text/sgml'=>'sgml sgm',
+ − 621
'text/tab-separated-values'=>'tsv',
+ − 622
'text/vnd.wap.wml'=>'wml',
+ − 623
'text/vnd.wap.wmlscript'=>'wmls',
+ − 624
'text/xml'=>'xml xsl xslt rss rdf',
+ − 625
'text/x-setext'=>'etx',
+ − 626
'video/mpeg'=>'mpeg mpg mpe',
+ − 627
'video/ogg'=>'ogm ogg',
+ − 628
'video/quicktime'=>'qt mov',
+ − 629
'video/vnd.mpegurl'=>'mxu',
+ − 630
'video/x-msvideo'=>'avi',
+ − 631
'video/x-ogg'=>'ogm ogg',
+ − 632
'video/x-sgi-movie'=>'movie',
+ − 633
'x-conference/x-cooltalk'=>'ice',
+ − 634
// Added for Enano
+ − 635
'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
+ − 636
'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
+ − 637
'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
+ − 638
'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
+ − 639
'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
+ − 640
'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
+ − 641
'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
+ − 642
'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
+ − 643
'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
+ − 644
'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
+ − 645
'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
+ − 646
'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
+ − 647
'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
+ − 648
'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
+ − 649
'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
+ − 650
'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
+ − 651
'application/vnd.oasis.opendocument.text-web' => 'oth'
1
+ − 652
);
+ − 653
+ − 654
$k = array_keys($mime_types);
+ − 655
$mimetype_exps = Array();
+ − 656
foreach($k as $s => $x)
+ − 657
{
+ − 658
$mimetype_exps[$x] = pow(2, $s);
+ − 659
}
+ − 660
+ − 661
unset($k, $s, $x);
328
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 662
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 663
/******************************************************************************
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 664
* Global Variable: JPEG_Segment_Names
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 665
*
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 666
* 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
+ − 667
*
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 668
******************************************************************************/
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 669
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 670
$GLOBALS[ "JPEG_Segment_Names" ] = array(
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 671
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
+ − 672
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
+ − 673
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
+ − 674
0xCE => "SOF14", 0xCF => "SOF15",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 675
0xC4 => "DHT", 0xCC => "DAC",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 676
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 677
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
+ − 678
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
+ − 679
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 680
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
+ − 681
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
+ − 682
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 683
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
+ − 684
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
+ − 685
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
+ − 686
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
+ − 687
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 688
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 689
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
+ − 690
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
+ − 691
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
+ − 692
0xFC => "JPG12", 0xFD => "JPG13",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 693
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 694
0xFE => "COM", 0x01 => "TEM", 0x02 => "RES",
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 695
);
dc838fd61a06
Added initial avatar support. Currently rather feature complete except for admin controls for avatar.
Dan
diff
changeset
+ − 696
711
+ − 697
// DST profiles
+ − 698
global $dst_profiles;
+ − 699
$dst_profiles = array(
+ − 700
'off' => '0;0;0;0;60',
+ − 701
'usa' => '3;' . SECOND_SUNDAY . ';11;' . FIRST_SUNDAY . ';60',
+ − 702
'europe' => '3;' . LAST_SUNDAY . ';10;' . LAST_SUNDAY . ';60',
+ − 703
'australia' => '10;' . LAST_SUNDAY . ';3;' . LAST_SUNDAY . ';60',
+ − 704
'tasmania' => '10;' . FIRST_SUNDAY . ';3;' . LAST_SUNDAY . ';60'
+ − 705
);