-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 98e94af
Showing
2,800 changed files
with
115,529 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
|
||
# Files which should be always normalized | ||
*.php text | ||
*.js text | ||
*.css text | ||
*.htaccess text | ||
*.tpl text | ||
*.html text | ||
|
||
# Binaries | ||
*.png binary | ||
*.jpg binary | ||
*.ico binary | ||
*.gif binary | ||
*.zip binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Windows image file caches | ||
Thumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Mac crap | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<Files "*.tpl"> | ||
Order Deny,Allow | ||
Deny from all | ||
</Files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
// Flash Player Version Detection - Rev 1.6 | ||
// Detect Client Browser type | ||
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. | ||
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; | ||
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; | ||
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; | ||
|
||
function ControlVersion() | ||
{ | ||
var version; | ||
var axo; | ||
var e; | ||
|
||
// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry | ||
|
||
try { | ||
// version will be set for 7.X or greater players | ||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); | ||
version = axo.GetVariable("$version"); | ||
} catch (e) { | ||
} | ||
|
||
if (!version) | ||
{ | ||
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. | ||
|
||
// default to the first public version | ||
version = "WIN 6,0,21,0"; | ||
|
||
// throws if AllowScripAccess does not exist (introduced in 6.0r47) | ||
axo.AllowScriptAccess = "always"; | ||
|
||
// safe to call for 6.0r47 or greater | ||
version = axo.GetVariable("$version"); | ||
|
||
} catch (e) { | ||
} | ||
} | ||
|
||
if (!version) | ||
{ | ||
try { | ||
// version will be set for 4.X or 5.X player | ||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); | ||
version = axo.GetVariable("$version"); | ||
} catch (e) { | ||
} | ||
} | ||
|
||
if (!version) | ||
{ | ||
try { | ||
// version will be set for 3.X player | ||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); | ||
version = "WIN 3,0,18,0"; | ||
} catch (e) { | ||
} | ||
} | ||
|
||
if (!version) | ||
{ | ||
try { | ||
// version will be set for 2.X player | ||
axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); | ||
version = "WIN 2,0,0,11"; | ||
} catch (e) { | ||
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 versionMajor = tempArrayMajor[0]; | ||
var versionMinor = tempArrayMajor[1]; | ||
var versionRevision = descArray[3]; | ||
if (versionRevision == "") { | ||
versionRevision = descArray[4]; | ||
} | ||
if (versionRevision[0] == "d") { | ||
versionRevision = versionRevision.substring(1); | ||
} else if (versionRevision[0] == "r") { | ||
versionRevision = versionRevision.substring(1); | ||
if (versionRevision.indexOf("d") > 0) { | ||
versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); | ||
} | ||
} | ||
var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; | ||
} | ||
} | ||
// MSN/WebTV 2.6 supports Flash 4 | ||
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; | ||
// WebTV 2.5 supports Flash 3 | ||
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; | ||
// older WebTV supports Flash 2 | ||
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; | ||
else if ( isIE && isWin && !isOpera ) { | ||
flashVer = ControlVersion(); | ||
} | ||
|
||
if(flashVer != -1) { | ||
writeFlashTags(id); | ||
} | ||
|
||
return flashVer; | ||
} | ||
|
||
|
||
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("allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" "); | ||
document.writeln("pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> "); | ||
document.writeln("</embed> </object></div>"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DirectoryIndex admin.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?php | ||
|
||
################################################################################# | ||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## | ||
## --------------------------------------------------------------------------- ## | ||
## Filename addTroops.php ## | ||
## Developed by: Dzoki & Advocatie ## | ||
## License: TravianX Project ## | ||
## Thanks to: Dzoki & itay2277 (edit troops) ## | ||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## | ||
## ## | ||
################################################################################# | ||
|
||
include_once("../../Account.php"); | ||
|
||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); | ||
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']); | ||
$type = $database->getVillageType($village['wref']); | ||
$fdata = $database->getResourceLevel($village['wref']); | ||
$units = $database->getUnit($village['wref']); | ||
|
||
$u1 = $_POST['u1']; | ||
$u2 = $_POST['u2']; | ||
$u3 = $_POST['u3']; | ||
$u4 = $_POST['u4']; | ||
$u5 = $_POST['u5']; | ||
$u6 = $_POST['u6']; | ||
$u7 = $_POST['u7']; | ||
$u8 = $_POST['u8']; | ||
$u9 = $_POST['u9']; | ||
$u10 = $_POST['u10']; | ||
//////////////////// | ||
$u11 = $_POST['u11']; | ||
$u12 = $_POST['u12']; | ||
$u13 = $_POST['u13']; | ||
$u14 = $_POST['u14']; | ||
$u15 = $_POST['u15']; | ||
$u16 = $_POST['u16']; | ||
$u17 = $_POST['u17']; | ||
$u18 = $_POST['u18']; | ||
$u19 = $_POST['u19']; | ||
$u20 = $_POST['u20']; | ||
//////////////////// | ||
$u21 = $_POST['u21']; | ||
$u22 = $_POST['u22']; | ||
$u23 = $_POST['u23']; | ||
$u24 = $_POST['u24']; | ||
$u25 = $_POST['u25']; | ||
$u26 = $_POST['u26']; | ||
$u27 = $_POST['u27']; | ||
$u28 = $_POST['u28']; | ||
$u29 = $_POST['u29']; | ||
$u30 = $_POST['u30']; | ||
//////////////////// | ||
$u31 = $_POST['u31']; | ||
$u32 = $_POST['u32']; | ||
$u33 = $_POST['u33']; | ||
$u34 = $_POST['u34']; | ||
$u35 = $_POST['u35']; | ||
$u36 = $_POST['u36']; | ||
$u37 = $_POST['u37']; | ||
$u38 = $_POST['u38']; | ||
$u39 = $_POST['u39']; | ||
$u40 = $_POST['u40']; | ||
//////////////////// | ||
$u41 = $_POST['u41']; | ||
$u42 = $_POST['u42']; | ||
$u43 = $_POST['u43']; | ||
$u44 = $_POST['u44']; | ||
$u45 = $_POST['u45']; | ||
$u46 = $_POST['u46']; | ||
$u47 = $_POST['u47']; | ||
$u48 = $_POST['u48']; | ||
$u49 = $_POST['u49']; | ||
$u50 = $_POST['u50']; | ||
|
||
if($user['tribe'] == 1){ | ||
$q = "UPDATE ".TB_PREFIX."units SET u1 = $u1, u2 = $u2, u3 = $u3, u4 = $u4, u5 = $u5, u6 = $u6, u7 = $u7, u8 = $u8, u9 = $u9, u10 = $u10 WHERE vref = $id"; | ||
mysql_query($q); | ||
} else if($user['tribe'] == 2){ | ||
$q = "UPDATE ".TB_PREFIX."units SET u11 = '$u11', u12 = '$u12', u13 = '$u13', u14 = '$u14', u15 = '$u15', u16 = '$u16', u17 = '$u17', u18 = '$u18', u19 = '$u19', u20 = '$u20' WHERE vref = $id"; | ||
mysql_query($q); | ||
} else if($user['tribe'] == 3){ | ||
$q = "UPDATE ".TB_PREFIX."units SET u21 = '$u21', u22 = '$u22', u23 = '$u23', u24 = '$u24', u25 = '$u25', u26 = '$u26', u27 = '$u27', u28 = '$u28', u29 = '$u29', u30 = '$u30' WHERE vref = $id"; | ||
mysql_query($q); | ||
} else if($user['tribe'] == 4){ | ||
$q = "UPDATE ".TB_PREFIX."units SET u31 = '$u31', u32 = '$u32', u33 = '$u33', u34 = '$u34', u35 = '$u35', u36 = '$u36', u37 = '$u37', u38 = '$u38', u39 = '$u39', u40 = '$u40' WHERE vref = $id"; | ||
mysql_query($q); | ||
} else if($user['tribe'] == 5){ | ||
$q = "UPDATE ".TB_PREFIX."units SET u41 = '$u41', u42 = '$u42', u43 = '$u43', u44 = '$u44', u45 = '$u45', u46 = '$u46', u47 = '$u47', u48 = '$u48', u49 = '$u49', u50 = '$u50' WHERE vref = $id"; | ||
mysql_query($q); | ||
} | ||
|
||
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed troop anmount in village <a href=\'admin.php?p=village&did=$id\'>$id</a> ',".time().")"); | ||
|
||
header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d"); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
################################################################################# | ||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## | ||
## --------------------------------------------------------------------------- ## | ||
## Filename gold.php ## | ||
## Developed by: Dzoki ## | ||
## License: TravianX Project ## | ||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## | ||
## ## | ||
################################################################################# | ||
include_once("../../Account.php"); | ||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); | ||
mysql_select_db(SQL_DB); | ||
if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); | ||
|
||
$id = $_POST['id']; | ||
$admid = $_POST['admid']; | ||
mysql_query("UPDATE ".TB_PREFIX."users SET cp = cp + ".$_POST['cp']." WHERE id = ".$id.""); | ||
|
||
$name = $database->getUserField($id,"username",0); | ||
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['cp']." Cultural Points to user <a href=\'admin.php?p=player&uid=$id\'>$name</a> ',".time().")"); | ||
|
||
header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&cp=ok"); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
################################################################################# | ||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## | ||
## --------------------------------------------------------------------------- ## | ||
## Filename medals.php ## | ||
## Developed by: aggenkeech ## | ||
## License: TravianX Project ## | ||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## | ||
################################################################################# | ||
|
||
include_once("../../Account.php"); | ||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); | ||
mysql_select_db(SQL_DB); | ||
if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); | ||
|
||
|
||
|
||
$userid = $_POST['userid']; | ||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid.""); | ||
|
||
header("Location: ../../../Admin/admin.php?p=player&uid=".$userid.""); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
################################################################################# | ||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## | ||
## --------------------------------------------------------------------------- ## | ||
## Filename medals.php ## | ||
## Developed by: aggenkeech ## | ||
## License: TravianX Project ## | ||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## | ||
################################################################################# | ||
|
||
include_once("../../Account.php"); | ||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); | ||
mysql_select_db(SQL_DB); | ||
if ($session->access < ADMIN) die("Access Denied: You are not Admin!"); | ||
|
||
|
||
|
||
$deleteweek = $_POST['medalweek']; | ||
mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); | ||
|
||
header("Location: ../../../Admin/admin.php?p=delmedal"); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
################################################################################# | ||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## | ||
## --------------------------------------------------------------------------- ## | ||
## Filename editUser.php ## | ||
## Developed by: Dzoki ## | ||
## License: TravianX Project ## | ||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ## | ||
## ## | ||
################################################################################# | ||
include_once("../../Account.php"); | ||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); | ||
mysql_select_db(SQL_DB); | ||
if ($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!"); | ||
|
||
$id = $_POST['id']; | ||
$user = $database->getUserArray($id,1); | ||
mysql_query("UPDATE ".TB_PREFIX."users SET email = '".$_POST['email']."', tribe = ".$_POST['tribe'].", location = '".$_POST['location']."', desc1 = '".$_POST['desc1']."', `desc2` = '".$_POST['desc2']."' WHERE id = ".$_POST['id'].""); | ||
mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed <a href=\'admin.php?p=village&did=$id\'>".$user['username']."</a>\'s profile',".time().")"); | ||
|
||
|
||
header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); | ||
?> |
Oops, something went wrong.