mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-14 04:16:54 +01:00
Change fancybox to alertify for non-locking messages. Fix error on removing groups. Set version string in DB and config file. Update translations. Add scroll to search, users, groups and profiles results. Update to 1.0rc3
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* sysPass
|
|
*
|
|
* @author nuxsmin
|
|
* @link http://syspass.org
|
|
* @copyright 2012 Rubén Domínguez nuxsmin@syspass.org
|
|
*
|
|
* This file is part of sysPass.
|
|
*
|
|
* sysPass is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* sysPass is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
define('APP_ROOT', '..');
|
|
include_once (APP_ROOT."/inc/init.php");
|
|
|
|
SP_Util::checkReferer('GET');
|
|
|
|
$checkVersion = SP_Common::parseParams('s', 'UPDATED', FALSE, TRUE);
|
|
|
|
// Una vez por sesión
|
|
if ( ! $checkVersion ){
|
|
$_SESSION["UPDATED"] = $checkVersion = SP_Util::checkUpdates();
|
|
}
|
|
|
|
session_write_close();
|
|
|
|
if ( is_array($checkVersion) ){
|
|
echo '<a href="'.$checkVersion['url'].'" target="_blank" title="'._('Descargar nueva versión').'"><img src="imgs/update.png" /> '.$checkVersion['version'].'</a>';
|
|
} elseif ( $checkVersion == TRUE ){
|
|
echo '<img src="imgs/ok.png" title="'._('Actualizado').'"/>';
|
|
} elseif ( $checkVersion == FALSE ){
|
|
echo '!';
|
|
} |