Revize 961
Přidáno uživatelem Michal Kliment před více než 13 roky(ů)
freenetis/branches/testing/application/models/ip_address.php | ||
---|---|---|
*/
|
||
public function get_all_ip_addresses_with_owner ($ip_query)
|
||
{
|
||
if ($ip_query == '')
|
||
return array();
|
||
|
||
return $this->db->query("
|
||
SELECT ip_address FROM
|
||
(
|
freenetis/branches/testing/application/controllers/scheduler.php | ||
---|---|---|
self::receive_sms();
|
||
|
||
// update ulogd
|
||
self::update_ulogd();
|
||
|
||
if (Settings::get('ulogd_enabled'))
|
||
self::update_ulogd();
|
||
|
||
// update allowed subnets
|
||
|
||
if (Settings::get('allowed_subnets_enabled'))
|
||
... | ... | |
* Update ulogd
|
||
* @author Michal Kliment
|
||
*/
|
||
function update_ulogd()
|
||
private function update_ulogd()
|
||
{
|
||
// it's time to update
|
||
if (Settings::get('ulogd_update_last') + Settings::get('ulogd_update_interval') < time())
|
freenetis/branches/testing/application/controllers/settings.php | ||
---|---|---|
|
||
// set logs checkbox value to db
|
||
$config_model->update_variable('action_logs_active', $action_logs_active);
|
||
$config_model->update_variable('ulogd_enabled', $ulogd_enabled);
|
||
//$config_model->update_variable('ulogd_enabled', $ulogd_enabled);
|
||
Settings::set('ulogd_enabled',$ulogd_enabled);
|
||
|
||
// try to create log table if not exists
|
||
if ($action_logs_active == '1')
|
Také k dispozici: Unified diff
Odladeny snad posledni chybicky...