From 1afde368d31fdadac674e3567033481aa2568332 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sat, 2 Jul 2016 21:39:28 +0200 Subject: [PATCH 1/9] GameEngine and install folders have 777 already set by default --- GameEngine/Account.php | 0 GameEngine/Admin/.htaccess | 0 GameEngine/Admin/Mods/.htaccess | 0 GameEngine/Admin/Mods/addABTroops.php | 0 GameEngine/Admin/Mods/addTroops.php | 0 GameEngine/Admin/Mods/addUsers.php | 0 GameEngine/Admin/Mods/additional.php | 0 GameEngine/Admin/Mods/constant_format.tpl | 0 GameEngine/Admin/Mods/cp.php | 0 GameEngine/Admin/Mods/delallymedal.php | 0 GameEngine/Admin/Mods/delallymedalbyaid.php | 0 GameEngine/Admin/Mods/delallymedalbyweek.php | 0 GameEngine/Admin/Mods/deletemedalbyuser.php | 0 GameEngine/Admin/Mods/deletemedalbyweek.php | 0 GameEngine/Admin/Mods/editAccess.php | 0 GameEngine/Admin/Mods/editAdminInfo.php | 0 GameEngine/Admin/Mods/editBuildings.php | 0 GameEngine/Admin/Mods/editExtraSet.php | 0 GameEngine/Admin/Mods/editHero.php | 0 GameEngine/Admin/Mods/editLogSet.php | 0 GameEngine/Admin/Mods/editNewsboxSet.php | 0 GameEngine/Admin/Mods/editOverall.php | 0 GameEngine/Admin/Mods/editPassword.php | 0 GameEngine/Admin/Mods/editPlus.php | 0 GameEngine/Admin/Mods/editProtection.php | 0 GameEngine/Admin/Mods/editResources.php | 0 GameEngine/Admin/Mods/editServerSet.php | 0 GameEngine/Admin/Mods/editSitter.php | 0 GameEngine/Admin/Mods/editUser.php | 0 GameEngine/Admin/Mods/editUsername.php | 0 GameEngine/Admin/Mods/editVillageOwner.php | 0 GameEngine/Admin/Mods/editWeek.php | 0 GameEngine/Admin/Mods/givePlus.php | 0 GameEngine/Admin/Mods/givePlusRes.php | 0 GameEngine/Admin/Mods/giveResBonus.php | 0 GameEngine/Admin/Mods/gold.php | 0 GameEngine/Admin/Mods/gold_1.php | 0 GameEngine/Admin/Mods/index.php | 0 GameEngine/Admin/Mods/mainteneceBan.php | 0 GameEngine/Admin/Mods/mainteneceCleanBanData.php | 0 GameEngine/Admin/Mods/mainteneceResetGold.php | 0 GameEngine/Admin/Mods/mainteneceResetPlus.php | 0 GameEngine/Admin/Mods/mainteneceResetPlusBonus.php | 0 GameEngine/Admin/Mods/mainteneceUnban.php | 0 GameEngine/Admin/Mods/medals.php | 0 GameEngine/Admin/Mods/natarbuildingplan.php | 0 GameEngine/Admin/Mods/natarend.php | 0 GameEngine/Admin/Mods/recalcWH.php | 0 GameEngine/Admin/Mods/renameVillage.php | 0 GameEngine/Admin/Mods/sendMessage.php | 0 GameEngine/Admin/admin.php | 0 GameEngine/Admin/ajax.js | 0 GameEngine/Admin/database.php | 0 GameEngine/Admin/function.php | 0 GameEngine/Admin/welcome.tpl | 0 GameEngine/Alliance.php | 0 GameEngine/Automation.php | 0 GameEngine/BBCode.php | 0 GameEngine/Battle.php | 0 GameEngine/Building.php | 0 GameEngine/Chat.php | 0 GameEngine/Data/buidata.php | 0 GameEngine/Data/cel.php | 0 GameEngine/Data/cp.php | 0 GameEngine/Data/hero_full.php | 0 GameEngine/Data/hunitdata.php | 0 GameEngine/Data/index.php | 0 GameEngine/Data/resdata.php | 0 GameEngine/Data/unitdata.php | 0 GameEngine/Database.php | 0 GameEngine/Database/db_MYSQL.php | 0 GameEngine/Database/db_MYSQLi.php | 0 GameEngine/Database/index.php | 0 GameEngine/Form.php | 0 GameEngine/Game/WorldWonderName.php | 0 GameEngine/Game/index.php | 0 GameEngine/Generator.php | 0 GameEngine/Lang/en.php | 0 GameEngine/Lang/es.php | 0 GameEngine/Lang/index.php | 0 GameEngine/Lang/ru.php | 0 GameEngine/Lang/zh_tw.php | 0 GameEngine/Logging.php | 0 GameEngine/Mailer.php | 0 GameEngine/Market.php | 0 GameEngine/Message.php | 0 GameEngine/Multisort.php | 0 GameEngine/Notes/DO NOT REMOVE THIS FOLDER.txt | 0 GameEngine/Notes/index.php | 0 GameEngine/Prevention/empty.txt | 0 GameEngine/Prevention/index.php | 0 GameEngine/Prevention/lock.lock | 0 GameEngine/Profile.php | 0 GameEngine/Protection.php | 0 GameEngine/Ranking.php | 0 GameEngine/Session.php | 0 GameEngine/Technology.php | 0 GameEngine/Units.php | 0 GameEngine/Village.php | 0 GameEngine/favicon.ico | Bin GameEngine/functions.php | 0 GameEngine/index.php | 0 install/data/.htaccess | 0 install/data/constant_format.tpl | 0 install/data/sql.sql | 0 install/include/database.php | 0 install/include/multihunter.php | 0 install/include/oasis.php | 0 install/include/wdata.php | 0 install/index.php | 0 install/process.php | 0 install/templates/.htaccess | 0 install/templates/config.tpl | 0 install/templates/dataform.tpl | 0 install/templates/end.tpl | 0 install/templates/field.tpl | 0 install/templates/greet.tpl | 0 install/templates/menu.tpl | 0 install/templates/multihunter.tpl | 0 install/templates/oasis.tpl | 0 install/templates/script.tpl | 0 121 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 GameEngine/Account.php mode change 100644 => 100755 GameEngine/Admin/.htaccess mode change 100644 => 100755 GameEngine/Admin/Mods/.htaccess mode change 100644 => 100755 GameEngine/Admin/Mods/addABTroops.php mode change 100644 => 100755 GameEngine/Admin/Mods/addTroops.php mode change 100644 => 100755 GameEngine/Admin/Mods/addUsers.php mode change 100644 => 100755 GameEngine/Admin/Mods/additional.php mode change 100644 => 100755 GameEngine/Admin/Mods/constant_format.tpl mode change 100644 => 100755 GameEngine/Admin/Mods/cp.php mode change 100644 => 100755 GameEngine/Admin/Mods/delallymedal.php mode change 100644 => 100755 GameEngine/Admin/Mods/delallymedalbyaid.php mode change 100644 => 100755 GameEngine/Admin/Mods/delallymedalbyweek.php mode change 100644 => 100755 GameEngine/Admin/Mods/deletemedalbyuser.php mode change 100644 => 100755 GameEngine/Admin/Mods/deletemedalbyweek.php mode change 100644 => 100755 GameEngine/Admin/Mods/editAccess.php mode change 100644 => 100755 GameEngine/Admin/Mods/editAdminInfo.php mode change 100644 => 100755 GameEngine/Admin/Mods/editBuildings.php mode change 100644 => 100755 GameEngine/Admin/Mods/editExtraSet.php mode change 100644 => 100755 GameEngine/Admin/Mods/editHero.php mode change 100644 => 100755 GameEngine/Admin/Mods/editLogSet.php mode change 100644 => 100755 GameEngine/Admin/Mods/editNewsboxSet.php mode change 100644 => 100755 GameEngine/Admin/Mods/editOverall.php mode change 100644 => 100755 GameEngine/Admin/Mods/editPassword.php mode change 100644 => 100755 GameEngine/Admin/Mods/editPlus.php mode change 100644 => 100755 GameEngine/Admin/Mods/editProtection.php mode change 100644 => 100755 GameEngine/Admin/Mods/editResources.php mode change 100644 => 100755 GameEngine/Admin/Mods/editServerSet.php mode change 100644 => 100755 GameEngine/Admin/Mods/editSitter.php mode change 100644 => 100755 GameEngine/Admin/Mods/editUser.php mode change 100644 => 100755 GameEngine/Admin/Mods/editUsername.php mode change 100644 => 100755 GameEngine/Admin/Mods/editVillageOwner.php mode change 100644 => 100755 GameEngine/Admin/Mods/editWeek.php mode change 100644 => 100755 GameEngine/Admin/Mods/givePlus.php mode change 100644 => 100755 GameEngine/Admin/Mods/givePlusRes.php mode change 100644 => 100755 GameEngine/Admin/Mods/giveResBonus.php mode change 100644 => 100755 GameEngine/Admin/Mods/gold.php mode change 100644 => 100755 GameEngine/Admin/Mods/gold_1.php mode change 100644 => 100755 GameEngine/Admin/Mods/index.php mode change 100644 => 100755 GameEngine/Admin/Mods/mainteneceBan.php mode change 100644 => 100755 GameEngine/Admin/Mods/mainteneceCleanBanData.php mode change 100644 => 100755 GameEngine/Admin/Mods/mainteneceResetGold.php mode change 100644 => 100755 GameEngine/Admin/Mods/mainteneceResetPlus.php mode change 100644 => 100755 GameEngine/Admin/Mods/mainteneceResetPlusBonus.php mode change 100644 => 100755 GameEngine/Admin/Mods/mainteneceUnban.php mode change 100644 => 100755 GameEngine/Admin/Mods/medals.php mode change 100644 => 100755 GameEngine/Admin/Mods/natarbuildingplan.php mode change 100644 => 100755 GameEngine/Admin/Mods/natarend.php mode change 100644 => 100755 GameEngine/Admin/Mods/recalcWH.php mode change 100644 => 100755 GameEngine/Admin/Mods/renameVillage.php mode change 100644 => 100755 GameEngine/Admin/Mods/sendMessage.php mode change 100644 => 100755 GameEngine/Admin/admin.php mode change 100644 => 100755 GameEngine/Admin/ajax.js mode change 100644 => 100755 GameEngine/Admin/database.php mode change 100644 => 100755 GameEngine/Admin/function.php mode change 100644 => 100755 GameEngine/Admin/welcome.tpl mode change 100644 => 100755 GameEngine/Alliance.php mode change 100644 => 100755 GameEngine/Automation.php mode change 100644 => 100755 GameEngine/BBCode.php mode change 100644 => 100755 GameEngine/Battle.php mode change 100644 => 100755 GameEngine/Building.php mode change 100644 => 100755 GameEngine/Chat.php mode change 100644 => 100755 GameEngine/Data/buidata.php mode change 100644 => 100755 GameEngine/Data/cel.php mode change 100644 => 100755 GameEngine/Data/cp.php mode change 100644 => 100755 GameEngine/Data/hero_full.php mode change 100644 => 100755 GameEngine/Data/hunitdata.php mode change 100644 => 100755 GameEngine/Data/index.php mode change 100644 => 100755 GameEngine/Data/resdata.php mode change 100644 => 100755 GameEngine/Data/unitdata.php mode change 100644 => 100755 GameEngine/Database.php mode change 100644 => 100755 GameEngine/Database/db_MYSQL.php mode change 100644 => 100755 GameEngine/Database/db_MYSQLi.php mode change 100644 => 100755 GameEngine/Database/index.php mode change 100644 => 100755 GameEngine/Form.php mode change 100644 => 100755 GameEngine/Game/WorldWonderName.php mode change 100644 => 100755 GameEngine/Game/index.php mode change 100644 => 100755 GameEngine/Generator.php mode change 100644 => 100755 GameEngine/Lang/en.php mode change 100644 => 100755 GameEngine/Lang/es.php mode change 100644 => 100755 GameEngine/Lang/index.php mode change 100644 => 100755 GameEngine/Lang/ru.php mode change 100644 => 100755 GameEngine/Lang/zh_tw.php mode change 100644 => 100755 GameEngine/Logging.php mode change 100644 => 100755 GameEngine/Mailer.php mode change 100644 => 100755 GameEngine/Market.php mode change 100644 => 100755 GameEngine/Message.php mode change 100644 => 100755 GameEngine/Multisort.php mode change 100644 => 100755 GameEngine/Notes/DO NOT REMOVE THIS FOLDER.txt mode change 100644 => 100755 GameEngine/Notes/index.php mode change 100644 => 100755 GameEngine/Prevention/empty.txt mode change 100644 => 100755 GameEngine/Prevention/index.php mode change 100644 => 100755 GameEngine/Prevention/lock.lock mode change 100644 => 100755 GameEngine/Profile.php mode change 100644 => 100755 GameEngine/Protection.php mode change 100644 => 100755 GameEngine/Ranking.php mode change 100644 => 100755 GameEngine/Session.php mode change 100644 => 100755 GameEngine/Technology.php mode change 100644 => 100755 GameEngine/Units.php mode change 100644 => 100755 GameEngine/Village.php mode change 100644 => 100755 GameEngine/favicon.ico mode change 100644 => 100755 GameEngine/functions.php mode change 100644 => 100755 GameEngine/index.php mode change 100644 => 100755 install/data/.htaccess mode change 100644 => 100755 install/data/constant_format.tpl mode change 100644 => 100755 install/data/sql.sql mode change 100644 => 100755 install/include/database.php mode change 100644 => 100755 install/include/multihunter.php mode change 100644 => 100755 install/include/oasis.php mode change 100644 => 100755 install/include/wdata.php mode change 100644 => 100755 install/index.php mode change 100644 => 100755 install/process.php mode change 100644 => 100755 install/templates/.htaccess mode change 100644 => 100755 install/templates/config.tpl mode change 100644 => 100755 install/templates/dataform.tpl mode change 100644 => 100755 install/templates/end.tpl mode change 100644 => 100755 install/templates/field.tpl mode change 100644 => 100755 install/templates/greet.tpl mode change 100644 => 100755 install/templates/menu.tpl mode change 100644 => 100755 install/templates/multihunter.tpl mode change 100644 => 100755 install/templates/oasis.tpl mode change 100644 => 100755 install/templates/script.tpl diff --git a/GameEngine/Account.php b/GameEngine/Account.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/.htaccess b/GameEngine/Admin/.htaccess old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/.htaccess b/GameEngine/Admin/Mods/.htaccess old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/addABTroops.php b/GameEngine/Admin/Mods/addABTroops.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/addTroops.php b/GameEngine/Admin/Mods/addTroops.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/addUsers.php b/GameEngine/Admin/Mods/addUsers.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/additional.php b/GameEngine/Admin/Mods/additional.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/constant_format.tpl b/GameEngine/Admin/Mods/constant_format.tpl old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/cp.php b/GameEngine/Admin/Mods/cp.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/delallymedal.php b/GameEngine/Admin/Mods/delallymedal.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/delallymedalbyaid.php b/GameEngine/Admin/Mods/delallymedalbyaid.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/delallymedalbyweek.php b/GameEngine/Admin/Mods/delallymedalbyweek.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/deletemedalbyuser.php b/GameEngine/Admin/Mods/deletemedalbyuser.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/deletemedalbyweek.php b/GameEngine/Admin/Mods/deletemedalbyweek.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editAccess.php b/GameEngine/Admin/Mods/editAccess.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editAdminInfo.php b/GameEngine/Admin/Mods/editAdminInfo.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editBuildings.php b/GameEngine/Admin/Mods/editBuildings.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editExtraSet.php b/GameEngine/Admin/Mods/editExtraSet.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editHero.php b/GameEngine/Admin/Mods/editHero.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editLogSet.php b/GameEngine/Admin/Mods/editLogSet.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editNewsboxSet.php b/GameEngine/Admin/Mods/editNewsboxSet.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editOverall.php b/GameEngine/Admin/Mods/editOverall.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editPassword.php b/GameEngine/Admin/Mods/editPassword.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editPlus.php b/GameEngine/Admin/Mods/editPlus.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editProtection.php b/GameEngine/Admin/Mods/editProtection.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editResources.php b/GameEngine/Admin/Mods/editResources.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editServerSet.php b/GameEngine/Admin/Mods/editServerSet.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editSitter.php b/GameEngine/Admin/Mods/editSitter.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editUser.php b/GameEngine/Admin/Mods/editUser.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editUsername.php b/GameEngine/Admin/Mods/editUsername.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editVillageOwner.php b/GameEngine/Admin/Mods/editVillageOwner.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/editWeek.php b/GameEngine/Admin/Mods/editWeek.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/givePlus.php b/GameEngine/Admin/Mods/givePlus.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/givePlusRes.php b/GameEngine/Admin/Mods/givePlusRes.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/giveResBonus.php b/GameEngine/Admin/Mods/giveResBonus.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/gold.php b/GameEngine/Admin/Mods/gold.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/gold_1.php b/GameEngine/Admin/Mods/gold_1.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/index.php b/GameEngine/Admin/Mods/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/mainteneceBan.php b/GameEngine/Admin/Mods/mainteneceBan.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/mainteneceCleanBanData.php b/GameEngine/Admin/Mods/mainteneceCleanBanData.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/mainteneceResetGold.php b/GameEngine/Admin/Mods/mainteneceResetGold.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/mainteneceResetPlus.php b/GameEngine/Admin/Mods/mainteneceResetPlus.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/mainteneceUnban.php b/GameEngine/Admin/Mods/mainteneceUnban.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/medals.php b/GameEngine/Admin/Mods/medals.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/natarbuildingplan.php b/GameEngine/Admin/Mods/natarbuildingplan.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/natarend.php b/GameEngine/Admin/Mods/natarend.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/recalcWH.php b/GameEngine/Admin/Mods/recalcWH.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/renameVillage.php b/GameEngine/Admin/Mods/renameVillage.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/Mods/sendMessage.php b/GameEngine/Admin/Mods/sendMessage.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/admin.php b/GameEngine/Admin/admin.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/ajax.js b/GameEngine/Admin/ajax.js old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/database.php b/GameEngine/Admin/database.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/function.php b/GameEngine/Admin/function.php old mode 100644 new mode 100755 diff --git a/GameEngine/Admin/welcome.tpl b/GameEngine/Admin/welcome.tpl old mode 100644 new mode 100755 diff --git a/GameEngine/Alliance.php b/GameEngine/Alliance.php old mode 100644 new mode 100755 diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php old mode 100644 new mode 100755 diff --git a/GameEngine/BBCode.php b/GameEngine/BBCode.php old mode 100644 new mode 100755 diff --git a/GameEngine/Battle.php b/GameEngine/Battle.php old mode 100644 new mode 100755 diff --git a/GameEngine/Building.php b/GameEngine/Building.php old mode 100644 new mode 100755 diff --git a/GameEngine/Chat.php b/GameEngine/Chat.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/buidata.php b/GameEngine/Data/buidata.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/cel.php b/GameEngine/Data/cel.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/cp.php b/GameEngine/Data/cp.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/hero_full.php b/GameEngine/Data/hero_full.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/hunitdata.php b/GameEngine/Data/hunitdata.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/index.php b/GameEngine/Data/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/resdata.php b/GameEngine/Data/resdata.php old mode 100644 new mode 100755 diff --git a/GameEngine/Data/unitdata.php b/GameEngine/Data/unitdata.php old mode 100644 new mode 100755 diff --git a/GameEngine/Database.php b/GameEngine/Database.php old mode 100644 new mode 100755 diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php old mode 100644 new mode 100755 diff --git a/GameEngine/Database/db_MYSQLi.php b/GameEngine/Database/db_MYSQLi.php old mode 100644 new mode 100755 diff --git a/GameEngine/Database/index.php b/GameEngine/Database/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Form.php b/GameEngine/Form.php old mode 100644 new mode 100755 diff --git a/GameEngine/Game/WorldWonderName.php b/GameEngine/Game/WorldWonderName.php old mode 100644 new mode 100755 diff --git a/GameEngine/Game/index.php b/GameEngine/Game/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Generator.php b/GameEngine/Generator.php old mode 100644 new mode 100755 diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php old mode 100644 new mode 100755 diff --git a/GameEngine/Lang/es.php b/GameEngine/Lang/es.php old mode 100644 new mode 100755 diff --git a/GameEngine/Lang/index.php b/GameEngine/Lang/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Lang/ru.php b/GameEngine/Lang/ru.php old mode 100644 new mode 100755 diff --git a/GameEngine/Lang/zh_tw.php b/GameEngine/Lang/zh_tw.php old mode 100644 new mode 100755 diff --git a/GameEngine/Logging.php b/GameEngine/Logging.php old mode 100644 new mode 100755 diff --git a/GameEngine/Mailer.php b/GameEngine/Mailer.php old mode 100644 new mode 100755 diff --git a/GameEngine/Market.php b/GameEngine/Market.php old mode 100644 new mode 100755 diff --git a/GameEngine/Message.php b/GameEngine/Message.php old mode 100644 new mode 100755 diff --git a/GameEngine/Multisort.php b/GameEngine/Multisort.php old mode 100644 new mode 100755 diff --git a/GameEngine/Notes/DO NOT REMOVE THIS FOLDER.txt b/GameEngine/Notes/DO NOT REMOVE THIS FOLDER.txt old mode 100644 new mode 100755 diff --git a/GameEngine/Notes/index.php b/GameEngine/Notes/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Prevention/empty.txt b/GameEngine/Prevention/empty.txt old mode 100644 new mode 100755 diff --git a/GameEngine/Prevention/index.php b/GameEngine/Prevention/index.php old mode 100644 new mode 100755 diff --git a/GameEngine/Prevention/lock.lock b/GameEngine/Prevention/lock.lock old mode 100644 new mode 100755 diff --git a/GameEngine/Profile.php b/GameEngine/Profile.php old mode 100644 new mode 100755 diff --git a/GameEngine/Protection.php b/GameEngine/Protection.php old mode 100644 new mode 100755 diff --git a/GameEngine/Ranking.php b/GameEngine/Ranking.php old mode 100644 new mode 100755 diff --git a/GameEngine/Session.php b/GameEngine/Session.php old mode 100644 new mode 100755 diff --git a/GameEngine/Technology.php b/GameEngine/Technology.php old mode 100644 new mode 100755 diff --git a/GameEngine/Units.php b/GameEngine/Units.php old mode 100644 new mode 100755 diff --git a/GameEngine/Village.php b/GameEngine/Village.php old mode 100644 new mode 100755 diff --git a/GameEngine/favicon.ico b/GameEngine/favicon.ico old mode 100644 new mode 100755 diff --git a/GameEngine/functions.php b/GameEngine/functions.php old mode 100644 new mode 100755 diff --git a/GameEngine/index.php b/GameEngine/index.php old mode 100644 new mode 100755 diff --git a/install/data/.htaccess b/install/data/.htaccess old mode 100644 new mode 100755 diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl old mode 100644 new mode 100755 diff --git a/install/data/sql.sql b/install/data/sql.sql old mode 100644 new mode 100755 diff --git a/install/include/database.php b/install/include/database.php old mode 100644 new mode 100755 diff --git a/install/include/multihunter.php b/install/include/multihunter.php old mode 100644 new mode 100755 diff --git a/install/include/oasis.php b/install/include/oasis.php old mode 100644 new mode 100755 diff --git a/install/include/wdata.php b/install/include/wdata.php old mode 100644 new mode 100755 diff --git a/install/index.php b/install/index.php old mode 100644 new mode 100755 diff --git a/install/process.php b/install/process.php old mode 100644 new mode 100755 diff --git a/install/templates/.htaccess b/install/templates/.htaccess old mode 100644 new mode 100755 diff --git a/install/templates/config.tpl b/install/templates/config.tpl old mode 100644 new mode 100755 diff --git a/install/templates/dataform.tpl b/install/templates/dataform.tpl old mode 100644 new mode 100755 diff --git a/install/templates/end.tpl b/install/templates/end.tpl old mode 100644 new mode 100755 diff --git a/install/templates/field.tpl b/install/templates/field.tpl old mode 100644 new mode 100755 diff --git a/install/templates/greet.tpl b/install/templates/greet.tpl old mode 100644 new mode 100755 diff --git a/install/templates/menu.tpl b/install/templates/menu.tpl old mode 100644 new mode 100755 diff --git a/install/templates/multihunter.tpl b/install/templates/multihunter.tpl old mode 100644 new mode 100755 diff --git a/install/templates/oasis.tpl b/install/templates/oasis.tpl old mode 100644 new mode 100755 diff --git a/install/templates/script.tpl b/install/templates/script.tpl old mode 100644 new mode 100755 From 7eee6264086b7874b2c3cb351e8e3d1716f01b71 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sat, 2 Jul 2016 22:41:14 +0200 Subject: [PATCH 2/9] Added config.php, Prevention/ and Notes/ folders in GgameEngine folder in .gitignore --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 6ad7b3e5..5677b8da 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,10 @@ Desktop.ini # Mac crap .DS_Store + +# Ignore generated config file +GameEngine/config.php + +# Ignore generated prevention and notes +GameEngine/Prevention/* +GameEngine/Notes/* From 5fc5c76b72c7a66abe02b0ef5e46cd247e5e4f38 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sat, 2 Jul 2016 22:58:57 +0200 Subject: [PATCH 3/9] Installation script refuses to run again after completed install. This is achieved by leaving special file in install/ directory. --- .gitignore | 3 +++ install/index.php | 6 +++++- install/templates/end.tpl | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5677b8da..42b90a25 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ GameEngine/config.php # Ignore generated prevention and notes GameEngine/Prevention/* GameEngine/Notes/* + +# Install instalation_done marker left by install script +install/installation_done diff --git a/install/index.php b/install/index.php index 17572f19..892ad921 100755 --- a/install/index.php +++ b/install/index.php @@ -83,7 +83,11 @@ function proceed() { ERROR!
It's not possible to write the config file. Change the permission to '777'. After that, refresh this page!"; - } else + } + else if (file_exists("installation_done")) { + echo"ERROR!
Installation appears to have been completed.
If this is an error remove installation_done file in install directory."; + } + else switch($_GET['s']){ case 0: include("templates/greet.tpl"); diff --git a/install/templates/end.tpl b/install/templates/end.tpl index dc099760..9c087704 100755 --- a/install/templates/end.tpl +++ b/install/templates/end.tpl @@ -24,6 +24,7 @@ All the files are placed. The database is created, so you can now start playing

