Rozdiely pre Metafox/admin/inc/functions.inc.php medzi verziami 1.9 a 1.10
| verzia 1.9, 2007/11/12 16:12:58 |
verzia 1.10, 2012/05/14 17:56:52 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/admin/inc/functions.inc.php,v 1.8 2007-05-09 13:48:23 nepto Exp $ */ |
/* $Platon: Metafox/admin/inc/functions.inc.php,v 1.9 2007-11-12 16:12:58 nepto Exp $ */ |
| |
|
| /* MAINTAINANCE: This file is maintained in Metafox project and distributed |
/* MAINTAINANCE: This file is maintained in Metafox project and distributed |
| across the particular projects accordingly. */ |
across the particular projects accordingly. */ |
| Riadok 127 function ezin_admin_is_blog() /* {{{ */ |
|
| Riadok 127 function ezin_admin_is_blog() /* {{{ */ |
|
| return false; |
return false; |
| } /* }}} */ |
} /* }}} */ |
| |
|
| |
function ezin_reset_session_records() { |
| |
global $ezin_sys; |
| |
global $ezin_db_handle; |
| |
|
| |
$query = sprintf('UPDATE %s' |
| |
.' SET password = REPEAT("*", LENGTH(password))' |
| |
.' WHERE password IS NOT NULL AND LENGTH(password) > 0' |
| |
.' AND login < SUBDATE(NOW(), INTERVAL 7 DAY)', |
| |
$ezin_sys['db']['tables']['sessions']); |
| |
$result = @mysql_query($query, $ezin_db_handle) |
| |
or ezin_db_error('ezin_reset_session_records()'); |
| |
@mysql_free_result($result); |
| |
} |
| |
|
| |
|
| /* Modeline for ViM {{{ |
/* Modeline for ViM {{{ |
| * vim: set ts=4: |
* vim: set ts=4: |
| * vim600: fdm=marker fdl=0 fdc=0: |
* vim600: fdm=marker fdl=0 fdc=0: |
Platon Group <platon@platon.sk> http://platon.sk/
|
|