first try to fix https://github.com/dg9vh/MMDVMHost-Dashboard/issues/51
This commit is contained in:
parent
89c871dfe3
commit
71db3237c3
3 changed files with 14 additions and 19 deletions
|
@ -34,15 +34,12 @@ $totalLH = count($lastHeard);
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var lastHeardT = $('#lastHeard').dataTable( {
|
var lastHeardT = $('#lastHeard').dataTable( {
|
||||||
"aaSorting": [[0,'desc']],
|
"aaSorting": [[0,'desc']],
|
||||||
"ajax": '<?php
|
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
|
||||||
$protocol = "http";
|
if (strpos($request,"index.php")> 0) {
|
||||||
if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443)
|
$request = substr($request,0,strpos($request,"index.php"));
|
||||||
$protocol = "https";
|
}
|
||||||
echo $protocol."://";
|
?>
|
||||||
$base_dir = __DIR__;// Absolute path to your installation, ex: /var/www/mywebsite
|
"ajax": '<?php echo $request?>/ajax.php?section=lastHeard',
|
||||||
$base_dir = substr($basedir,0,strpos($basedir,"include"));
|
|
||||||
$doc_root = preg_replace("!${_SERVER['SCRIPT_NAME']}$!", '', $_SERVER['SCRIPT_FILENAME']); # ex: /var/www
|
|
||||||
echo $_SERVER['HTTP_HOST'].preg_replace("!^${doc_root}!", '', $base_dir) ?>/ajax.php?section=lastHeard',
|
|
||||||
"deferRender": true
|
"deferRender": true
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
|
@ -34,15 +34,13 @@ $totalLH = count($lastHeard);
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var localTxT = $('#localTx').dataTable( {
|
var localTxT = $('#localTx').dataTable( {
|
||||||
"aaSorting": [[0,'desc']],
|
"aaSorting": [[0,'desc']],
|
||||||
"ajax": '<?php
|
|
||||||
$protocol = "http";
|
<?php $request = 'http' . (isset($_SERVER['HTTPS']) ? 's' : '') . '://' . "{$_SERVER['HTTP_HOST']}/{$_SERVER['REQUEST_URI']}";
|
||||||
if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443)
|
if (strpos($request,"index.php")> 0) {
|
||||||
$protocol = "https";
|
$request = substr($request,0,strpos($request,"index.php"));
|
||||||
echo $protocol."://";
|
}
|
||||||
$base_dir = __DIR__; // Absolute path to your installation, ex: /var/www/mywebsite
|
?>
|
||||||
$base_dir = substr($basedir,0,strpos($basedir,"include"));
|
"ajax": '<?php echo $request?>/ajax.php?section=localTx',
|
||||||
$doc_root = preg_replace("!${_SERVER['SCRIPT_NAME']}$!", '', $_SERVER['SCRIPT_FILENAME']); # ex: /var/www
|
|
||||||
echo $_SERVER['HTTP_HOST'].preg_replace("!^${doc_root}!", '', $base_dir) ?>/ajax.php?section=localTx',
|
|
||||||
"deferRender": true
|
"deferRender": true
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
define("VERSION", "20161012-3");
|
define("VERSION", "20161013-1");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue