Не активные игроки
Nombre: Inactivos
Автор: 5aMu
Changelog:
Screenshots:
Описание:
По скрину видно что даёт мод, список и время не активных,так же мелкие данные.
СКРИПТ НЕ ПЕРЕВЕДЁН!
Установка:
В теле создаём inactivos.php:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Скрытая информация: код <input type="button" value="Показать" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Скрыть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Показать'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
</div>
</div>
</div>
В game.php:
Куда считаем нужным
В админке в меню, выбераем куда внести и пишем ссылку типа:
Взято с XGP
Nombre: Inactivos
Автор: 5aMu
Changelog:
Код:
0.0.4 - адаптация подскины.-
0.0.3 - вывод в меню.-
0.0.2 - мелкие баги.-
0.0.1 - релиз.-
Screenshots:

Описание:
По скрину видно что даёт мод, список и время не активных,так же мелкие данные.
СКРИПТ НЕ ПЕРЕВЕДЁН!
Установка:
В теле создаём inactivos.php:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Скрытая информация: код <input type="button" value="Показать" style="width:60px;font-size:10px;margin:0px;padding:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Скрыть'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Показать'; }">
</div>
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">
Код:
<?php
/**
* Inactivos.php
*
* [url]www.waterspace.info[/url]
* Desarrollado por 5aMu para XGProyect
*/
if(!defined('INSIDE')){ die(header("location:../../"));}
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
$fecha_actual = time();
$fecha_tope = time();
$i = 0;
$Tope=30;
$Page ='<div id="content">'.MuestraFormulario().'';
if (isset($_POST['dias'])==true ) { $Tope =$_POST['dias']; }
$Page .= '
<table><tr><th>Jugadores Inactivos</th><th> Tiempo desde su Ingreso(días) </th><th> Fecha de Ingreso </th><th> Ъltimo Acceso </th><th>En Vacaciones</th><th> Baneado </th></tr>';
for ($dia=$Tope;$dia>2;$dia--) {
$fecha1=$fecha_actual-(24*60*60*$dia);
$fecha2 = $fecha_actual-(24*60*60*($dia+1));
$query = doquery("SELECT * FROM {{table}} WHERE onlinetime <= ".$fecha1." and onlinetime >".$fecha2." ", "users");
while ($u = mysql_fetch_array($query)) {
$Vacaciones = "No";
$Baneado= "No";
if ($u[urlaubs_modus]==1) {
$Dias =date("d",time()-($u[urlaubs_modus_time]-172800));
$Vacas++;
$Vacaciones = "[url="'#'"]<tr><td align=left><font color=white>Inicio Vacaciones: <font></td><td align=right><font color=white>".date("d/m/Y",($u[urlaubs_modus_time]-172800))."<font></td></tr><tr><td>Tiempo en vacaciones</td><td align=right>".$Dias."</td></tr></table>');\" onmouseout=\"return nd();\" >[b]Si[/b][/url]";
}
if ($u[bana]==1) {$Baneado="[b]Si[/b]";$Ban++;}
$DesdeIngreso=date("d",time()-$u[register_time]);
$Page .="<tr><td style='text-align:center;'>".$u[username]."</td><td style='text-align:center;'>".$DesdeIngreso."</td><td style='text-align:center;'>".date("d/m/Y",$u[register_time])."</td><td style='text-align:center;'>".date("d/m/Y",$u[onlinetime])."</td><td align='center'>".$Vacaciones."</td><td align='center'>".$Baneado."</td></tr>";
$i++;
}
}
$Page .="<tr><th class='b' colspan='6' align='center'><table><tr><td align='right'>Inactivos </td><td align='right'>".($i-$Vacas-$Ban)."</td></tr><tr><td align='right'>Vacaciones </td><td align='right'>".$Vacas."</td></tr><tr><td align='right'> Baneados </td><td align='right'>".$Ban."</td></tr><tr><td align='right'>Total </td><td align='right'>".$i."</tr></td></th></tr></table>
";
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
$Page .= "
<center>Generado en: ".$totaltime."</center></div>";
display( $Page, '', false, '', true);
return $formulario;
function MuestraFormulario() {
$formulario = '<form name"Inactivos" method="POST" action="Inactivos.php">';
}
?>
</div>
</div>
В game.php:
Куда считаем нужным
Код:
// ----------------------------------------------------------------------------------------------------------------------------------------------//
case'inactivos':
include_once($xgp_root . 'inactivos.' . $phpEx);
inactivos($user, $planetrow);
break;
В админке в меню, выбераем куда внести и пишем ссылку типа:
Код:
game.php?page=inactivos
Взято с XGP