Permalink
Browse files

Big Cleanup

1) Removed unnecessary files
2) Trailling spaces (no all though)
3)  Some space to tab conversion
  • Loading branch information...
1 parent e081116 commit 786cbf1f8eb8fd5d88b93639278fc7e27a81d63f @nean nean committed Jun 17, 2012
Showing with 23,782 additions and 23,797 deletions.
  1. +4 −4 .htaccess
  2. +12 −12 AC_OETags.js
  3. +5 −5 Admin/Mods/addTroops.php
  4. +1 −1 Admin/Templates/404.tpl
  5. +11 −11 Admin/Templates/Newmessage.tpl
  6. +9 −9 Admin/Templates/[]inactive.tpl
  7. +171 −171 Admin/Templates/addTroops.tpl
  8. +4 −4 Admin/Templates/add_village.tpl
  9. +6 −7 Admin/Templates/admin_log.tpl
  10. +28 −28 Admin/Templates/alliance.tpl
  11. +7 −7 Admin/Templates/allymedals.tpl
  12. +4 −5 Admin/Templates/backup/admin_menu.tpl
  13. +26 −26 Admin/Templates/backup/bug_report.tpl
  14. +24 −24 Admin/Templates/backup/config.tpl
  15. +30 −30 Admin/Templates/backup/edit_ally.tpl
  16. +41 −41 Admin/Templates/backup/edit_user.tpl
  17. +39 −39 Admin/Templates/backup/online_players.tpl
  18. +90 −90 Admin/Templates/backup/results.tpl
  19. +3 −3 Admin/Templates/backup/search.tpl
  20. +114 −114 Admin/Templates/backup/show_user.tpl
  21. +97 −97 Admin/Templates/backup/show_village.tpl
  22. +21 −21 Admin/Templates/backup/user_log_login.tpl
  23. +16 −16 Admin/Templates/ban.tpl
  24. +3 −3 Admin/Templates/ban_msg.tpl
  25. +172 −172 Admin/Templates/config.tpl
  26. +7 −7 Admin/Templates/delallymedal.tpl
  27. +13 −13 Admin/Templates/deletion.tpl
  28. +9 −9 Admin/Templates/delmedal.tpl
  29. +3 −3 Admin/Templates/editAccess.tpl
  30. +1 −1 Admin/Templates/editOverall.tpl
  31. +2 −2 Admin/Templates/editPassword.tpl
  32. +2 −2 Admin/Templates/editPlus.tpl
  33. +1 −1 Admin/Templates/editProtection.tpl
  34. +8 −8 Admin/Templates/editResources.tpl
  35. +1 −1 Admin/Templates/editSitter.tpl
  36. +11 −11 Admin/Templates/editUser.tpl
  37. +18 −18 Admin/Templates/editVillage.tpl
  38. +1 −1 Admin/Templates/editWeek.tpl
  39. +2 −2 Admin/Templates/givePlus.tpl
  40. +5 −5 Admin/Templates/givePlusRes.tpl
  41. +2 −2 Admin/Templates/gold.tpl
  42. +10 −10 Admin/Templates/home.tpl
  43. +1 −1 Admin/Templates/login.tpl
  44. +2 −2 Admin/Templates/maintenenceResetGold.tpl
  45. +2 −2 Admin/Templates/maintenenceResetPlus.tpl
  46. +2 −2 Admin/Templates/maintenenceResetPlusBonus.tpl
  47. +11 −11 Admin/Templates/map.tpl
  48. +14 −14 Admin/Templates/message.tpl
  49. +5 −5 Admin/Templates/msg.tpl
  50. +2 −2 Admin/Templates/natarbuildingplan.tpl
  51. +2 −2 Admin/Templates/natarend.tpl
  52. +1 −1 Admin/Templates/notregistered.tpl
  53. +2 −2 Admin/Templates/oasis.tpl
  54. +32 −32 Admin/Templates/online.tpl
  55. +7 −7 Admin/Templates/player.tpl
  56. +20 −20 Admin/Templates/playeradditionalinfo.tpl
  57. +23 −23 Admin/Templates/playerinfo.tpl
  58. +7 −7 Admin/Templates/playermedals.tpl
  59. +4 −4 Admin/Templates/playerplusbonus.tpl
  60. +4 −4 Admin/Templates/punish.tpl
  61. +7 −7 Admin/Templates/renameVillage.tpl
  62. +2 −2 Admin/Templates/report.tpl
  63. +2 −2 Admin/Templates/resetPlus.tpl
  64. +2 −2 Admin/Templates/resetPlusBonus.tpl
  65. +28 −28 Admin/Templates/results_alliances.tpl
  66. +26 −26 Admin/Templates/results_email.tpl
  67. +33 −33 Admin/Templates/results_ip.tpl
  68. +28 −28 Admin/Templates/results_player.tpl
  69. +6 −6 Admin/Templates/results_villages.tpl
  70. +3 −3 Admin/Templates/search.tpl
  71. +11 −11 Admin/Templates/search2.tpl
  72. +177 −177 Admin/Templates/server_info.tpl
  73. +14 −14 Admin/Templates/troops.tpl
  74. +2 −2 Admin/Templates/usergold.tpl
  75. +1 −1 Admin/Templates/userillegallog.tpl
  76. +1 −1 Admin/Templates/userlogin.tpl
  77. +35 −35 Admin/Templates/village.tpl
  78. +25 −25 Admin/Templates/villages.tpl
  79. +0 −4 Admin/_notes/dwsync.xml
  80. +22 −22 Admin/admin.php
  81. +175 −175 Admin/database.php
  82. +85 −85 Admin/function.php
  83. +1 −1 Admin/welcome.tpl
  84. +233 −233 GameEngine/Account.php
  85. +1 −1 GameEngine/Admin/Mods/addTroops.php
  86. +18 −18 GameEngine/Admin/Mods/natarbuildingplan.php
  87. +18 −18 GameEngine/Admin/Mods/natarend.php
  88. +2 −2 GameEngine/Admin/Mods/populateOases.php
  89. +81 −81 GameEngine/Admin/Mods/recalcWH.php
  90. +0 −4 GameEngine/Admin/_notes/dwsync.xml
  91. +46 −46 GameEngine/Admin/admin.php
  92. +160 −160 GameEngine/Admin/database.php
  93. +85 −85 GameEngine/Admin/function.php
  94. +1 −1 GameEngine/Admin/welcome.tpl
  95. +339 −339 GameEngine/Alliance.php
  96. +2,991 −2,991 GameEngine/Automation.php
  97. +894 −894 GameEngine/Battle.php
  98. +42 −42 GameEngine/Building.php
  99. +71 −71 GameEngine/Chat.php
  100. +1 −1 GameEngine/Data/buidata.php
  101. +66 −66 GameEngine/Data/hero_full.php
  102. +4 −4 GameEngine/Data/hunitdata.php
  103. +4 −4 GameEngine/Data/resdata.php
  104. +2 −2 GameEngine/Data/unitdata.php
  105. +3,134 −3,135 GameEngine/Database/db_MYSQL.php
  106. +10 −10 GameEngine/Form.php
  107. +3 −3 GameEngine/Game/WorldWonderName.php
  108. +58 −58 GameEngine/Generator.php
  109. +29 −29 GameEngine/Lang/en.php
  110. +2 −2 GameEngine/Lang/es.php
  111. +35 −35 GameEngine/Lang/ru.php
  112. +9 −9 GameEngine/Logging.php
  113. +253 −253 GameEngine/Market.php
  114. +440 −440 GameEngine/Message.php
  115. +5 −5 GameEngine/Multisort.php
  116. +0 −1 GameEngine/Notes/53038fc5cf739e9208444d036d8233c0.txt
  117. +1 −1 GameEngine/Profile.php
  118. +1 −1 GameEngine/Protection.php
  119. +514 −514 GameEngine/Ranking.php
  120. +148 −151 GameEngine/Session.php
  121. +137 −137 GameEngine/Technology.php
  122. +159 −159 GameEngine/Units.php
  123. +33 −33 GameEngine/Village.php
  124. +2 −2 GameEngine/functions.php
  125. +67 −67 a2b.php
  126. +73 −73 activate.php
  127. +1 −1 ajax.php
  128. +152 −152 allianz.php
  129. +42 −42 anleitung.php
  130. +10 −10 anmelden.php
  131. +6 −6 banned.php
  132. +11 −11 berichte.php
  133. +131 −131 build.php
  134. +299 −299 create_account.php
  135. +128 −128 crop_finder.php
  136. +7 −7 dorf1.php
  137. +7 −7 dorf2.php
  138. +23 −23 dorf3.php
  139. BIN img/admin/Thumbs.db
  140. BIN img/admin/b/Thumbs.db
  141. BIN img/admin/icon/Thumbs.db
  142. BIN img/admin/r/Thumbs.db
  143. +199 −199 index.php
  144. +1 −1 install/data/constant_format.tpl
  145. +16 −16 install/include/database.php
  146. +23 −23 install/include/multihunter.php
  147. +13 −13 install/include/oasis.php
  148. +2 −2 install/include/wdata.php
  149. +83 −83 install/index.php
  150. +114 −114 install/process.php
  151. +16 −16 install/templates/config.tpl
  152. +1 −1 install/templates/end.tpl
  153. +8 −8 install/templates/greet.tpl
  154. +4 −4 install/templates/menu.tpl
  155. +4 −4 install/templates/multihunter.tpl
  156. +130 −130 install/templates/script.tpl
  157. +9 −9 karte.php
  158. +47 −47 karte2.php
  159. +16 −16 login.php
  160. +5 −5 logout.php
  161. +6 −6 manual.php
  162. +62 −62 massmessage.php
  163. +336 −336 medals.php
  164. +1 −1 mt-full.js
  165. +9 −9 nachrichten.php
  166. +359 −359 new.js
  167. +95 −95 new2.js
  168. BIN notification/gpack/notification_v1_zzjhons/img/Thumbs.db
  169. BIN notification/gpack/notification_v1_zzjhons/img/layout/Thumbs.db
  170. BIN notification/gpack/notification_v1_zzjhons/img/round/bg/Thumbs.db
  171. BIN notification/gpack/notification_v1_zzjhons/img/round/boxes/Thumbs.db
  172. BIN notification/gpack/notification_v1_zzjhons/img/round/boxes/gray/Thumbs.db
  173. BIN notification/gpack/notification_v1_zzjhons/img/round/boxes/green/Thumbs.db
  174. BIN notification/gpack/notification_v1_zzjhons/img/round/boxes/lightGreen/Thumbs.db
  175. BIN notification/gpack/notification_v1_zzjhons/img/round/boxes/orange/Thumbs.db
  176. BIN notification/gpack/notification_v1_zzjhons/img/round/boxes/red/Thumbs.db
  177. BIN notification/gpack/notification_v1_zzjhons/img/screens/Thumbs.db
  178. BIN notification/gpack/notification_v1_zzjhons/lang/en/b/Thumbs.db
  179. BIN notification/gpack/notification_v1_zzjhons/lang/en/f/Thumbs.db
  180. BIN notification/img/Thumbs.db
  181. +104 −104 notification/index.php
  182. +11 −11 oasis_populate.php
  183. +7 −7 password.php
  184. +7 −7 plus.php
  185. +7 −7 rules.php
  186. +8 −8 spieler.php
  187. +55 −55 statistiken.php
  188. +51 −51 sysmsg.php
  189. +3 −3 terms.php
  190. +7 −7 testmysql.php
  191. +43 −43 tutorial.php
  192. +7,831 −7,831 uncrypt.js
  193. +2 −2 unx.js
  194. +87 −87 warsim.php
  195. +1,150 −1,150 winner.php
