";
diff --git a/adm/AdminFunctions/LogFunction.php b/adm/AdminFunctions/LogFunction.php
index fea6eb4..3725321 100644
--- a/adm/AdminFunctions/LogFunction.php
+++ b/adm/AdminFunctions/LogFunction.php
@@ -1,50 +1,42 @@
diff --git a/styles/images/smileys/index.html b/adm/AdminFunctions/index.html
similarity index 100%
rename from styles/images/smileys/index.html
rename to adm/AdminFunctions/index.html
diff --git a/adm/BanPage.php b/adm/BanPage.php
index 289a763..0a88267 100644
--- a/adm/BanPage.php
+++ b/adm/BanPage.php
@@ -1,31 +1,18 @@
'.$a['username'].' (ID: '.$a['id'].')'.$SuspendedNow.'';
$Users++;
}
@@ -67,7 +54,7 @@
$ORDER2 = "id";
else
$ORDER2 = "username";
-
+
$Banneds = 0;
$UserListBan = doquery("SELECT `username`, `id` FROM {{table}} WHERE `bana` = '1' ORDER BY ".$ORDER2." ASC", "users");
while ($b = mysql_fetch_array($UserListBan))
@@ -85,9 +72,9 @@
if($_GET['panel'])
{
- $QueryUserBan = doquery("SELECT * FROM {{table}} WHERE `who` = '".$_GET['ban_name']."'", "banned", true);
- $QueryUserBanVacation = doquery("SELECT urlaubs_modus FROM {{table}} WHERE `username` = '".$_GET['ban_name']."'", "users", true);
-
+ $QueryUserBan = doquery("SELECT * FROM {{table}} WHERE `who` = '".$_GET['ban_name']."'", "banned", TRUE);
+ $QueryUserBanVacation = doquery("SELECT urlaubs_modus FROM {{table}} WHERE `username` = '".$_GET['ban_name']."'", "users", TRUE);
+
if (!$QueryUserBan)
{
$parse['title'] = $lang['bo_bbb_title_1'];
@@ -97,23 +84,23 @@
{
$parse['title'] = $lang['bo_bbb_title_3'];
$parse['changedate'] = $lang['bo_bbb_title_6'];
- $parse['changedate_advert'] = "
![](\"../styles/images/Adm/i.gif\") ![](\"../styles/images/Adm/i.gif\") | ";
-
+
$parse['reas'] = $QueryUserBan['theme'];
- $parse['timesus'] =
+ $parse['timesus'] =
"
".$lang['bo_bbb_title_5']." |
".date("d-m-Y H:i:s", $QueryUserBan['longer'])." |
";
}
-
-
+
+
if ($QueryUserBanVacation['urlaubs_modus'] == 1)
$parse['vacation'] = 'checked = "checked"';
else
$parse['vacation'] = '';
-
+
$parse['name'] = $_GET['ban_name'];
@@ -121,8 +108,8 @@
if ($_POST['bannow'])
{
if(!is_numeric($_POST['days']) || !is_numeric($_POST['hour']) || !is_numeric($_POST['mins']) || !is_numeric($_POST['secs']))
- return display( parsetemplate(gettemplate("adm/BanOptionsResultBody"), $parse), false, '', true, false);
-
+ return display( parsetemplate(gettemplate("adm/BanOptionsResultBody"), $parse), FALSE, '', TRUE, FALSE);
+
$name = $_POST['ban_name'];
$reas = $_POST['why'];
$days = $_POST['days'];
@@ -138,13 +125,13 @@
$BanTime += $secs;
if ($QueryUserBan['longer'] > time())
$BanTime += ($QueryUserBan['longer'] - time());
-
+
if (($BanTime + $Now) < time())
$BannedUntil = $Now;
else
$BannedUntil = $Now + $BanTime;
-
-
+
+
if ($QueryUserBan)
{
$QryInsertBan = "UPDATE {{table}} SET ";
@@ -197,44 +184,43 @@
$PunishThePlanets .= "WHERE ";
$PunishThePlanets .= "`id_owner` = '". $GetUserData['id'] ."';";
doquery( $PunishThePlanets, 'planets');
-
-
-
+
+
+
$Log .= "\n".$lang['log_suspended_title']."\n";
$Log .= $lang['log_the_user'].$user['username']." ".$lang['log_suspended_1'].$name.$lang['log_suspended_2']."\n";
$Log .= $lang['log_reason'].$reas."\n";
$Log .= $lang['log_time'].date("d-m-Y H:i:s", time())."\n";
$Log .= $lang['log_longer'].date("d-m-Y H:i:s", $BannedUntil)."\n";
$Log .= $lang['log_vacations'].$lang['log_viewmod'][$ASD]."\n";
-
- LogFunction($Log, "GeneralLog", $LogCanWork);
+ LogFunction($Log, "GeneralLog", $LogCanWork);
- header ("Location: BanPage.php?panel=ban_name&ban_name=".$_GET['ban_name']."&succes=yes");
+ header ( 'location:BanPage.php?panel=ban_name&ban_name='.$_GET['ban_name'].'&succes=yes' );
}
if ($_GET['succes'] == 'yes')
$parse['display'] = "
". $lang['bo_the_player'] . $name . $lang['bo_banned'] ." |
---|
";
- display( parsetemplate(gettemplate("adm/BanOptionsResultBody"), $parse), false, '', true, false);
+ display( parsetemplate(gettemplate("adm/BanOptionsResultBody"), $parse), FALSE, '', TRUE, FALSE);
}
elseif($_POST && $_POST['unban_name'])
{
$name = $_POST['unban_name'];
doquery("DELETE FROM {{table}} WHERE who = '".$name."'", 'banned');
doquery("UPDATE {{table}} SET bana = '0', banaday = '0' WHERE username = '".$name."'", "users");
-
-
-
+
+
+
$Log .= "\n".$lang['log_suspended_title']."\n";
$Log .= $lang['log_the_user'].$user['username']." ".$lang['log_suspended_3'].$name."\n";
-
+
LogFunction($Log, "GeneralLog", $LogCanWork);
-
- header ("Location: BanPage.php?succes2=yes");
+
+ header ( 'location:BanPage.php?succes2=yes' );
}
if ($_GET['succes2'] == 'yes')
$parse['display2'] = "
". $lang['bo_the_player2'] . $name . $lang['bo_unbanned'] ." |
---|
";
-display( parsetemplate(gettemplate("adm/BanOptions"), $parse), false, '', true, false);
+display( parsetemplate(gettemplate("adm/BanOptions"), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/ChangePassPage.php b/adm/ChangePassPage.php
index 98c808f..02cf23f 100644
--- a/adm/ChangePassPage.php
+++ b/adm/ChangePassPage.php
@@ -1,40 +1,28 @@
\ No newline at end of file
diff --git a/adm/CombatReport.php b/adm/CombatReport.php
index 613aa69..6a62a19 100644
--- a/adm/CombatReport.php
+++ b/adm/CombatReport.php
@@ -1,34 +1,20 @@
".$lang['cr_lost_contact']."
";
@@ -51,5 +37,5 @@
$Page .= $report;
}
-display($Page, false, '', false, false);
+display($Page, FALSE, '', FALSE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/ConfigStatsPage.php b/adm/ConfigStatsPage.php
index 9b6f210..6d83ab1 100644
--- a/adm/ConfigStatsPage.php
+++ b/adm/ConfigStatsPage.php
@@ -1,96 +1,91 @@
= 10)
+ if (isset($_POST['stat_amount']) && is_numeric($_POST['stat_amount']) && $_POST['stat_amount'] != $game_stat_amount && $_POST['stat_amount'] >= 10)
{
update_config('stat_amount', $_POST['stat_amount']);
- $game_config['stat_amount'] = $_POST['stat_amount'];
+ $game_stat_amount = $_POST['stat_amount'];
$Log .= $lang['log_stats_value_3'].": ".$_POST['stat_amount']."\n";
}
- if (isset($_POST['stat_update_time']) && is_numeric($_POST['stat_update_time']) && $_POST['stat_update_time'] != $game_config['stat_update_time'])
+ if (isset($_POST['stat_update_time']) && is_numeric($_POST['stat_update_time']) && $_POST['stat_update_time'] != $game_stat_update_time)
{
update_config('stat_update_time', $_POST['stat_update_time']);
- $game_config['stat_update_time'] = $_POST['stat_update_time'];
+ $game_stat_update_time = $_POST['stat_update_time'];
$Log .= $lang['log_stats_value_2'].": ".$_POST['stat_update_time']."\n";
}
LogFunction($Log, "ConfigLog", $LogCanWork);
- header("location:ConfigStatsPage.php");
+ header ( 'location:ConfigStatsPage.php' );
+
}
else
{
$selected = "selected=\"selected\"";
- $stat = (($game_config['stat'] == 1)? 'sel_sta0':'sel_sta1');
+ $stat = (($game_stat == 1)? 'sel_sta0':'sel_sta1');
$lang[$stat] = $selected;
- $stat_fly = (($game_config['stat_flying'] == 1)? 'sel_sf1':'sel_sf0');
+ $stat_fly = (($game_stat_flying == 1)? 'sel_sf1':'sel_sf0');
$lang[$stat_fly] = $selected;
- $lang['stat_level'] = $game_config['stat_level'];
- $lang['stat_settings'] = $game_config['stat_settings'];
- $lang['stat_amount'] = $game_config['stat_amount'];
- $lang['stat_update_time'] = $game_config['stat_update_time'];
- $lang['timeact'] = gmdate("d/M/y H:i:s", $game_config['stat_last_update']);
+ $lang['stat_level'] = $game_stat_level;
+ $lang['stat_settings'] = $game_stat_settings;
+ $lang['stat_amount'] = $game_stat_amount;
+ $lang['stat_update_time'] = $game_stat_update_time;
+ $lang['timeact'] = gmdate("d/M/y H:i:s", $game_stat_last_update);
$lang['yes'] = $lang['one_is_yes'][1];
$lang['no'] = $lang['one_is_yes'][0];
$admin_settings = parsetemplate(gettemplate('adm/ConfigStatsBody'), $lang);
- display($admin_settings, false, '', true, false);
+ display($admin_settings, FALSE, '', TRUE, FALSE);
}
?>
\ No newline at end of file
diff --git a/adm/CreateNewUserPage.php b/adm/CreateNewUserPage.php
index e479ed5..62ed3ca 100644
--- a/adm/CreateNewUserPage.php
+++ b/adm/CreateNewUserPage.php
@@ -1,32 +1,18 @@
\ No newline at end of file
diff --git a/adm/DataBaseViewPage.php b/adm/DataBaseViewPage.php
index 8053ca2..4b814b8 100644
--- a/adm/DataBaseViewPage.php
+++ b/adm/DataBaseViewPage.php
@@ -1,31 +1,17 @@
$tabla)
@@ -56,17 +42,17 @@
doquery("OPTIMIZE TABLE {$tabla}", "$tabla");
$Message = $lang['od_opt'];
$Log = "\n".$lang['log_database_title']."\n".$lang['log_the_user'].$user['username'].$lang['log_database_view'].":\n".$lang['log_data_optimize']."\n";}
-
+
if ($_POST['Repair']){
doquery("REPAIR TABLE {$tabla}", "$tabla");
$Message = $lang['od_rep'];
$Log = "\n".$lang['log_database_title']."\n".$lang['log_the_user'].$user['username'].$lang['log_database_view'].":\n".$lang['log_data_repair']."\n";}
-
+
if ($_POST['Check']){
doquery("CHECK TABLE {$tabla}", "$tabla");
$Message = $lang['od_check_ok'];
$Log = "\n".$lang['log_database_title']."\n".$lang['log_the_user'].$user['username'].$lang['log_database_view'].":\n".$lang['log_data_check']."\n";}
-
+
if (mysql_errno())
{
$parse['tabla'] .= "
";
@@ -83,9 +69,9 @@
}
}
}
-
+
LogFunction($Log, "GeneralLog", $LogCanWork);
}
-display(parsetemplate(gettemplate('adm/DataBaseViewBody'), $parse), false, '', true, false);
+display(parsetemplate(gettemplate('adm/DataBaseViewBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/ErrorPage.php b/adm/ErrorPage.php
index 2d4031d..292fa91 100644
--- a/adm/ErrorPage.php
+++ b/adm/ErrorPage.php
@@ -1,38 +1,24 @@
". $i . $lang['er_errors'] ." |
";
-
-
- if (isset($delete)){
+
+
+ if (isset($delete))
+ {
doquery("DELETE FROM {{table}} WHERE `error_id`=$delete", 'errors');
$Log .= "\n".$lang['log_errores_title']."\n";
$Log .= $lang['log_the_user'].$user['username']." ".$lang['log_delete_errors']."\n";
LogFunction($Log, "GeneralLog", $LogCanWork);
- header ("Location: ErrorPage.php");}
- elseif ($deleteall == 'yes'){
+ header ( 'location:ErrorPage.php' );
+ }
+ elseif ($deleteall == 'yes')
+ {
doquery("TRUNCATE TABLE {{table}}", 'errors');
$Log .= "\n".$lang['log_errores_title']."\n";
$Log .= $lang['log_the_user'].$user['username']." ".$lang['log_delete_all_errors']."\n";
LogFunction($Log, "GeneralLog", $LogCanWork);
- header ("Location: ErrorPage.php");}
+ header ( 'location:ErrorPage.php' );
+ }
- display(parsetemplate(gettemplate('adm/ErrorMessagesBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/ErrorMessagesBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/GlobalMessagePage.php b/adm/GlobalMessagePage.php
index 7dd80ed..e585bd2 100644
--- a/adm/GlobalMessagePage.php
+++ b/adm/GlobalMessagePage.php
@@ -1,90 +1,72 @@
0){
- $still=intval($_POST['still']);
- $ress_all = doquery("UPDATE {{table}} SET `darkmatter`=`darkmatter`+'".$still."';", 'users');
- }
- if ((isset($_POST["tresc"]) && $_POST["tresc"] != '') && (isset($_POST["temat"]) && $_POST["temat"] != ''))
- {
- $sq = doquery("SELECT `id`,`username` FROM {{table}}", "users");
- $Time = time();
- $From = "
". $ranga ." ".$user['username']."";
- $Subject = "
".$_POST['temat']."";
- $Message = "
".$_POST['tresc']."";
- $summery = 0;
+ elseif ($user['authlevel'] == 1)
+ {
+ $kolor = 'yellow';
+ $ranga = $lang['user_level'][1];
+ }
+ if ((isset($_POST["tresc"]) && $_POST["tresc"] != '') && (isset($_POST["temat"]) && $_POST["temat"] != ''))
+ {
+ $sq = doquery("SELECT `id`,`username` FROM {{table}}", "users");
+ $Time = time();
+ $From = "
". $ranga ." ".$user['username']."";
+ $Subject = "
".$_POST['temat']."";
+ $Message = "
".$_POST['tresc']."";
+ $summery = 0;
- while ($u = mysql_fetch_array($sq))
- {
- SendSimpleMessage ( $u['id'], $user['id'], $Time, 1, $From, $Subject, $Message);
- $_POST['tresc'] = str_replace(":name:",$u['username'],$_POST['tresc']);
- }
-
-
- $Log .= "\n".$lang['log_circular_message']."\n";
- $Log .= $lang['log_the_user'].$user['username'].$lang['log_message_specify'].":\n";
- $Log .= $lang['log_mes_subject'].": ".$_POST["temat"]."\n";
- $Log .= $lang['log_mes_text'].": ".$_POST["tresc"]."\n";
-
- LogFunction($Log, "GeneralLog", $LogCanWork);
-
- $parse['display'] = "
".$lang['ma_message_sended']." |
---|
";
- }
- else
- {
- $parse['display'] = "
".$lang['ma_subject_needed']." |
---|
";
- }
- }
-
-
-display(parsetemplate(gettemplate('adm/GlobalMessageBody'), $parse), false,'', true, false);
+ while ($u = mysql_fetch_array($sq))
+ {
+ SendSimpleMessage ( $u['id'], $user['id'], $Time, 1, $From, $Subject, $Message);
+ $_POST['tresc'] = str_replace(":name:",$u['username'],$_POST['tresc']);
+ }
+
+
+ $Log .= "\n".$lang['log_circular_message']."\n";
+ $Log .= $lang['log_the_user'].$user['username'].$lang['log_message_specify'].":\n";
+ $Log .= $lang['log_mes_subject'].": ".$_POST["temat"]."\n";
+ $Log .= $lang['log_mes_text'].": ".$_POST["tresc"]."\n";
+
+ LogFunction($Log, "GeneralLog", $LogCanWork);
+
+ $parse['display'] = "
".$lang['ma_message_sended']." |
---|
";
+ }
+ else
+ {
+ $parse['display'] = "
".$lang['ma_subject_needed']." |
---|
";
+ }
+ }
+
+
+display(parsetemplate(gettemplate('adm/GlobalMessageBody'), $parse), FALSE,'', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/Log/BuildingsLog.php b/adm/Log/BuildingsLog.php
index 87fc606..cc96e94 100644
--- a/adm/Log/BuildingsLog.php
+++ b/adm/Log/BuildingsLog.php
@@ -1,24 +1,24 @@
-Èãðîê admin óäàëèòü:
-Ðóäíèê ïî äîáû÷å ìåòàëëà: 0
-Ðóäíèê ïî äîáû÷å êðèñòàëëà: 0
-Ñèíòåçàòîð äåéòåðèÿ: 0
-Ñîëíå÷íàÿ ýëåêòðîñòàíöèÿ: 0
-Òåðìîÿäåðíûé ðåàêòîð: 0
-Ôàáðèêà ðîáîòîâ: 20
-Ôàáðèêà íàíèòîâ: 0
-Âåðôü: 0
-Õðàíèëèùå ìåòàëîâ: 0
-Õðàíèëèùå êðåñòàëîâ: 0
-Åìêîñòü äëÿ äåéòåðèÿ: 0
-Èññëåäîâàòåëüñêàÿ ëàáîðàòîðèÿ: 0
-Òåðàôîðìåðû: 0
-Ñêëàä Àëüÿíñà: 0
-Ðàêåòíàÿ øàõòà: 0
-Ëóíàÿ áàçà: 0
-Ñåíñîðíàÿ ôàëàíãà: 0
-Ïðûøêîâûå âðàòà: 0
-ê ïëàíåòå ñ ID: 1
-Operation on: 25-08-2010 21:59:39
-43
-23:10
+El usuario lucky agrego:
+Mina de metal: 0
+Mina de cristal: 0
+Sintetizador de deuterio: 0
+Planta de energía solar: 0
+Planta de fusión: 0
+Fábrica de Robots: 0
+Fábrica de Nanobots: 0
+Hangar: 0
+Almacén de Metal: 0
+Almacén de Cristal: 0
+Contenedor de deuterio: 0
+Laboratorio de investigación: 0
+Terraformer: 0
+Depósito de la Alianza: 0
+Silo: 0
+Base lunar: 1
+Phalanx: 1
+Salto cuántico: 1
+al planeta con el ID: 4
+Operación realizada el: 04-01-2012 18:14:07
+
+:39:55
diff --git a/adm/Log/ConfigLog.php b/adm/Log/ConfigLog.php
index 8aff876..e8ab058 100644
--- a/adm/Log/ConfigLog.php
+++ b/adm/Log/ConfigLog.php
@@ -1,10 +1,11 @@
-Èãðîê admin has changed the parameters of statistics:
-The administration may be in the ranking?:
-Operation on: 23-08-2010 00:11:16
-zada el: 15-08-2010 20:08:38
-peración realizada el: 15-08-2010 19:55:09
-d de flota : x1
+El usuario cambio la siguiente configuración:
+¿Servidor cerrado? :
+¿Modo DEBUG activado? :
+Nombre del juego : XG Proyect
+URL del foro : http://www.xgproyect.net/
+Velocidad del juego : x1
+Velocidad de flota : x1
Velocidad de producción : x1
Campos iniciales : 163
Básico de metal por hora : 20
@@ -18,6 +19,4 @@
¿Protección contra novatos activado? :
Tiempo de protección contra novato : 5000
Limite de puntos para la protección de novato : 5
-Operación realizada el: 04-08-2010 08:50:06
-:50
-:55
+Operación realizada el: 20-12-2011 22:17:36
diff --git a/adm/Log/DefensesLog.php b/adm/Log/DefensesLog.php
deleted file mode 100644
index 3e96ad5..0000000
--- a/adm/Log/DefensesLog.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
-Èãðîê admin äàáàâèòü:
-Ðàêåòíàÿ óñòàíîâêà: 0
-Ëåãêèé ëàçåð: 0
-Òÿæ¸ëûé ëàçåð: 0
-Ïóøêà Ãàóññà: 0
-Èîííîå îðóäèå: 0
-Ïëàçìåííîå îðóäèå: 0
-Ìàëûé ùèòîâîé êóïîë: 0
-Áîëüøîé ùèòîâîé êóïîë: 0
-Íåéòðîííûé êóïîë: 0
-Ðàêåòà-ïåðåõâàò÷èê: 0
-Ìåæïëàíåòíàÿ ðàêåòà: 0
-ê ïëàíåòå ñ ID: 1
-Operation on: 25-08-2010 22:54:39
diff --git a/adm/Log/GeneralLog.php b/adm/Log/GeneralLog.php
index f9174c5..cb55979 100644
--- a/adm/Log/GeneralLog.php
+++ b/adm/Log/GeneralLog.php
@@ -1,10 +1,10 @@
-
||| LIST OF ERRORS |||
-Èãðîê admin has removed an error
-Operation on: 25-08-2010 23:02:54
-guientes especificaciones:
-Razón: Estoy haciendo una prueba.
-el: 15-08-2010 19:43:52
-hasta el: 15-08-2010 19:44:52
+
||| LISTA DE ERRORES |||
+El usuario lucky ha borrado todos los mensajes de error
+Operación realizada el: 05-01-2012 04:16:21
+: 23-11-2011 01:45:07
+5
+21:15:04
+hasta el: 04-10-2011 21:15:04
¿En modo vacaciones?
-Operación realizada el: 15-08-2010 19:43:52
+Operación realizada el: 03-10-2011 21:15:04
diff --git a/adm/Log/OfficierLog.php b/adm/Log/OfficierLog.php
index e69de29..ab8dc53 100644
--- a/adm/Log/OfficierLog.php
+++ b/adm/Log/OfficierLog.php
@@ -0,0 +1,8 @@
+
+El usuario lucky borro:
+Geólogo: 1
+Almirante: 1
+Ingeniero: 1
+Tecnócrata: 1
+al usuario con el ID: 1
+Operación realizada el: 23-11-2011 01:48:57
diff --git a/adm/Log/PersonalLog.php b/adm/Log/PersonalLog.php
deleted file mode 100644
index e61f8bf..0000000
--- a/adm/Log/PersonalLog.php
+++ /dev/null
@@ -1,4 +0,0 @@
-
-El usuario lucky modifico los siguientes datos:
-al usuario con el ID: 1
-Operación realizada el: 25-02-2010 19:49:01
diff --git a/adm/Log/ResearchLog.php b/adm/Log/ResearchLog.php
index a5083b4..6c06a07 100644
--- a/adm/Log/ResearchLog.php
+++ b/adm/Log/ResearchLog.php
@@ -1,21 +1,22 @@
-Èãðîê admin äàáàâèòü:
-Øïèîíñêàÿ Òåõíîëîãèÿ: 0
-Êîìïüþòåðíàÿ òåõíîëîãèÿ: 0
-Îðóæåéíàÿ òåõíîëîãèÿ: 0
-Ùèòîâàÿ òåõíîëîãèÿ: 0
-Òåõíîëîãèÿ çàùèòû êîñìè÷åñêèõ àïïàðàòîâ: 0
-Ýíåðãåòè÷åñêàÿ òåõíîëîãèÿ: 0
-Ãèïåðïðîñòðàíñòâåííàÿ òåõíîëîãèÿ: 0
-Ðàêåòíûé äâèãàòåëü: 0
-Èìïóëüñíûé äâèãàòåëü: 0
-Ãèïåðïðîñòðàíñòâåííûé äâèãàòåëü: 0
-Ëàçåðíàÿ òåõíîëîãèÿ: 0
-Èîííàÿ òåõíîëîãèÿ: 0
-Ïëàçìåííàÿ òåõíîëîãèÿ: 0
-Ìåæãàëàêòè÷åñêàÿ íàó÷íî-èññëåäîâàòåëüñêàÿ ñåòü: 0
-Ýêñïåäèöèîííàÿ òåõíîëîãèÿ: 0
-Àòîìíàÿ òåõíîëîãèÿ: 3
-Ãðàâèòàöèîííàÿ òåõíîëîãèÿ: 0
-ê èãðîêó ñ ID: 1
-Operation on: 25-08-2010 23:10:11
+El usuario lucky agrego:
+Tecnología de espionaje: 0
+Tecnología de computación: 0
+Tecnología militar: 0
+Tecnología de defensa: 0
+Tecnología de blindaje: 0
+Tecnología de energía: 0
+Tecnología de hiperespacio: 0
+Motor de combustión: 0
+Motor de impulso: 0
+Propulsor hiperespacial: 0
+Tecnología láser: 0
+Tecnología iónica: 0
+Tecnología de plasma: 0
+Red de investigación intergaláctica: 0
+Tecnología de expedicion: 0
+Tecnología de gravitón: 1
+al usuario con el ID: 1
+Operación realizada el: 20-12-2011 19:51:16
+6
+:12
diff --git a/adm/Log/ResourcesLog.php b/adm/Log/ResourcesLog.php
index be740a7..9ff7618 100644
--- a/adm/Log/ResourcesLog.php
+++ b/adm/Log/ResourcesLog.php
@@ -1,11 +1,9 @@
-Èãðîê admin äàáàâèòü:
-Ìåòàë: 1000000
-Êðèñòàëû: 1000000
-Äåéòåðèé: 1000000
-ê ïëàíåòå ñ ID: 1
-and Òåìíàÿ ìàòåðèÿ: 0
-ê èãðîêó ñ ID: 0
-Operation on: 24-08-2010 23:38:40
-10 19:56:58
-42
+El usuario lucky agrego:
+Metal: 1000000
+Cristal: 1000000
+Deuterio: 1000000
+al planeta con el ID: 1
+y Materia oscura: 0
+al usuario con el ID: 0
+Operación realizada el: 21-12-2011 12:05:03
diff --git a/adm/Log/ShipsLog.php b/adm/Log/ShipsLog.php
index ff44edd..55214f9 100644
--- a/adm/Log/ShipsLog.php
+++ b/adm/Log/ShipsLog.php
@@ -1,12 +1,12 @@
El usuario lucky agrego:
-Nave pequeña de carga: 1000
-Nave grande de carga: 1000
-Cazador ligero: 1000
-Cazador pesado: 1000
-Crucero: 1000
-Nave de batalla: 1000
-Colonizador: 1000
+Nave pequeña de carga: 10
+Nave grande de carga: 10
+Cazador ligero: 10
+Cazador pesado: 10
+Crucero: 0
+Nave de batalla: 0
+Colonizador: 0
Reciclador: 0
Sonda de espionaje: 0
Bombardero: 0
@@ -14,7 +14,5 @@
Destructor: 0
Estrella de la muerte: 0
Acorazado: 0
-Supernova: 0
al planeta con el ID: 1
-Operación realizada el: 15-08-2010 19:59:41
- el: 27-02-2010 15:25:06
+Operación realizada el: 06-12-2011 20:52:44
diff --git a/styles/skins/New-Year!/gebaeude/index.html b/adm/Log/index.html
similarity index 100%
rename from styles/skins/New-Year!/gebaeude/index.html
rename to adm/Log/index.html
diff --git a/adm/LogToolPage.php b/adm/LogToolPage.php
index 4b3f9e9..13fda36 100644
--- a/adm/LogToolPage.php
+++ b/adm/LogToolPage.php
@@ -1,36 +1,22 @@
\ No newline at end of file
diff --git a/adm/MakerPage.php b/adm/MakerPage.php
index a9de795..e8e6c2c 100644
--- a/adm/MakerPage.php
+++ b/adm/MakerPage.php
@@ -1,31 +1,17 @@
".$lang['only_numbers']." | ";
}
- $QueryFind = doquery("SELECT `id_level` FROM {{table}} WHERE `id` = '".$PlanetID."'", "planets", true);
+ $QueryFind = doquery("SELECT `id_level` FROM {{table}} WHERE `id` = '".$PlanetID."'", "planets", TRUE);
$QryInsertMoonInPlanet = "INSERT INTO {{table}} SET ";
$QryInsertMoonInPlanet .= "`name` = '".$MoonName."', ";
@@ -233,7 +219,7 @@
$QryGetMoonIdFromLunas .= "`system` = '". $System ."' AND ";
$QryGetMoonIdFromLunas .= "`planet` = '". $Planet ."' AND ";
$QryGetMoonIdFromLunas .= "`planet_type` = '3';";
- $PlanetRow = doquery( $QryGetMoonIdFromLunas , 'planets', true);
+ $PlanetRow = doquery( $QryGetMoonIdFromLunas , 'planets', TRUE);
$QryUpdateMoonInGalaxy = "UPDATE {{table}} SET ";
$QryUpdateMoonInGalaxy .= "`id_luna` = '". $PlanetRow['id'] ."', ";
@@ -260,7 +246,7 @@
{
$MoonID = $_POST['del_moon'];
- $MoonSelected = doquery("SELECT * FROM {{table}} WHERE `id` = '". $MoonID ."'", 'planets', true);
+ $MoonSelected = doquery("SELECT * FROM {{table}} WHERE `id` = '". $MoonID ."'", 'planets', TRUE);
if ($MoonSelected && is_numeric($MoonID))
{
if ($MoonSelected['planet_type'] == 3)
@@ -293,7 +279,7 @@
}
}
- display (parsetemplate(gettemplate("adm/MoonOptionsBody"), $parse), false, '', true, false);
+ display (parsetemplate(gettemplate("adm/MoonOptionsBody"), $parse), FALSE, '', TRUE, FALSE);
break;
case 'new_planet':
@@ -306,11 +292,14 @@
$system = $_POST['system'];
$planet = $_POST['planet'];
$name = $_POST['name'];
+
+
+
$field_max = $_POST['field_max'];
$i = 0;
- $QueryS = doquery("SELECT * FROM {{table}} WHERE `galaxy` = '".$galaxy."' AND `system` = '".$system."' AND `planet` = '".$planet."'", "galaxy", true);
- $QueryS2 = doquery("SELECT * FROM {{table}} WHERE `id` = '".$id."'", "users", true);
+ $QueryS = doquery("SELECT * FROM {{table}} WHERE `galaxy` = '".$galaxy."' AND `system` = '".$system."' AND `planet` = '".$planet."'", "galaxy", TRUE);
+ $QueryS2 = doquery("SELECT * FROM {{table}} WHERE `id` = '".$id."'", "users", TRUE);
if (is_numeric($_POST['id']) && isset($_POST['id']) && !$QueryS && $QueryS2)
{
if ($galaxy < 1 or $system < 1 or $planet < 1 or !is_numeric($galaxy) or !is_numeric($system) or !is_numeric($planet)){
@@ -323,8 +312,8 @@
if ($i == 0)
{
- CreateOnePlanetRecord ($galaxy, $system, $planet, $id, '', '', false) ;
- $QueryS3 = doquery("SELECT * FROM {{table}} WHERE `id_owner` = '".$id."' LIMIT 1", "planets", true);
+ CreateOnePlanetRecord ($galaxy, $system, $planet, $id, '', '', FALSE) ;
+ $QueryS3 = doquery("SELECT * FROM {{table}} WHERE `id_owner` = '".$id."' LIMIT 1", "planets", TRUE);
$QryUpdatePlanet = "UPDATE {{table}} SET ";
if ($field_max > 0 && is_numeric($field_max))
@@ -356,13 +345,13 @@
$id = $_POST['id'];
if (is_numeric($id) && isset($id))
{
- $QueryS = doquery("SELECT * FROM {{table}} WHERE `id` = '".$id."'", "planets", true);
+ $QueryS = doquery("SELECT * FROM {{table}} WHERE `id` = '".$id."'", "planets", TRUE);
if ($QueryS)
{
if ($QueryS['planet_type'] == '1')
{
- $QueryS2 = doquery("SELECT * FROM {{table}} WHERE `id_planet` = '".$id."'", "galaxy", true);
+ $QueryS2 = doquery("SELECT * FROM {{table}} WHERE `id_planet` = '".$id."'", "galaxy", TRUE);
if ($QueryS2['id_luna'] > 0)
{
doquery("DELETE FROM {{table}} WHERE `galaxy` = '".$QueryS['galaxy']."' AND `system` = '".$QueryS['system']."' AND
@@ -389,12 +378,12 @@
$parse['display2'] = $Error;
}
- display (parsetemplate(gettemplate('adm/PlanetOptionsBody'), $parse), false, '', true, false);
+ display (parsetemplate(gettemplate('adm/PlanetOptionsBody'), $parse), FALSE, '', TRUE, FALSE);
break;
default:
- display( parsetemplate(gettemplate('adm/CreatorBody'), $parse), false, '', true, false);
+ display( parsetemplate(gettemplate('adm/CreatorBody'), $parse), FALSE, '', TRUE, FALSE);
break;
}
?>
\ No newline at end of file
diff --git a/adm/MessageListPage.php b/adm/MessageListPage.php
index 4426112..5fe16ae 100644
--- a/adm/MessageListPage.php
+++ b/adm/MessageListPage.php
@@ -1,39 +1,25 @@
= 1)
$ViewPage = $CurrPage;
else
$ViewPage = 1;
+
}
- elseif ($Next == true && $_POST['page'])
+ elseif ($Next == TRUE && $_POST['page'])
{
if ($Selected < 100)
- $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}} WHERE `message_type` = '". $Selected ."';", 'messages', true);
+ $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}} WHERE `message_type` = '". $Selected ."';", 'messages', TRUE);
elseif ($Selected == 100)
- $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}}", 'messages', true);
-
+ $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}}", 'messages', TRUE);
+
$MaxPage = ceil ( ($Mess['max'] / 25) );
$CurrPage += 1;
if ($CurrPage <= $MaxPage)
@@ -72,10 +59,10 @@
else
$ViewPage = $MaxPage;
}
-
+
if ($_POST['delsel'] && $_POST['sele'] >= 1 && $_POST['page'])
{
- if ($DelSel == true)
+ if ($DelSel == TRUE)
{
foreach($_POST['sele'] as $MessId => $Value)
{
@@ -84,17 +71,17 @@
}
}
}
-
+
if ($_POST['deldat'] && $_POST['sele'] >= 1 && is_numeric($_POST['selday']) && is_numeric($_POST['selmonth']) && is_numeric($_POST['selyear'])
&& $_POST['page'])
{
- if ($DelDat == true)
+ if ($DelDat == TRUE)
{
$SelDay = $_POST['selday'];
$SelMonth = $_POST['selmonth'];
$SelYear = $_POST['selyear'];
$LimitDate = mktime (0,0,0, $SelMonth, $SelDay, $SelYear );
- if ($LimitDate != false)
+ if ($LimitDate != FALSE)
{
doquery ( "DELETE FROM {{table}} WHERE `message_time` <= '". $LimitDate ."';", 'messages');
doquery ( "DELETE FROM {{table}} WHERE `time` <= '". $LimitDate ."';", 'rw');
@@ -103,10 +90,10 @@
}
if ($Selected < 100)
- $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}} WHERE `message_type` = '". $Selected ."';", 'messages', true);
+ $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}} WHERE `message_type` = '". $Selected ."';", 'messages', TRUE);
elseif ($Selected == 100)
- $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}}", 'messages', true);
-
+ $Mess = doquery("SELECT COUNT(*) AS `max` FROM {{table}}", 'messages', TRUE);
+
$MaxPage = ceil ( ($Mess['max'] / 25) );
$parse['mlst_data_page'] = $ViewPage;
@@ -128,7 +115,8 @@
$parse['mlst_data_pages'] .= "
";
}
- $StartRec = 1 + (($ViewPage - 1) * 25);
+ $StartRec = ($ViewPage - 1) * 25;
+
if ($Selected < 100)
$Messages = doquery("SELECT * FROM {{table}} WHERE `message_type` = '". $Selected ."' ORDER BY `message_time` DESC LIMIT ". $StartRec .",25;", 'messages');
elseif ($Selected == 100)
@@ -136,15 +124,15 @@
while ($row = mysql_fetch_assoc($Messages))
{
- $OwnerData = doquery ("SELECT `username` FROM {{table}} WHERE `id` = '". $row['message_owner'] ."';", 'users',true);
+ $OwnerData = doquery ("SELECT `username` FROM {{table}} WHERE `id` = '". $row['message_owner'] ."';", 'users',TRUE);
$bloc['mlst_id'] = $row['message_id'];
$bloc['mlst_from'] = $row['message_from'];
$bloc['mlst_to'] = $OwnerData['username'] ." ".$lang['input_id'].":". $row['message_owner'];
$bloc['mlst_subject'] = $row['message_subject'];
$bloc['mlst_text'] = $row['message_text'];
- $bloc['mlst_time'] = gmdate ("d/M/y H:i:s", $row['message_time'] );
+ $bloc['mlst_time'] = date ("d/M/y H:i:s", $row['message_time'] );
$parse['mlst_data_rows'] .= parsetemplate(gettemplate('adm/MessageListRows'), $bloc);
}
- display (parsetemplate(gettemplate('adm/MessageListBody'), $parse), false, '', true, false);
+ display (parsetemplate(gettemplate('adm/MessageListBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/Moderation.php b/adm/Moderation.php
index aaa1e65..33b77c7 100644
--- a/adm/Moderation.php
+++ b/adm/Moderation.php
@@ -1,32 +1,18 @@
'.$lang['ad_authlevel_succes'].' | ';
- display (parsetemplate(gettemplate("adm/AuthlevelBody"), $parse), false, '', true, false);
+ display (parsetemplate(gettemplate("adm/AuthlevelBody"), $parse), FALSE, '', TRUE, FALSE);
}
else
{
diff --git a/adm/MoonListPage.php b/adm/MoonListPage.php
index 1fe1e08..5142f00 100644
--- a/adm/MoonListPage.php
+++ b/adm/MoonListPage.php
@@ -1,32 +1,18 @@
". $lang['mt_there_are'] . $i . $lang['mt_moons'] ." | ";
- display(parsetemplate(gettemplate('adm/MoonListBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/MoonListBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/MoonOptionsPage.php b/adm/MoonOptionsPage.php
index 6ec9b94..993afea 100644
--- a/adm/MoonOptionsPage.php
+++ b/adm/MoonOptionsPage.php
@@ -1,32 +1,18 @@
\ No newline at end of file
diff --git a/adm/OnlineUsersPage.php b/adm/OnlineUsersPage.php
index 1daddb4..2a902aa 100644
--- a/adm/OnlineUsersPage.php
+++ b/adm/OnlineUsersPage.php
@@ -1,32 +1,18 @@
\ No newline at end of file
diff --git a/adm/OverviewPage.php b/adm/OverviewPage.php
index f0c2a51..831dc69 100644
--- a/adm/OverviewPage.php
+++ b/adm/OverviewPage.php
@@ -1,56 +1,40 @@
$game_config['VERSION'])
+ if ( str_replace ( '.' , '' , $current ) > str_replace ( '.' , '' , read_config ( 'version' ) ) )
{
- return true;
+ return TRUE;
}
else
{
- return false;
+ return FALSE;
}
}
}
$parse = $lang;
-if(file_exists($xgp_root . 'install/') && defined('IN_ADMIN'))
+if(file_exists(XGP_ROOT . 'install/') && defined('IN_ADMIN'))
{
$Message .= "
".$lang['ow_install_file_detected']."";
$error++;
@@ -64,7 +48,7 @@ function check_updates()
$error++;
}
- $Errors = doquery("SELECT COUNT(*) AS `errors` FROM {{table}} WHERE 1;", 'errors', true);
+ $Errors = doquery("SELECT COUNT(*) AS `errors` FROM {{table}} WHERE 1;", 'errors', TRUE);
if($Errors['errors'] != 0)
{
@@ -90,5 +74,5 @@ function check_updates()
}
-display( parsetemplate(gettemplate('adm/OverviewBody'), $parse), false, '', true, false);
+display( parsetemplate(gettemplate('adm/OverviewBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/PassEncripterPage.php b/adm/PassEncripterPage.php
index fe8dbeb..7471b8f 100644
--- a/adm/PassEncripterPage.php
+++ b/adm/PassEncripterPage.php
@@ -1,31 +1,18 @@
\ No newline at end of file
diff --git a/adm/PlanetListPage.php b/adm/PlanetListPage.php
index bc94611..4527fad 100644
--- a/adm/PlanetListPage.php
+++ b/adm/PlanetListPage.php
@@ -1,32 +1,18 @@
". $lang['pl_there_are'] . $i . $lang['pl_planets'] ." | ";
- display(parsetemplate(gettemplate('adm/PlanetListBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/PlanetListBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/PlanetsOptionsPage.php b/adm/PlanetsOptionsPage.php
index 941dc72..f09eb9f 100644
--- a/adm/PlanetsOptionsPage.php
+++ b/adm/PlanetsOptionsPage.php
@@ -1,32 +1,18 @@
'.$lang['po_complete_all'].' | ';
$i++;}
+
if ($galaxy > MAX_GALAXY_IN_WORLD or $system > MAX_SYSTEM_IN_GALAXY or $planet > MAX_PLANET_IN_SYSTEM){
$Error .= '
'.$lang['po_complete_all2'].' |
---|
';
$i++;}
if ($i == 0)
{
- CreateOnePlanetRecord ($galaxy, $system, $planet, $id, '', '', false) ;
- $QueryS3 = doquery("SELECT * FROM {{table}} WHERE `id_owner` = '".$id."'", "planets", true);
+ CreateOnePlanetRecord ($galaxy, $system, $planet, $id, '', '', FALSE) ;
+ $QueryS3 = doquery("SELECT * FROM {{table}} WHERE `id_owner` = '".$id."'", "planets", TRUE);
doquery("UPDATE {{table}} SET `id_level` = '".$QueryS3['id_level']."' WHERE
`galaxy` = '".$galaxy."' AND `system` = '".$system."' AND `planet` = '".$planet."' AND `planet_type` = '1'", "planets");
$parse['display'] = '
'.$lang['po_complete_succes'].' |
---|
';
@@ -78,13 +65,13 @@
$id = $_POST['id'];
if (is_numeric($id) && isset($id))
{
- $QueryS = doquery("SELECT * FROM {{table}} WHERE `id` = '".$id."'", "planets", true);
+ $QueryS = doquery("SELECT * FROM {{table}} WHERE `id` = '".$id."'", "planets", TRUE);
if ($QueryS)
{
if ($QueryS['planet_type'] == '1')
{
- $QueryS2 = doquery("SELECT * FROM {{table}} WHERE `id_planet` = '".$id."'", "galaxy", true);
+ $QueryS2 = doquery("SELECT * FROM {{table}} WHERE `id_planet` = '".$id."'", "galaxy", TRUE);
if ($QueryS2['id_luna'] > 0)
{
doquery("DELETE FROM {{table}} WHERE `galaxy` = '".$QueryS['galaxy']."' AND `system` = '".$QueryS['system']."' AND
@@ -113,5 +100,5 @@
}
-display (parsetemplate(gettemplate('adm/PlanetOptionsBody'), $parse), false, '', true, false);
+display (parsetemplate(gettemplate('adm/PlanetOptionsBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/QueriesPage.php b/adm/QueriesPage.php
index 51cc62b..a15246f 100644
--- a/adm/QueriesPage.php
+++ b/adm/QueriesPage.php
@@ -1,31 +1,17 @@
\ No newline at end of file
diff --git a/adm/ResetPage.php b/adm/ResetPage.php
index 00a2ce8..9a7ab04 100644
--- a/adm/ResetPage.php
+++ b/adm/ResetPage.php
@@ -1,31 +1,17 @@
$LimitTime )
{
- $UserPlanet = doquery ("SELECT `name` FROM {{table}} WHERE `id` = '". $TheUser['id_planet']."';", 'planets_s', true);
+ $UserPlanet = doquery ("SELECT `name` FROM {{table}} WHERE `id` = '". $TheUser['id_planet']."';", 'planets_s', TRUE);
if ($UserPlanet['name'] != "")
{
$Time = time();
@@ -82,12 +66,13 @@ function ResetUniverse ( $CurrentUser )
doquery( $QryInsertUser, 'users');
doquery("UPDATE {{table}} SET `bana` = '0' WHERE `id` > '1'", "users");
- $NewUser = doquery("SELECT `id` FROM {{table}} WHERE `username` = '". $TheUser['username'] ."' LIMIT 1;", 'users', true);
+ $NewUser = doquery("SELECT `id` FROM {{table}} WHERE `username` = '". $TheUser['username'] ."' LIMIT 1;", 'users', TRUE);
+
+ CreateOnePlanetRecord ($TheUser['galaxy'], $TheUser['system'], $TheUser['planet'], $NewUser['id'], $UserPlanet['name'], TRUE);
- CreateOnePlanetRecord ($TheUser['galaxy'], $TheUser['system'], $TheUser['planet'], $NewUser['id'], $UserPlanet['name'], true);
doquery("UPDATE {{table}} SET `id_level` = '".$TheUser['authlevel']."' WHERE `id_owner` = '".$NewUser['id']."'", "planets");
- $PlanetID = doquery("SELECT `id` FROM {{table}} WHERE `id_owner` = '". $NewUser['id'] ."' LIMIT 1;", 'planets', true);
+ $PlanetID = doquery("SELECT `id` FROM {{table}} WHERE `id_owner` = '". $NewUser['id'] ."' LIMIT 1;", 'planets', TRUE);
$QryUpdateUser = "UPDATE {{table}} SET ";
$QryUpdateUser .= "`id_planet` = '". $PlanetID['id'] ."', ";
@@ -99,7 +84,8 @@ function ResetUniverse ( $CurrentUser )
}
}
}
- doquery("UPDATE {{table}} SET `config_value` = '". $TransUser ."' WHERE `config_name` = 'users_amount' LIMIT 1;", 'config');
+
+ update_config ( 'users_amount' , $TransUser );
doquery("DROP TABLE {{table}}", 'planets_s');
doquery("DROP TABLE {{table}}", 'users_s');
}
@@ -114,7 +100,7 @@ function ResetUniverse ( $CurrentUser )
if ($_POST['defenses'] == 'on'){
doquery("UPDATE {{table}} SET `misil_launcher` = '0', `small_laser` = '0', `big_laser` = '0',
`gauss_canyon` = '0', `ionic_canyon` = '0', `buster_canyon` = '0',
- `small_protection_shield` = '0', `planet_protector` = '0', `big_protection_shield` = '0',
+ `small_protection_shield` = '0', `big_protection_shield` = '0',
`interceptor_misil` = '0', `interplanetary_misil` = '0'", "planets");
$Log .= $lang['log_defenses']."\n";}
@@ -123,7 +109,7 @@ function ResetUniverse ( $CurrentUser )
`heavy_hunter` = '0', `crusher` = '0', `battle_ship` = '0',
`colonizer` = '0', `recycler` = '0', `spy_sonde` = '0',
`bomber_ship` = '0', `solar_satelit` = '0', `destructor` = '0',
- `dearth_star` = '0', `battleship` = '0', `supernova` = '0'", "planets");
+ `dearth_star` = '0', `battleship` = '0'", "planets");
$Log .= $lang['log_ships']."\n";}
if ($_POST['h_d'] == 'on'){
@@ -166,8 +152,7 @@ function ResetUniverse ( $CurrentUser )
if ($_POST['ofis'] == 'on'){
doquery("UPDATE {{table}} SET `rpg_geologue` = '0', `rpg_amiral` = '0', `rpg_ingenieur` = '0',
- `rpg_technocrate` = '0', `rpg_espion` = '0', `rpg_constructeur` = '0',
- `rpg_scientifique` = '0', `rpg_commandant` = '0', `rpg_stockeur` = '0'", "users");
+ `rpg_technocrate` = '0'", "users");
$Log .= $lang['log_officiers']."\n";}
if ($_POST['inves_c'] == 'on'){
@@ -246,5 +231,5 @@ function ResetUniverse ( $CurrentUser )
}
-display(parsetemplate(gettemplate('adm/ResetBody'), $parse), false, '', true, false);
+display(parsetemplate(gettemplate('adm/ResetBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/SearchInDBPage.php b/adm/SearchInDBPage.php
index 22961cc..14a39a4 100644
--- a/adm/SearchInDBPage.php
+++ b/adm/SearchInDBPage.php
@@ -1,32 +1,18 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "users", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "users", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -150,7 +136,7 @@
{
$parse['error'] = $lang['se_no_data'];
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
@@ -202,7 +188,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "planets", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "planets", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -235,7 +221,7 @@
$s = $planet['system'];
$p = $planet['planet'];
- $QueryFiind = doquery("SELECT `id_luna` FROM {{table}} WHERE `galaxy` = '".$g."' AND `system` = '".$s."' AND `planet` = '".$p."'", "galaxy", true);
+ $QueryFiind = doquery("SELECT `id_luna` FROM {{table}} WHERE `galaxy` = '".$g."' AND `system` = '".$s."' AND `planet` = '".$p."'", "galaxy", TRUE);
if ($QueryFiind['id_luna'] != '0')
$moons = "
".$lang['se_yes']."";
@@ -254,7 +240,7 @@
$parse['table3'] = "
".$lang['se_input_hay'].$cnt.$lang['se_input_planett']." |
---|
";
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
@@ -306,7 +292,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "planets", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "planets", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -351,7 +337,7 @@
$parse['table3'] = "
".$lang['se_input_hay'].$cnt.$lang['se_input_moonn']." |
---|
";
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
// ALIANZAS ####################################################################
@@ -402,7 +388,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "alliance", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "alliance", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -448,7 +434,7 @@
$parse['table3'] = "
".$lang['se_input_hay'].$cnt.$lang['se_input_allyy']." |
---|
";
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
@@ -492,7 +478,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "users", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "users", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -544,7 +530,7 @@
$parse['table3'] = "
".$lang['se_input_hay'].$cnt.$lang['se_input_vacatii']." |
---|
";
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
@@ -588,7 +574,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "banned", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "banned", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -636,7 +622,7 @@
$parse['table3'] = "
".$lang['se_input_hay'].$cnt.$lang['se_input_susss']." |
---|
";
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
@@ -680,7 +666,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "users", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "users", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -704,6 +690,7 @@
}
else
{
+
while ($admin = mysql_fetch_array($search))
{
$id = $admin['id'];
@@ -732,7 +719,7 @@
$parse['table3'] = "
".$lang['se_input_hay'].$cnt.$lang['se_input_admm']." |
---|
";
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
@@ -774,7 +761,7 @@
';
- $QueryFind = doquery("SELECT * FROM {{table}}", "users", true);
+ $QueryFind = doquery("SELECT * FROM {{table}}", "users", TRUE);
$ORDERBY = $_POST['key_order'];
$ORDERBY2 = $_POST['key_acc'];
if (!$ORDERBY || !$QueryFind[$ORDERBY])
@@ -830,10 +817,10 @@
}
}
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
break;
default:
- display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+ display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
}
?>
\ No newline at end of file
diff --git a/adm/SearchingPage.php b/adm/SearchingPage.php
index 685ef5f..84e7936 100644
--- a/adm/SearchingPage.php
+++ b/adm/SearchingPage.php
@@ -1,31 +1,17 @@
0)
{
@@ -192,7 +178,7 @@ function MyCrazyLittleSearch($SpecifyItems, $WhereItem, $SpecifyWhere, $SpecialS
if($_GET['search'] == 'planet')
{
- $QueryForMoons = doquery("SELECT id_luna FROM {{table}} WHERE id_planet = '".$WhileResult[0]."'", "galaxy", true);
+ $QueryForMoons = doquery("SELECT id_luna FROM {{table}} WHERE id_planet = '".$WhileResult[0]."'", "galaxy", TRUE);
(($QueryForMoons['id_luna'] > '0') ? $QueryForMoons2 = "
".$lang['one_is_yes'][1]."" : $QueryForMoons2 = $lang['one_is_yes'][0]);
$Search['LIST'] .= "
".$QueryForMoons2." | ";}
@@ -227,7 +213,7 @@ function MyCrazyLittleSearch($SpecifyItems, $WhereItem, $SpecifyWhere, $SpecialS
}
// BORRADO
-include_once($xgp_root . 'includes/functions/DeleteSelectedUser.' . $phpEx);
+include_once(XGP_ROOT . 'includes/functions/DeleteSelectedUser.php');
if ($_GET['delete'] == 'user'){
DeleteSelectedUser ($_GET['user']);
$Log .= "\n".$lang['log_searchindb_del1'].$_GET['user'].$lang['log_searchindb_del2'].$user['username']."\n";
@@ -436,5 +422,5 @@ function MyCrazyLittleSearch($SpecifyItems, $WhereItem, $SpecifyWhere, $SpecialS
$parse['TimeToCreatePage'] = $lang['se_time_of_page'].$Time_Two." ".$lang['time_seconds'];
-display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), false, '', true, false);
+display(parsetemplate(gettemplate('adm/SearchInDBBody'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/SettingsPage.php b/adm/SettingsPage.php
index cce8010..87d251a 100644
--- a/adm/SettingsPage.php
+++ b/adm/SettingsPage.php
@@ -1,44 +1,31 @@
BuildFlyingFleetTable();
-display(parsetemplate(gettemplate('adm/fleet_body'), $parse), false, '', true, false);
+display(parsetemplate(gettemplate('adm/fleet_body'), $parse), FALSE, '', TRUE, FALSE);
?>
\ No newline at end of file
diff --git a/adm/UserListPage.php b/adm/UserListPage.php
index 503dac1..344a6f8 100644
--- a/adm/UserListPage.php
+++ b/adm/UserListPage.php
@@ -1,33 +1,19 @@
\ No newline at end of file
diff --git a/adm/chat.php b/adm/chat.php
deleted file mode 100644
index 598d79d..0000000
--- a/adm/chat.php
+++ /dev/null
@@ -1,44 +0,0 @@
-= 3) {
- // Systeme de suppression
- $parse = $lang;
- extract($_GET);
- if (isset($delete)) {
- doquery("DELETE FROM {{table}} WHERE `messageid`=".$delete, 'chat');
- } elseif ($deleteall == 'yes') {
- doquery("DELETE FROM {{table}}", 'chat');
- }
-
- // Affichage des messages
- $query = doquery("SELECT * FROM {{table}} ORDER BY messageid DESC LIMIT 25", 'chat');
- $i = 0;
- while ($e = mysql_fetch_array($query)) {
- $i++;
- $parse['msg_list'] .= stripslashes("
{$e['messageid']} | " .
- "![](\"/styles/images/r1.png\") | " .
- "{$e['user']} | " .
- "" . date('d/m/Y - h:i:s', $e['timestamp']) . " |
" .
- "" . nl2br($e['message']) . " |
");
- }
- $parse['msg_list'] .= "
Ñîîáùåíèé {$i} ".$lang['ch_nbs']." |
---|
";
-
- display(parsetemplate(gettemplate('adm/chat_body'), $parse),false, '', true, false);
- } else {
- message ($lang['not_enough_permissions']);
- }
-?>
\ No newline at end of file
diff --git a/styles/skins/New-Year!/gfx/index.html b/adm/index.html
similarity index 100%
rename from styles/skins/New-Year!/gfx/index.html
rename to adm/index.html
diff --git a/adm/index.php b/adm/index.php
index b52d504..41a7d90 100644
--- a/adm/index.php
+++ b/adm/index.php
@@ -1,38 +1,24 @@
\n";
$page .= "\n";
- $page .= "
\n";
- $page .= "
". $game_config['game_name'] ." - Admin CP\n";
+ $page .= "
\n";
+ $page .= "
". read_config ( 'game_name' ) ." - Admin CP\n";
$page .= "
\n";
$page .= "\n";
$page .= "