#!/bin/sh

set -f

echo Content-type: text/html
echo



if [ -z $HTTP_X_FORWARDED_FOR ]
then


IP=$REMOTE_ADDR


else

IP=$HTTP_X_FORWARDED_FOR

fi

O=/var/www/maincp/var/main/opera
FILE=/var/www/maincp/var/naviga$IP
FILE1=/var/www/maincp/var/plat$IP

G=`cat $FILE`
G1=`cat $FILE1`

rm -f $FILE 
rm -f $FILE1 


if [ "$G1" == "Windows" ]
then

    if [ "$G" == "Opera" ]
    then

    TXT=`cat /var/www/html/inin.php/index4.php`

        else

        if [ "$G" == "Mozilla Firefox" ]
         then
   
         TXT=`cat /var/www/html/inin.php/index2.php`

	else

          if [ "$G" == "Microsoft Edge" ]
          then

	    TXT=`cat /var/www/html/inin.php/index5.php`
          
	    else
    

	    TXT=`cat /var/www/html/inin.php/index3.php`


	    fi
    fi
    fi   
else

    if [ "$G" == "Opera" ]
    then

    TXT=`cat /var/www/html/inin.php/index4.php`

    else

    TXT=`cat /var/www/html/inin.php/index2.php`

    fi

fi




echo $TXT
echo








rm -f $FILE 
rm -f $FILE1 