View
@@ -1,4 +1,4 @@
-<Files "*.tpl">
- Order Deny,Allow
- Deny from all
-</Files>
+<Files "*.tpl">
+ Order Deny,Allow
+ Deny from all
+</Files>
View
@@ -25,15 +25,15 @@ function ControlVersion()
try {
// version will be set for 6.X players only
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
-
+
// installed player is some revision of 6.0
// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
- // so we have to be careful.
-
+ // so we have to be careful.
+
// default to the first public version
version = "WIN 6,0,21,0";
- // throws if AllowScripAccess does not exist (introduced in 6.0r47)
+ // throws if AllowScripAccess does not exist (introduced in 6.0r47)
axo.AllowScriptAccess = "always";
// safe to call for 6.0r47 or greater
@@ -73,21 +73,21 @@ function ControlVersion()
version = -1;
}
}
-
+
return version;
}
// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(id){
// NS/Opera version >= 3 check for Flash plugin in plugin array
var flashVer = -1;
-
+
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
var descArray = flashDescription.split(" ");
- var tempArrayMajor = descArray[2].split(".");
+ var tempArrayMajor = descArray[2].split(".");
var versionMajor = tempArrayMajor[0];
var versionMinor = tempArrayMajor[1];
var versionRevision = descArray[3];
@@ -114,11 +114,11 @@ function GetSwfVer(id){
else if ( isIE && isWin && !isOpera ) {
flashVer = ControlVersion();
}
-
+
if(flashVer != -1) {
writeFlashTags(id);
}
-
+
return flashVer;
}
@@ -127,15 +127,15 @@ function writeFlashTags(id)
{
var swfFilename = "stats.swf";
var swfUrlWithGetParameters = swfFilename + "?id=" + id;
-
+
document.writeln("<div style=\"position:absolute; z-index:-1; top:0px; left:0px;\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\" width=\"1\" height=\"1\">");
document.writeln("<param name=\"movie\" value=\""+swfUrlWithGetParameters+"\" />");
document.writeln("<param name=\"quality\" value=\"low\" />");
document.writeln("<param name=\"allowScriptAccess\" value=\"always\" />");
document.writeln("<param name=\"allowNetworking\" value=\"true\" />");
document.writeln("<embed width=\"1\" height=\"1\" src=\""+swfUrlWithGetParameters+"\" ");
- document.writeln("quality=\"low\" allowNetworking=\"true\" name=\""+swfFilename+"\" play=\"true\" loop=\"false\" ");
+ document.writeln("quality=\"low\" allowNetworking=\"true\" name=\""+swfFilename+"\" play=\"true\" loop=\"false\" ");
document.writeln("allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" ");
document.writeln("pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> ");
document.writeln("</embed> </object></div>");
-}
+}
@@ -19,10 +19,10 @@
if ($session->access < ADMIN) die("Access Denied: You are not Admin!");
$id = $_POST['id'];
-$village = $database->getVillage($id);
-$user = $database->getUserArray($village['owner'],1);
-$coor = $database->getCoor($village['wref']);
-$varray = $database->getProfileVillages($village['owner']);
+$village = $database->getVillage($id);
+$user = $database->getUserArray($village['owner'],1);
+$coor = $database->getCoor($village['wref']);
+$varray = $database->getProfileVillages($village['owner']);
$type = $database->getVillageType($village['wref']);
$fdata = $database->getResourceLevel($village['wref']);
$units = $database->getUnit($village['wref']);
@@ -103,4 +103,4 @@
header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d");
-?>
+?>
@@ -1,4 +1,4 @@
-<?php
+<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
@@ -14,37 +14,37 @@ error_reporting(E_ALL ^ E_NOTICE);
$id = $_GET['uid'];
if(isset($id))
-{
- $user = $database->getUserArray($id,1);
+{
+ $user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id); ?>
<link href="../<?php echo GP_LOCATE; ?>lang/en/compact.css?f4b7c" rel="stylesheet" type="text/css">
<style type="text/css">
- input.dynamic_img, img.dynamic_img
+ input.dynamic_img, img.dynamic_img
{
background-position: center top;
height: 20px;
}
- input#btn_send
+ input#btn_send
{
width: 97px;
background-image: url(../<?php echo GP_LOCATE; ?>lang/en/b/send.gif);
}
- div.messages div#write_content #heading input
+ div.messages div#write_content #heading input
{
-
+
}
</style>
-
+
<h4>Compose New Message to <a href="admin.php?p=player&uid=<?php echo $user['id'] ?>"><?php echo $user['username']; ?></a></h4>
-
+
<form method="post" action="../Admin/Mods/sendMessage.php" accept-charset="UTF-8" name="msg">
<div id="content" class="messages">
<div id="read_head" class="msg_head"></div>
<div id="read_content" class="msg_content">
<img src="../../<?php echo GP_LOCATE; ?>lang/en/msg/block_bg24b.gif" id="label" class="read" alt="">
-
+
<div id="heading">
<input type="hidden" name="uid" value="<?php echo $id; ?>">
<div><a href="admin.php?p=player&uid=<?php echo $user['id']; ?>"><?php echo $user['username']; ?></a></div>
@@ -53,8 +53,8 @@ if(isset($id))
<div id="time">
<div><?php echo date('d.m.y'); ?></div>
<div><?php echo date('H:i:s'); ?></div>
- </div>
- <div class="clear"></div>
+ </div>
+ <div class="clear"></div>
<div class="line"></div>
<div class="message" style="margin-top: 10px;">
<textarea id="message" name="message" style="background-image: url('../<?php echo GP_LOCATE; ?>img/msg/underline.gif'); background-repeat: repeat; font-size: 12px; border: medium none; height: 258px; line-height: 16px; width: 412px; font-family: Verdana,Arial,Helvetica,sans-serif;">Message Here</textarea>
@@ -1,4 +1,4 @@
-<?php
+<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
@@ -12,10 +12,10 @@
error_reporting(0);
?>
<style>
- .del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
-</style>
+ .del {width:12px; height:12px; background-image: url(img/admin/icon/del.gif);}
+</style>
-<table id="member">
+<table id="member">
<thead>
<tr>
<th colspan="7">Inactive users</th>
@@ -33,10 +33,10 @@ error_reporting(0);
<tbody>
<?php
$inactivei = time() - 86400;
- $q = "SELECT * FROM ".TB_PREFIX."users where timestamp < $inactivei AND access=2";
+ $q = "SELECT * FROM ".TB_PREFIX."users where timestamp < $inactivei AND access=2";
$result = mysql_query($q);
$active = mysql_fetch_assoc($result);
-
+
for ($i = 0; $i <= count($active)-1; $i++)
{
$uid = $database->getUserField($active[$i]['username'],'id',1);
@@ -70,8 +70,8 @@ error_reporting(0);
<td>".count($varray)."</td>
<td><img src=\"../img/admin/gold.gif\" class=\"gold\" alt=\"Gold\" title=\"This user has: ".$active[$i]['gold']." gold\"/> ".$active[$i]['gold']."</td>
<td><img src=\"../<?php echo GP_LOCATE; ?>img/a/online1.gif\"></td>
- </tr>";
- }
- ?>
+ </tr>";
+ }
+ ?>
</tbody>
</table>
Oops, something went wrong.

0 comments on commit 786cbf1

Please sign in to comment.