$file) { $file = str_replace('--LAN--', e_LANGUAGE, $file); // echo "orig = ".$file." "; //e107::lan($path,'log',true); include_lan(e_PLUGIN.$path.'/languages/'.$file); } } unset($qs); require_once (e_ADMIN.'auth.php'); $mes = e107::getMessage(); $frm = e107::getForm(); define('AL_DATE_TIME_FORMAT', 'y-m-d H:i:s'); if(isset($_POST['setoptions'])) { unset($temp); if(in_array((string) USER_AUDIT_LOGIN, $_POST['user_audit_opts'])) { $_POST['user_audit_opts'][] = USER_AUDIT_LOGOUT; } foreach($_POST['user_audit_opts'] as $k => $v) { if(! is_numeric($v)) { unset($_POST['user_audit_opts'][$k]); } } $temp['roll_log_active'] = intval($_POST['roll_log_active']); $temp['roll_log_days'] = intval($_POST['roll_log_days']); $temp['sys_log_perpage'] = intval($_POST['sys_log_perpage']); $temp['user_audit_opts'] = implode(',', $_POST['user_audit_opts']); $temp['user_audit_class'] = intval($_POST['user_audit_class']); if($admin_log->logArrayDiffs($temp, $pref, 'ADLOG_01') || $admin_log->logArrayDiffs($temp, $pref, 'ADLOG_04')) { save_prefs(); // Only save if changes } else { $mes->addInfo(LAN_NO_CHANGE); } } $ns->tablerender($caption, $mes->render() . $text); if(e_QUERY) { // Must explode after calling auth.php $qs = explode(".", e_QUERY); } $action = varset($qs[0], 'adminlog'); // Deprecated by Comments Manager /* if(isset($_POST['deleteitems']) && ($action == 'comments')) { $c_list = array(); foreach($_POST['del_item'] as $di) { if(intval($di) > 0) $c_list[] = '`comment_id`='.intval($di); } if($count = $sql->db_Delete('comments', implode(' OR ', $c_list))) { //$text = str_replace('--NUMBER--', $count,RL_LAN_112); $emessage->add(str_replace('--NUMBER--', $count, RL_LAN_112), E_MESSAGE_SUCCESS); $admin_log->log_event('COMMENT_01', 'ID: '.implode(',', $_POST['del_item']), E_LOG_INFORMATIVE, ''); } else { //$text = RL_LAN_113; $emessage->add(RL_LAN_113, E_MESSAGE_WARNING); } //$ns -> tablerender(LAN_DELETE, "