forked from GithubBackups/tinyib
minor code cleanup
This commit is contained in:
parent
5904cef0e4
commit
29d2d6ab96
@ -21,8 +21,8 @@ ExpiresByType image/png "access plus 2592000 seconds"
|
|||||||
ExpiresByType text/css "access plus 604800 seconds"
|
ExpiresByType text/css "access plus 604800 seconds"
|
||||||
ExpiresByType text/javascript "access plus 216000 seconds"
|
ExpiresByType text/javascript "access plus 216000 seconds"
|
||||||
ExpiresByType application/x-javascript "access plus 216000 seconds"
|
ExpiresByType application/x-javascript "access plus 216000 seconds"
|
||||||
</ifModule>
|
</IfModule>
|
||||||
|
|
||||||
<IfModule mod_deflate.c>
|
<IfModule mod_deflate.c>
|
||||||
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
|
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
|
||||||
</ifmodule>
|
</Ifmodule>
|
||||||
|
@ -9,7 +9,7 @@ Installing
|
|||||||
1. CD to the directory you wish to install TinyIB
|
1. CD to the directory you wish to install TinyIB
|
||||||
2. Run the following command:
|
2. Run the following command:
|
||||||
- `git clone git://github.com/tslocum/TinyIB.git ./`
|
- `git clone git://github.com/tslocum/TinyIB.git ./`
|
||||||
3. Rename settings.default.php to settings.php
|
3. Copy settings.default.php to settings.php
|
||||||
4. Configure settings.php
|
4. Configure settings.php
|
||||||
5. CHMOD write permissions to the following directories:
|
5. CHMOD write permissions to the following directories:
|
||||||
- /
|
- /
|
||||||
|
@ -57,10 +57,8 @@ if (isset($_POST["message"]) || isset($_POST["file"])) {
|
|||||||
$modpost = isModPost();
|
$modpost = isModPost();
|
||||||
if (!$loggedin) {
|
if (!$loggedin) {
|
||||||
checkBanned();
|
checkBanned();
|
||||||
|
checkMessageSize();
|
||||||
checkFlood();
|
checkFlood();
|
||||||
if (strlen($_POST["message"]) > 8000) {
|
|
||||||
fancyDie("Please shorten your message, or post it in multiple parts. Your message is " . strlen($_POST["message"]) . " characters long, and the maximum allowed is 8000.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$post = newPost();
|
$post = newPost();
|
||||||
|
@ -197,6 +197,12 @@ function checkFlood() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function checkMessageSize() {
|
||||||
|
if (strlen($_POST["message"]) > 8000) {
|
||||||
|
fancyDie("Please shorten your message, or post it in multiple parts. Your message is " . strlen($_POST["message"]) . " characters long, and the maximum allowed is 8000.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function manageCheckLogIn() {
|
function manageCheckLogIn() {
|
||||||
$loggedin = false; $isadmin = false;
|
$loggedin = false; $isadmin = false;
|
||||||
if (isset($_POST['password'])) {
|
if (isset($_POST['password'])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user