| Server IP : 50.21.180.56 / Your IP : 216.73.216.208 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67922704 ( 67922704) PHP Version : 8.5.13 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/thread-self/cwd/wp-content/plugins_old/dhtmlxspreadsheet/codebase/ |
Upload File : |
<?php
/**
(c) DHTMLX Ltd, 2011
Licensing: You allowed to use this component for free under GPL or you need to obtain Commercial/Enterprise license to use it in non-GPL project
Contact: sales@dhtmlx.com
**/
require_once('php/request.php');
$request = new Request();
$js_depends = Array(
'dhtmlx_core.js',
'dhtmlxspreadsheet.js',
'dhtmlxgrid_shcell.js',
'dhtmlxgrid_borderselection.js',
'dhtmlxsh_buffer.js',
'dhtmlxsh_css.js',
'dhtmlxsh_loader.js',
'dhtmlxsh_config.js',
'dhtmlxsh_headedit.js',
'dhtmlxsh_mathhint.js',
'dhtmlxsh_modal.js',
'dhtmlxsh_selection.js',
'dhtmlxsh_undo.js',
'dhtmlxsh_context.js',
'dhtmlxsh_export.js',
'dhtmlxsh_keys.js'
);
switch ($request->get('load')) {
case 'js':
$js = "";
for ($i = 0; $i < count($js_depends); $i++)
$js .= file_get_contents($js_depends[$i])."\n";
$js = str_replace("//#", "//", $js);
echo $js;
break;
default:
$options = $request->get_all();
$protocol = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) ? 'https://' : 'http://';
$port = ($_SERVER['SERVER_PORT'] == '80') ? '' : ':'.$_SERVER['SERVER_PORT'];
$options['dhx_rel_path'] = $protocol.$_SERVER['SERVER_NAME'].$port.pathinfo($_SERVER['PHP_SELF'], PATHINFO_DIRNAME).'/';
$ln = "\n";
$tab = "\t";
$cfg = Array();
foreach($options as $k => $v) {
if ($v === 'true')
$cfg[] = $ln.$tab.$k.": true";
else if ($v === 'false')
$cfg[] = $ln.$tab.$k.": false";
else
$cfg[] = $ln.$tab.$k.": '".$v."'";
}
$cfg = "var cfg = {".implode(",", $cfg).$ln."}".$ln;
echo $cfg;
echo file_get_contents("loader.js");
break;
}
?>