403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.236
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/php7.3/test/XML_RPC2/tests/XML_RPC2/xmlrpcextBackend/cachedClient/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/php7.3/test/XML_RPC2/tests/XML_RPC2/xmlrpcextBackend/cachedClient/tmpdir.inc
<?php

/*
 * This code is taken from PEAR/File from Michael Wallner <mike@php.net>
 * to avoid an extra dependency for a single function.
 *
 * LICENSE: This source file is subject to version 3.01 of the PHP license
 * that is available through the world-wide-web at the following URI:
 * http://www.php.net/license/3_01.txt.  If you did not receive a copy of
 * the PHP License and are unable to obtain it through the web, please
 * send a note to license@php.net so we can mail you a copy immediately.
 */
 
require_once('PEAR.php');
define('FILE_WIN32', defined('OS_WINDOWS') ? OS_WINDOWS : !strncasecmp(PHP_OS, 'win', 3));   

/**
 * Returns the temp directory according to either the TMP, TMPDIR, or
 * TEMP env variables. If these are not set it will also check for the
 * existence of /tmp, %WINDIR%\temp
 *
 * @static
 * @access  public
 * @return  string  The system tmp directory
 */
function tmpDir()
{
    if (FILE_WIN32) {
        if (isset($_ENV['TEMP'])) {
            return $_ENV['TEMP'];
        }
        if (isset($_ENV['TMP'])) {
            return $_ENV['TMP'];
        }
        if (isset($_ENV['windir'])) {
            return $_ENV['windir'] . '\\temp';
        }
        if (isset($_ENV['SystemRoot'])) {
            return $_ENV['SystemRoot'] . '\\temp';
        }
        if (isset($_SERVER['TEMP'])) {
            return $_SERVER['TEMP'];
        }
        if (isset($_SERVER['TMP'])) {
            return $_SERVER['TMP'];
        }
        if (isset($_SERVER['windir'])) {
            return $_SERVER['windir'] . '\\temp';
        }
        if (isset($_SERVER['SystemRoot'])) {
            return $_SERVER['SystemRoot'] . '\\temp';
        }
        return '\temp';
    }
    if (isset($_ENV['TMPDIR'])) {
        return $_ENV['TMPDIR'];
    }
    if (isset($_SERVER['TMPDIR'])) {
        return $_SERVER['TMPDIR'];
    }
    return '/tmp';
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit