diff --git a/.htaccess b/.htaccess
index 8869ae3a..a63010c1 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,4 +1,4 @@
-
- Order Deny,Allow
- Deny from all
-
\ No newline at end of file
+
+ Order Deny,Allow
+ Deny from all
+
\ No newline at end of file
diff --git a/AC_OETags.js b/AC_OETags.js
index 8329e72e..a19118c0 100644
--- a/AC_OETags.js
+++ b/AC_OETags.js
@@ -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,7 +73,7 @@ function ControlVersion()
version = -1;
}
}
-
+
return version;
}
@@ -81,13 +81,13 @@ function ControlVersion()
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("
");
-}
+}
\ No newline at end of file
diff --git a/Admin/Mods/addTroops.php b/Admin/Mods/addTroops.php
index bf9f4f43..ff81a2d0 100644
--- a/Admin/Mods/addTroops.php
+++ b/Admin/Mods/addTroops.php
@@ -19,10 +19,10 @@ mysql_select_db(SQL_DB);
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 @@ mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'C
header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d");
-?>
+?>
\ No newline at end of file
diff --git a/Admin/Templates/404.tpl b/Admin/Templates/404.tpl
index b039f094..076def4b 100644
--- a/Admin/Templates/404.tpl
+++ b/Admin/Templates/404.tpl
@@ -1,4 +1,4 @@
-getUserArray($id,1);
+{
+ $user = $database->getUserArray($id,1);
$varray = $database->getProfileVillages($id);
$varmedal = $database->getProfileMedal($id); ?>
-
+