Files
sysPass/js/functions.php
nuxsmin d95bb28a51 Fix updates checking.
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.
2013-10-28 01:43:56 +01:00

96 lines
3.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/>.
*
*/
Header("content-type: application/x-javascript");
define('APP_ROOT', '..');
if ( isset($_GET["l"]) && isset($_GET["r"]) ){
$appLang = strtolower($_GET["l"]);
$appRoot = base64_decode($_GET["r"]);
}else{
return;
}
$locale= array(
"es_es" => array('Ha ocurrido un error en la consulta',
'Ha ocurrido un error',
'Sesión finalizada',
'Archivo no seleccionado',
'Archivo no indicado',
'Gestión de Usuarios',
'Gestión de Grupos',
'Comprobando',
'Borrar la cuenta?',
'Borrar el usuario?',
'Valor no introducido',
'Valor duplicado',
'Opción no seleccionada',
'Opción añadida<BR \>Guarde la configuración para que sea efectiva',
'Opción eliminada<BR \>Guarde la configuración para que sea efectiva',
'Clave Generada',
'Nivel alto',
'Nivel medio',
'Nivel bajo',
'Nivel muy alto',
'Utilizar al menos 8 caracteres',
'Borrar elemento?',
'Página no encontrada, verifique el parámetro "siteroot"'),
"en_us" => array('Query error',
'There was an error',
'Session ended',
'File not selected',
'File not entered',
'Users Management',
'Groups Management',
'Checking',
'Delete account?',
'Delete user?',
'Value not entered',
'Duplicated value',
'Option not selected',
'Option added<BR \>You should save configuration in order to take effect',
'Option deleted<BR \>You should save configuration in order to take effect',
'Generated Password',
'High level',
'Average level',
'Low level',
'Very high level',
'You should use at least 8 characters',
'Delete item?',
'Page not found, please verify "siteroot" parameter'));
$arrJsLang = array();
foreach ( $locale[$appLang] as $langIndex => $langDesc ){
$arrJsLang[] = "'".$langDesc."'";
}
echo "// i18n language array from PHP\n";
echo "var LANG = [".implode(",",$arrJsLang)."]; \n\n";
echo "var APP_ROOT = '$appRoot';\n";
include_once 'functions.js';
?>