mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +02:00
read and unread timouts now uses days instead of minutes
This commit is contained in:
@@ -18,8 +18,8 @@ define('ADLAN_PM_15', "Add PM Limit");
|
|||||||
define('ADLAN_PM_16', "Plugin Title");
|
define('ADLAN_PM_16', "Plugin Title");
|
||||||
define('ADLAN_PM_17', "Show new PM animation");
|
define('ADLAN_PM_17', "Show new PM animation");
|
||||||
define('ADLAN_PM_18', "Show user dropdown");
|
define('ADLAN_PM_18', "Show user dropdown");
|
||||||
define('ADLAN_PM_19', "READ message timeout");
|
define('ADLAN_PM_19', "READ message timeout (days)");
|
||||||
define('ADLAN_PM_20', "UNREAD message timeout");
|
define('ADLAN_PM_20', "UNREAD message timeout (days)");
|
||||||
define('ADLAN_PM_21', "Popup notification on new PM");
|
define('ADLAN_PM_21', "Popup notification on new PM");
|
||||||
define('ADLAN_PM_22', "Popup delay timeout");
|
define('ADLAN_PM_22', "Popup delay timeout");
|
||||||
define('ADLAN_PM_23', "Restrict PM use to");
|
define('ADLAN_PM_23', "Restrict PM use to");
|
||||||
|
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/pm/pm.php,v $
|
||||||
| $Revision: 1.6 $
|
| $Revision: 1.7 $
|
||||||
| $Date: 2007-09-22 17:41:20 $
|
| $Date: 2008-02-02 22:41:55 $
|
||||||
| $Author: e107steved $
|
| $Author: mcfly_e107 $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -55,12 +55,12 @@ $read_timeout = intval($pm_prefs['read_timeout']);
|
|||||||
$unread_timeout = intval($pm_prefs['unread_timeout']);
|
$unread_timeout = intval($pm_prefs['unread_timeout']);
|
||||||
if($read_timeout > 0)
|
if($read_timeout > 0)
|
||||||
{
|
{
|
||||||
$timeout = time()-($read_timeout * 60);
|
$timeout = time()-($read_timeout * 86400);
|
||||||
$del_qry[] = "(pm_sent < {$timeout} AND pm_read > 0)";
|
$del_qry[] = "(pm_sent < {$timeout} AND pm_read > 0)";
|
||||||
}
|
}
|
||||||
if($unread_timeout > 0)
|
if($unread_timeout > 0)
|
||||||
{
|
{
|
||||||
$timeout = time()-($unread_timeout * 60);
|
$timeout = time()-($unread_timeout * 86400);
|
||||||
$del_qry[] = "(pm_sent < {$timeout} AND pm_read = 0)";
|
$del_qry[] = "(pm_sent < {$timeout} AND pm_read = 0)";
|
||||||
}
|
}
|
||||||
if(count($del_qry) > 0)
|
if(count($del_qry) > 0)
|
||||||
|
Reference in New Issue
Block a user