Files
sysPass/js/js.php
nuxsmin 9f00a62a39 * [MOD] Updated JQuery UI to latest version.
* [FIX] Fixed global search issues.
2015-07-18 14:33:23 +02:00

74 lines
2.7 KiB
PHP

<?php
/**
* sysPass
*
* @author nuxsmin
* @link http://syspass.org
* @copyright 2012-2015 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', '..');
require_once APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php';
$jsFiles = array(
array("href" => "js/jquery-1.11.2.min.js", "min" => false),
array("href" => "js/jquery-migrate-1.2.1.min.js", "min" => false),
array("href" => "js/jquery.placeholder.js", "min" => true),
array("href" => "js/jquery-ui.min.js", "min" => false),
array("href" => "js/fancybox/jquery.fancybox.pack.js", "min" => false),
array("href" => "js/jquery.powertip.min.js", "min" => false),
array("href" => "js/chosen.jquery.min.js", "min" => false),
array("href" => "js/alertify.js", "min" => true),
array("href" => "js/jquery.fileDownload.js", "min" => true),
array("href" => "js/jquery.filedrop.js", "min" => true),
array("href" => "js/jquery.tagsinput.js", "min" => true),
array("href" => "js/ZeroClipboard.min.js", "min" => false),
array("href" => "js/functions.js", "min" => true)
);
$arrJsLang = array(
_('Error en la consulta'),
_('Ha ocurrido un error'),
_('Sesión finalizada'),
_('Borrar la cuenta?'),
_('Borrar el usuario?'),
_('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'),
_('Archivo no soportado para visualizar'),
_('Eliminar archivo?'),
_('Su navegador no soporta subir archivos con HTML5'),
_('Demasiados archivos'),
_('No es posible guardar el archivo.<br>Tamaño máximo:'),
_('Extensión no permitida'),
_('Vaciar el registro de eventos?')
);
//$js = "// i18n language array from PHP. Detected language: " . SP_Init::$LANG . "\n";
echo "var LANG = ['" . implode("','", SP\Util::arrayJSEscape($arrJsLang)) . "'];";
echo "var APP_ROOT = '" . SP\Init::$WEBROOT . "';\n";
SP\Util::getMinified('js', $jsFiles, true);