Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 6928cbcd1dbc112c2eb67b04b70c1e86e02ecffb unknown committed Mar 29, 2012
Showing 2,446 changed files with 85,772 additions and 0 deletions.
@@ -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>");
+}
@@ -0,0 +1,142 @@
+<?php
+#################################################################################
+## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
+## --------------------------------------------------------------------------- ##
+## Filename admin.php ##
+## Developed by: Dzoki ##
+## License: TravianX Project ##
+## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
+## ##
+#################################################################################
+session_start();
+include("../GameEngine/Database.php");
+include("../GameEngine/Admin/database.php");
+?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<link REL="shortcut icon" HREF="favicon.ico"/>
+<title><?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - TravianX'; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - TravianX'; } ?></title>
+<link rel=stylesheet type="text/css" href="../img/admin/admin.css">
+<link rel=stylesheet type="text/css" href="../img/admin/acp.css">
+<link rel=stylesheet type="text/css" href="../img/img.css">
+<script src="/mt-full.js?423cb" type="text/javascript"></script>
+<script src="ajax.js" type="text/javascript"></script>
+
+<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<meta http-equiv="imagetoolbar" content="no">
+</head>
+<body>
+
+<script language="javascript">
+function aktiv() {this.srcElement.className='fl1'; }
+function inaktiv() {event.srcElement.className='fl2'; }
+
+function del(e,id){
+if(e == 'did'){ var conf = confirm('Dou you really want delete village id '+id+'?'); }
+if(e == 'unban'){ var conf = confirm('Dou you really want unban player '+id+'?'); }
+if(e == 'stopDel'){ var conf = confirm('Dou you really want stop deleting user '+id+'?'); }
+if(conf){return true;}else{return false;}
+}
+
+</script>
+
+<div id="ltop1">
+<div style="position:relative; width:231px; height:100px; float:left;">
+<img src="http://forum.ragezone.com/f583/img/x.gif" width="1" height="1">
+</div>
+<img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x1.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x2.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x3.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x4.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"><img class="fl2" src="http://forum.ragezone.com/f583/img/admin/x5.gif" width="70" height="100" border="0" onmouseover="this.className='fl1'" onmouseout="this.className='fl2'"></div>
+
+<div id="lmidall">
+<div id="lmidlc">
+<div id="lleft">
+<a href="<?php echo HOMEPAGE; ?>"><img src="http://forum.ragezone.com/f583/img/en/a/travian0.gif" class="logo_plus" width="116" height="60" border="0"></a>
+
+<table id="navi_table" cellspacing="0" cellpadding="0">
+<tr>
+<td class="menu">
+<?php
+ if($funct->CheckLogin()){?>
+<?php if($_SESSION['access'] == ADMIN){ ?>
+<a href="admin.php">ACP Home</a>
+<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
+<a href="#"></a><a href="#"></a>
+
+<a href="?p=server_info">Server Info</a>
+<a href="?p=online">Online users</a>
+<a href="?p=search">Search</a>
+<a href="?p=message">Msg/Rep</a>
+<a href="?p=ban">Ban</a>
+<a href="?p=gold">Give Gold</a>
+<a href="?p=natarstart">Add Natar Villages</a>
+<a href="?p=natarend">Add World Wonder Villages</a>
+<a href="?p=admin_log"><font color="Red"><b>Admin Log</font></b></a>
+<a href="?p=config">Config</a>
+<a href="#"></a><a href="#"></a><a href="#"></a>
+<a href="?action=logout">Logout</a>
+<?php } else if($_SESSION['access'] == MULTIHUNTER){ ?>
+<a href="admin.php">MCP Home</a>
+<a href="<?php echo HOMEPAGE; ?>">Homepage</a>
+<a href="#"></a><a href="#"></a>
+
+<a href="?p=server_info">Server Info</a>
+
+<a href="?p=online">Online users</a>
+
+<a href="?p=search">Search</a>
+
+<a href="?p=message">Msg/Rep</a>
+
+<a href="?p=ban">Ban</a>
+<a href="#"></a><a href="#"></a><a href="#"></a>
+
+<a href="?action=logout">Logout</a>
+<?php } }?>
+</td>
+</tr>
+</table></div>
+<div id="lmid1">
+<div id="lmid3">
+
+<?php
+
+ if($funct->CheckLogin()){
+ if($_POST or $_GET){
+ if($_GET['p'] and $_GET['p']!="search"){
+ $filename = '../Templates/Admin/'.$_GET['p'].'.tpl';
+ if(file_exists($filename)){
+ include($filename);
+ }else{
+ include('../Templates/Admin/404.tpl');
+ }
+ }else{
+ include('../Templates/Admin/search.tpl');
+ }
+ if($_POST['p'] and $_POST['s']){
+ $filename = '../Templates/Admin/results_'.$_POST['p'].'.tpl';
+ if(file_exists($filename)){
+ include($filename);
+ }else{
+ include('../Templates/Admin/404.tpl');
+ }
+ }
+ }else{
+ include('../Templates/Admin/home.tpl');
+ }
+ }else{
+ include('../Templates/Admin/login.tpl');
+ }
+?>
+
+</div>
+</div>
+
+</div>
+<div id="lright1"></div>
+
+<div id="ce"></div>
+
+
+
+</body>
+</html>
@@ -0,0 +1,70 @@
+var http_request = false;
+
+function macheRequest(url, id)
+{
+
+ http_request = false;
+
+ if (window.XMLHttpRequest)
+ { // Mozilla, Safari,...
+ http_request = new XMLHttpRequest();
+ if (http_request.overrideMimeType)
+ {
+ http_request.overrideMimeType('text/xml');
+ // zu dieser Zeile siehe weiter unten
+ }
+ }
+ else if (window.ActiveXObject)
+ { // IE
+ try
+ {
+ http_request = new ActiveXObject("Msxml2.XMLHTTP");
+ }
+ catch (e)
+ {
+ try
+ {
+ http_request = new ActiveXObject("Microsoft.XMLHTTP");
+ }
+ catch (e)
+ {
+ }
+ }
+ }
+
+ if (!http_request)
+ {
+ alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen');
+ return false;
+ }
+ http_request.onreadystatechange = function()
+ {
+ alertInhalt2(id);
+ };
+ http_request.open('GET', url, true);
+ http_request.send(null);
+
+}
+
+function alertInhalt2(id)
+{
+
+ if (http_request.readyState == 4)
+ {
+ if (http_request.status == 200)
+ {
+ // alert(http_request.responseText);
+ myElement = document.getElementById(id);
+ if (myElement != null)
+ {
+ myElement.innerHTML = http_request.responseText;
+ }
+
+ }
+ else
+ {
+ alert('Bei dem Request ist ein Problem aufgetreten.');
+ }
+ }
+
+}
Oops, something went wrong.

0 comments on commit 6928cbc

Please sign in to comment.