diff --git a/CHANGELOG b/CHANGELOG index 06c0cc5c..80fa2c69 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ +=== ** v1.0.4 ** === + +* [MOD] Modificadas etiquetas de inicio de código php. +* [MOD] Ajustes de visualización de barra de búsquedas. +* [MOD] No se muestra el icono de filtro de orden si no se usa. +* [MOD] Si el lenguaje del navegador no tiene traducción, ni está configurado en la aplicación, ni es ninguna varinte del español, se utiliza inglés. +* [MOD] Mostrar tamaño máximo de archivo permitido para subir al editar cuenta. + === ** v1.0.3 ** === * [BUG] Corregido fallo al guardar filtro de búsqueda en la sesión. @@ -147,6 +155,14 @@ --- +=== ** v1.0.4 ** === + +* [MOD] Modified php short open tags for environments that have disabled them. +* [MOD] Visual improvements on search bar. +* [MOD] Filter icon is not shown if not using it. +* [MOD] If browser language does not have translation, or language not set, or is not a spanish variant, english is used. +* [MOD] Show maximum allowed file size for upload on edit account. + === ** v1.0.3 ** === * [BUG] Fixed error on saving search filters in session. diff --git a/ajax/ajax_getFiles.php b/ajax/ajax_getFiles.php index 3d4344fe..fbdb4c61 100644 --- a/ajax/ajax_getFiles.php +++ b/ajax/ajax_getFiles.php @@ -55,18 +55,18 @@ if ( ! is_array($files) || count($files) === 0 ){
- - + +
- download - View - - Delete - + download + View + + Delete +
\ No newline at end of file diff --git a/ajax/ajax_usrpass.php b/ajax/ajax_usrpass.php index ef475bd3..221bc089 100644 --- a/ajax/ajax_usrpass.php +++ b/ajax/ajax_usrpass.php @@ -45,41 +45,41 @@ SP_Users::checkUserAccess("acceditpass",$userId) || die ($strError); ?>
-

+

+
- + - - + +
- - +
- + - +
- +

diff --git a/config/config.php.sample b/config/config.php.sample new file mode 100644 index 00000000..9f4726ef --- /dev/null +++ b/config/config.php.sample @@ -0,0 +1,34 @@ + '68a77aa997d934d1259e729607233a', + 'version' => '1.0.3', + 'dbhost' => 'localhost', + 'dbname' => 'syspass', + 'debug' => 0, + 'logenabled' => 1, + 'ldapenabled' => 0, + 'mailenabled' => 0, + 'dbuser' => 'sp_admin', + 'dbpass' => 'mydb_secret_pass', + 'installed' => 0, + 'wikienabled' => 0, + 'demoenabled' => 0, + 'allowed_exts' => 'BAK,CSV,DOC,DOCX,GIF,JPG,ODS,ODT,PDF,PNG,TXT,VSD,XLS,XSL', + 'allowed_size' => 1024, + 'wikisearchurl' => 'http://wiki.foobar.com/wiki/doku.php/start?do=search&id=', + 'wikipageurl' => 'http://wiki.foobar.com/doku.php/', + 'wikifilter' => 'srv-', + 'ldapserver' => '', + 'ldapbase' => '', + 'ldapgroup' => '', + 'ldapuserattr' => '', + 'mailserver' => 'mail.foobar.com', + 'mailfrom' => 'syspass@foobar.com', + 'session_timeout' => 600, + 'account_link' => 1, + 'account_count' => 10, + 'sitelang' => 'en_US', + 'maintenance' => 0, + 'checkupdates' => 1, + 'filesenabled' => 1 +); \ No newline at end of file diff --git a/css/styles.css b/css/styles.css index 5ab4e623..148d7bef 100644 --- a/css/styles.css +++ b/css/styles.css @@ -374,7 +374,7 @@ A:focus {text-decoration: none; color: #FF0000;} color: #696969; } #content .data-header li a{color: #777;} -#content .data-header li img{width: 24px; height: 24px; vertical-align: middle;} +#content .data-header li img{float: right; width: 24px; height: 24px; vertical-align: middle;} #content .data-rows ul{ display: table; @@ -432,16 +432,17 @@ A:focus {text-decoration: none; color: #FF0000;} #content #resEventLog .cell{text-align: center;} #content #resEventLog .cell-description{width: 60%;} -#content #tblTools SELECT, #tblTools INPUT{margin-left: 15px;} #content #tblTools div.chosen-container{margin: 0 5px;} -#content #tblTools select {width: 210px;} -#content #tblTools #txtSearch{width:30%;} +#content #tblTools #txtSearch, +#content #tblTools select {width: 220px;} #content #tblTools LABEL{margin-left:15px; color: #999;} #content #tblTools IMG{margin-left:0.5em;} #content #tblTools #toolsLeft{text-align: left; width: 80%;} #content #tblTools #toolsRight{text-align: right; width: 5%;} #content #tblTools #toolsRight input{margin-left: 15px; text-align: center;} #content #tblTools .custom-combobox{margin-left: 25px;} +#content #tblTools #btnClear{opacity: 0.35;filter:alpha(opacity=35);} +#content #tblTools #btnClear:hover{opacity: 1;filter:alpha(opacity=100);} #content #tabs>DIV{min-height: 475px;} #content #tabs.ui-widget-content {border: none; background-color: transparent;} diff --git a/inc/init.php b/inc/init.php index 9c06dc6f..26b94cc9 100644 --- a/inc/init.php +++ b/inc/init.php @@ -391,14 +391,21 @@ class SP_Init { * @brief Establece el lenguaje de la aplicación * @returns none * - * Esta función establece el lenguaje según esté definidi en la configuración o en el navegador. + * Esta función establece el lenguaje según esté definido en la configuración o en el navegador. */ private static function selectLang(){ $browserLang = str_replace("-","_",substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 5)); $configLang = SP_Config::getValue('sitelang'); - self::$LANG = ( $configLang ) ? $configLang : $browserLang; - + // Establecer a en_US si no existe la traducción o no es español + if ( ! file_exists( self::$SERVERROOT.'/inc/locales/'.$browserLang) + && ! preg_match('/^es_.*/i',$browserLang) + && ! $configLang ){ + self::$LANG = 'en_US'; + } else{ + self::$LANG = ( $configLang ) ? $configLang : $browserLang; + } + putenv("LANG=".self::$LANG); setlocale(LC_MESSAGES, self::$LANG); setlocale(LC_ALL, self::$LANG); diff --git a/inc/locales/en_US/LC_MESSAGES/messages.mo b/inc/locales/en_US/LC_MESSAGES/messages.mo index a96f804b..8ec5177c 100644 Binary files a/inc/locales/en_US/LC_MESSAGES/messages.mo and b/inc/locales/en_US/LC_MESSAGES/messages.mo differ diff --git a/inc/tpl/accounts.php b/inc/tpl/accounts.php index dbba89be..99dbc955 100644 --- a/inc/tpl/accounts.php +++ b/inc/tpl/accounts.php @@ -131,20 +131,20 @@ $filesDelete = ( $action == 'accedit' ) ? 1 : 0; $skey = SP_Common::getSessionKey(TRUE); ?> -
- +
+
- -accountIsHistory): ?> + +accountIsHistory): ?> - +
- + - + - + - + - + - + - + - + - + - - + + - + - + - + - - - - - - + + + + + + - + - + - + - + - + - - + + - - + + - - + + - - + + - 0): ?> + 0): ?> - + - - + + - - + + - - + + - - + + - + - + - + - + - - accountUserEditName): ?> - - + + accountUserEditName): ?> + + - +
- - + + accountName; @@ -153,12 +153,12 @@ $skey = SP_Common::getSessionKey(TRUE);
- - + +

- + accountCustomerName; @@ -167,7 +167,7 @@ endif;
- - + + accountUrl; @@ -191,10 +191,10 @@ endif;
- - + + accountLogin; @@ -202,27 +202,27 @@ endif; ?>
- +    - +
- +
- +
- accountIsHistory): ?> - - - - + accountIsHistory): ?> + + + +
- + - - + + - +
- - + +
accountNumView . "(" . $account->accountNumViewDecrypt . ")"; ?>accountNumView . "(" . $account->accountNumViewDecrypt . ")"; ?>
accountDateAdd ?>accountDateAdd ?>
accountUserName; ?>accountUserName; ?>
accountUserGroupName; ?>accountUserGroupName; ?>
$groupId) { @@ -319,21 +319,21 @@ endif; ?>
accountDateEdit; ?>
accountDateEdit; ?>
accountUserEditName; ?>accountUserEditName; ?>
"historyId", @@ -348,78 +348,78 @@ endif; SP_Html::printSelect($account->getAccountHistoryList(), $arrSelectProp); ?> - +
accountDateEdit; ?> accountUserEditName; ?>accountDateEdit; ?> accountUserEditName; ?>
  • - accountIsHistory): ?> - - - - + accountIsHistory): ?> + + + +
  • - +
  • - +
  • - + - +
  • - +
  • - + - +
  • - +
  • - + - +
  • - +
  • - + - +
  • - +
  • - +
- + - \ No newline at end of file + \ No newline at end of file diff --git a/inc/tpl/backup.php b/inc/tpl/backup.php index a129bb48..bbfd6dce 100644 --- a/inc/tpl/backup.php +++ b/inc/tpl/backup.php @@ -43,22 +43,22 @@ $lastBackupTime = ( file_exists($backupFile['absolute']) ) ? _('Último backup') @@ -103,11 +103,11 @@ $skey = SP_Common::getSessionKey(TRUE); \ No newline at end of file diff --git a/inc/tpl/config.php b/inc/tpl/config.php index d9291481..49538f05 100644 --- a/inc/tpl/config.php +++ b/inc/tpl/config.php @@ -49,7 +49,7 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : ''; ?>
- +
@@ -57,88 +57,88 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : '';
- + - +
- + - - Backup BBDD + + Backup BBDD - - Backup - ">Backup +
- + - +
  • - +
\ No newline at end of file diff --git a/inc/tpl/categories.php b/inc/tpl/categories.php index 64eeef0a..5bd85b66 100644 --- a/inc/tpl/categories.php +++ b/inc/tpl/categories.php @@ -56,46 +56,46 @@ $skey = SP_Common::getSessionKey(TRUE);
- +
- - + + - +
- +
- +

- + - - + +
- +
- - + + - - + +
- +
- + - /> + />
- - + + - /> + />
- - + + - /> + />
- - + + - /> + />
- - + + - /> + />
- - + + - /> + />
- - + + - /> + />
- + - - + +
- - + + - /> + />
- - + + - log_description) : preg_replace("/\d+\.\d+\.\d+\.\d+/", "*.*.*.*", utf8_decode($log->log_description)); ?> - + - +
- - + + - /> + />
- - + + - +
- - + + - +
- - + + - - + +
- + - + - +
- - + + - /> + />
- - + + - +
- - + + - +
- - + + - +
- - + + - +
- - + + - +
- +
- +
- + - /> + />
- + - +
- + - +
- + - + - + - +
  • + >
diff --git a/inc/tpl/editpass.php b/inc/tpl/editpass.php index e2a7e209..3d37f3e3 100644 --- a/inc/tpl/editpass.php +++ b/inc/tpl/editpass.php @@ -34,53 +34,53 @@ if (!$account->checkAccountAccess("acceditpass") || !SP_Users::checkUserAccess(" } ?> -
+
- + - + - - + + - - + + - + - +
accountName; ?>accountName; ?>
accountCustomerName; ?>accountCustomerName; ?>
accountUrl; ?>accountUrl; ?>
accountLogin; ?>accountLogin; ?>
- +    - +
- +
- - + +
  • - +
  • - +
diff --git a/inc/tpl/error.php b/inc/tpl/error.php index 993fdb87..fdbd6bb3 100644 --- a/inc/tpl/error.php +++ b/inc/tpl/error.php @@ -27,11 +27,11 @@
- + - +
- +
-'._('ERROR EN LA CONSULTA').'
'); } @@ -65,43 +65,43 @@ $numRows = $resQueryNumRows[0]->numRows;
- + - + - + - + - +
- log_id; ?> + log_id; ?> - date; ?> + date; ?> - log_action); ?> + log_action); ?> - log_login); ?> + log_login); ?> - numRows; ?>
diff --git a/inc/tpl/groups.php b/inc/tpl/groups.php index 7fef7703..6c3dd8ac 100644 --- a/inc/tpl/groups.php +++ b/inc/tpl/groups.php @@ -35,25 +35,25 @@ $activeTab = $data['active']; - + - - +
- " /> + " />
" /> + " />
- - " /> - " /> + + " /> + " /> - +
diff --git a/inc/tpl/login.php b/inc/tpl/login.php index 6d56178e..a97e027d 100644 --- a/inc/tpl/login.php +++ b/inc/tpl/login.php @@ -49,7 +49,7 @@ defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo' - -
+ +
- \ No newline at end of file + \ No newline at end of file diff --git a/inc/tpl/masterpass.php b/inc/tpl/masterpass.php index 9ba8a94f..216ec036 100644 --- a/inc/tpl/masterpass.php +++ b/inc/tpl/masterpass.php @@ -35,19 +35,19 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
- 0 ): ?> + 0 ): ?> - +
- + - +
- + @@ -55,7 +55,7 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
- + @@ -63,7 +63,7 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
- + @@ -71,8 +71,8 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
- - + + @@ -80,30 +80,30 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
- + - <? echo _('Atención'); ?> - + <?php echo _('Atención'); ?> +
- <? echo _('Atención'); ?> - + <?php echo _('Atención'); ?> +
- <? echo _('Atención'); ?> - + <?php echo _('Atención'); ?> +
- + - +
  • - +
diff --git a/inc/tpl/migrate.php b/inc/tpl/migrate.php index 3535d36d..38630fa7 100644 --- a/inc/tpl/migrate.php +++ b/inc/tpl/migrate.php @@ -30,15 +30,15 @@ $activeTab = $data['active']; ?>
- +
- - + + @@ -46,7 +46,7 @@ $activeTab = $data['active'];
- + @@ -54,8 +54,8 @@ $activeTab = $data['active'];
- - + + @@ -63,8 +63,8 @@ $activeTab = $data['active'];
- - + + @@ -72,26 +72,26 @@ $activeTab = $data['active'];
- +
- <? echo _('Atención'); ?> - + <?php echo _('Atención'); ?> +
- + - +
  • - +
\ No newline at end of file diff --git a/inc/tpl/profiles.php b/inc/tpl/profiles.php index ae2626c3..d56a449e 100644 --- a/inc/tpl/profiles.php +++ b/inc/tpl/profiles.php @@ -35,85 +35,85 @@ $activeTab = $data['active']; - + - + - + - + - +
- +
- - /> - - /> + + /> + + />
- - /> - - /> + + /> + + />
- - /> - - /> + + /> + + />
- - /> - - /> + + /> + + />
- - /> - - /> + + /> + + />
- - /> - - /> + + /> + + />
- - /> - - /> + + /> + + />
- - /> + + />
- - /> + + />
- - - " /> + + + " /> - + \ No newline at end of file diff --git a/inc/util.class.php b/inc/util.class.php index 31aeba6a..80a539dd 100644 --- a/inc/util.class.php +++ b/inc/util.class.php @@ -169,7 +169,7 @@ class SP_Util { * @return array con el número de versión */ public static function getVersion() { - return array(1, 00, 03); + return array(1, 00, 04); } /**