some memory and execution time management
darcs-hash:20081112181533-5ed1f-d1c2d3ff28153afaf640eb127e9bcf4867952d36.gz
This commit is contained in:
parent
52431fa58b
commit
9cd913a2dd
@ -24,6 +24,11 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ini_set("max_execution_time", "0");
|
||||||
|
ini_set("max_input_time", "0");
|
||||||
|
set_time_limit(0);
|
||||||
|
mb_internal_encoding('UTF-8');
|
||||||
|
|
||||||
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
|
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
|
||||||
define('LACONICA', true);
|
define('LACONICA', true);
|
||||||
|
|
||||||
@ -42,4 +47,6 @@ while ($user->fetch()) {
|
|||||||
'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' .
|
'FROM subscription JOIN notice ON subscription.subscribed = notice.profile_id ' .
|
||||||
'WHERE subscription.subscriber = ' . $user->id . ' ' .
|
'WHERE subscription.subscriber = ' . $user->id . ' ' .
|
||||||
'AND notice.created >= subscription.created');
|
'AND notice.created >= subscription.created');
|
||||||
|
$inbox->free();
|
||||||
|
unset($inbox);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user