mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
83 lines
3.0 KiB
PHP
83 lines
3.0 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';
|
|
|
|
$themeJsPath = VIEW_PATH . DIRECTORY_SEPARATOR . \SP\Init::$THEME . DIRECTORY_SEPARATOR . 'js' . DIRECTORY_SEPARATOR . 'js.php';
|
|
|
|
$jsFilesBase = 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),
|
|
);
|
|
|
|
$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 APP_ROOT = '" . SP\Init::$WEBROOT . "';\n";
|
|
echo "var LANG = ['" . implode("','", SP\Util::arrayJSEscape($arrJsLang)) . "'];\n";
|
|
|
|
if (file_exists($themeJsPath)){
|
|
include $themeJsPath;
|
|
|
|
foreach ($jsFilesTheme as $file) {
|
|
array_push($jsFilesBase, $file);
|
|
}
|
|
}
|
|
|
|
SP\Util::getMinified('js', $jsFilesBase, false); |