mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-25 01:27:29 +01:00
Modified php short open tags for environments that have disabled them.
Visual improvements on search bar. Filter icon is not shown if not using it. If browser language does not have translation, or language not set, or is not a spanish variant, english is used. Show maximum allowed file size for upload on edit account.
This commit is contained in:
16
CHANGELOG
16
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.
|
||||
|
||||
@@ -55,18 +55,18 @@ if ( ! is_array($files) || count($files) === 0 ){
|
||||
|
||||
<form action="ajax/ajax_files.php" method="post" name="files_form" id="files_form">
|
||||
<select name="fileId" size="4" class="files" id="files">
|
||||
<? foreach ($files as $file): ?>
|
||||
<option value='<? echo $file['id']; ?>'><? echo $file['name'] ?> (<? echo $file['size']; ?> KB)</option>
|
||||
<? endforeach;?>
|
||||
<?php foreach ($files as $file): ?>
|
||||
<option value='<?php echo $file['id']; ?>'><?php echo $file['name'] ?> (<?php echo $file['size']; ?> KB)</option>
|
||||
<?php endforeach;?>
|
||||
</select>
|
||||
<input name="t" type="hidden" id="t" value="<? echo time(); ?>" />
|
||||
<input name="sk" type="hidden" id="sk" value="<? echo SP_Common::getSessionKey(); ?>" />
|
||||
<input name="t" type="hidden" id="t" value="<?php echo time(); ?>" />
|
||||
<input name="sk" type="hidden" id="sk" value="<?php echo SP_Common::getSessionKey(); ?>" />
|
||||
<input name="action" type="hidden" id="action" value="download" />
|
||||
</form>
|
||||
<div class="actionFiles">
|
||||
<img src="imgs/download.png" title="<? echo _('Descargar archivo'); ?>" id="btnDownload" class="inputImg" alt="download" OnClick="downFile();" />
|
||||
<img src="imgs/view.png" title="<? echo _('Ver archivo'); ?>" id="btnView" class="inputImg" alt="View" OnClick="downFile(1);" />
|
||||
<? if ( $deleteEnabled === 1 ): ?>
|
||||
<img src="imgs/delete.png" title="<? echo _('Eliminar archivo'); ?>" id="btnDelete" class="inputImg" alt="Delete" OnClick="delFile(<? echo $accountId; ?>);" />
|
||||
<? endif; ?>
|
||||
<img src="imgs/download.png" title="<?php echo _('Descargar archivo'); ?>" id="btnDownload" class="inputImg" alt="download" OnClick="downFile();" />
|
||||
<img src="imgs/view.png" title="<?php echo _('Ver archivo'); ?>" id="btnView" class="inputImg" alt="View" OnClick="downFile(1);" />
|
||||
<?php if ( $deleteEnabled === 1 ): ?>
|
||||
<img src="imgs/delete.png" title="<?php echo _('Eliminar archivo'); ?>" id="btnDelete" class="inputImg" alt="Delete" OnClick="delFile(<?php echo $accountId; ?>);" />
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
@@ -45,41 +45,41 @@ SP_Users::checkUserAccess("acceditpass",$userId) || die ($strError);
|
||||
?>
|
||||
|
||||
<div id="fancyContainer" align="center">
|
||||
<h2 class="midround"><? echo _('Cambio de Clave'); ?></h2>
|
||||
<h2 class="midround"><?php echo _('Cambio de Clave'); ?></h2>
|
||||
<form method="post" name="updUsrPass" id="frmUpdUsrPass">
|
||||
<table class="fancydata">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Clave'); ?>
|
||||
<?php echo _('Clave'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="password" id="usrpass" name="pass" title="<? echo _('Clave'); ?>" class="txtpass" OnFocus="$('#passLevel').show(); $('#resFancyAccion').hide();" OnKeyUp="checkPassLevel(this.value, 'fancyContainer')" />
|
||||
<img src="imgs/genpass.png" title="<? echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="$('#resFancyAccion').hide(); password(11,true,false,'fancyContainer');" />
|
||||
<input type="password" id="usrpass" name="pass" title="<?php echo _('Clave'); ?>" class="txtpass" OnFocus="$('#passLevel').show(); $('#resFancyAccion').hide();" OnKeyUp="checkPassLevel(this.value, 'fancyContainer')" />
|
||||
<img src="imgs/genpass.png" title="<?php echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="$('#resFancyAccion').hide(); password(11,true,false,'fancyContainer');" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Clave (repetir)'); ?></td>
|
||||
<?php echo _('Clave (repetir)'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="password" id="usrpassv" name="passv" title="<? echo _('Clave (repetir)'); ?>" class="txtpassv" />
|
||||
<input type="password" id="usrpassv" name="passv" title="<?php echo _('Clave (repetir)'); ?>" class="txtpassv" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="id" value="<? echo $userId; ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $userId; ?>" />
|
||||
<input type="hidden" name="type" value="1" />
|
||||
<input type="hidden" name="action" value="3" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(); ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(); ?>">
|
||||
</form>
|
||||
|
||||
<div id="resCheck">
|
||||
<span id="passLevel" title="<? echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
<span id="passLevel" title="<?php echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
<BR><BR>
|
||||
<span id="resFancyAccion"></span>
|
||||
</div>
|
||||
<div class="action-in-box">
|
||||
<ul>
|
||||
<li>
|
||||
<img src="imgs/check.png" title="<? echo _('Guardar'); ?>" class="inputImg" OnClick="usersMgmt('frmUpdUsrPass')" alt="<? echo _('Guardar'); ?>"/>
|
||||
<img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" OnClick="usersMgmt('frmUpdUsrPass')" alt="<?php echo _('Guardar'); ?>"/>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
34
config/config.php.sample
Normal file
34
config/config.php.sample
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'passwordsalt' => '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
|
||||
);
|
||||
@@ -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;}
|
||||
|
||||
13
inc/init.php
13
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);
|
||||
|
||||
Binary file not shown.
@@ -131,20 +131,20 @@ $filesDelete = ( $action == 'accedit' ) ? 1 : 0;
|
||||
$skey = SP_Common::getSessionKey(TRUE);
|
||||
?>
|
||||
|
||||
<div id="title" class="midroundup <? echo $title['class']; ?>"><? echo $title['name']; ?></div>
|
||||
<? if ($showform): ?>
|
||||
<div id="title" class="midroundup <?php echo $title['class']; ?>"><?php echo $title['name']; ?></div>
|
||||
<?php if ($showform): ?>
|
||||
<form METHOD="post" name="frmaccount" id="frmAccount">
|
||||
<? endif; ?>
|
||||
<? if ($account->accountIsHistory): ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($account->accountIsHistory): ?>
|
||||
<table class="data round tblIcon">
|
||||
<? else: ?>
|
||||
<?php else: ?>
|
||||
<table class="data round">
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Nombre'); ?></td>
|
||||
<td class="descField"><?php echo _('Nombre'); ?></td>
|
||||
<td class="valField">
|
||||
<? if ($showform): ?>
|
||||
<input name="name" type="text" placeholder="<? echo _('Nombre de cuenta'); ?>" required maxlength="50" value="<? echo $account->accountName; ?>">
|
||||
<?php if ($showform): ?>
|
||||
<input name="name" type="text" placeholder="<?php echo _('Nombre de cuenta'); ?>" required maxlength="50" value="<?php echo $account->accountName; ?>">
|
||||
<?
|
||||
else:
|
||||
echo $account->accountName;
|
||||
@@ -153,12 +153,12 @@ $skey = SP_Common::getSessionKey(TRUE);
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Cliente'); ?></td>
|
||||
<td class="descField"><?php echo _('Cliente'); ?></td>
|
||||
<td class="valField">
|
||||
<? if ($showform): ?>
|
||||
<? SP_Html::printSelect(SP_Customer::getCustomers(), $customersSelProp); ?>
|
||||
<?php if ($showform): ?>
|
||||
<?php SP_Html::printSelect(SP_Customer::getCustomers(), $customersSelProp); ?>
|
||||
<br><br>
|
||||
<input type="text" name="customer_new" maxlength="50" placeholder="<? echo _('Buscar en desplegable o introducir'); ?>" />
|
||||
<input type="text" name="customer_new" maxlength="50" placeholder="<?php echo _('Buscar en desplegable o introducir'); ?>" />
|
||||
<?
|
||||
else:
|
||||
echo $account->accountCustomerName;
|
||||
@@ -167,7 +167,7 @@ endif;
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Categoría'); ?></td>
|
||||
<td class="descField"><?php echo _('Categoría'); ?></td>
|
||||
<td class="valField">
|
||||
<?
|
||||
if ($showform):
|
||||
@@ -179,10 +179,10 @@ endif;
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('URL / IP'); ?></td>
|
||||
<td class="descField"><?php echo _('URL / IP'); ?></td>
|
||||
<td class="valField">
|
||||
<? if ($showform): ?>
|
||||
<input name="url" type="text" placeholder="<? echo _('URL o IP de acceso'); ?>" maxlength="255" value="<? echo $account->accountUrl; ?>">
|
||||
<?php if ($showform): ?>
|
||||
<input name="url" type="text" placeholder="<?php echo _('URL o IP de acceso'); ?>" maxlength="255" value="<?php echo $account->accountUrl; ?>">
|
||||
<?
|
||||
else:
|
||||
echo $account->accountUrl;
|
||||
@@ -191,10 +191,10 @@ endif;
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Usuario'); ?></td>
|
||||
<td class="descField"><?php echo _('Usuario'); ?></td>
|
||||
<td class="valField">
|
||||
<? if ($showform): ?>
|
||||
<input name="login" type="text" placeholder="<? echo _('Usuario de acceso'); ?>" maxlength="50" value="<? echo $account->accountLogin; ?>">
|
||||
<?php if ($showform): ?>
|
||||
<input name="login" type="text" placeholder="<?php echo _('Usuario de acceso'); ?>" maxlength="50" value="<?php echo $account->accountLogin; ?>">
|
||||
<?
|
||||
else:
|
||||
echo $account->accountLogin;
|
||||
@@ -202,27 +202,27 @@ endif;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? if ($showPass): ?>
|
||||
<?php if ($showPass): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Clave'); ?></td>
|
||||
<td class="descField"><?php echo _('Clave'); ?></td>
|
||||
<td class="valField">
|
||||
<input name="password" type="password" id="txtPass" maxlength="255" OnKeyUp="checkPassLevel(this.value)">
|
||||
<img src="imgs/user-pass.png" title="<? echo _('La clave generada se mostrará aquí'); ?>" class="inputImg" id="viewPass" />
|
||||
<img src="imgs/user-pass.png" title="<?php echo _('La clave generada se mostrará aquí'); ?>" class="inputImg" id="viewPass" />
|
||||
|
||||
<img src="imgs/genpass.png" title="<? echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="password(11, true, true);" />
|
||||
<img src="imgs/genpass.png" title="<?php echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="password(11, true, true);" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Clave (repetir)'); ?></td>
|
||||
<td class="descField"><?php echo _('Clave (repetir)'); ?></td>
|
||||
<td class="valField">
|
||||
<input name="password2" type="password" maxlength="255">
|
||||
<span id="passLevel" title="<? echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
<span id="passLevel" title="<?php echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<? if ($showform): ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($showform): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Grupos Secundarios'); ?></td>
|
||||
<td class="descField"><?php echo _('Grupos Secundarios'); ?></td>
|
||||
<td class="valField">
|
||||
<select id="selGroups" name="ugroups[]" multiple="multiple" size="5" >
|
||||
<?
|
||||
@@ -240,72 +240,72 @@ endif;
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Notas'); ?></td>
|
||||
<td class="descField"><?php echo _('Notas'); ?></td>
|
||||
<td class="valField">
|
||||
<textarea name="notice" type="text" cols="30" rows="5" placeholder="<? echo _('Notas sobre la cuenta'); ?>" maxlength="1000"><? echo $account->accountNotes; ?></textarea>
|
||||
<textarea name="notice" type="text" cols="30" rows="5" placeholder="<?php echo _('Notas sobre la cuenta'); ?>" maxlength="1000"><?php echo $account->accountNotes; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<? if ($showform): ?>
|
||||
<input type="hidden" name="hash" value="<? echo $changesHash; ?>">
|
||||
<input type="hidden" name="next" value="<? echo $nextaction; ?>">
|
||||
<input type="hidden" name="savetyp" value="<? echo $savetype; ?>">
|
||||
<input type="hidden" name="accountid" value="<? echo $account->accountId; ?>" />
|
||||
<input type="hidden" name="sk" value="<? echo $skey; ?>">
|
||||
<?php if ($showform): ?>
|
||||
<input type="hidden" name="hash" value="<?php echo $changesHash; ?>">
|
||||
<input type="hidden" name="next" value="<?php echo $nextaction; ?>">
|
||||
<input type="hidden" name="savetyp" value="<?php echo $savetype; ?>">
|
||||
<input type="hidden" name="accountid" value="<?php echo $account->accountId; ?>" />
|
||||
<input type="hidden" name="sk" value="<?php echo $skey; ?>">
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
</form>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($showFiles): ?>
|
||||
<?php if ($showFiles): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Archivos'); ?></td>
|
||||
<td class="descField"><?php echo _('Archivos'); ?></td>
|
||||
<td class="valField">
|
||||
<div id="downFiles"></div>
|
||||
<? if ($account->accountIsHistory): ?>
|
||||
<script>getFiles(<? echo $account->accountParentId; ?>, <? echo $filesDelete; ?>, '<? echo $skey; ?>');</script>
|
||||
<? else: ?>
|
||||
<script>getFiles(<? echo $account->accountId; ?>, <? echo $filesDelete; ?>, '<? echo $skey; ?>');</script>
|
||||
<? if ($action == "accedit"): ?>
|
||||
<?php if ($account->accountIsHistory): ?>
|
||||
<script>getFiles(<?php echo $account->accountParentId; ?>, <?php echo $filesDelete; ?>, '<?php echo $skey; ?>');</script>
|
||||
<?php else: ?>
|
||||
<script>getFiles(<?php echo $account->accountId; ?>, <?php echo $filesDelete; ?>, '<?php echo $skey; ?>');</script>
|
||||
<?php if ($action == "accedit"): ?>
|
||||
<div id="fileUpload">
|
||||
<form method="post" enctypr="multipart/form-data" action="ajax/ajax_files.php" name="upload_form" id="upload_form">
|
||||
<input type="hidden" name="accountId" id="account" value="<? echo $account->accountId; ?>" />
|
||||
<input type="hidden" name="accountId" id="account" value="<?php echo $account->accountId; ?>" />
|
||||
<input type="hidden" name="action" id="action" value="upload" />
|
||||
<input type="hidden" name="sk" value="<? echo $skey; ?>">
|
||||
<input type="text" id="inFilename" placeholder="<? echo _('Seleccionar archivo'); ?>" />
|
||||
<input type="hidden" name="sk" value="<?php echo $skey; ?>">
|
||||
<input type="text" id="inFilename" placeholder="<?php echo _('Seleccionar archivo'); ?>" />
|
||||
<input type="file" id="inFile" name="inFile" OnChange="$('#inFilename').val(this.value);" />
|
||||
<img id="btnUpload" src="imgs/upload.png" title="<? echo _('Subir archivo (max. 1 MB)'); ?>" class="inputImg" OnClick="upldFile(<? echo $account->accountId; ?>)" />
|
||||
<img id="btnUpload" src="imgs/upload.png" title="<?php echo _('Subir archivo').' (max. '.round(SP_Config::getValue('allowed_size') / 1024,1).' MB)'; ?>" class="inputImg" OnClick="upldFile(<?php echo $account->accountId; ?>)" />
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
</form>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!--More info about account details-->
|
||||
<? if ($showDetails): ?>
|
||||
<?php if ($showDetails): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Visitas'); ?></td>
|
||||
<td class="valField"><? echo $account->accountNumView . "(" . $account->accountNumViewDecrypt . ")"; ?></td>
|
||||
<td class="descField"><?php echo _('Visitas'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountNumView . "(" . $account->accountNumViewDecrypt . ")"; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Fecha Alta'); ?></td>
|
||||
<td class="valField"><? echo $account->accountDateAdd ?></td>
|
||||
<td class="descField"><?php echo _('Fecha Alta'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountDateAdd ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Creador'); ?></td>
|
||||
<td class="valField"><? echo $account->accountUserName; ?></td>
|
||||
<td class="descField"><?php echo _('Creador'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountUserName; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Grupo Principal'); ?></td>
|
||||
<td class="valField"><? echo $account->accountUserGroupName; ?></td>
|
||||
<td class="descField"><?php echo _('Grupo Principal'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountUserGroupName; ?></td>
|
||||
</tr>
|
||||
<? if (count($accountGroups) > 0): ?>
|
||||
<?php if (count($accountGroups) > 0): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Grupos Secundarios'); ?></td>
|
||||
<td class="descField"><?php echo _('Grupos Secundarios'); ?></td>
|
||||
<td class="valField">
|
||||
<?
|
||||
foreach (SP_Account::getSecGroups() as $groupName => $groupId) {
|
||||
@@ -319,21 +319,21 @@ endif;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<? if ($isModified): ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($isModified): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Fecha Edición'); ?></td>
|
||||
<td class="valField"><? echo $account->accountDateEdit; ?></td></tr>
|
||||
<td class="descField"><?php echo _('Fecha Edición'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountDateEdit; ?></td></tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Editor'); ?></td>
|
||||
<td class="valField"><? echo $account->accountUserEditName; ?></td>
|
||||
<td class="descField"><?php echo _('Editor'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountUserEditName; ?></td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($showHistory): ?>
|
||||
<?php if ($showHistory): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Historial'); ?></td>
|
||||
<td class="descField"><?php echo _('Historial'); ?></td>
|
||||
<td class="valField">
|
||||
<?
|
||||
$arrSelectProp = array("name" => "historyId",
|
||||
@@ -348,78 +348,78 @@ endif;
|
||||
|
||||
SP_Html::printSelect($account->getAccountHistoryList(), $arrSelectProp);
|
||||
?>
|
||||
<script>$("#sel-history").chosen({disable_search: true, placeholder_text_single: "<? echo _('Seleccionar fecha'); ?>"});</script>
|
||||
<script>$("#sel-history").chosen({disable_search: true, placeholder_text_single: "<?php echo _('Seleccionar fecha'); ?>"});</script>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($action == "accedit"): ?>
|
||||
<?php if ($action == "accedit"): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Última Modificación'); ?></td>
|
||||
<? if ($account->accountUserEditName): ?>
|
||||
<td class="valField"><? echo $account->accountDateEdit; ?> <? echo _('por'); ?> <? echo $account->accountUserEditName; ?></td>
|
||||
<? endif; ?>
|
||||
<td class="descField"><?php echo _('Última Modificación'); ?></td>
|
||||
<?php if ($account->accountUserEditName): ?>
|
||||
<td class="valField"><?php echo $account->accountDateEdit; ?> <?php echo _('por'); ?> <?php echo $account->accountUserEditName; ?></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
<div class="action">
|
||||
<ul>
|
||||
<li>
|
||||
<? if ($account->accountIsHistory): ?>
|
||||
<img SRC="imgs/back.png" title="<? echo _('Ver Actual'); ?>" class="inputImg" id="btnBack" OnClick="doAction('accview', 'accsearch',<? echo $account->accountParentId; ?>)" />
|
||||
<? else: ?>
|
||||
<img src="imgs/back.png" title="<? echo _('Atrás'); ?>" class="inputImg" id="btnBack" OnClick="doAction('<? echo $account->lastAction; ?>', '<? echo $action; ?>',<? echo $account->accountId; ?>)" />
|
||||
<? endif; ?>
|
||||
<?php if ($account->accountIsHistory): ?>
|
||||
<img SRC="imgs/back.png" title="<?php echo _('Ver Actual'); ?>" class="inputImg" id="btnBack" OnClick="doAction('accview', 'accsearch',<?php echo $account->accountParentId; ?>)" />
|
||||
<?php else: ?>
|
||||
<img src="imgs/back.png" title="<?php echo _('Atrás'); ?>" class="inputImg" id="btnBack" OnClick="doAction('<?php echo $account->lastAction; ?>', '<?php echo $action; ?>',<?php echo $account->accountId; ?>)" />
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
|
||||
<? if ($showViewPass): ?>
|
||||
<?php if ($showViewPass): ?>
|
||||
<li>
|
||||
<img src="imgs/user-pass.png" title="<? echo _('Ver clave'); ?>" onClick="viewPass(<? echo $account->accountId; ?>, 1,<? echo $account->accountIsHistory; ?>)" class="inputImg" />
|
||||
<img src="imgs/user-pass.png" title="<?php echo _('Ver clave'); ?>" onClick="viewPass(<?php echo $account->accountId; ?>, 1,<?php echo $account->accountIsHistory; ?>)" class="inputImg" />
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($showSave): ?>
|
||||
<?php if ($showSave): ?>
|
||||
<li>
|
||||
<img src="imgs/check.png" title="<? echo _('Guardar'); ?>" class="inputImg" id="btnSave" OnClick="saveAccount('frmAccount');" />
|
||||
<img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" id="btnSave" OnClick="saveAccount('frmAccount');" />
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($showEditPass): ?>
|
||||
<?php if ($showEditPass): ?>
|
||||
<li>
|
||||
<img src="imgs/key.png" title="<? echo _('Modificar Clave de Cuenta'); ?>" class="inputImg" OnClick="doAction('acceditpass', '<? echo $action; ?>',<? echo $account->accountId; ?>)"/>
|
||||
<img src="imgs/key.png" title="<?php echo _('Modificar Clave de Cuenta'); ?>" class="inputImg" OnClick="doAction('acceditpass', '<?php echo $action; ?>',<?php echo $account->accountId; ?>)"/>
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($showEdit): ?>
|
||||
<?php if ($showEdit): ?>
|
||||
<li>
|
||||
<img src="imgs/edit.png" title="<? echo _('Modificar Cuenta'); ?>" class="inputImg" OnClick="doAction('accedit', 'accview',<? echo $account->accountId; ?>)" />
|
||||
<img src="imgs/edit.png" title="<?php echo _('Modificar Cuenta'); ?>" class="inputImg" OnClick="doAction('accedit', 'accview',<?php echo $account->accountId; ?>)" />
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<? if ($showDelete): ?>
|
||||
<?php if ($showDelete): ?>
|
||||
<li>
|
||||
<img src="imgs/delete.png" title="<? echo _('Eliminar Cuenta'); ?>" class="inputImg" OnClick="delAccount(<? echo $account->accountId; ?>, 3, '<? echo $skey; ?>');" />
|
||||
<img src="imgs/delete.png" title="<?php echo _('Eliminar Cuenta'); ?>" class="inputImg" OnClick="delAccount(<?php echo $account->accountId; ?>, 3, '<?php echo $skey; ?>');" />
|
||||
</li>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<? if ($showform): ?>
|
||||
<?php if ($showform): ?>
|
||||
<script>
|
||||
$("#selCustomer").chosen({
|
||||
placeholder_text_single: "<? echo _('Seleccionar Cliente'); ?>",
|
||||
placeholder_text_single: "<?php echo _('Seleccionar Cliente'); ?>",
|
||||
disable_search_threshold: 10,
|
||||
no_results_text: "<? echo _('Sin resultados'); ?>"
|
||||
no_results_text: "<?php echo _('Sin resultados'); ?>"
|
||||
});
|
||||
$("#selCategory").chosen({
|
||||
placeholder_text_single: "<? echo _('Seleccionar Categoría'); ?>",
|
||||
placeholder_text_single: "<?php echo _('Seleccionar Categoría'); ?>",
|
||||
disable_search_threshold: 10,
|
||||
no_results_text: "<? echo _('Sin resultados'); ?>"
|
||||
no_results_text: "<?php echo _('Sin resultados'); ?>"
|
||||
});
|
||||
$("#selGroups").chosen({
|
||||
placeholder_text_multiple: "<? echo _('Seleccionar grupos secundarios'); ?>",
|
||||
placeholder_text_multiple: "<?php echo _('Seleccionar grupos secundarios'); ?>",
|
||||
});
|
||||
$('input:text:visible:first').focus();
|
||||
</script>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -43,22 +43,22 @@ $lastBackupTime = ( file_exists($backupFile['absolute']) ) ? _('Último backup')
|
||||
<table class="data round">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Resultado'); ?>
|
||||
<?php echo _('Resultado'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<? echo $lastBackupTime; ?>
|
||||
<?php echo $lastBackupTime; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Descargar Actual'); ?>
|
||||
<?php echo _('Descargar Actual'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<? if ( file_exists($backupFile['absolute']) && file_exists($backupDbFile['absolute']) ): ?>
|
||||
<a href="<? echo $backupDbFile['relative']; ?>">Backup BBDD</a>
|
||||
<?php if ( file_exists($backupFile['absolute']) && file_exists($backupDbFile['absolute']) ): ?>
|
||||
<a href="<?php echo $backupDbFile['relative']; ?>">Backup BBDD</a>
|
||||
-
|
||||
<a href="<? echo $backupFile['relative']; ?>">Backup <? echo $siteName; ?></a>
|
||||
<?
|
||||
<a href="<?php echo $backupFile['relative']; ?>">Backup <?php echo $siteName; ?></a>
|
||||
<?php
|
||||
else:
|
||||
echo _('No hay backups para descargar');
|
||||
endif;
|
||||
@@ -68,16 +68,16 @@ $lastBackupTime = ( file_exists($backupFile['absolute']) ) ? _('Último backup')
|
||||
</table>
|
||||
|
||||
<form method="post" name="frmBackup" id="frmBackup">
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="backup" value="1" />
|
||||
<input type="hidden" name="action" value="backup" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
</form>
|
||||
|
||||
<div class="action">
|
||||
<ul>
|
||||
<li>
|
||||
<img src="imgs/backup.png" title="<? echo _('Realizar Backup'); ?>" class="inputImg" OnClick="configMgmt('backup');" />
|
||||
<img src="imgs/backup.png" title="<?php echo _('Realizar Backup'); ?>" class="inputImg" OnClick="configMgmt('backup');" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -56,46 +56,46 @@ $skey = SP_Common::getSessionKey(TRUE);
|
||||
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Nueva categoría'); ?>
|
||||
<?php echo _('Nueva categoría'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<form OnSubmit="return configMgmt('addcat');" method="post" name="frmAddCategory" id="frmAddCategory">
|
||||
<input type="text" name="categoryName" maxlength="50">
|
||||
<input type="image" src="imgs/add.png" title="<? echo _('Nueva categoría'); ?>" class="inputImg" id="btnAdd" />
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="image" src="imgs/add.png" title="<?php echo _('Nueva categoría'); ?>" class="inputImg" id="btnAdd" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="categoryFunction" value="1">
|
||||
<input type="hidden" name="sk" value="<? echo $skey; ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo $skey; ?>">
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Modificar categoría'); ?>
|
||||
<?php echo _('Modificar categoría'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<form OnSubmit="return configMgmt('editcat');" method="post" name="frmEditCategory" id="frmEditCategory">
|
||||
<? SP_Html::printSelect(SP_Category::getCategories(), $categoriesSelProp1); ?>
|
||||
<?php SP_Html::printSelect(SP_Category::getCategories(), $categoriesSelProp1); ?>
|
||||
<br>
|
||||
<br>
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="text" name="categoryNameNew" maxlength="50" >
|
||||
<input type="hidden" name="categoryFunction" value="2">
|
||||
<input type="hidden" name="sk" value="<? echo $skey; ?>">
|
||||
<input type="image" src="imgs/save.png" title="<? echo _('Guardar'); ?>" class="inputImg" id="btnGuardar" />
|
||||
<input type="hidden" name="sk" value="<?php echo $skey; ?>">
|
||||
<input type="image" src="imgs/save.png" title="<?php echo _('Guardar'); ?>" class="inputImg" id="btnGuardar" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Borrar categoría'); ?>
|
||||
<?php echo _('Borrar categoría'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<form OnSubmit="return configMgmt('delcat');" method="post" name="frmDelCategory" id="frmDelCategory">
|
||||
<? SP_Html::printSelect(SP_Category::getCategories(), $categoriesSelProp2); ?>
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<?php SP_Html::printSelect(SP_Category::getCategories(), $categoriesSelProp2); ?>
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="categoryFunction" value="3">
|
||||
<input type="hidden" name="sk" value="<? echo $skey; ?>">
|
||||
<input type="image" src="imgs/delete.png" title="<? echo _('Borrar categoría'); ?>" class="inputImg" />
|
||||
<input type="hidden" name="sk" value="<?php echo $skey; ?>">
|
||||
<input type="image" src="imgs/delete.png" title="<?php echo _('Borrar categoría'); ?>" class="inputImg" />
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -103,11 +103,11 @@ $skey = SP_Common::getSessionKey(TRUE);
|
||||
|
||||
<script>
|
||||
$("#sel-edit_categories").chosen({
|
||||
placeholder_text_single: "<? echo _('Seleccionar Categoría'); ?>",
|
||||
placeholder_text_single: "<?php echo _('Seleccionar Categoría'); ?>",
|
||||
disable_search_threshold: 10,
|
||||
no_results_text: "<? echo _('Sin resultados'); ?>"});
|
||||
no_results_text: "<?php echo _('Sin resultados'); ?>"});
|
||||
$("#sel-del_categories").chosen({
|
||||
placeholder_text_single: "<? echo _('Seleccionar Categoría'); ?>",
|
||||
placeholder_text_single: "<?php echo _('Seleccionar Categoría'); ?>",
|
||||
disable_search_threshold: 10,
|
||||
no_results_text: "<? echo _('Sin resultados'); ?>"});
|
||||
no_results_text: "<?php echo _('Sin resultados'); ?>"});
|
||||
</script>
|
||||
@@ -49,7 +49,7 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : '';
|
||||
?>
|
||||
|
||||
<div id="title" class="midroundup titleNormal">
|
||||
<? echo _('Sitio'); ?>
|
||||
<?php echo _('Sitio'); ?>
|
||||
</div>
|
||||
|
||||
<form method="post" name="frmConfig" id="frmConfig">
|
||||
@@ -57,88 +57,88 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : '';
|
||||
<table id="tblSite" class="data tblConfig round">
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Idioma'); ?></td>
|
||||
<td class="descField"><?php echo _('Idioma'); ?></td>
|
||||
<td class="valField">
|
||||
<select name="sitelang" id="sel-sitelang" size="1">
|
||||
<? foreach ( $arrLangAvailable as $langOption ):
|
||||
<?php foreach ( $arrLangAvailable as $langOption ):
|
||||
$selected = ( SP_Config::getValue('sitelang') == $langOption ) ? "SELECTED" : "";
|
||||
?>
|
||||
<OPTION <? echo $selected; ?>><? echo $langOption; ?></OPTION>
|
||||
<? endforeach; ?>
|
||||
<OPTION <?php echo $selected; ?>><?php echo $langOption; ?></OPTION>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Timeout de sesión (s)'); ?>
|
||||
<?php echo _('Timeout de sesión (s)'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="session_timeout" value="<? echo SP_Config::getValue('session_timeout'); ?>" maxlength="4" <? echo $txtDisabled; ?> />
|
||||
<input type="text" name="session_timeout" value="<?php echo SP_Config::getValue('session_timeout'); ?>" maxlength="4" <?php echo $txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Habilitar log de eventos'); ?>
|
||||
<? SP_Common::printHelpButton("config", 20); ?>
|
||||
<?php echo _('Habilitar log de eventos'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 20); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="logenabled" class="checkbox" <? echo $chkLog.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="logenabled" class="checkbox" <?php echo $chkLog.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Habilitar depuración'); ?>
|
||||
<? SP_Common::printHelpButton("config", 19); ?>
|
||||
<?php echo _('Habilitar depuración'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 19); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="debug" class="checkbox" <? echo $chkDebug.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="debug" class="checkbox" <?php echo $chkDebug.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Modo mantenimiento'); ?>
|
||||
<? SP_Common::printHelpButton("config", 18); ?>
|
||||
<?php echo _('Modo mantenimiento'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 18); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="maintenance" class="checkbox" <? echo $chkMaintenance.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="maintenance" class="checkbox" <?php echo $chkMaintenance.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Comprobar actualizaciones'); ?>
|
||||
<? SP_Common::printHelpButton("config", 21); ?>
|
||||
<?php echo _('Comprobar actualizaciones'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 21); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="updates" class="checkbox" <? echo $chkUpdates.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="updates" class="checkbox" <?php echo $chkUpdates.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Nombre de cuenta como enlace'); ?>
|
||||
<? SP_Common::printHelpButton("config", 3); ?>
|
||||
<?php echo _('Nombre de cuenta como enlace'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 3); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="account_link" class="checkbox" <? echo $chkAccountLink; ?> />
|
||||
<input type="checkbox" name="account_link" class="checkbox" <?php echo $chkAccountLink; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Gestión de archivos'); ?>
|
||||
<? SP_Common::printHelpButton("config", 5); ?>
|
||||
<?php echo _('Gestión de archivos'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 5); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="filesenabled" class="checkbox" <? echo $chkFiles.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="filesenabled" class="checkbox" <?php echo $chkFiles.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Extensiones de archivos permitidas'); ?>
|
||||
<?php echo _('Extensiones de archivos permitidas'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="add_ext" id="add_ext" maxlength="4" />
|
||||
<img src="imgs/add.png" title="<? echo _('Añadir extensión'); ?>" class="inputImg" id="btnAddExt" OnClick="addSelOption('allowed_exts','add_ext')" />
|
||||
<img src="imgs/delete.png" title="<? echo _('Eliminar extensión'); ?>" class="inputImg" id="btnDelExt" OnClick="delSelOption('allowed_exts')" />
|
||||
<img src="imgs/add.png" title="<?php echo _('Añadir extensión'); ?>" class="inputImg" id="btnAddExt" OnClick="addSelOption('allowed_exts','add_ext')" />
|
||||
<img src="imgs/delete.png" title="<?php echo _('Eliminar extensión'); ?>" class="inputImg" id="btnDelExt" OnClick="delSelOption('allowed_exts')" />
|
||||
<br>
|
||||
<select id="allowed_exts" name="allowed_exts[]" multiple="multiple" size="4">
|
||||
<?
|
||||
@@ -156,21 +156,21 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : '';
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Tamaño máximo de archivo'); ?>
|
||||
<? SP_Common::printHelpButton("config", 6); ?>
|
||||
<?php echo _('Tamaño máximo de archivo'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 6); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="allowed_size" value="<? echo SP_Config::getValue('allowed_size'); ?>" maxlength="5" <? echo $txtDisabled; ?> />
|
||||
<input type="text" name="allowed_size" value="<?php echo SP_Config::getValue('allowed_size'); ?>" maxlength="5" <?php echo $txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Resultados por página'); ?>
|
||||
<? SP_Common::printHelpButton("config", 4); ?>
|
||||
<?php echo _('Resultados por página'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 4); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<select name="account_count" id="sel-account_count" size="1">
|
||||
<? foreach ($arrAccountCount as $num ){
|
||||
<?php foreach ($arrAccountCount as $num ){
|
||||
if ( SP_Config::getValue('account_count') == $num){
|
||||
echo "<OPTION SELECTED>$num</OPTION>";
|
||||
} else {
|
||||
@@ -185,49 +185,49 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : '';
|
||||
|
||||
<!--WIKI-->
|
||||
<div id="title" class="midroundup titleNormal">
|
||||
<? echo _('Wiki'); ?>
|
||||
<?php echo _('Wiki'); ?>
|
||||
</div>
|
||||
|
||||
<table id="tblWiki" class="data tblConfig round">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Habilitar enlaces Wiki'); ?>
|
||||
<? SP_Common::printHelpButton("config", 7); ?>
|
||||
<?php echo _('Habilitar enlaces Wiki'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 7); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="wikienabled" class="checkbox" <? echo $chkWiki.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="wikienabled" class="checkbox" <?php echo $chkWiki.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('URL de búsqueda Wiki'); ?>
|
||||
<? SP_Common::printHelpButton("config", 8); ?>
|
||||
<?php echo _('URL de búsqueda Wiki'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 8); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="wikisearchurl" class="txtLong" value="<? echo SP_Config::getValue('wikisearchurl'); ?>" maxlength="128" />
|
||||
<input type="text" name="wikisearchurl" class="txtLong" value="<?php echo SP_Config::getValue('wikisearchurl'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('URL de página en Wiki'); ?>
|
||||
<? SP_Common::printHelpButton("config", 9); ?>
|
||||
<?php echo _('URL de página en Wiki'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 9); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="wikipageurl" class="txtLong" value="<? echo SP_Config::getValue('wikipageurl'); ?>" maxlength="128" />
|
||||
<input type="text" name="wikipageurl" class="txtLong" value="<?php echo SP_Config::getValue('wikipageurl'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Prefijo para nombre de cuenta'); ?>
|
||||
<? SP_Common::printHelpButton("config", 10); ?>
|
||||
<?php echo _('Prefijo para nombre de cuenta'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 10); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="add_wikifilter" id="add_wikifilter" maxlength="128" />
|
||||
<img src="imgs/add.png" title="<? echo _('Añadir filtro'); ?>" class="inputImg" id="btnAddWikifilter" OnClick="addSelOption('wikifilter','add_wikifilter')" />
|
||||
<img src="imgs/delete.png" title="<? echo _('Eliminar filtro'); ?>" class="inputImg" id="btnDelWikifilter" OnClick="delSelOption('wikifilter')" />
|
||||
<img src="imgs/add.png" title="<?php echo _('Añadir filtro'); ?>" class="inputImg" id="btnAddWikifilter" OnClick="addSelOption('wikifilter','add_wikifilter')" />
|
||||
<img src="imgs/delete.png" title="<?php echo _('Eliminar filtro'); ?>" class="inputImg" id="btnDelWikifilter" OnClick="delSelOption('wikifilter')" />
|
||||
<br>
|
||||
<select id="wikifilter" name="wikifilter[]" MULTIPLE="multiple" size="3">
|
||||
<?
|
||||
<?php
|
||||
if ( SP_Config::getValue('wikifilter') ){
|
||||
$wikifilter = explode("||", SP_Config::getValue('wikifilter'));
|
||||
sort($wikifilter, SORT_STRING);
|
||||
@@ -245,121 +245,121 @@ $chkMail = ( SP_Config::getValue('mailenabled') ) ? 'checked="checked"' : '';
|
||||
<!--LDAP-->
|
||||
|
||||
<div id="title" class="midroundup titleNormal">
|
||||
<? echo _('LDAP'); ?>
|
||||
<?php echo _('LDAP'); ?>
|
||||
</div>
|
||||
|
||||
<table id="tblLdap" class="data tblConfig round">
|
||||
<? if ( SP_Util::ldapIsAvailable() && ! $isDemoMode ): ?>
|
||||
<?php if ( SP_Util::ldapIsAvailable() && ! $isDemoMode ): ?>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Habilitar LDAP'); ?>
|
||||
<? SP_Common::printHelpButton("config", 11); ?>
|
||||
<?php echo _('Habilitar LDAP'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 11); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="ldapenabled" class="checkbox" <? echo $chkLdap.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="ldapenabled" class="checkbox" <?php echo $chkLdap.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Servidor'); ?>
|
||||
<? SP_Common::printHelpButton("config", 15); ?>
|
||||
<?php echo _('Servidor'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 15); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="ldapserver" value="<? echo SP_Config::getValue('ldapserver'); ?>" maxlength="128" />
|
||||
<input type="text" name="ldapserver" value="<?php echo SP_Config::getValue('ldapserver'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Usuario de conexión'); ?>
|
||||
<? SP_Common::printHelpButton("config", 12); ?>
|
||||
<?php echo _('Usuario de conexión'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 12); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="ldapbinduser" value="<? echo SP_Config::getValue('ldapbinduser'); ?>" maxlength="128" />
|
||||
<input type="text" name="ldapbinduser" value="<?php echo SP_Config::getValue('ldapbinduser'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Clave de conexión'); ?>
|
||||
<? SP_Common::printHelpButton("config", 17); ?>
|
||||
<?php echo _('Clave de conexión'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 17); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="password" name="ldapbindpass" value="<? echo SP_Config::getValue('ldapbindpass'); ?>" maxlength="128" />
|
||||
<input type="password" name="ldapbindpass" value="<?php echo SP_Config::getValue('ldapbindpass'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Base de búsqueda'); ?>
|
||||
<? SP_Common::printHelpButton("config", 13); ?>
|
||||
<?php echo _('Base de búsqueda'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 13); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="ldapbase" class="txtLong" value="<? echo SP_Config::getValue('ldapbase'); ?>" maxlength="128" />
|
||||
<input type="text" name="ldapbase" class="txtLong" value="<?php echo SP_Config::getValue('ldapbase'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Grupo'); ?>
|
||||
<? SP_Common::printHelpButton("config", 14); ?>
|
||||
<?php echo _('Grupo'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 14); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="ldapgroup" class="txtLong" value="<? echo SP_Config::getValue('ldapgroup'); ?>" maxlength="128" />
|
||||
<input type="text" name="ldapgroup" class="txtLong" value="<?php echo SP_Config::getValue('ldapgroup'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<? else: ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td class="option-disabled">
|
||||
<? echo _('Módulo no disponible'); ?>
|
||||
<?php echo _('Módulo no disponible'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
<!--MAIL-->
|
||||
<div id="title" class="midroundup titleNormal">
|
||||
<? echo _('Correo'); ?>
|
||||
<?php echo _('Correo'); ?>
|
||||
</div>
|
||||
|
||||
<table id="tblMail" class="data tblConfig round">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Habilitar notificaciones de correo'); ?>
|
||||
<?php echo _('Habilitar notificaciones de correo'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="mailenabled" class="checkbox" <? echo $chkMail.' '.$txtDisabled; ?> />
|
||||
<input type="checkbox" name="mailenabled" class="checkbox" <?php echo $chkMail.' '.$txtDisabled; ?> />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Servidor'); ?>
|
||||
<?php echo _('Servidor'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="mailserver" size="20" value="<? echo SP_Config::getValue('mailserver'); ?>" maxlength="128" />
|
||||
<input type="text" name="mailserver" size="20" value="<?php echo SP_Config::getValue('mailserver'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Dirección de correo de envío'); ?>
|
||||
<?php echo _('Dirección de correo de envío'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="mailfrom" size="20" value="<? echo SP_Config::getValue('mailfrom'); ?>" maxlength="128" />
|
||||
<input type="text" name="mailfrom" size="20" value="<?php echo SP_Config::getValue('mailfrom'); ?>" maxlength="128" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<? if ( $isDemoMode ): ?>
|
||||
<?php if ( $isDemoMode ): ?>
|
||||
<input type="hidden" name="logenabled" value="1" />
|
||||
<input type="hidden" name="filesenabled" value="1" />
|
||||
<input type="hidden" name="wikienabled" value="1" />
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="action" value="config" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
</form>
|
||||
|
||||
<div class="action">
|
||||
<ul>
|
||||
<li
|
||||
><img src="imgs/check.png" title="<? echo _('Guardar'); ?>" class="inputImg" OnClick="configMgmt('saveconfig');" />
|
||||
><img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" OnClick="configMgmt('saveconfig');" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -34,53 +34,53 @@ if (!$account->checkAccountAccess("acceditpass") || !SP_Users::checkUserAccess("
|
||||
}
|
||||
?>
|
||||
|
||||
<div id="title" class="midroundup titleOrange"><? echo _('Modificar Clave de Cuenta'); ?></div>
|
||||
<div id="title" class="midroundup titleOrange"><?php echo _('Modificar Clave de Cuenta'); ?></div>
|
||||
|
||||
<form method="post" name="editpass" id="frmEditPass" >
|
||||
<table class="data round">
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Nombre'); ?></td><td class="valField"><? echo $account->accountName; ?></td>
|
||||
<td class="descField"><?php echo _('Nombre'); ?></td><td class="valField"><?php echo $account->accountName; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Cliente'); ?></td><td class="valField"><? echo $account->accountCustomerName; ?></td>
|
||||
<td class="descField"><?php echo _('Cliente'); ?></td><td class="valField"><?php echo $account->accountCustomerName; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('URL / IP'); ?></td>
|
||||
<td class="valField"><A href="<? echo $account->accountUrl; ?>" target="_blank"><? echo $account->accountUrl; ?></td>
|
||||
<td class="descField"><?php echo _('URL / IP'); ?></td>
|
||||
<td class="valField"><A href="<?php echo $account->accountUrl; ?>" target="_blank"><?php echo $account->accountUrl; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Usuario'); ?></td>
|
||||
<td class="valField"><? echo $account->accountLogin; ?></td>
|
||||
<td class="descField"><?php echo _('Usuario'); ?></td>
|
||||
<td class="valField"><?php echo $account->accountLogin; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Clave'); ?></td>
|
||||
<td class="descField"><?php echo _('Clave'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="password" maxlength="255" name="password" onKeyUp="checkPassLevel(this.value)">
|
||||
<img src="imgs/user-pass.png" title="<? echo _('La clave generada se mostrará aquí'); ?>" class="inputImg" id="viewPass" />
|
||||
<img src="imgs/user-pass.png" title="<?php echo _('La clave generada se mostrará aquí'); ?>" class="inputImg" id="viewPass" />
|
||||
|
||||
<img src="imgs/genpass.png" title="<? echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="password(11, true, true);" />
|
||||
<img src="imgs/genpass.png" title="<?php echo _('Generar clave aleatoria'); ?>" class="inputImg" OnClick="password(11, true, true);" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Clave (repetir)'); ?></td>
|
||||
<td class="descField"><?php echo _('Clave (repetir)'); ?></td>
|
||||
<td class="valField"><INPUT type="password" MAXLENGTH="255" name="password2">
|
||||
<span id="passLevel" title="<? echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
<span id="passLevel" title="<?php echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="savetyp" value="4" />
|
||||
<input type="hidden" name="accountid" value="<? echo $account->accountId; ?>" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="accountid" value="<?php echo $account->accountId; ?>" />
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
</form>
|
||||
|
||||
<div class="action">
|
||||
<ul>
|
||||
<li>
|
||||
<img SRC="imgs/back.png" title="<? echo _('Atrás'); ?>" class="inputImg" id="btnBack" OnClick="doAction('<? echo $account->lastAction; ?>', 'accsearch',<? echo $account->accountId; ?>)" />
|
||||
<img SRC="imgs/back.png" title="<?php echo _('Atrás'); ?>" class="inputImg" id="btnBack" OnClick="doAction('<?php echo $account->lastAction; ?>', 'accsearch',<?php echo $account->accountId; ?>)" />
|
||||
</li>
|
||||
<li>
|
||||
<img SRC="imgs/check.png" title="<? echo _('Guardar'); ?>" class="inputImg" id="btnSave" OnClick="saveAccount('frmEditPass');" />
|
||||
<img SRC="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" id="btnSave" OnClick="saveAccount('frmEditPass');" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
|
||||
<div id="error" align="center">
|
||||
|
||||
<? if ( isset($data['showlogo']) ): ?>
|
||||
<?php if ( isset($data['showlogo']) ): ?>
|
||||
<div id="logo">
|
||||
<img src="<? echo SP_Init::$WEBROOT; ?>/imgs/logo_full.png" alt="sysPass logo"/>
|
||||
<img src="<?php echo SP_Init::$WEBROOT; ?>/imgs/logo_full.png" alt="sysPass logo"/>
|
||||
</div>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$errors = $data['errors'];
|
||||
|
||||
@@ -43,10 +43,10 @@ $resQuery = DB::getResults($strQuery, __FUNCTION__);
|
||||
?>
|
||||
|
||||
<div id="title" class="midroundup titleNormal">
|
||||
<? echo _('Registro de Eventos'); ?>
|
||||
<?php echo _('Registro de Eventos'); ?>
|
||||
</div>
|
||||
|
||||
<?
|
||||
<?php
|
||||
if ( ! $resQuery ) {
|
||||
die('<div class="error round">'._('ERROR EN LA CONSULTA').'</div>');
|
||||
}
|
||||
@@ -65,43 +65,43 @@ $numRows = $resQueryNumRows[0]->numRows;
|
||||
<thead>
|
||||
<tr class="header-grey">
|
||||
<th>
|
||||
<? echo _('ID'); ?>
|
||||
<?php echo _('ID'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<? echo _('Fecha / Hora'); ?>
|
||||
<?php echo _('Fecha / Hora'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<? echo _('Evento'); ?>
|
||||
<?php echo _('Evento'); ?>
|
||||
</th>
|
||||
<th>
|
||||
<? echo _('Usuario'); ?>
|
||||
<?php echo _('Usuario'); ?>
|
||||
</th>
|
||||
<th class="cell-description">
|
||||
<? echo _('Descripción'); ?>
|
||||
<?php echo _('Descripción'); ?>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="resSearch">
|
||||
<? foreach ( $resQuery as $log ):
|
||||
<?php foreach ( $resQuery as $log ):
|
||||
$rowClass = ( $rowClass == "row_even" ) ? "row_odd" : "row_even";
|
||||
$description = ( $isDemoMode === 0 ) ? utf8_decode($log->log_description) : preg_replace("/\d+\.\d+\.\d+\.\d+/", "*.*.*.*", utf8_decode($log->log_description));
|
||||
?>
|
||||
|
||||
<tr class="<? echo $rowClass ?>">
|
||||
<tr class="<?php echo $rowClass ?>">
|
||||
<td class="cell">
|
||||
<? echo $log->log_id; ?>
|
||||
<?php echo $log->log_id; ?>
|
||||
</td>
|
||||
<td class="cell">
|
||||
<? echo $log->date; ?>
|
||||
<?php echo $log->date; ?>
|
||||
</td>
|
||||
<td class="cell">
|
||||
<? echo utf8_decode($log->log_action); ?>
|
||||
<?php echo utf8_decode($log->log_action); ?>
|
||||
</td>
|
||||
<td class="cell">
|
||||
<? echo strtoupper($log->log_login); ?>
|
||||
<?php echo strtoupper($log->log_login); ?>
|
||||
</td>
|
||||
<td class="cell-description">
|
||||
<?
|
||||
<?php
|
||||
$descriptions = explode(';;', $description);
|
||||
|
||||
foreach ( $descriptions as $text ){
|
||||
@@ -114,7 +114,7 @@ $numRows = $resQueryNumRows[0]->numRows;
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -35,25 +35,25 @@ $activeTab = $data['active'];
|
||||
<table class="fancydata">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Nombre'); ?></td>
|
||||
<td class="descField"><?php echo _('Nombre'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="text" id="grpname" name="name" title="<? echo _('Nombre del grupo'); ?>" value="<? echo $group["usergroup_name"] ?>" />
|
||||
<input type="text" id="grpname" name="name" title="<?php echo _('Nombre del grupo'); ?>" value="<?php echo $group["usergroup_name"] ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Descripción'); ?></td>
|
||||
<td class="valField"><input type="text" id="grpdesc" name="description" title="<? echo _('Descripción del grupo'); ?>" value="<? echo $group["usergroup_description"]; ?>" />
|
||||
<td class="descField"><?php echo _('Descripción'); ?></td>
|
||||
<td class="valField"><input type="text" id="grpdesc" name="description" title="<?php echo _('Descripción del grupo'); ?>" value="<?php echo $group["usergroup_description"]; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="id" value="<? echo $group["usergroup_id"]; ?>" />
|
||||
<input type="hidden" name="action" value="<? echo $group["action"] ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $group["usergroup_id"]; ?>" />
|
||||
<input type="hidden" name="action" value="<?php echo $group["action"] ?>" />
|
||||
<input type="hidden" name="type" value="<?php echo $data['itemtype']; ?>" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE) ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE) ?>">
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
</form>
|
||||
<div id="resCheck"><span id="resFancyAccion"></span></div>
|
||||
|
||||
@@ -49,7 +49,7 @@ defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo'
|
||||
</div><!-- Close boxData -->
|
||||
</div><!-- Close boxLogin -->
|
||||
|
||||
<? if( SP_Common::parseParams('g', 'logout', FALSE, TRUE) ): ?>
|
||||
<div id="boxLogout"><? echo _('Sesión finalizada'); ?></div>
|
||||
<?php if( SP_Common::parseParams('g', 'logout', FALSE, TRUE) ): ?>
|
||||
<div id="boxLogout"><?php echo _('Sesión finalizada'); ?></div>
|
||||
<script>$('#boxLogout').fadeOut(5000);</script>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
@@ -35,19 +35,19 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
|
||||
|
||||
<form method="post" name="frmCrypt" id="frmCrypt">
|
||||
<table class="data tblConfig round">
|
||||
<? if ( $lastUpdateMPass > 0 ): ?>
|
||||
<?php if ( $lastUpdateMPass > 0 ): ?>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Último cambio'); ?>
|
||||
<?php echo _('Último cambio'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<? echo date("r",$lastUpdateMPass); ?>
|
||||
<?php echo date("r",$lastUpdateMPass); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Clave Maestra actual'); ?>
|
||||
<?php echo _('Clave Maestra actual'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="password" name="curMasterPwd" maxlength="255">
|
||||
@@ -55,7 +55,7 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Nueva Clave Maestra'); ?>
|
||||
<?php echo _('Nueva Clave Maestra'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="password" name="newMasterPwd" maxlength="255">
|
||||
@@ -63,7 +63,7 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Nueva Clave Maestra (repetir)'); ?>
|
||||
<?php echo _('Nueva Clave Maestra (repetir)'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="password" name="newMasterPwdR" maxlength="255">
|
||||
@@ -71,8 +71,8 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('No modificar cuentas'); ?>
|
||||
<? SP_Common::printHelpButton("config", 16); ?>
|
||||
<?php echo _('No modificar cuentas'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 16); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" class="checkbox" name="chkNoAccountChange" />
|
||||
@@ -80,30 +80,30 @@ $lastUpdateMPass = SP_Config::getConfigValue("lastupdatempass");
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Confirmar cambio'); ?>
|
||||
<?php echo _('Confirmar cambio'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<img src="imgs/warning.png" ALT="<? echo _('Atención'); ?>" class="iconMini" />
|
||||
<? echo _('Guarde la nueva clave en un lugar seguro.'); ?>
|
||||
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini" />
|
||||
<?php echo _('Guarde la nueva clave en un lugar seguro.'); ?>
|
||||
<br>
|
||||
<img src="imgs/warning.png" ALT="<? echo _('Atención'); ?>" class="iconMini" />
|
||||
<? echo _('Se volverán a encriptar las claves de todas las cuentas.'); ?>
|
||||
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini" />
|
||||
<?php echo _('Se volverán a encriptar las claves de todas las cuentas.'); ?>
|
||||
<br>
|
||||
<img src="imgs/warning.png" ALT="<? echo _('Atención'); ?>" class="iconMini" />
|
||||
<? echo _('Los usuarios deberán de introducir la nueva clave maestra.'); ?>
|
||||
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini" />
|
||||
<?php echo _('Los usuarios deberán de introducir la nueva clave maestra.'); ?>
|
||||
<br>
|
||||
<input type="checkbox" class="checkbox" name="confirmPassChange" value="1" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="action" value="crypt" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
</form>
|
||||
<div class="action">
|
||||
<ul>
|
||||
<li>
|
||||
<img src="imgs/check.png" title="<? echo _('Guardar'); ?>" class="inputImg" OnClick="configMgmt('savempwd');" />
|
||||
<img src="imgs/check.png" title="<?php echo _('Guardar'); ?>" class="inputImg" OnClick="configMgmt('savempwd');" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -30,15 +30,15 @@ $activeTab = $data['active'];
|
||||
?>
|
||||
|
||||
<div id="title" class="midroundup titleNormal">
|
||||
<? echo _('Importar phpPMS'); ?>
|
||||
<?php echo _('Importar phpPMS'); ?>
|
||||
</div>
|
||||
|
||||
<form METHOD="post" name="frmMigrate" id="frmMigrate">
|
||||
<table class="data round">
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Usuario BBDD'); ?>
|
||||
<? SP_Common::printHelpButton("config", 0); ?>
|
||||
<?php echo _('Usuario BBDD'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 0); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="dbuser" value="" />
|
||||
@@ -46,7 +46,7 @@ $activeTab = $data['active'];
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Clave BBDD'); ?>
|
||||
<?php echo _('Clave BBDD'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="password" name="dbpass" value=""/>
|
||||
@@ -54,8 +54,8 @@ $activeTab = $data['active'];
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Nombre BBDD'); ?>
|
||||
<? SP_Common::printHelpButton("config", 1); ?>
|
||||
<?php echo _('Nombre BBDD'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 1); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="dbname" value="phppms" />
|
||||
@@ -63,8 +63,8 @@ $activeTab = $data['active'];
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Servidor BBDD'); ?>
|
||||
<? SP_Common::printHelpButton("config", 2); ?>
|
||||
<?php echo _('Servidor BBDD'); ?>
|
||||
<?php SP_Common::printHelpButton("config", 2); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="text" name="dbhost" value="localhost" />
|
||||
@@ -72,26 +72,26 @@ $activeTab = $data['active'];
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField">
|
||||
<? echo _('Confirmar'); ?>
|
||||
<?php echo _('Confirmar'); ?>
|
||||
</td>
|
||||
<td class="valField">
|
||||
<input type="checkbox" name="chkmigrate" class="checkbox" />
|
||||
<br>
|
||||
<img src="imgs/warning.png" ALT="<? echo _('Atención'); ?>" class="iconMini" />
|
||||
<? echo _('Los datos actuales serán borrados (excepto el usuario actual)'); ?>
|
||||
<img src="imgs/warning.png" ALT="<?php echo _('Atención'); ?>" class="iconMini" />
|
||||
<?php echo _('Los datos actuales serán borrados (excepto el usuario actual)'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="action" value="migrate" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
</form>
|
||||
|
||||
<div class="action">
|
||||
<ul>
|
||||
<li>
|
||||
<img src="imgs/start.png" title="<? echo _('Iniciar'); ?>" class="inputImg" OnClick="configMgmt('migrate');" />
|
||||
<img src="imgs/start.png" title="<?php echo _('Iniciar'); ?>" class="inputImg" OnClick="configMgmt('migrate');" />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -35,85 +35,85 @@ $activeTab = $data['active'];
|
||||
<table class="fancydata">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Nombre'); ?></td>
|
||||
<td class="descField"><?php echo _('Nombre'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="text" id="profile_name" name="profile_name" title="<? echo _('Nombre del perfil'); ?>" value="<? echo $profile['userprofile_name']; ?>" />
|
||||
<input type="text" id="profile_name" name="profile_name" title="<?php echo _('Nombre del perfil'); ?>" value="<?php echo $profile['userprofile_name']; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Cuentas'); ?></td>
|
||||
<td class="descField"><?php echo _('Cuentas'); ?></td>
|
||||
<td class="valField checkbox">
|
||||
<div id="btnProfilesAcc" class="btnChecks">
|
||||
<label for="profile_accview" title="<? echo _('Ver detalles de cuenta'); ?>"><? echo _('Ver'); ?></label>
|
||||
<input type="checkbox" id="profile_accview" name="profile_accview" <? echo $profile['userProfile_pView']; ?> />
|
||||
<label for="profile_accviewpass" title="<? echo _('Ver clave de cuenta'); ?>"><? echo _('Ver Clave'); ?></label>
|
||||
<input type="checkbox" id="profile_accviewpass" name="profile_accviewpass" <? echo $profile['userProfile_pViewPass']; ?> />
|
||||
<label for="profile_accview" title="<?php echo _('Ver detalles de cuenta'); ?>"><?php echo _('Ver'); ?></label>
|
||||
<input type="checkbox" id="profile_accview" name="profile_accview" <?php echo $profile['userProfile_pView']; ?> />
|
||||
<label for="profile_accviewpass" title="<?php echo _('Ver clave de cuenta'); ?>"><?php echo _('Ver Clave'); ?></label>
|
||||
<input type="checkbox" id="profile_accviewpass" name="profile_accviewpass" <?php echo $profile['userProfile_pViewPass']; ?> />
|
||||
<br>
|
||||
<label for="profile_accviewhistory" title="<? echo _('Ver historial de cuenta'); ?>"><? echo _('Ver Historial'); ?></label>
|
||||
<input type="checkbox" id="profile_accviewhistory" name="profile_accviewhistory" <? echo $profile['userProfile_pViewHistory']; ?> />
|
||||
<label for="profile_accedit" title="<? echo _('Editar cuenta'); ?>"><? echo _('Editar'); ?></label>
|
||||
<input type="checkbox" id="profile_accedit" name="profile_accedit" <? echo $profile['userProfile_pEdit']; ?>/>
|
||||
<label for="profile_accviewhistory" title="<?php echo _('Ver historial de cuenta'); ?>"><?php echo _('Ver Historial'); ?></label>
|
||||
<input type="checkbox" id="profile_accviewhistory" name="profile_accviewhistory" <?php echo $profile['userProfile_pViewHistory']; ?> />
|
||||
<label for="profile_accedit" title="<?php echo _('Editar cuenta'); ?>"><?php echo _('Editar'); ?></label>
|
||||
<input type="checkbox" id="profile_accedit" name="profile_accedit" <?php echo $profile['userProfile_pEdit']; ?>/>
|
||||
<br>
|
||||
<label for="profile_acceditpass" title="<? echo _('Editar clave de cuenta'); ?>"><? echo _('Editar Clave'); ?></label>
|
||||
<input type="checkbox" id="profile_acceditpass" name="profile_acceditpass" <? echo $profile['userProfile_pEditPass']; ?> />
|
||||
<label for="profile_accadd" title="<? echo _('Añadir nueva cuenta'); ?>"><? echo _('Añadir'); ?></label>
|
||||
<input type="checkbox" id="profile_accadd" name="profile_accadd" <? echo $profile['userProfile_pAdd']; ?> />
|
||||
<label for="profile_acceditpass" title="<?php echo _('Editar clave de cuenta'); ?>"><?php echo _('Editar Clave'); ?></label>
|
||||
<input type="checkbox" id="profile_acceditpass" name="profile_acceditpass" <?php echo $profile['userProfile_pEditPass']; ?> />
|
||||
<label for="profile_accadd" title="<?php echo _('Añadir nueva cuenta'); ?>"><?php echo _('Añadir'); ?></label>
|
||||
<input type="checkbox" id="profile_accadd" name="profile_accadd" <?php echo $profile['userProfile_pAdd']; ?> />
|
||||
<br>
|
||||
<label for="profile_accdel" title="<? echo _('Borrar cuenta'); ?>"><? echo _('Borrar'); ?></label>
|
||||
<input type="checkbox" id="profile_accdel" name="profile_accdel" <? echo $profile['userProfile_pDelete']; ?> />
|
||||
<label for="profile_accfiles" title="<? echo _('Ver archivos de cuenta'); ?>"><? echo _('Archivos'); ?></label>
|
||||
<input type="checkbox" id="profile_accfiles" name="profile_accfiles" <? echo $profile['userProfile_pFiles']; ?> />
|
||||
<label for="profile_accdel" title="<?php echo _('Borrar cuenta'); ?>"><?php echo _('Borrar'); ?></label>
|
||||
<input type="checkbox" id="profile_accdel" name="profile_accdel" <?php echo $profile['userProfile_pDelete']; ?> />
|
||||
<label for="profile_accfiles" title="<?php echo _('Ver archivos de cuenta'); ?>"><?php echo _('Archivos'); ?></label>
|
||||
<input type="checkbox" id="profile_accfiles" name="profile_accfiles" <?php echo $profile['userProfile_pFiles']; ?> />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Configuración'); ?></td>
|
||||
<td class="descField"><?php echo _('Configuración'); ?></td>
|
||||
<td class="valField checkbox">
|
||||
<div id="btnProfilesConfig" class="btnChecks">
|
||||
<label for="profile_config" title="<? echo _('Configuración general'); ?>"><? echo _('General'); ?></label>
|
||||
<input type="checkbox" id="profile_config" name="profile_config" <? echo $profile['userProfile_pConfig']; ?> />
|
||||
<label for="profile_configcat" title="<? echo _('Gestión de categorías'); ?>"><? echo _('Categorías'); ?></label>
|
||||
<input type="checkbox" id="profile_configcat" name="profile_configcat" <? echo $profile['userProfile_pConfigCategories']; ?> />
|
||||
<label for="profile_config" title="<?php echo _('Configuración general'); ?>"><?php echo _('General'); ?></label>
|
||||
<input type="checkbox" id="profile_config" name="profile_config" <?php echo $profile['userProfile_pConfig']; ?> />
|
||||
<label for="profile_configcat" title="<?php echo _('Gestión de categorías'); ?>"><?php echo _('Categorías'); ?></label>
|
||||
<input type="checkbox" id="profile_configcat" name="profile_configcat" <?php echo $profile['userProfile_pConfigCategories']; ?> />
|
||||
<br>
|
||||
<label for="profile_configmpw" title="<? echo _('Cambiar clave maestra'); ?>"><? echo _('Clave Maestra'); ?></label>
|
||||
<input type="checkbox" id="profile_configmpw" name="profile_configmpw" <? echo $profile['userProfile_pConfigMasterPass']; ?> />
|
||||
<label for="profile_configback" title="<? echo _('Realizar copia de seguridad'); ?>"><? echo _('Backup'); ?></label>
|
||||
<input type="checkbox" id="profile_configback" name="profile_configback" <? echo $profile['userProfile_pConfigBackup']; ?> />
|
||||
<label for="profile_configmpw" title="<?php echo _('Cambiar clave maestra'); ?>"><?php echo _('Clave Maestra'); ?></label>
|
||||
<input type="checkbox" id="profile_configmpw" name="profile_configmpw" <?php echo $profile['userProfile_pConfigMasterPass']; ?> />
|
||||
<label for="profile_configback" title="<?php echo _('Realizar copia de seguridad'); ?>"><?php echo _('Backup'); ?></label>
|
||||
<input type="checkbox" id="profile_configback" name="profile_configback" <?php echo $profile['userProfile_pConfigBackup']; ?> />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Gestión'); ?></td>
|
||||
<td class="descField"><?php echo _('Gestión'); ?></td>
|
||||
<td class="valField checkbox">
|
||||
<div id="btnProfilesUsers" class="btnChecks">
|
||||
<label for="profile_users" title="<? echo _('Gestión de usuarios'); ?>"><? echo _('Usuarios'); ?></label>
|
||||
<input type="checkbox" id="profile_users" name="profile_users" <? echo $profile['userProfile_pUsers']; ?> />
|
||||
<label for="profile_groups" title="<? echo _('Gestión de grupos'); ?>"><? echo _('Grupos'); ?></label>
|
||||
<input type="checkbox" id="profile_groups" name="profile_groups" <? echo $profile['userProfile_pGroups']; ?> />
|
||||
<label for="profile_users" title="<?php echo _('Gestión de usuarios'); ?>"><?php echo _('Usuarios'); ?></label>
|
||||
<input type="checkbox" id="profile_users" name="profile_users" <?php echo $profile['userProfile_pUsers']; ?> />
|
||||
<label for="profile_groups" title="<?php echo _('Gestión de grupos'); ?>"><?php echo _('Grupos'); ?></label>
|
||||
<input type="checkbox" id="profile_groups" name="profile_groups" <?php echo $profile['userProfile_pGroups']; ?> />
|
||||
<br>
|
||||
<label for="profile_profiles" title="<? echo _('Gestión de perfiles'); ?>"><? echo _('Perfiles'); ?></label>
|
||||
<input type="checkbox" id="profile_profiles" name="profile_profiles" <? echo $profile['userProfile_pProfiles']; ?> />
|
||||
<label for="profile_profiles" title="<?php echo _('Gestión de perfiles'); ?>"><?php echo _('Perfiles'); ?></label>
|
||||
<input type="checkbox" id="profile_profiles" name="profile_profiles" <?php echo $profile['userProfile_pProfiles']; ?> />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Otros'); ?></td>
|
||||
<td class="descField"><?php echo _('Otros'); ?></td>
|
||||
<td class="valField checkbox">
|
||||
<div id="btnProfilesOthers" class="btnChecks">
|
||||
<label for="profile_eventlog" title="<? echo _('Ver log de eventos'); ?>"><? echo _('Log de Eventos'); ?></label>
|
||||
<input type="checkbox" id="profile_eventlog" name="profile_eventlog" <? echo $profile['userProfile_pEventlog']; ?> />
|
||||
<label for="profile_eventlog" title="<?php echo _('Ver log de eventos'); ?>"><?php echo _('Log de Eventos'); ?></label>
|
||||
<input type="checkbox" id="profile_eventlog" name="profile_eventlog" <?php echo $profile['userProfile_pEventlog']; ?> />
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="id" value="<? echo $profile['userprofile_id']; ?>" />
|
||||
<input type="hidden" name="action" value="<? echo $profile["action"] ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $profile['userprofile_id']; ?>" />
|
||||
<input type="hidden" name="action" value="<?php echo $profile["action"] ?>" />
|
||||
<input type="hidden" name="type" value="<?php echo $data['itemtype']; ?>" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE) ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE) ?>">
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
@@ -50,12 +50,12 @@ $categoriesSelProp = array("name" => "category",
|
||||
<tr>
|
||||
<td id="toolsLeft">
|
||||
<label FOR="txtSearch"></label>
|
||||
<input type="text" name="search" id="txtSearch" onKeyUp="accSearch(1)" value="<? echo SP_Common::parseParams('s', 'accountSearchTxt'); ?>" placeholder="<? echo _('Texto a buscar'); ?>"/>
|
||||
<img src="imgs/clear.png" title="<? echo _('Limpiar'); ?>" class="inputImg" id="btnLimpiar" onClick="Clear('frmSearch', 1); accSearch(0);" />
|
||||
<input type="hidden" name="start" value="<? echo SP_Common::parseParams('s', 'accountSearchStart', 0); ?>">
|
||||
<input type="hidden" name="skey" value="<? echo SP_Common::parseParams('s', 'accountSearchKey', 1); ?>" />
|
||||
<input type="hidden" name="sorder" value="<? echo SP_Common::parseParams('s', 'accountSearchOrder', 0); ?>" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<img src="imgs/clear.png" title="<?php echo _('Limpiar'); ?>" class="inputImg" id="btnClear" onClick="Clear('frmSearch', 1); accSearch(0);" />
|
||||
<input type="text" name="search" id="txtSearch" onKeyUp="accSearch(1)" value="<?php echo SP_Common::parseParams('s', 'accountSearchTxt'); ?>" placeholder="<?php echo _('Texto a buscar'); ?>"/>
|
||||
<input type="hidden" name="start" value="<?php echo SP_Common::parseParams('s', 'accountSearchStart', 0); ?>">
|
||||
<input type="hidden" name="skey" value="<?php echo SP_Common::parseParams('s', 'accountSearchKey', 0); ?>" />
|
||||
<input type="hidden" name="sorder" value="<?php echo SP_Common::parseParams('s', 'accountSearchOrder', 0); ?>" />
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE); ?>">
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
<?
|
||||
SP_Html::printSelect(SP_Customer::getCustomers(), $customersSelProp);
|
||||
@@ -63,15 +63,15 @@ $categoriesSelProp = array("name" => "category",
|
||||
?>
|
||||
</td>
|
||||
<td id="toolsRight">
|
||||
<input type="text" name="rpp" id="rpp" placeholder="<? echo _('CPP'); ?>" title="<? echo _('Cuentas por página'); ?>" value="<? echo SP_Common::parseParams('s', 'accountSearchLimit', SP_Config::getValue('account_count')); ?>"/>
|
||||
<input type="text" name="rpp" id="rpp" placeholder="<?php echo _('CPP'); ?>" title="<?php echo _('Cuentas por página'); ?>" value="<?php echo SP_Common::parseParams('s', 'accountSearchLimit', SP_Config::getValue('account_count')); ?>"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<script>
|
||||
accSearch(0);
|
||||
mkChosen({id: 'selCustomer', placeholder: '<? echo _('Seleccionar Cliente'); ?>', noresults: '<? echo _('Sin resultados'); ?>' });
|
||||
mkChosen({id: 'selCategory', placeholder: '<? echo _('Seleccionar Categoría'); ?>', noresults: '<? echo _('Sin resultados'); ?>' });
|
||||
mkChosen({id: 'selCustomer', placeholder: '<?php echo _('Seleccionar Cliente'); ?>', noresults: '<?php echo _('Sin resultados'); ?>' });
|
||||
mkChosen({id: 'selCategory', placeholder: '<?php echo _('Seleccionar Categoría'); ?>', noresults: '<?php echo _('Sin resultados'); ?>' });
|
||||
|
||||
$("#rpp").spinner({step: 5, max: 50, min: 5, numberFormat: "n", stop: function(event, ui) {
|
||||
accSearch(0);
|
||||
|
||||
@@ -61,93 +61,93 @@ $ro = ( $user['checks']['user_isLdap'] ) ? "READONLY" : "";
|
||||
<table class="fancydata">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Nombre') ?></td>
|
||||
<td class="descField"><?php echo _('Nombre') ?></td>
|
||||
<td class="valField">
|
||||
<input type="text" id="usrname" name="name" title="<? echo _('Nombre de usuario completo'); ?>" class="txtuser" maxlength="80" value="<? echo $user['user_name']; ?>" />
|
||||
<input type="text" id="usrname" name="name" title="<?php echo _('Nombre de usuario completo'); ?>" class="txtuser" maxlength="80" value="<?php echo $user['user_name']; ?>" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Login'); ?></td><td class="valField">
|
||||
<input type="text" id="usrlogin" name="login" title="<? echo _('Login de inicio de sesión'); ?>" class="txtlogin" maxlength="30" value="<? echo $user['user_login'] ?>" <? echo $ro; ?> />
|
||||
<? if ($ro): ?>
|
||||
<img src="imgs/ldap.png" title="<? echo _('Usuario de LDAP'); ?>" class="iconMini" />
|
||||
<? endif; ?>
|
||||
<td class="descField"><?php echo _('Login'); ?></td><td class="valField">
|
||||
<input type="text" id="usrlogin" name="login" title="<?php echo _('Login de inicio de sesión'); ?>" class="txtlogin" maxlength="30" value="<?php echo $user['user_login'] ?>" <?php echo $ro; ?> />
|
||||
<?php if ($ro): ?>
|
||||
<img src="imgs/ldap.png" title="<?php echo _('Usuario de LDAP'); ?>" class="iconMini" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Perfil'); ?></td>
|
||||
<td class="descField"><?php echo _('Perfil'); ?></td>
|
||||
<td class="valField">
|
||||
<? SP_Html::printSelect(SP_Users::getValuesForSelect('usrProfiles', 'userprofile_id', 'userprofile_name'), $profilesSelProp); ?>
|
||||
<?php SP_Html::printSelect(SP_Users::getValuesForSelect('usrProfiles', 'userprofile_id', 'userprofile_name'), $profilesSelProp); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Grupo'); ?></td>
|
||||
<td class="descField"><?php echo _('Grupo'); ?></td>
|
||||
<td class="valField">
|
||||
<? SP_Html::printSelect(SP_Users::getValuesForSelect('usrGroups', 'usergroup_id', 'usergroup_name'), $groupsSelProp); ?>
|
||||
<?php SP_Html::printSelect(SP_Users::getValuesForSelect('usrGroups', 'usergroup_id', 'usergroup_name'), $groupsSelProp); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Email'); ?></td>
|
||||
<td class="descField"><?php echo _('Email'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="text" id="usremail" name="email" title="<? echo _('Dirección de correo'); ?>" class="txtemail" maxlength="50" value="<? echo $user['user_email']; ?>" />
|
||||
<input type="text" id="usremail" name="email" title="<?php echo _('Dirección de correo'); ?>" class="txtemail" maxlength="50" value="<?php echo $user['user_email']; ?>" />
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<? if ( $user['action'] === 1): ?>
|
||||
<?php if ( $user['action'] === 1): ?>
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Clave'); ?></td>
|
||||
<td class="descField"><?php echo _('Clave'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="password" id="usrpass" name="pass" class="txtpass" maxlength="50" OnFocus="$('#passLevel').show();
|
||||
$('#resFancyAccion').hide();" OnKeyUp="checkPassLevel(this.value)" />
|
||||
<img src="imgs/genpass.png" title="<? echo _('Generar clave aleatoria') ?>" class="inputImg" OnClick="$('#resFancyAccion').hide();
|
||||
<img src="imgs/genpass.png" title="<?php echo _('Generar clave aleatoria') ?>" class="inputImg" OnClick="$('#resFancyAccion').hide();
|
||||
password(11, true);" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Clave (repetir)'); ?></td>
|
||||
<td class="descField"><?php echo _('Clave (repetir)'); ?></td>
|
||||
<td class="valField">
|
||||
<input type="password" id="usrpassv" name="passv" class="txtpassv" maxlength="50" />
|
||||
<span id="passLevel" title="<? echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
<span id="passLevel" title="<?php echo _('Nivel de fortaleza de la clave'); ?>" ></span>
|
||||
</td>
|
||||
</tr>
|
||||
<? endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Notas') ?></td>
|
||||
<td class="descField"><?php echo _('Notas') ?></td>
|
||||
<td class="valField">
|
||||
<textarea name="notes" id="usrnotes" rows="4"><? echo $user['user_notes']; ?></textarea>
|
||||
<textarea name="notes" id="usrnotes" rows="4"><?php echo $user['user_notes']; ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="descField"><? echo _('Opciones'); ?></td>
|
||||
<td class="descField"><?php echo _('Opciones'); ?></td>
|
||||
<td class="valField checkbox">
|
||||
<div id="btnUserOptions" class="btnChecks">
|
||||
<? if ($_SESSION["uisadminapp"] === 1 || $isDemo): ?>
|
||||
<label for="usradminapp" title="<? echo _('Administrador de la aplicación'); ?>"><? echo _('Admin. Aplicación'); ?></label>
|
||||
<input type="checkbox" id="usradminapp" name="adminapp" <? echo $user['checks']['user_isAdminApp'] . ' ' . $isDisabled; ?>/>
|
||||
<label for="usradminacc" title="<? echo _('Administrador de cuentas') ?>"><? echo _('Admin. Cuentas') ?></label>
|
||||
<input type="checkbox" id="usradminacc" name="adminacc" <? echo $user['checks']['user_isAdminAcc'] . ' ' . $isDisabled; ?> />
|
||||
<? endif; ?>
|
||||
<label for="usrdisabled" title="<? echo _('Deshabilitado'); ?>"><? echo _('Deshabilitado'); ?></label>
|
||||
<input type="checkbox" id="usrdisabled" name="disabled" <? echo $user['checks']['user_isDisabled']; ?>/>
|
||||
<?php if ($_SESSION["uisadminapp"] === 1 || $isDemo): ?>
|
||||
<label for="usradminapp" title="<?php echo _('Administrador de la aplicación'); ?>"><?php echo _('Admin. Aplicación'); ?></label>
|
||||
<input type="checkbox" id="usradminapp" name="adminapp" <?php echo $user['checks']['user_isAdminApp'] . ' ' . $isDisabled; ?>/>
|
||||
<label for="usradminacc" title="<?php echo _('Administrador de cuentas') ?>"><?php echo _('Admin. Cuentas') ?></label>
|
||||
<input type="checkbox" id="usradminacc" name="adminacc" <?php echo $user['checks']['user_isAdminAcc'] . ' ' . $isDisabled; ?> />
|
||||
<?php endif; ?>
|
||||
<label for="usrdisabled" title="<?php echo _('Deshabilitado'); ?>"><?php echo _('Deshabilitado'); ?></label>
|
||||
<input type="checkbox" id="usrdisabled" name="disabled" <?php echo $user['checks']['user_isDisabled']; ?>/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="hidden" name="active" value="<? echo $activeTab ?>" />
|
||||
<input type="hidden" name="ldap" value="<? echo $user['user_isLdap']; ?>" />
|
||||
<input type="hidden" name="id" value="<? echo $user['user_id']; ?>" />
|
||||
<input type="hidden" name="action" value="<? echo $user['action']; ?>" />
|
||||
<input type="hidden" name="active" value="<?php echo $activeTab ?>" />
|
||||
<input type="hidden" name="ldap" value="<?php echo $user['user_isLdap']; ?>" />
|
||||
<input type="hidden" name="id" value="<?php echo $user['user_id']; ?>" />
|
||||
<input type="hidden" name="action" value="<?php echo $user['action']; ?>" />
|
||||
<input type="hidden" name="type" value="<?php echo $data['itemtype']; ?>" />
|
||||
<input type="hidden" name="sk" value="<? echo SP_Common::getSessionKey(TRUE) ?>">
|
||||
<input type="hidden" name="sk" value="<?php echo SP_Common::getSessionKey(TRUE) ?>">
|
||||
<input type="hidden" name="is_ajax" value="1">
|
||||
</form>
|
||||
<div id="resCheck"><span id="resFancyAccion"></span></div>
|
||||
@@ -160,13 +160,13 @@ $ro = ( $user['checks']['user_isLdap'] ) ? "READONLY" : "";
|
||||
<script>
|
||||
$("#btnUserOptions").buttonset();
|
||||
$("#selProfile").chosen({
|
||||
placeholder_text_single: "<? echo _('Seleccionar Perfil'); ?>",
|
||||
placeholder_text_single: "<?php echo _('Seleccionar Perfil'); ?>",
|
||||
disable_search_threshold: 10,
|
||||
no_results_text: "<? echo _('Sin resultados'); ?>"
|
||||
no_results_text: "<?php echo _('Sin resultados'); ?>"
|
||||
});
|
||||
$("#selGroup").chosen({
|
||||
placeholder_text_single: "<? echo _('Seleccionar Grupo'); ?>",
|
||||
placeholder_text_single: "<?php echo _('Seleccionar Grupo'); ?>",
|
||||
disable_search_threshold: 10,
|
||||
no_results_text: "<? echo _('Sin resultados'); ?>"
|
||||
no_results_text: "<?php echo _('Sin resultados'); ?>"
|
||||
});
|
||||
</script>
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user