1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 01:00:20 +02:00

Admin-ui type 'password' added. Password modification now possible via admin->users. Installed Media path issue corrected.

This commit is contained in:
CaMer0n
2012-07-18 03:47:28 +00:00
parent d8b956152e
commit 79224fe54d
4 changed files with 25 additions and 2 deletions

View File

@@ -824,7 +824,7 @@ class e_admin_response
global $HEADER, $FOOTER, $CUSTOMHEADER, $CUSTOMFOOTER;
$HEADER = $FOOTER = '';
$CUSTOMHEADER = $CUSTOMFOOTER = array();
//TODO generic $_GET to activate for any page of admin.
// New
if(!defined('e_IFRAME'))
{
@@ -2842,6 +2842,16 @@ class e_admin_controller_ui extends e_admin_controller
}
switch($attributes['type'])
{
case 'password': //TODO more encryption options.
if(strlen($value) < 30) // expect a non-md5 value if less than 32 chars.
{
$value = md5($value);
}
break;
case 'datestamp':
if(!is_numeric($value))
{