Skip to content
This repository has been archived by the owner on Jan 1, 2018. It is now read-only.

Commit

Permalink
- Removed several notices
Browse files Browse the repository at this point in the history
- Logs cleanup
  • Loading branch information
LucasKovacs committed Jan 28, 2016
1 parent 4d18375 commit 9533d4f
Show file tree
Hide file tree
Showing 14 changed files with 1,573 additions and 1,687 deletions.
21 changes: 0 additions & 21 deletions src/2.10.9/upload/adm/Log/ConfigLog.php
Original file line number Diff line number Diff line change
@@ -1,21 +0,0 @@

El usuario lucky ha cambiado los parametros de estadisticas:
Tiempo entre actualización de estadísticas (minutos): 1
Operación realizada el: 13-10-2013 00:41:36
proyect.net/
Velocidad del juego : x1000
Velocidad de flota : x1000
Velocidad de producción : x1000
Campos iniciales : 163
Básico de metal por hora : 20
Básico de cristal por hora : 10
Básico de deuterio por hora : 0
¿Protección contra administradores activado? : No
Lenguaje : spanish
Nombre de la cookie : XGProyect
Defensas a escombros : 30%
Naves a escombros : 30%
¿Protección contra novatos activado? : No
Tiempo de protección contra novato : 5000
Limite de puntos para la protección de novato : 5
Operación realizada el: 29-06-2013 12:30:43
9 changes: 0 additions & 9 deletions src/2.10.9/upload/adm/Log/GeneralLog.php
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@

<font color=lime>||| LISTA DE ERRORES |||</font>
El usuario lucky ha borrado todos los mensajes de error
Operaci&oacute;n realizada el: 13-10-2013 00:37:48
n realizada el: 13-10-2013 00:36:17
4
el: 04-10-2011 21:15:04
¿En modo vacaciones?
Operación realizada el: 03-10-2011 21:15:04
15 changes: 0 additions & 15 deletions src/2.10.9/upload/adm/Log/ModerationLog.php
Original file line number Diff line number Diff line change
@@ -1,15 +0,0 @@

<font color=lime>||| SISTEMA DE MODERACI&oacute;N |||</font>
El usuario lucky modifico los siguientes datos:
Los moderadores podran ver...
&iquest;Herramientas?:
&iquest;Editar?:
&iquest;Ver menu de Observaci&oacute;n?:
&iquest;Configurar opciones de juego?:

Los operadores podran ver...
&iquest;Herramientas?:
&iquest;Editar?:
&iquest;Ver menu de Observaci&oacute;n?:
&iquest;Configurar opciones de juego?:
Operaci&oacute;n realizada el: 23-03-2012 22:52:41
8 changes: 0 additions & 8 deletions src/2.10.9/upload/adm/Log/OfficierLog.php
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@

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
20 changes: 0 additions & 20 deletions src/2.10.9/upload/adm/Log/ResearchLog.php
Original file line number Diff line number Diff line change
@@ -1,20 +0,0 @@

El usuario lucky agrego:
Tecnolog&iacute;a de espionaje: 10
Tecnolog&iacute;a de computaci&oacute;n: 10
Tecnolog&iacute;a militar: 10
Tecnolog&iacute;a de defensa: 10
Tecnolog&iacute;a de blindaje: 10
Tecnolog&iacute;a de energ&iacute;a: 10
Tecnolog&iacute;a de hiperespacio: 10
Motor de combusti&oacute;n: 10
Motor de impulso: 10
Propulsor hiperespacial: 10
Tecnolog&iacute;a l&aacute;ser: 10
Tecnolog&iacute;a i&oacute;nica: 10
Tecnolog&iacute;a de plasma: 10
Red de investigaci&oacute;n intergal&aacute;ctica: 10
Tecnolog&iacute;a de expedicion: 10
Tecnolog&iacute;a de gravit&oacute;n: 1
al usuario con el ID: 1
Operaci&oacute;n realizada el: 02-08-2012 14:36:59
22 changes: 0 additions & 22 deletions src/2.10.9/upload/adm/Log/ResetLog.php
Original file line number Diff line number Diff line change
@@ -1,22 +0,0 @@

