Added some info

Fix for spam warning for php(Thanks for bug report flames)
This commit is contained in:
Jason Booth 2011-04-13 20:23:24 -05:00
parent 8e59f37995
commit b3ccd203c8
2 changed files with 5 additions and 2 deletions

View File

@ -89,6 +89,7 @@ class JsonTimerTask extends TimerTask {
//Handles Updates
for (World world : this.server.getWorlds()) {
//Parse region file for multi world style
if(regions.getBoolean("useworldpath", false))
parseRegionFile(world.getName() + "/" + regions.getString("filename", "regions.yml"), regions.getString("filename", "regions.yml").replace(".", "_" + world.getName() + ".yml"));
@ -127,10 +128,12 @@ class JsonTimerTask extends TimerTask {
}
lastTimestamp = System.currentTimeMillis();
//Parse regions file for non worlds style
if (!regions.getBoolean("useworldpath", false))
parseRegionFile(regions.getString("filename", "regions.yml"), regions.getString("filename", "regions.yml"));
}
//handles parsing and writing region json files
private void parseRegionFile(String regionFile, String outputFileName)
{
File outputFile;

View File

@ -26,7 +26,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST' && $_SESSION['lastchat'] < time())
}
elseif($_SERVER['REQUEST_METHOD'] == 'POST' && $_SESSION['lastchat'] > time())
{
echo json_encode(str_replace('%interval%', $msginterval, $config['spammessage']));
header('HTTP/1.1 403 Forbidden');
}
?>