Subversion Repositories ALCASAR

Rev

Rev 2250 | Rev 2272 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2250 Rev 2252
Line 1... Line 1...
1
<?php
1
<?php
2
# $Id: index.php 2250 2017-05-22 22:00:03Z tom.houdayer $
2
# $Id: index.php 2252 2017-05-23 06:53:39Z tom.houdayer $
3
#
3
#
4
# index.php for ALCASAR by Rexy
4
# index.php for ALCASAR by Rexy
5
# UI & css style by stephane ERARD
5
# UI & css style by stephane ERARD
6
# The contents of this file may be used under the terms of the GNU
6
# The contents of this file may be used under the terms of the GNU
7
# General Public License Version 2, provided that the above copyright
7
# General Public License Version 2, provided that the above copyright
Line 34... Line 34...
34
if (!$file_conf) {
34
if (!$file_conf) {
35
	exit('Error opening the file '.CONF_FILE);
35
	exit('Error opening the file '.CONF_FILE);
36
}
36
}
37
while (!feof($file_conf)) {
37
while (!feof($file_conf)) {
38
	$buffer = fgets($file_conf, 4096);
38
	$buffer = fgets($file_conf, 4096);
39
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '//')) {
39
	if ((strpos($buffer, '=') !== false) && (substr($buffer, 0, 1) !== '#')) {
40
		$tmp = explode('=', $buffer);
40
		$tmp = explode('=', $buffer);
41
		$conf[$tmp[0]] = trim($tmp[1]);
41
		$conf[$tmp[0]] = trim($tmp[1]);
42
	}
42
	}
43
}
43
}
44
fclose($file_conf);
44
fclose($file_conf);
Line 492... Line 492...
492
				document.getElementById('box_info').innerHTML = document.getElementById(param).innerHTML;
492
				document.getElementById('box_info').innerHTML = document.getElementById(param).innerHTML;
493
			}
493
			}
494
			</script>
494
			</script>
495
		<?php endif; ?>
495
		<?php endif; ?>
496
	</head>
496
	</head>
497
	<body<? (($direct_access) ? ' onload="setBoxInfoContent(\'text_conn\');"' : '') ?>>
497
	<body<?= (($direct_access) ? ' onload="setBoxInfoContent(\'text_conn\');"' : '') ?>>
498
		<?php if ($direct_access): ?>
498
		<?php if ($direct_access): ?>
499
			<div id="cadre_titre" class="titre_controle">
499
			<div id="cadre_titre" class="titre_controle">
500
				<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
500
				<p id="acces_controle" class="titre_controle"><?= $l_title ?></p>
501
				<?php if ($network_pb): ?>
501
				<?php if ($network_pb): ?>
502
					<span><?= $l_explain_net_pb ?></span>
502
					<span><?= $l_explain_net_pb ?></span>