????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.36 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/phpsysinfo/ |
Upload File : |
<?php
/**
* compress js files and send them to the browser on the fly
*
* PHP version 5
*
* @category PHP
* @package PSI_JS
* @author Michael Cramer <BigMichi1@users.sourceforge.net>
* @copyright 2009 phpSysInfo
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @version SVN: $Id: js.php 506 2011-10-22 18:29:42Z namiltd $
* @link http://phpsysinfo.sourceforge.net
*/
/**
* application root path
*
* @var string
*/
define('APP_ROOT', dirname(__FILE__));
require_once APP_ROOT.'/includes/autoloader.inc.php';
require_once APP_ROOT.'/config.php';
$file = isset($_GET['name']) ? basename(htmlspecialchars($_GET['name'])) : null;
$plugin = isset($_GET['plugin']) ? basename(htmlspecialchars($_GET['plugin'])) : null;
if ($file != null && $plugin == null) {
if (strtolower(substr($file, 0, 6)) == 'jquery') {
$script = APP_ROOT.'/js/jQuery/'.$file.'.js';
} else {
$script = APP_ROOT.'/js/phpSysInfo/'.$file.'.js';
}
}
if ($file == null && $plugin != null) {
$script = APP_ROOT.'/plugins/'.$plugin.'/js/'.$plugin.'.js';
}
if ($file != null && $plugin != null) {
$script = APP_ROOT.'/plugins/'.$plugin.'/js/'.$file.'.js';
}
if ($script != null && file_exists($script) && is_readable($script)) {
header("content-type: application/x-javascript");
$filecontent = file_get_contents($script);
if (defined("PSI_DEBUG") && PSI_DEBUG === true) {
echo $filecontent;
} else {
if(defined("PSI_JS_COMPRESSION")) {
switch (PSI_JS_COMPRESSION) {
case "Normal":
$packer = new JavaScriptPacker($filecontent);
echo $packer->pack();
break;
case "None":
$packer = new JavaScriptPacker($filecontent,0);
echo $packer->pack();
break;
default:
echo $filecontent;
break;
}
} else {
echo $filecontent;
}
}
}
?>