<?php

/*
* BtiTracker v1.5.0 is a php tracker system for BitTorrent, easy to setup and configure.
* This tracker is a frontend for DeHackEd's tracker, aka phpBTTracker (now heavely modified). 
* Updated and Maintained by Yupy.
* Copyright (C) 2004-2014 Btiteam.org
*/
require_once CLASS_PATH . 'class.IP.php';
/* Standard variables that will be of much use instead of using functions to get them all the time wasting CPU */
vars::init();
class vars
{
    public static $ip = '';
    public static $ip2 = NULL;
    public static $packed_ip = '';
    public static $ip_type = 0;
    public static $realip = '';
    public static $realip2 = NULL;
    public static $packed_realip = '';
    public static $realip_type = 0;
    public static $timestamp = 0;
    public static $ssl = false;
    public static $base_url = '';
    public static function init()
    {
        self::$timestamp = time();
        self::$ssl = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on';
        if (isset($_SERVER['REMOTE_ADDR'])) {
            self::$realip = $_SERVER['REMOTE_ADDR'];
            self::$packed_realip = ip::type(self::$realip, self::$realip_type, self::$realip2);