Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="content" class="clearfix">
- <link rel="stylesheet" type="text/css" href="css/stylex.css"/>
- <table width=100%>
- <tr>
- <th class="th" style="text-align: center;">HWID</th>
- <th class="th" style="text-align: center;">Usuario</th>
- <th class="th" style="text-align: center;">S.O</th>
- <th class="th" style="text-align: center;">IPv4</th>
- <th class="th" style="text-align: center;">RAM</th>
- <th class="th" style="text-align: center;">Ping</th>
- <th class="th" style="text-align: center;">Version</th>
- <th class="th" style="text-align: center;">Status</th>
- </tr>
- <?php
- $tiempo = time();
- //FUNCIONES PARA LAS CADENAS
- function after ($this, $inthat)
- {
- if (!is_bool(strpos($inthat, $this)))
- return substr($inthat, strpos($inthat,$this)+strlen($this));
- };
- function after_last ($this, $inthat)
- {
- if (!is_bool(strrevpos($inthat, $this)))
- return substr($inthat, strrevpos($inthat, $this)+strlen($this));
- };
- function before ($this, $inthat)
- {
- return substr($inthat, 0, strpos($inthat, $this));
- };
- function before_last ($this, $inthat)
- {
- return substr($inthat, 0, strrevpos($inthat, $this));
- };
- function between ($this, $that, $inthat)
- {
- return before ($that, after($this, $inthat));
- };
- $base_de_datos = file_get_contents("../base_de_datos/intrucciones.txt");
- for($posicion == false; strpos($base_de_datos, 'IP_REMOTO'); )
- {
- $id_equipo = between ('ESPECIALID', 'CONEXION_TIME', "$base_de_datos");
- $conexion_time = between (''.$id_equipo.'CONEXION_TIME', ';', "$base_de_datos");
- $ip_remoto = between (''.$id_equipo.'IP_REMOTO', ';', "$base_de_datos");
- $nombre_remoto = between (''.$id_equipo.'NOMBRE_REMOTO', ';', "$base_de_datos");
- $ping_remoto = between (''.$id_equipo.'PING_REMOTO', ';', "$base_de_datos");
- $ram_remoto = between (''.$id_equipo.'RAM_REMOTO', ';', "$base_de_datos");
- $remotoversion = between (''.$id_equipo.'VERSIONREMOTO', ';', "$base_de_datos");
- $so_remoto = between (''.$id_equipo.'SO', ';', "$base_de_datos");
- $htmlclientes = ''.$htmlclientes.'<tr>
- <td class="td" style="text-align: center;">'.$id_equipo.'</td>
- <td class="td" style="text-align: center;">'.$nombre_remoto.'</td>
- <td class="td" style="text-align: center;">'.$so_remoto.'</td>
- <td class="td" style="text-align: center;">'.$ip_remoto.'</td>
- ';
- if ($ram_remoto < 60) {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; width: 60px;">'.$ram_remoto.'%</td>';
- }elseif ($ram_remoto < 80) {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: #fbf888; width: 60px;">'.$ram_remoto.'%</td>';
- }elseif ($ram_remoto < 110) {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: red; width: 60px;">'.$ram_remoto.'%</td>';
- }
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center;">'.$ping_remoto.' ms</td>';
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center;">V'.$remotoversion.'</td>';
- $conexion_time = $conexion_time + 20;
- if ($tiempo > $conexion_time) {
- $tiempo_desconectado = $tiempo - $conexion_time;
- if ($tiempo_desconectado < 60) {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: red; width: 60px;">Desconectado ('.$tiempo_desconectado.' s.)<a href="#" onclick="window.open(\'./recovery.php?id='.$id_equipo.'\',\'targetWindow\',\'toolbar=no,location=,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=350,left=180,top=180\')" title="Enrique cabron"><img src="img/task.png" aling="bottom" height="16" wedth="16"></a></td></tr>';
- }elseif($tiempo_desconectado < 3600) {
- $tiempo_desconectado = $tiempo_desconectado / 60;
- $tiempo_desconectado = intval($tiempo_desconectado);
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: red; width: 60px;">Desconectado ('.$tiempo_desconectado.' m.)<a href="#" onclick="window.open(\'./recovery.php?id='.$id_equipo.'\',\'targetWindow\',\'toolbar=no,location=,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=350,left=180,top=180\')" title="Enrique cabron"><img src="img/task.png" aling="bottom" height="16" wedth="16"></a></td></tr>';
- }elseif($tiempo_desconectado < 86400) {
- $tiempo_desconectado = $tiempo_desconectado / 60 / 60;
- $tiempo_desconectado = intval($tiempo_desconectado);
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: red; width: 60px;">Desconectado ('.$tiempo_desconectado.' h.)<a href="#" onclick="window.open(\'./recovery.php?id='.$id_equipo.'\',\'targetWindow\',\'toolbar=no,location=,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=350,left=180,top=180\')" title="Enrique cabron"><img src="img/task.png" aling="bottom" height="16" wedth="16"></a></td></tr>';
- }elseif($tiempo_desconectado < 9999999999999999) {
- $tiempo_desconectado = $tiempo_desconectado / 60 / 60 / 24;
- $tiempo_desconectado = intval($tiempo_desconectado);
- if ($tiempo_desconectado > "7") {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: red; width: 60px;">Desconectado ('.$tiempo_desconectado.' d.)<a href="#" onclick="window.open(\'./recovery.php?id='.$id_equipo.'\',\'targetWindow\',\'toolbar=no,location=,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=350,left=180,top=180\')" title="Enrique cabron"><img src="img/task.png" aling="bottom" height="16" wedth="16"></a></td></tr>';
- } else {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: red; width: 60px;">Desconectado ('.$tiempo_desconectado.' d.)<a href="#" onclick="window.open(\'./recovery.php?id='.$id_equipo.'\',\'targetWindow\',\'toolbar=no,location=,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=350,left=180,top=180\')" title="Enrique cabron"><img src="img/task.png" aling="bottom" height="16" wedth="16"></a></td></tr>';
- }
- }
- $htmlclientes_desconectados = ''.$htmlclientes_desconectados.''.$htmlclientes.'';
- $htmlclientes = " ";
- } else {
- $htmlclientes = ''.$htmlclientes.'<td class="td" style="text-align: center; color: green; width: 60px;">Conectado<a href="#" onclick="window.open(\'./recovery.php?id='.$id_equipo.'\',\'targetWindow\',\'toolbar=no,location=,status=no,menubar=no,scrollbars=no,resizable=no,width=780,height=350,left=180,top=180\')" title="Enrique cabron"><img src="img/task.png" aling="bottom" height="16" wedth="16"></a></td></tr>';
- $htmlclientes_conectados = ''.$htmlclientes_conectados.''.$htmlclientes.'';
- $htmlclientes = " ";
- }
- $base_de_datos = after (''.$nombre_remoto.';
- ', "$base_de_datos");
- }
- $base_de_datos = file_get_contents("../base_de_datos/intrucciones.txt");
- echo $htmlclientes_conectados;
- echo $htmlclientes_desconectados;
- ?>
- </table> </div>
- <!--
- <form action="./index.php?p=clientes&borrar=si" method="POST">
- <center><input class="button-success" type="submit" value="Borrar cache" name="B1"></center>
- </form>!-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement