summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/nada.php
diff options
context:
space:
mode:
authoralbertogp <albertogp@uma.es>2014-01-31 10:19:48 +0000
committeralbertogp <albertogp@uma.es>2014-01-31 10:19:48 +0000
commitc4252df1df875a17e89c7551a5859e505412506e (patch)
tree6efcda4da6d96b2f80e3966bef1d17cec2baaf78 /admin/WebConsole/nada.php
parent86263067113caa1186a79afbf93cabd2a4fd4c7f (diff)
branches-version1.0-tickets
#614 - IntegraciĆ³n del ticket en la versiĆ³n 1.0 git-svn-id: https://opengnsys.es/svn/branches/version1.0@4126 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/nada.php')
-rw-r--r--admin/WebConsole/nada.php231
1 files changed, 230 insertions, 1 deletions
diff --git a/admin/WebConsole/nada.php b/admin/WebConsole/nada.php
index d12380bb..8df19673 100644
--- a/admin/WebConsole/nada.php
+++ b/admin/WebConsole/nada.php
@@ -1,9 +1,238 @@
+<?php
+include_once("./includes/ctrlacc.php");
+include_once("./idiomas/php/".$idioma."/nada_".$idioma.".php");
+// ##########################################################################################################
+// ############### PARA SABER QUE IP TIENE EL DISPOSITIVO QUE ESTA UTILIZANDO OPENGNSYS ###################
+// ##########################################################################################################
+//Para saber la IP con Proxy o sin el
+
+function getRemoteInfo () {
+ $proxy="";
+ $IP = "";
+ if (isSet($_SERVER)) {
+ if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"])) {
+ $IP = $_SERVER["HTTP_X_FORWARDED_FOR"];
+ $proxy = $_SERVER["REMOTE_ADDR"];
+ } elseif (isSet($_SERVER["HTTP_CLIENT_IP"])) {
+ $IP = $_SERVER["HTTP_CLIENT_IP"];
+ } else {
+ $IP = $_SERVER["REMOTE_ADDR"];
+ }
+ } else {
+ if ( getenv( 'HTTP_X_FORWARDED_FOR' ) ) {
+ $IP = getenv( 'HTTP_X_FORWARDED_FOR' );
+ $proxy = getenv( 'REMOTE_ADDR' );
+ } elseif ( getenv( 'HTTP_CLIENT_IP' ) ) {
+ $IP = getenv( 'HTTP_CLIENT_IP' );
+ } else {
+ $IP = getenv( 'REMOTE_ADDR' );
+ }
+ }
+ if (strstr($IP, ',')) {
+ $ips = explode(',', $IP);
+ $IP = $ips[0];
+ }
+ $RemoteInfo[0]=$IP;
+ $RemoteInfo[1]=@GetHostByAddr($IP);
+ $RemoteInfo[2]=$proxy;
+
+ return $RemoteInfo[0];
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+// ##########################################################################################################
+// ############### PARA SABER QUE TIPO DISPOSITIVO ESTA UTILIZANDO OPENGNSYS ##############################
+// ##########################################################################################################
+$device="";
+$device = strtolower($_SERVER['HTTP_USER_AGENT']);
+if(stripos($device,'iphone') == TRUE ){$device="iphone";$tipodevice="Iphone / Ipad";$ipreal=getRemoteInfo();$_SESSION["ipdevice"]=$ipreal;}
+elseif (stripos($device,'ipad') == TRUE) {$device="ipad";$tipodevice="Ipad / Iphone";$ipreal=getRemoteInfo();$_SESSION["ipdevice"]=$ipreal;}
+elseif (stripos($device,'android') == TRUE) {$device="android";$tipodevice="Movil / Tablet";$ipreal=getRemoteInfo();$_SESSION["ipdevice"]=$ipreal;}
+elseif (stripos($device,'linux') == TRUE) {$device="linux";$tipodevice="Linux";$ipreal=getRemoteInfo();$_SESSION["ipdevice"]=$ipreal;}
+elseif (stripos($device,'macintosh') == TRUE) {$device="macintosh";$tipodevice="Macintosh";$ipreal=getRemoteInfo();$_SESSION["ipdevice"]=$ipreal;}
+else{$device="0";$tipodevice="PC";}
+/////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+// ##########################################################################################################
+// ################################ PARA SABER QUE SISTEMA DEL DISPOSITIVO ################################
+// ##########################################################################################################
+$sistem="";
+$buscasistem="";
+$buscasistem=strtolower($_SERVER['HTTP_USER_AGENT']);
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// SISTEMAS WINDOWS //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscasistem,'windows nt 6.2') == TRUE ){$sistem="Windows 8";}
+if(stripos($buscasistem,'windows nt 6.1') == TRUE ){$sistem="Windows 7";}
+if(stripos($buscasistem,'windows nt 6.0') == TRUE ){$sistem="Windows Vista/Server 2008";}
+if(stripos($buscasistem,'windows nt 5.2') == TRUE ){$sistem="Windows Server 2003";}
+if(stripos($buscasistem,'windows nt 5.1') == TRUE ){$sistem="Windows XP";}
+if(stripos($buscasistem,'windows nt 5.0') == TRUE ){$sistem="Windows 2000";}
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// SISTEMAS APPLE //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscasistem,'ipad') == TRUE ){$sistem="iOS";}
+if(stripos($buscasistem,'iphone') == TRUE ){$sistem="iOS";}
+if ($device == "macintosh" ){$sistem="Mac OSX";}
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// SISTEMAS LINUX //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscasistem,'ubuntu') == TRUE ){$sistem="Ubuntu";}
+if(stripos($buscasistem,'red hat') == TRUE ){$sistem="Red Hat";}
+if(stripos($buscasistem,'centos') == TRUE ){$sistem="CentOs";}
+if(stripos($buscasistem,'suse') == TRUE ){$sistem="Open Suse";}
+if(stripos($buscasistem,'mandriva') == TRUE ){$sistem="Mandriva";}
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// SISTEMAS ANDROID //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscasistem,'android') == TRUE ){$sistem="Android";}
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ##########################################################################################################
+// ########################## PARA SABER QUE VERSION DEL SISTEMA DEL DISPOSITIVO ##########################
+// ##########################################################################################################
+$versistem="";
+$buscaversistem="";
+$buscaversistem=strtolower($_SERVER['HTTP_USER_AGENT']);
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// VERSION WINDOWS //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscaversistem,'windows nt 6.2') == TRUE ){$versistem="NT 6.2";}
+if(stripos($buscaversistem,'windows nt 6.1') == TRUE ){$versistem="NT 6.1";}
+if(stripos($buscaversistem,'windows nt 6.0') == TRUE ){$versistem="NT 6.0";}
+if(stripos($buscaversistem,'windows nt 5.2') == TRUE ){$versistem="NT 5.2";}
+if(stripos($buscaversistem,'windows nt 5.1') == TRUE ){$versistem="NT 5.1";}
+if(stripos($buscaversistem,'windows nt 5.0') == TRUE ){$versistem="NT 5.0";}
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// VERSION APPLE //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscaversistem,'os x') == TRUE ){
+$buscaversistemapple="";
+$buscaversistemapple=$_SERVER['HTTP_USER_AGENT'];
+$buscaversistemapple=str_replace("OS","OS:",$buscaversistemapple);
+$buscaversistemapple=str_replace("like",":like",$buscaversistemapple);
+$buscaversistemapple=split(":",$buscaversistemapple);
+$versistem=$buscaversistemapple[1];}
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// VERSION LINUX //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscaversistem,'linux') == TRUE ){
+$buscaversistemlinux="";
+$buscaversistemlinux=str_replace(")",";",$buscaversistem);
+$buscaversistemlinux=split(";",$buscaversistemlinux);
+$versistem=$buscaversistemlinux[3];
+}
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// VERSION ANDROID //
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+if(stripos($buscaversistem,'android') == TRUE ){
+$buscaversistemandroid="";
+$buscaversistemandroid=str_replace(")",";",$buscaversistem);
+$buscaversistemandroid=split(";",$buscaversistemandroid);
+$versistem=$buscaversistemandroid[2];
+}
+/////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ##########################################################################################################
+// ########################## PARA SABER QUE NAVEGADOR DEL SISTEMA DEL DISPOSITIVO ########################
+// ##########################################################################################################
+$buscanav="";
+$buscanav=strtolower($_SERVER['HTTP_USER_AGENT']);
+if(stripos($buscanav,'firefox') == TRUE ){$nav="Firefox";}
+if(stripos($buscanav,'safari') == TRUE ){$nav="Safari";}
+if(stripos($buscanav,'msie') == TRUE ){$nav="Internet Explorer";}
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////////////////////////////////////////
+// ##########################################################################################################
+// ########################## PARA SABER VERSION DEL NAVEGADOR DEL DISPOSITIVO ############################
+// ##########################################################################################################
+$buscavernav="";
+$buscavernav=strtolower($_SERVER['HTTP_USER_AGENT']);
+$vernav=end(explode("/",$buscavernav));
+
+//////////////////////////////////////////////////////////////////////////////////////////////////////////////
+
+
+
+?>
+
+
+<?php
+if ($device == "ipad" || $device == "iphone" || $device == "android" )
+{
+?>
<HTML>
<HEAD>
- <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+ <LINK rel="stylesheet" type="text/css" href="./estilos.css">
<SCRIPT language="javascript">
</SCRIPT>
</HEAD>
<BODY>
+
+<table width="100%" border="0">
+ <tr>
+ <td colspan="3" align="center">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="3" align="center"><SPAN align=center class=cabeceras><font size="4"><?php echo $TbMsg[0] ;?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td colspan="3" align="center"><SPAN align=center class=cabeceras><font size="4"><?php $versionfile="../doc/VERSION.txt";if (file_exists ($versionfile)){include ($versionfile);} ;?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td colspan="3" align="center">&nbsp;</td>
+ </tr>
+ <tr>
+ <td width="23%">&nbsp;</td>
+ <td width="28%"><SPAN align=center class=subcabeceras><font size="3"><?php echo $TbMsg[1] ;?></font></SPAN></td>
+ <td width="49%"><SPAN align=center class=sobrecabeceras><font size="3"><?php echo $_SESSION['ipdevice']; ?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td><SPAN align=center class=subcabeceras><font size="3"><?php echo $TbMsg[2] ;?></font></SPAN></td>
+ <td><SPAN align=center class=sobrecabeceras><font size="3"><?php echo $tipodevice; ?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td><SPAN align=center class=subcabeceras><font size="3"><?php echo $TbMsg[3] ;?></font></SPAN></td>
+ <td><SPAN align=center class=sobrecabeceras><font size="3"><?php echo $sistem; ?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td><SPAN align=center class=subcabeceras><font size="3"><?php echo $TbMsg[4] ;?></font></SPAN></td>
+ <td><SPAN align=center class=sobrecabeceras><font size="3"><?php echo $versistem; ?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td><SPAN align=center class=subcabeceras><font size="3"><?php echo $TbMsg[5] ;?></font></SPAN></td>
+ <td><SPAN align=center class=sobrecabeceras><font size="3"><?php echo $nav; ?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td><SPAN align=center class=subcabeceras><font size="3"><?php echo $TbMsg[6] ;?></font></SPAN></td>
+ <td><SPAN align=center class=sobrecabeceras><font size="3"><?php echo $vernav; ?></font></SPAN></td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ <td>&nbsp;</td>
+ </tr>
+</table>
+
+
</BODY>
</HTML>
+
+<?php } ?>