El usuario lucky reseteo:
TODO EL UNIVERSO
Operaci&oacute;n realizada el: 27-04-2012 12:47:46
LUNARES
COLA DE EDIFICIOS
INVESTIGACIONES
OFICIALES
INVESTIGACIONES EN CURSO
MATERIA OSCURA
RECURSOS
NOTAS
REPORTES DE BATALLA
LISTA DE COMPA&ntilde;EROS
ALIANZAS
FLOTAS EN VUELO
LISTA DE ERRORES
USUARIOS SUSPENDIDOS
MENSAJES
ESTADISTICAS
LUNAS
Operaci&oacute;n realizada el: 27-04-2012 11:52:59
10 changes: 0 additions & 10 deletions src/2.10.9/upload/adm/Log/ResourcesLog.php
Original file line number Diff line number Diff line change
@@ -1,10 +0,0 @@

El usuario lucky agrego:
Metal: 5000000
Cristal: 5000000
Deuterio: 0
al planeta con el ID: 1
y Materia oscura: 0
al usuario con el ID: 0
Operaci&oacute;n realizada el: 16-06-2012 13:44:07
13:39:36
18 changes: 0 additions & 18 deletions src/2.10.9/upload/adm/Log/ShipsLog.php
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@

El usuario lucky agrego:
Nave peque&ntilde;a de carga: 100
Nave grande de carga: 100
Cazador ligero: 100
Cazador pesado: 100
Crucero: 100
Nave de batalla: 100
Colonizador: 100
Reciclador: 100
Sonda de espionaje: 100
Bombardero: 100
Sat&eacute;lite solar: 100
Destructor: 100
Estrella de la muerte: 100
Acorazado: 100
al planeta con el ID: 1
Operaci&oacute;n realizada el: 19-12-2013 23:29:56
226 changes: 113 additions & 113 deletions src/2.10.9/upload/adm/LogToolPage.php
Original file line number Diff line number Diff line change
@@ -1,114 +1,114 @@
<?php

/**
* @project XG Proyect
* @version 2.10.x build 0000
* @copyright Copyright (C) 2008 - 2016
*/

define('INSIDE' , TRUE);
define('INSTALL' , FALSE);
define('IN_ADMIN', TRUE);
define('XGP_ROOT', './../');

include(XGP_ROOT . 'global.php');

if ($user['authlevel'] < 1) die(message ($lang['404_page']));


$file = isset ( $_GET['file'] ) ? $_GET['file'] : NULL;
$parse = $lang;
$Archive = "Log/". $file .".php";

switch ( ( isset ( $_GET['options'] ) ? $_GET['options'] : NULL ))
{
case 'delete':
if ($user['authlevel'] != 3) die();
$FP = fopen($Archive, "w+");
fclose($FP);

message($lang['log_delete_succes'].$file, "LogToolPage.php?options=links&file=".$file."", 2);
break;

case 'edit':
if ($user['authlevel'] != 3) die();
$Fopen = fopen($Archive, "r+");

while(!feof($Fopen))
{
$parse['display'] .= fgets($Fopen);
}
fclose($Fopen);


if ($_POST['editnow'])
{
$Fopen2 = fopen($Archive, "w+");
fputs($Fopen2, $_POST['text']);
fclose($Fopen2);
message($lang['log_edit_succes'], "LogToolPage.php?options=edit&file=".$file."", 2);
}

$FileSize = filesize($Archive);
$FinalSize = $FileSize / 1000;
$parse['setsize'] = "&nbsp;&nbsp;(".$FinalSize." KB)";
$parse['setarchive'] = $file;

display (parsetemplate(gettemplate('adm/LogEditBody'), $parse), FALSE, '', TRUE, FALSE);
break;

case 'links':
$Archive = "Log/".$file.".php";
if (!file_exists($Archive))
{
fopen($Archive, "w+");
fclose(fopen($Archive, "w+"));
}


$Log = fopen($Archive, "r");


if($user['authlevel'] == 3)
{
$Excuse_me =
"<a href=\"LogToolPage.php?options=delete&file=".$file."\" onClick=\" return confirm('".$lang['log_alert']."');\">
".$lang['log_delete_link']."</a>&nbsp;
<a href=\"LogToolPage.php?options=edit&file=".$file."\">".$lang['log_edit_link']."</a>";
}
else
{
$Excuse_me = $lang['log_log_title_22'];
}
$EditAndDelete =
"<tr><td class=\"c\" colspan=2>".$Excuse_me."</td></tr>";

$parse['display'] = $EditAndDelete;
if (filesize($Archive) == 0)
{
$parse['display'] .= "<tr><th align=\"left\" colspan=2>".$lang['log_filesize_0']."</th></tr>";
}
else
{
$parse['display'] .= "<tr><th align=\"left\" colspan=2><font color=#E6E6E6>";
while(!feof($Log))
{
$parse['display'] .= fgets($Log)."<br>";
}
$parse['display'] .= "</font></th></tr>";
$parse['display'] .= $EditAndDelete;
}

fclose($Log);

$FileSize = filesize($Archive);
$FinalSize = $FileSize / 1000;
$parse['setsize'] = "&nbsp;&nbsp;(".$FinalSize." KB)";
$parse['setarchive'] = $file;
display (parsetemplate(gettemplate('adm/LogBody'), $parse), FALSE, '', TRUE, FALSE);
break;

default:
display (parsetemplate(gettemplate('adm/LogBody'), $parse), FALSE, '', TRUE, FALSE);
}
<?php

/**
* @project XG Proyect
* @version 2.10.x build 0000
* @copyright Copyright (C) 2008 - 2016
*/

define('INSIDE' , TRUE);
define('INSTALL' , FALSE);
define('IN_ADMIN', TRUE);
define('XGP_ROOT', './../');

include(XGP_ROOT . 'global.php');

if ($user['authlevel'] < 1) die(message ($lang['404_page']));


$file = isset ( $_GET['file'] ) ? $_GET['file'] : NULL;
$parse = $lang;
$Archive = "Log/". $file .".php";

switch ( ( isset ( $_GET['options'] ) ? $_GET['options'] : NULL ))
{
case 'delete':
if ($user['authlevel'] != 3) die();
$FP = fopen($Archive, "w+");
fclose($FP);

message($lang['log_delete_succes'].$file, "LogToolPage.php?options=links&file=".$file."", 2);
break;

case 'edit':
if ($user['authlevel'] != 3) die();
$Fopen = fopen($Archive, "r+");
$parse['display'] = '';
while(!feof($Fopen))
{
$parse['display'] .= fgets($Fopen);
}
fclose($Fopen);


if (isset($_POST['editnow']) && $_POST['editnow'])
{
$Fopen2 = fopen($Archive, "w+");
fputs($Fopen2, $_POST['text']);
fclose($Fopen2);
message($lang['log_edit_succes'], "LogToolPage.php?options=edit&file=".$file."", 2);
}

$FileSize = filesize($Archive);
$FinalSize = $FileSize / 1000;
$parse['setsize'] = "&nbsp;&nbsp;(".$FinalSize." KB)";
$parse['setarchive'] = $file;

display (parsetemplate(gettemplate('adm/LogEditBody'), $parse), FALSE, '', TRUE, FALSE);
break;

case 'links':
$Archive = "Log/".$file.".php";
if (!file_exists($Archive))
{
fopen($Archive, "w+");
fclose(fopen($Archive, "w+"));
}


$Log = fopen($Archive, "r");


if($user['authlevel'] == 3)
{
$Excuse_me =
"<a href=\"LogToolPage.php?options=delete&file=".$file."\" onClick=\" return confirm('".$lang['log_alert']."');\">
".$lang['log_delete_link']."</a>&nbsp;
<a href=\"LogToolPage.php?options=edit&file=".$file."\">".$lang['log_edit_link']."</a>";
}
else
{
$Excuse_me = $lang['log_log_title_22'];
}
$EditAndDelete =
"<tr><td class=\"c\" colspan=2>".$Excuse_me."</td></tr>";

$parse['display'] = $EditAndDelete;
if (filesize($Archive) == 0)
{
$parse['display'] .= "<tr><th align=\"left\" colspan=2>".$lang['log_filesize_0']."</th></tr>";
}
else
{
$parse['display'] .= "<tr><th align=\"left\" colspan=2><font color=#E6E6E6>";
while(!feof($Log))
{
$parse['display'] .= fgets($Log)."<br>";
}
$parse['display'] .= "</font></th></tr>";
$parse['display'] .= $EditAndDelete;
}

fclose($Log);

$FileSize = filesize($Archive);
$FinalSize = $FileSize / 1000;
$parse['setsize'] = "&nbsp;&nbsp;(".$FinalSize." KB)";
$parse['setarchive'] = $file;
display (parsetemplate(gettemplate('adm/LogBody'), $parse), FALSE, '', TRUE, FALSE);
break;

default:
display (parsetemplate(gettemplate('adm/LogBody'), $parse), FALSE, '', TRUE, FALSE);
}
?>
Loading

0 comments on commit 9533d4f

Please sign in to comment.