1<?php
2
3if (is_numeric($vars['id'])) {
4    $ap = accesspoint_by_id($vars['id']);
5
6    if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id']))) {
7        $device = device_by_id_cache($ap['device_id']);
8
9        $title = generate_device_link($device);
10        $title .= ' :: AP :: ' . htmlentities($ap['name']);
11        $auth = true;
12    }
13}
14