> My TravianZ homepage <
From 234bd692e4e1433dff455a62bc57a514dd74c034 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sun, 3 Jul 2016 00:01:15 +0200 Subject: [PATCH 4/9] Page load time is independent on passing second. Previously page loading time was calculated by taking miliseconds of current wall clock time. In cases where wall clock went into another second page loading time was calcualted as negative giving incorrect result. This patch fixes this by using microtime of wall-clock time in float. --- GameEngine/Generator.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/GameEngine/Generator.php b/GameEngine/Generator.php index 296900c3..aff11e96 100755 --- a/GameEngine/Generator.php +++ b/GameEngine/Generator.php @@ -148,17 +148,11 @@ if (date('Ymd',time()) == date('Ymd',$time)) { } public function pageLoadTimeStart() { - $starttime = microtime(); - $startarray = explode(" ", $starttime); - //$starttime = $startarray[1] + $startarray[0]; - return $startarray[0]; + return microtime(true); } public function pageLoadTimeEnd() { - $endtime = microtime(); - $endarray = explode(" ", $endtime); - //$endtime = $endarray[1] + $endarray[0]; - return $endarray[0]; + return microtime(true); } }; From 9a6748528af08e7e0254ec34abf036403a968516 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sun, 3 Jul 2016 00:15:04 +0200 Subject: [PATCH 5/9] Added date field (timestamp, updated by MySQL) on all log tables that didn't have it already --- install/data/sql.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install/data/sql.sql b/install/data/sql.sql index a578a090..f504a826 100755 --- a/install/data/sql.sql +++ b/install/data/sql.sql @@ -396,6 +396,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%build_log` ( `id` int(11) NULL AUTO_INCREMENT, `wid` int(11) NULL, `log` text NULL, + `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; @@ -838,6 +839,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%gold_fin_log` ( `id` int(11) NULL AUTO_INCREMENT, `wid` int(11) NULL, `log` text NULL, + `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; @@ -892,6 +894,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%illegal_log` ( `id` int(11) NULL AUTO_INCREMENT, `user` int(11) NULL, `log` text NULL, + `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; @@ -910,6 +913,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%login_log` ( `id` int(11) NULL AUTO_INCREMENT, `uid` int(11) NULL, `ip` varchar(15) NULL, + `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; @@ -953,6 +957,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%market_log` ( `id` int(11) NULL AUTO_INCREMENT, `wid` int(11) NULL, `log` text NULL, + `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; @@ -1311,6 +1316,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%tech_log` ( `id` int(11) NULL AUTO_INCREMENT, `wid` int(11) NULL, `log` text NULL, + `date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; From 29c967f7341f268bd009dc647dbd1999914ada9d Mon Sep 17 00:00:00 2001 From: uroskn Date: Sun, 3 Jul 2016 11:58:46 +0200 Subject: [PATCH 6/9] Fixed hours/days display for beginner protection medal --- Templates/Profile/medal.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Templates/Profile/medal.php b/Templates/Profile/medal.php index 732572e4..abcfb3c7 100644 --- a/Templates/Profile/medal.php +++ b/Templates/Profile/medal.php @@ -28,19 +28,10 @@ //de bird if($displayarray['protect'] > time()){ -$secondsDiff = $displayarray['protect'] - time(); -$remainingDay = floor($secondsDiff/60/60/24); -$remainingHour = floor(($secondsDiff-($remainingDay*60*60))/3600); -$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60)-($remainingHour*60*60))/60); -$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60)-($remainingHour*60*60))-($remainingMinutes*60)); +$secondsDiff = $displayarray['protect'] - time(); +$remainingDay = floor($secondsDiff/(3600*24)); -$nul1 = $nul2 = $nul3 = "0"; -if(strlen($remainingSeconds) <= 1){ -$nul1 = "0";} -if(strlen($remainingMinutes) <= 1){ -$nul2 = "0";} -if(strlen($remainingHour) <= 1){ $nul3 = "0"; } -$left="$nul3$remainingHour:$nul2$remainingMinutes:$nul1$remainingSeconds"; +$left = "$remainingDay days ".date("H:i:s", $secondsDiff); $profiel = preg_replace("/\[#0]/is",'', $profiel, 1); } else { $geregistreerd=date('d-m-Y', ($displayarray['regtime'])); From 0ea068cfd3b825ab5d97682478ab17074a63afd5 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sun, 3 Jul 2016 12:08:10 +0200 Subject: [PATCH 7/9] On PHP5.4+ use REQUEST_TIME_FLOAT instead of microtime for starting measurment of page loading time --- GameEngine/Generator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/GameEngine/Generator.php b/GameEngine/Generator.php index aff11e96..71fdd1f9 100755 --- a/GameEngine/Generator.php +++ b/GameEngine/Generator.php @@ -148,6 +148,7 @@ if (date('Ymd',time()) == date('Ymd',$time)) { } public function pageLoadTimeStart() { + if (isset($_SERVER["REQUEST_TIME_FLOAT"])) return $_SERVER["REQUEST_TIME_FLOAT"]; return microtime(true); } From 7fe285da2ead95112ff6497fd133da5a078f2a73 Mon Sep 17 00:00:00 2001 From: uroskn Date: Sun, 3 Jul 2016 13:53:28 +0200 Subject: [PATCH 8/9] Removed testmysql.php script. It does not appear to be used. --- testmysql.php | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 testmysql.php diff --git a/testmysql.php b/testmysql.php deleted file mode 100644 index 6cdd0b7b..00000000 --- a/testmysql.php +++ /dev/null @@ -1,7 +0,0 @@ - \ No newline at end of file From 64aba6ccd2a26be6b8b1188d14a4e650d36a61c4 Mon Sep 17 00:00:00 2001 From: uroskn Date: Tue, 5 Jul 2016 03:05:27 +0200 Subject: [PATCH 9/9] Removed bunch of dead code from db_MYSQL.php --- GameEngine/Database/db_MYSQL.php | 170 ------------------------------- 1 file changed, 170 deletions(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index 6746d775..bdb427dc 100755 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -134,17 +134,6 @@ class MYSQL_DB { return $dbarray['id']; } - function caststruc($user) { - //loop search village user - $query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user.""); - while($villaggi_array = mysql_fetch_array($query)) - - //loop structure village - $query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref'].""); - $strutture= mysql_fetch_array($query1); - return $strutture; - } - function removeMeSit($uid, $uid2) { $q = "UPDATE " . TB_PREFIX . "users set sit1 = 0 where id = $uid and sit1 = $uid2"; mysql_query($q, $this->connection); @@ -193,12 +182,6 @@ class MYSQL_DB { return $this->mysql_fetch_all($result); } - function getUnstarvation(){ - $q = "SELECT * FROM " . TB_PREFIX . "vdata where starv = 0 and starvupdate = 0"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - function getActivateField($ref, $field, $mode) { if(!$mode) { $q = "SELECT $field FROM " . TB_PREFIX . "activate where id = '$ref'"; @@ -221,14 +204,6 @@ class MYSQL_DB { } } - function checkActivate($act) { - $q = "SELECT * FROM " . TB_PREFIX . "activate where act = '$act'"; - $result = mysql_query($q, $this->connection); - $dbarray = mysql_fetch_array($result); - - return $dbarray; - } - function sitterLogin($username, $password) { $q = "SELECT sit1,sit2 FROM " . TB_PREFIX . "users where username = '$username' and access != " . BANNED; $result = mysql_query($q, $this->connection); @@ -328,16 +303,6 @@ class MYSQL_DB { } } - function checkactiveSession($username, $sessid) { - $q = "SELECT username FROM " . TB_PREFIX . "users where username = '$username' and sessid = '$sessid' LIMIT 1"; - $result = mysql_query($q, $this->connection); - if(mysql_num_rows($result) != 0) { - return true; - } else { - return false; - } - } - function submitProfile($uid, $gender, $location, $birthday, $des1, $des2) { $q = "UPDATE " . TB_PREFIX . "users set gender = $gender, location = '$location', birthday = '$birthday', desc1 = '$des1', desc2 = '$des2' where id = $uid"; return mysql_query($q, $this->connection); @@ -778,19 +743,6 @@ class MYSQL_DB { return mysql_fetch_array($result); } - public function getVillageBattleData($vid) { - $q = "SELECT u.id,u.tribe,v.capital,f.f40 AS wall FROM ".TB_PREFIX."users u,".TB_PREFIX."fdata f,".TB_PREFIX."vdata v WHERE u.id=v.owner AND f.vref=v.wref AND v.wref=".$vid; - $result = mysql_query($q, $this->connection); - return mysql_fetch_array($result); - } - - public function getPopulation($uid) { - $q = "SELECT sum(pop) AS pop FROM ".TB_PREFIX."vdata WHERE owner=".$uid; - $result = mysql_query($q, $this->connection); - $dbarray = mysql_fetch_array($result); - return $dbarray['pop']; - } - function getOasisV($vid) { $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = $vid"; $result = mysql_query($q, $this->connection); @@ -861,24 +813,6 @@ class MYSQL_DB { return $this->mysql_fetch_all($result); } - //fix market log - function getMarketLog() { - $q = "SELECT id,wid,log from " . TB_PREFIX . "market_log where id != 0 ORDER BY id ASC"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - function getMarketLogVillage($village) { - $q = "SELECT wref,owner,name from " . TB_PREFIX . "vdata where wref =$village "; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - function getMarketLogUsers($id_user) { - $q = "SELECT id,username from " . TB_PREFIX . "users where id =$id_user "; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - //end fix - function getCoor($wref) { if ($wref !=""){ $q = "SELECT x,y FROM " . TB_PREFIX . "wdata where id = $wref"; @@ -1434,12 +1368,6 @@ class MYSQL_DB { return $dbarray['id']; } - function getDiplomacy($aid) { - $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE id = $aid"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - function diplomacyCancelOffer($id) { $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id"; return mysql_query($q, $this->connection); @@ -1842,24 +1770,6 @@ class MYSQL_DB { } } - function getDelSent($uid) { - $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $uid and delowner = 1 ORDER BY time DESC"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - - function getDelInbox($uid) { - $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $uid and deltarget = 1 ORDER BY time DESC"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - - function getDelArchive($uid) { - $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $uid and archived = 1 and deltarget = 1 OR owner = $uid and archived = 1 and delowner = 1 ORDER BY time DESC"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - function unarchiveNotice($id) { $q = "UPDATE " . TB_PREFIX . "ndata set ntype = archive, archive = 0 where id = $id"; return mysql_query($q, $this->connection); @@ -2550,17 +2460,6 @@ class MYSQL_DB { return mysql_query($q, $this->connection); } - function modifyHeroByOwner($column,$value,$uid,$mode=0) { - if(!$mode) { - $q = "UPDATE `".TB_PREFIX."hero` SET $column = $value WHERE uid = $uid"; - } elseif($mode=1) { - $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column + $value WHERE uid = $uid"; - } else { - $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column - $value WHERE uid = $uid"; - } - return mysql_query($q, $this->connection); - } - function modifyHeroXp($column,$value,$heroid) { $q = "UPDATE ".TB_PREFIX."hero SET $column = $column + $value WHERE uid=$heroid"; return mysql_query($q, $this->connection); @@ -2612,13 +2511,6 @@ class MYSQL_DB { return $this->mysql_fetch_all($result); } - function countTraining($vid) { - $q = "SELECT * FROM " . TB_PREFIX . "training WHERE vref = $vid"; - $result = mysql_query($q, $this->connection); - $row = mysql_fetch_row($result); - return $row[0]; - } - function trainUnit($vid, $unit, $amt, $pop, $each, $time, $mode) { global $village, $building, $session, $technology; @@ -2881,30 +2773,6 @@ class MYSQL_DB { } } - /*************************** - Function to get world wonder level! - Made by: Dzoki - ***************************/ - - function getWWLevel($vref) { - $q = "SELECT f99 FROM " . TB_PREFIX . "fdata WHERE vref = $vref"; - $result = mysql_query($q, $this->connection) or die(mysql_error()); - $dbarray = mysql_fetch_array($result); - return $dbarray['f99']; - } - - /*************************** - Function to get world wonder owner ID! - Made by: Dzoki - ***************************/ - - function getWWOwnerID($vref) { - $q = "SELECT owner FROM " . TB_PREFIX . "vdata WHERE wref = $vref"; - $result = mysql_query($q, $this->connection) or die(mysql_error()); - $dbarray = mysql_fetch_array($result); - return $dbarray['owner']; - } - /*************************** Function to get user alliance name! Made by: Dzoki @@ -2940,10 +2808,6 @@ class MYSQL_DB { } //medal functions - function addclimberpop($user, $cp) { - $q = "UPDATE " . TB_PREFIX . "users set Rc = Rc + '$cp' where id = $user"; - return mysql_query($q, $this->connection); - } function addclimberrankpop($user, $cp) { $q = "UPDATE " . TB_PREFIX . "users set clp = clp + '$cp' where id = $user"; return mysql_query($q, $this->connection); @@ -2960,15 +2824,7 @@ class MYSQL_DB { $q = "UPDATE " . TB_PREFIX . "users set oldrank = '$cp' where id = $user"; return mysql_query($q, $this->connection); } - function removeclimberpop($user, $cp) { - $q = "UPDATE " . TB_PREFIX . "users set Rc = Rc - '$cp' where id = $user"; - return mysql_query($q, $this->connection); - } // ALLIANCE MEDAL FUNCTIONS - function addclimberpopAlly($user, $cp) { - $q = "UPDATE " . TB_PREFIX . "alidata set Rc = Rc + '$cp' where id = $user"; - return mysql_query($q, $this->connection); - } function addclimberrankpopAlly($user, $cp) { $q = "UPDATE " . TB_PREFIX . "alidata set clp = clp + '$cp' where id = $user"; return mysql_query($q, $this->connection); @@ -2981,10 +2837,6 @@ class MYSQL_DB { $q = "UPDATE " . TB_PREFIX . "alidata set oldrank = '$cp' where id = $user"; return mysql_query($q, $this->connection); } - function removeclimberpopAlly($user, $cp) { - $q = "UPDATE " . TB_PREFIX . "alidata set Rc = Rc - '$cp' where id = $user"; - return mysql_query($q, $this->connection); - } function getTrainingList() { $q = "SELECT * FROM " . TB_PREFIX . "training where vref != ''"; @@ -3073,22 +2925,6 @@ class MYSQL_DB { return $dbarray['crop']; } - function Getowner($vid) { - $s = "SELECT owner FROM " . TB_PREFIX . "vdata where wref = $vid"; - $result1 = mysql_query($s, $this->connection); - $row1 = mysql_fetch_row($result1); - return $row1[0]; - } - - public function debug($time, $uid, $debug_info) { - $q = "INSERT INTO " . TB_PREFIX . "debug_info (time,uid,debug_info) VALUES ($time,$uid,$debug_info)"; - if(mysql_query($q, $this->connection)) { - return mysql_insert_id($this->connection); - } else { - return false; - } - } - function populateOasisdata() { $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; $result2 = mysql_query($q2, $this->connection); @@ -3211,12 +3047,6 @@ class MYSQL_DB { return mysql_fetch_array($result); } - function getOwnArtefactInfo2($vref) { - $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref"; - $result = mysql_query($q, $this->connection); - return $this->mysql_fetch_all($result); - } - function getOwnArtefactInfo3($uid) { $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $uid"; $result = mysql_query($q, $this->connection);