Jump to content

Shogun

Premium
  • Posts

    1361
  • Joined

  • Days Won

    77
  • Feedback

    0%

Posts posted by Shogun

  1.  

    For me too. Especially with Root , uiscript and locale because they are .py and .pyc as well , and you need to use Wildcard and my pc doesnt Pack those folders correctly. If someone Pack the eix and epk files you can still open them ( dont worry)

    If that's the case then i wonder why so much complication, giving us 'pieces' of client instead of a solid one.

    Please Shogun, post the client in full compiled version

     

     

    I don't have time to test them or give you support for them, I'm sorry.

  2. What I always wanted as a player is, the same game but deeper. Newer technologies let us do things that were not possible or too demanding in 2004 and we have tons of examples of gameplay variations in other mmorpgs. I want to be able to swin, or jump. I want enemies that display some sort of AI. I want grass (lol). I hope as people work more with the source we see more things that break the mould of oldschool/newschool.

    • Love 10
  3. In the third part of this tutorial we will learn how to see the user's original IP on nginx logs instead of Cloudflare's.

     

    First we have to rebuild nginx with the REAL IP module:

     

    portsnap fetch update

    cd /usr/ports/www/nginx

    make config build reinstall clean

     

    In the configuration screen navigate to the REAL IP module with down arrow and mark it for installation with the space bar. Then press enter to proceed with the building.

     

    Once it's finished we can add the following lines in /usr/local/etc/nginx/nginx.conf in the http part:

     

            set_real_ip_from   204.93.240.0/24;
            set_real_ip_from   204.93.177.0/24;
            set_real_ip_from   199.27.128.0/21;
            set_real_ip_from   173.245.48.0/20;
            set_real_ip_from   103.21.244.0/22;
            set_real_ip_from   103.22.200.0/22;
            set_real_ip_from   103.31.4.0/22;
            set_real_ip_from   141.101.64.0/18;
            set_real_ip_from   108.162.192.0/18;
            set_real_ip_from   190.93.240.0/20;
            set_real_ip_from   188.114.96.0/20;
            set_real_ip_from   197.234.240.0/22;
            set_real_ip_from   198.41.128.0/17;
            set_real_ip_from   162.158.0.0/15;
            set_real_ip_from   2400:cb00::/32;
            set_real_ip_from   2606:4700::/32;
            set_real_ip_from   2803:f800::/32;
            set_real_ip_from   2405:b500::/32;
            set_real_ip_from   2405:8100::/32;
            real_ip_header     CF-Connecting-IP;
     
    Thereafter, we can restart nginx:
     
    service nginx restart
     
    Our visitors will appear with their real IP in the server logs now. If you are writing php code, remember to use $_SERVER["HTTP_CF_CONNECTING_IP"] instead of $_SERVER["REMOTE_ADDR"] to get the user's real IP.
    • Love 1
  4. Regarding the second...

     

    Assuming you already installed the apache php module, you need to add this in httpd.conf:

     

       <IfModule php5_module>
           DirectoryIndex index.php index.html
           AddType application/x-httpd-php .php
           AddType application/x-httpd-php-source .phps
       </IfModule>
     
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.