Well so there is a tutoriel for make it working with wampserver (normal version) :
1. go to , make a database called do_es and import the file do_es.sql
2. Go to the do_es database and click on the SQL button and execute this :
Code:
ALTER TABLE `cuentas` ADD `slot2` VARCHAR( 999 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , ADD `slot3` VARCHAR( 999 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, CHANGE `inventario` `inventario` VARCHAR( 999 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '|RM1,100;2,150;3,200;10,250;11,300;12,300;13,500;14,100;15,30' COMMENT 'minerales|...'
3. Go to your www folder, and paste all file from do_es folder and crossdomain.xml to www (so you don't have anymore a do_es folder !)
4. go to www and edit externalSignup.php, delete all and paste this :
PHP Code:
<?php require_once('Connections/DO.php'); ?>
<?php include('includes/variables.php'); ?>
<?php include('includes/head.tpl'); ?>
<?php
// *** Redirect if username exists
$MM_flag="MM_insert";
if (isset($_POST[$MM_flag])) {
$loginUsername = $_POST['signup_username'];
$LoginRS__query = "SELECT usuario FROM cuentas WHERE usuario='" . $loginUsername . "'";
mysql_select_db($database_DO, $DO);
$LoginRS=mysql_query($LoginRS__query, $DO) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
//Lista de errores
if($loginFoundUser){
$error_usuario = "El nombre de usuario ya esta cogido.";
$error = "true";
}
if($_POST['signup_username'] == ""){
$error_usuario = "El nombre de usuario esta vacio.";
$error = "true";
}
if(strlen($_POST['signup_username'])<4){
$error_usuario = "El nombre de usuario debe tener entre 4 y 20 caracteres.";
$error = "true";
}
if(strlen($_POST['signup_username'])>20){
$error_usuario = "El nombre de usuario debe tener entre 4 y 20 caracteres.";
$error = "true";
}
if($_POST['signup_password'] == ""){
$error_contraseña = "La contraseña esta vacia.";
$error = "true";
}
if($_POST['signup_passwordRepeat'] == ""){
$error_rcontraseña = "La contraseña esta vacia.";
$error = "true";
}
if(strlen($_POST['signup_password'])<4){
$error_contraseña = "Las contraseñas deben tener entre 4 y 20 caracteres.";
$error = "true";
}
if(strlen($_POST['signup_password'])>20){
$error_contraseña = "Las contraseñas deben tener entre 4 y 20 caracteres.";
$error = "true";
}
if($_POST['signup_password'] != $_POST['signup_passwordRepeat']){
$error_contraseña = "Las contraseñas no coinciden.";
$error = "true";
}
if($_POST['signup_email'] == ""){
$error_email = "El email esta vacio.";
$error = "true";
}
if (!mb_eregi("^[^@]{1,64}@[^@]{1,255}$", $_POST['signup_email']))
{
$error_email = "Tu email parece ser incorrecto. Por favor, facilita una dirección de email válida.";
$error = "true";
}
if(empty($_POST['signup_termsAndCondition'])){
$error_tos = "Debes aceptar los terminos y condiciones de uso.";
$error = "true";
}
}
<div id="attentionLayer" style="visibility: hidden;" class="signup_attentionLayer">
<div class="signup_attentionHeader">
<a href="javascript: closeAttentionLayer();" class="signup_attentionClose"></a>
<span class="signup_attentionTitle" >Atención</span>
</div>
<div class="singup_attentionMessages signup_attentionMessages">
<p class="singup_attentionMessage signup_attentionMessage">Queremos informarte que los usuarios que viven en los siguientes estados no pueden participar en los concursos con premios en efectivo: Arkansas, Arizona, Connecticut, Florida, Delaware, Indiana, Iowa, Illinois, Luisiana, Maryland, Montana, Nebraska, Dakota del Sur, Carolina del Sur, Tennessee y Vermont. Esta limitación también se aplica a los usuarios que residen en una zona donde la participación en concursos con premios en efectivo está prohibida por la ley.</p><br />
<table class="signup signup_input"><tr><td class="align_checkbox"><div class=""><input type="checkbox" id="signup_attentionCheck" name="signup_attentionCheck" value="1" class="input_checkbox" onChange="BPJS.$('signup_winnings').value = this.value; closeAttentionLayer();" /></div></td><td class="signup_label label_attentionCheck">Information read and accepted</td></tr></table> </div>
</div>
<script language="javscript" type="text/javascript">
//<![CDATA[
function closeAttentionLayer() {
document.getElementById('attentionLayer').style.visibility = 'hidden';}//]]>
</script>
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, start by assuming the visitor is NOT authorized.
$isValid = False;
// When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
// Therefore, we know that a user is NOT logged in if that Session variable is blank.
if (!empty($UserName)) {
// Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
// Parse the strings into arrays.
$arrUsers = Explode(",", $strUsers);
$arrGroups = Explode(",", $strGroups);
if (in_array($UserName, $arrUsers)) {
$isValid = true;
}
// Or, you may restrict access to only certain users based on their username.
if (in_array($UserGroup, $arrGroups)) {
$isValid = true;
}
if (($strUsers == "") && true) {
$isValid = true;
}
}
return $isValid;
}
<script src="js/function.js" type="text/javascript"></script>
<script type="text/javascript">
// remote scripting library
// (c) copyright 2005 modernmethod, inc
var sajax_debug_mode = false;
var sajax_request_type = "POST";
var sajax_target_id = "";
var sajax_failure_redirect = "";
function sajax_debug(text) {
if (sajax_debug_mode)
alert(text);
}
function sajax_init_object() {
sajax_debug("sajax_init_object() called..")
var A;
var msxmlhttp = new Array(
'Msxml2.XMLHTTP.5.0',
'Msxml2.XMLHTTP.4.0',
'Msxml2.XMLHTTP.3.0',
'Msxml2.XMLHTTP',
'Microsoft.XMLHTTP');
for (var i = 0; i < msxmlhttp.length; i++) {
try {
A = new ActiveXObject(msxmlhttp[i]);
} catch (e) {
A = null;
}
}
if(!A && typeof XMLHttpRequest != "undefined")
A = new XMLHttpRequest();
if (!A)
sajax_debug("Could not create connection object.");
return A;
}
var sajax_requests = new Array();
function sajax_cancel() {
for (var i = 0; i < sajax_requests.length; i++)
sajax_requests[i].abort();
}
function sajax_do_call(func_name, args) {
var i, x, n;
var uri;
var post_data;
var target_id;
uri = "/sajaxAPI.php?sid=33c7d82f5d06f7acfe1bde79fdc71455";
if (sajax_request_type == "GET") {
if (uri.indexOf("?") == -1)
uri += "?rs=" + escape(func_name);
else
uri += "&rs=" + escape(func_name);
uri += "&rst=" + escape(sajax_target_id);
uri += "&rsrnd=" + new Date().getTime();
for (i = 0; i < args.length-1; i++)
uri += "&rsargs[]=" + escape(args[i]);
for (i = 0; i < args.length-1; i++)
post_data = post_data + "&rsargs[]=" + escape(args[i]);
}
else {
alert("Illegal request type: " + sajax_request_type);
}
x = sajax_init_object();
if (x == null) {
if (sajax_failure_redirect != "") {
location.href = sajax_failure_redirect;
return false;
} else {
sajax_debug("NULL sajax object for user agent:\n" + navigator.userAgent);
return false;
}
} else {
x.open(sajax_request_type, uri, true);
// window.open(uri);
sajax_requests[sajax_requests.length] = x;
if (sajax_request_type == "POST") {
x.setRequestHeader("Method", "POST " + uri + " HTTP/1.1");
x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
}
x.onreadystatechange = function() {
if (x.readyState != 4)
return;
sajax_debug("received " + x.responseText);
var status;
var data;
var txt = x.responseText.replace(/^\s*|\s*$/g,"");
status = txt.charAt(0);
data = txt.substring(2);
if (status == "") {
// let's just assume this is a pre-response bailout and let it slide for now
} else if (status == "-")
alert("Error: " + data);
else {
if (target_id != "")
document.getElementById(target_id).innerHTML = eval(data);
else {
try {
var callback;
var extra_data = false;
if (typeof args[args.length-1] == "object") {
callback = args[args.length-1].callback;
extra_data = args[args.length-1].extra_data;
} else {
callback = args[args.length-1];
}
callback(eval(data), extra_data);
} catch (e) {
sajax_debug("Caught error " + e + ": Could not eval " + data );
}
}
}
}
}
var SID='dosid=33c7d82f5d06f7acfe1bde79fdc71455';
var rid = 'e702228c39cd5228cd1dbac892b60c45';
var errorMsg = 'Por favor, ¡desactiva tu bloqueador de popups!';
var windowSpacemap = null;
var playerWantsOldClient = false;
var determinedClientResolution = {id: '4', width: 1280, height: 900};
function openFlashClient(resolution, factionID)
{
try {
if (typeof(window.opener) == 'object' && window.opener.thisIsReal) {
window.opener.focus();
return;
}
} catch (e) {}
if(playerWantsOldClient) {
// open client in old-fashioned way...
var map = 'internalMap';
} else {
// open new client with determined resolution
resolution = determinedClientResolution;
var map = 'internalMapRevolution';
}
if(windowSpacemap == null || windowSpacemap.closed) {
// if there no window with name "windowSpacemap" or its closed, it would be reloaded
url = 'indexInternal.es?action=' + map + '&' + SID + factionString;
windowSpacemap = window.open('', 'spacemap', 'width=' + (resolution.width + offset.width) + ',height=' + (resolution.height + offset.height) + ',menubar=no,location=no,status=yes,toolbar=no');
// if location empty, then load client
if (windowSpacemap.location.search.length == 0) {
// load spacemap (url)
windowSpacemap.location = url;
}
}
// focus the spacemap / get it in front
windowSpacemap.focus();
function openMiniMap(wdt, hgt, factionID) {
// this function is now used as a hook
// for the old client...
openFlashClient({id: '-1', width: wdt, height: hgt}, factionID);
}
</script>
<script type="text/javascript">if (top.location.host != self.location.host) top.location = self.location;</script><!-- affiliateHeadTag -->
<link rel="meta" href="http://int14.darkorbit.bigpoint.com/sharedpages/icra/labels.php" type="application/rdf+xml" title="ICRA labels" />
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://int14.darkorbit.bigpoint.com" r (n 0 s 0 v 0 l 1 oa 0 ob 0 oc 0 od 1 oe 0 of 0 og 0 oh 0 c 1))' />
</head>
<body>
<!-- affiliateStartTag -->
<!-- Login Tag (-1) -->
<script type="text/javascript">
function changeImage(divID) {
for(i=1;i<=3;i++) {
if (i == divID) {
$("logo_"+i).style.backgroundImage = 'url(do_img/global/companyChoose/logo_'+i+'_active.gif)';
$("text_"+i).style.color = '#FFFFFF';
} else {
$("logo_"+i).style.backgroundImage = '';
$("text_"+i).style.color = '#909090';
}
}
}
</div>
<div id="text_1" class="faction_info">La Mars-Mining-Operation se encarga de explotar los recursos de energía del universo. Los beneficios lo son todo.<br /><br /> ¿Eres tan poco escrupuloso como tu empresa? Entonces, este es tu sitio. Sigue tu objetivo y entra en los anales de la historia del universo.</div>
<div id="button_1" class="font_choose"><input type="image" src="do_img/global/companyChoose/seleccionar.png"/>
</div>
<input name="empresaMMO" type="hidden" id="empresaMMO" value="1" />
<input name="id" type="hidden" value="<?php echo $row_Cuenta['id']; ?>" />
<input type="hidden" name="MM_update" value="cambiarEmpresaMMO" />
</div>
</a>
</form>
<form method="post" name="cambiarEmpresaEIC" id="cambiarEmpresaEIC">
<a href="<?php echo $editFormAction; ?>" onFocus="this.blur();">
<div id="company_2" onMouseOver="changeImage(2);" onMouseOut="closeAll();">
<div id="logo_2" onMouseOver="changeImage(2);"></div>
<div id="text_2" class="faction_info">Aquí gobierna el hombre. Como piloto para la Earth-Industries-Corporation formas parte de una comunidad. <br /><br /> Se te conceden ciertos privilegios, pero debes luchar por el objetivo de tu empresa. En equipo serás el mejor piloto espacial de todos los tiempos.</div>
<div id="button_2" class="font_choose"><input type="image" src="do_img/global/companyChoose/seleccionar.png"/></div>
<input name="empresaEIC" type="hidden" id="empresaEIC" value="2" />
<input name="id" type="hidden" value="<?php echo $row_Cuenta['id']; ?>" />
<input type="hidden" name="MM_update" value="cambiarEmpresaEIC" />
</div>
</a>
</form>
<form method="post" name="cambiarEmpresaVRU" id="cambiarEmpresaVRU">
<a href="<?php echo $editFormAction; ?>" onFocus="this.blur();">
<div id="company_3" onMouseOver="changeImage(3);" onMouseOut="closeAll();">
<div id="logo_3" onMouseOver="changeImage(3);"></div>
<div id="text_3" class="faction_info">La Venus Resource Unlimited se preocupa por su gente. Asimismo, se encargan de proteger la galaxia y los habitantes que viven en ella. <br /><br />Trabaja duro y consigue ocupar un lugar en los anales de la historia como un glorioso piloto espacial.</div>
<div id="button_3" class="font_choose"><input type="image" src="do_img/global/companyChoose/seleccionar.png"/></div>
<input name="empresaVRU" type="hidden" id="empresaVRU" value="3" />
<input name="id" type="hidden" value="<?php echo $row_Cuenta['id']; ?>" />
<input type="hidden" name="MM_update" value="cambiarEmpresaVRU" />
</div>
</a>
</form>
</div>
ALTER TABLE `cuentas` ADD `slot2` VARCHAR( 999 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL , ADD `slot3` VARCHAR( 999 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, CHANGE `inventario` `inventario` VARCHAR( 999 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '|RM1,100;2,150;3,200;10,250;11,300;12,300;13,500; 14,100;15,30' COMMENT 'minerales|...'
All the npc are following me, there isn't "hangar", can't change ship or grade.. so much buggued, i put it in junk. x)
if you want to change your ship, go to the do_es database,
in cuentas, search for your account and change the "nave" and "gfx" values.
nave for the ship, gfx for the design. (gfx = number of the swf file)
and for the grade, change the value nammed "rango" (21 for the admin)