| verzia 1.12, 2017/06/09 15:12:58 |
verzia 1.13, 2017/11/07 06:01:58 |
|
|
| * http://platon.sk/projects/Metafox/ |
* http://platon.sk/projects/Metafox/ |
| */ |
*/ |
| |
|
| /* $Platon: Metafox/admin/inc/functions.inc.php,v 1.11 2012-09-28 18:49:48 nepto Exp $ */ |
/* $Platon: Metafox/admin/inc/functions.inc.php,v 1.12 2017/06/09 15:12:58 igor 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() { |
function ezin_reset_session_records() /* {{{ */ |
| |
{ |
| global $ezin_sys; |
global $ezin_sys; |
| global $ezin_db_handle; |
global $ezin_db_handle; |
| |
|
| Riadok 136 function ezin_reset_session_records() { |
|
| Riadok 137 function ezin_reset_session_records() { |
|
| .' WHERE password IS NOT NULL AND LENGTH(password) > 0' |
.' WHERE password IS NOT NULL AND LENGTH(password) > 0' |
| .' AND login < SUBDATE(NOW(), INTERVAL 7 DAY)', |
.' AND login < SUBDATE(NOW(), INTERVAL 7 DAY)', |
| $ezin_sys['db']['tables']['sessions']); |
$ezin_sys['db']['tables']['sessions']); |
| $result = mysqli_query($ezin_db_handle, $query) |
$result = mysqli_query($ezin_db_handle, $query); |
| or ezin_db_error('ezin_reset_session_records()'); |
if ($result == false) { |
| mysqli_free_result($result); |
ezin_db_error('ezin_reset_session_records()'); |
| } |
} |
| |
// NOTE: no mysqli_free_result() neccessary here |
| |
return true; |
| |
} /* }}} */ |
| |
|
| /* Modeline for ViM {{{ |
/* Modeline for ViM {{{ |
| * vim: set ts=4: |
* vim: set ts=4: |