/* Check classic admin password authentification. */
if (isset ($_POST['admin_password']) && empty($cfg['admin_http_auth_user']))
{
- if (strcmp ($cfg['admin_password'], $_POST['admin_password']) == 0)
+ if ($cfg['admin_password'] === $_POST['admin_password'])
$_SESSION['admin_auth'] = true;
else
{
{
require (JIRAFEAU_ROOT . 'lib/template/header.php');
?><h2><?php echo t('Admin interface'); ?></h2><?php
+ ?><h2>(version <?php echo JIRAFEAU_VERSION ?>)</h2><?php
?><div id = "admin">
<fieldset><legend><?php echo t('Actions');?></legend>
</form>
</table>
<form action = "<?php echo basename(__FILE__); ?>" method = "post">
- <input type = "hidden" name = "action" value = "logout"/>
- <input type = "submit" value = "<?php echo t('Logout'); ?>" />
+ <input type = "hidden" name = "action" value = "logout" />
+ <input type = "submit" value = "<?php echo t('Logout'); ?>" />
</form>
</fieldset></div><?php
}