コード例 #1
0
ファイル: action.slist.php プロジェクト: airedale/sumo
    if ($col[7]) {
        $list .= " <td class='" . $style . "' align='right'>" . $tab['ip'] . "</td>\n";
    }
    if ($col[8]) {
        $list .= " <td class='" . $style . "' align='right'>" . $tab['hostname'] . "</td>\n";
    }
    if ($col[9]) {
        $list .= " <td class='" . $style . "'><img src='applications/ip2country/flags/small/" . $flag . "' width='17' alt='" . $country[1] . "'>&nbsp;" . $country[0] . "</td>\n";
    }
    if ($col[5]) {
        $list .= " <td class='" . $style . "'>" . sumo_get_human_date($tab['connected']) . "</td>\n";
    }
    if ($col[6]) {
        $list .= " <td class='" . $style . "'>" . sumo_get_human_date($tab['expire']) . "</td>\n";
    }
    if ($col[10]) {
        $list .= " <td class='" . $style . "' width='100%'><a href='" . $tab['url'] . "' target='_blank'>" . $apname . "</a></td>\n";
    }
    if ($col[11]) {
        $list .= " <td class='" . $style . "'>" . $tab['client'] . "</td>\n";
    }
    if ($col[12]) {
        $list .= " <td class='" . $style . "' align='right'>" . sumo_get_graph($tab['activity'], $max, 2) . "</td>\n";
    }
    $list .= "</tr>\n";
}
$list .= "</table>";
$searched = $search ? $_SESSION['search_sessions_slist'] : '';
// Template Data
$tpl = array('MESSAGE:H' => $tpl['MESSAGE:H'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:L' => $tpl['MESSAGE:L'], 'GET:Theme' => $SUMO['page']['theme'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:SessionsList' => $list, 'GET:NumSessions' => number_format($id_active + $id_inactive, 0, "", "."), 'GET:NumSessionsActive' => number_format($id_active, 0, "", "."), 'GET:NumSessionsNotActive' => number_format($id_inactive, 0, "", "."), 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_sessions_slist'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_sessions_slist'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_sessions_slist'], 5, $_SESSION['start_sessions_slist'], 'start_sessions_slist'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['slist']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => '', 'GET:WindowScripts' => 'sumo_unrefresh_window("sessions");' . 'sumo_refresh_window("sessions", "slist", ' . SUMO_TIMER_SESSIONS . ', "index.php?module=sessions");');
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #2
0
$list = sumo_get_table_header($table['data']['group2accesspoints']);
while ($tab = $rs->FetchRow()) {
    $style = sumo_alternate_str('tab-row-on', 'tab-row-off');
    $query = "SELECT id,node,path,name FROM " . SUMO_TABLE_ACCESSPOINTS . "\n\t\t\t  WHERE (\n\t\t\t  \t\t usergroup LIKE '" . $tab['usergroup'] . "' \n\t\t\t\t\t OR usergroup LIKE '" . $tab['usergroup'] . ";%'\n\t\t\t\t\t OR usergroup LIKE '%;" . $tab['usergroup'] . "'\n\t\t\t\t\t OR usergroup LIKE '%;" . $tab['usergroup'] . ";%'\n\t\t\t\t\t )\n\t\t\t  ORDER BY node,name,path";
    $rs2 = $SUMO['DB']->Execute($query);
    $ap = "<table width='100%'>";
    $a = 0;
    while ($tab2 = $rs2->FetchRow()) {
        $style2 = sumo_alternate_str('tab-row-on', 'tab-row-off', $tab['usergroup']);
        $tab2['name'] = sumo_get_accesspoint_name($tab2['name'], $_COOKIE['language']);
        $ap .= "<tr>" . "<td width='100%' class='" . $style2 . "' nowrap>" . "<a href='javascript:sumo_ajax_get(\"accesspoints\",\"?module=accesspoints&action=edit&id=" . $tab2['id'] . "\");'>" . $tab2['name'] . "</a>" . "</td>" . "<td class='" . $style2 . "'>" . "<a href='javascript:sumo_ajax_get(\"accesspoints\",\"?module=accesspoints&action=edit&id=" . $tab2['id'] . "\");'>" . $tab2['path'] . "</a>" . "</td>" . "</tr>\n";
        $a++;
    }
    $ap .= "</table>";
    if ($search) {
        $tab['usergroup'] = sumo_color_match_string($field['usergroup'][1], $tab['usergroup']);
    }
    $width = $a > 5 ? " width='450'" : '';
    $list .= "<tr>\n" . " <td class='" . $style . "'><b>" . "<a href='javascript:sumo_ajax_get(\"groups\",\"?module=groups&action=edit&id=" . $tab['id'] . "\");'>" . $tab['usergroup'] . "</a>" . "</b>" . "<br>({$a} " . $language['accesspoints'] . ")</td>\n";
    if ($_SESSION['relationship']['group2accesspoints']['col'][100]) {
        $list .= " <td>" . $ap . "</td>\n";
    }
    if ($_SESSION['relationship']['group2accesspoints']['col'][101]) {
        $list .= " <td style='border-bottom:1px solid #DCDCDC'><img onclick='javascript:window.open(\"services.php?module=relationship&service=relationship&cmd=GET_GROUP2ACCESSPOINTS&id=" . $tab['id'] . "\",\"group2accesspoints\",\"height=200,width=500,resizable=yes,scrollbars=yes\");' " . " src='services.php?module=relationship&service=relationship&cmd=GET_GROUP2ACCESSPOINTS&id=" . $tab['id'] . "' alt=''{$width}></td>\n" . "</tr>\n";
    }
}
$list .= "</table>";
$searched = $search ? $_SESSION['search_relationship_group2accesspoints'] : '';
// Template Data
$tpl = array('GET:Theme' => $SUMO['page']['theme'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:List' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_relationship_group2accesspoints'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_relationship_group2accesspoints'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_relationship_group2accesspoints'], 5, $_SESSION['start_relationship_group2accesspoints'], 'start_relationship_group2accesspoints'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['group2accesspoints']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => sumo_get_export_data());
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #3
0
ファイル: action.ilist.php プロジェクト: airedale/sumo
        case 'L':
            $tab['type'] = $language['Locale'];
            break;
        case 'P':
            $tab['type'] = $language['Proxy'];
            break;
        default:
            $tab['type'] = $language['Unknow'];
            break;
    }
    // verify permission to delete node
    // NOTE: NOT use sumo_verify_permissions() for best performance!
    $delete = '';
    if ($SUMO['user']['group_level']['sumo'] > 4) {
        $msg = sumo_get_simple_rand_string(4, "123456789");
        $delete = "<a href=\"javascript:" . "sumo_show_message('msg{$msg}', '" . htmlspecialchars(sumo_get_message('AreYouSureDeleteLocalIP', array($tab['ip'], $tab['type']))) . "', \n\t\t\t\t\t\t\t\t\t 'h', 0,\n\t\t\t\t\t\t\t\t\t '" . base64_encode(sumo_get_form_req('', 'erase_localip', 'id=' . $tab['id'])) . "',\n\t\t\t\t\t\t\t\t\t '" . base64_encode('') . "',\n\t\t\t\t\t\t\t\t\t '" . base64_encode("<input type='button' value='" . $language['Cancel'] . "' onclick='javascript:sumo_remove_window(\"msg{$msg}\");' class='button'>") . "',\n\t\t\t\t\t\t\t\t\t '" . base64_encode("<input type='submit' value='" . $language['Ok'] . "' onclick='javascript:sumo_remove_window(\"msg{$msg}\");' class='button'>") . "'\n\t\t\t\t\t\t\t\t\t);\">" . "<img src='themes/" . $SUMO['page']['theme'] . "/images/modules/network/remove.gif'></a>&nbsp;&nbsp;";
    }
    $list .= "<tr>\n";
    if ($col[3]) {
        $list .= "<td class='" . $style . "'>" . $delete . "<a href='javascript:sumo_ajax_get(\"network\",\"?module=network&action=view_localip&id=" . $tab['id'] . "\");' title='" . $language['View'] . "'>" . $tab['type'] . "</a></td>\n";
    }
    if ($col[2]) {
        $list .= "<td class='" . $style . "' align='right'>" . "<a href='javascript:sumo_ajax_get(\"network\",\"?module=network&action=view_localip&id=" . $tab['id'] . "\");' title='" . $language['View'] . "'>" . $tab['ip'] . "</a></td>\n";
    }
    $list .= "</tr>\n";
}
$list .= "</table>";
$searched = $search ? $_SESSION['search_network_ilist'] : '';
// Template Data
$tpl = array('MESSAGE:H' => $tpl['MESSAGE:H'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:L' => $tpl['MESSAGE:L'], 'GET:Theme' => $SUMO['page']['theme'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:LocalNetworkList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_network_ilist'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_network_ilist'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_network_ilist'], 5, $_SESSION['start_network_ilist'], 'start_network_ilist'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['ilist']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => '');
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #4
0
ファイル: action.banned.php プロジェクト: airedale/sumo
$vis = $rs->PO_RecordCount();
/**
 * Create list
 */
$col = $_SESSION['security']['banned']['col'];
if ($tot > 0) {
    $list = sumo_get_table_header($table['data']['banned']);
    while ($tab = $rs->FetchRow()) {
        $ip = $search ? sumo_color_match_string($field['ip'][1], $tab['ip']) : $tab['ip'];
        $time = sumo_get_human_date($tab['time'] + $SUMO['config']['security']['banned_time'], true, true);
        $style = sumo_alternate_str('tab-row-on', 'tab-row-off');
        $list .= "<tr>\n";
        if ($col[2]) {
            $list .= " <td class='" . $style . "'>" . $ip . "</td>\n";
        }
        if ($col[3]) {
            $list .= " <td class='" . $style . "'>" . $time . "</td>\n";
        }
        if (($col[2] || $col[3]) && $enableip) {
            $list .= " <td class='" . $style . "'>" . "<a href='javascript:sumo_ajax_get(\"security\",\"?module=security&action=banned&enableip=" . $tab['id'] . "\");'>" . $language['enable'] . "</a></td>\n";
        }
        $list .= "</tr>\n";
    }
    $list .= "</table>";
} else {
    $list = "<div class='no-results'>" . $language['BannedIPNotFound'] . "</div>";
}
$searched = $search ? $_SESSION['search_security_banned'] : '';
// Template Data
$tpl = array('GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:BannedIPList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_security_banned'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_security_banned'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_security_banned'], 5, $_SESSION['start_security_banned'], 'start_security_banned'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['banned']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => '', 'GET:WindowScripts' => 'sumo_unrefresh_window("security");' . 'sumo_refresh_window("security", "banned", ' . SUMO_TIMER_BANNED . ', "index.php?module=security");');
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #5
0
ファイル: action.list.php プロジェクト: airedale/sumo
    if ($col[4]) {
        $list .= " <td class='" . $style . "'><a href='javascript:sumo_ajax_get(\"users.content\",\"?module=users&action=view&id=" . $tab['id'] . "&decoration=false\");' title='" . $language['ViewUser'] . "'>" . $username . "</a></td>\n";
    }
    if ($col[8]) {
        $list .= " <td class='" . $style . "' nowrap>" . $group . "</td>\n";
    }
    if ($col[9]) {
        $list .= " <td class='" . $style . "' nowrap><a href='javascript:sumo_ajax_get(\"network\",\"?module=network&action=view_datasource&id=" . $tab['datasource_id'] . "\");'>" . $tab['datasource_id'] . $datasource[$tab['datasource_id']] . "</a></td>\n";
    }
    if ($col[13]) {
        $list .= " <td class='" . $style . "' align='right' nowrap>" . $tab['email'] . "</td>\n";
    }
    if ($col[12]) {
        $list .= " <td class='" . $style . "' align='right'><img src='themes/" . $SUMO['page']['theme'] . "/images/flags/" . $tab['language'] . ".png'>&nbsp;&nbsp;" . ucfirst($users_lang[$tab['language']]) . "</td>\n";
    }
    if ($col[10]) {
        $list .= " <td class='" . $style . "' align='right'>" . $last_login . "</td>\n";
    }
    if ($col[15]) {
        $list .= " <td class='" . $style . "' align='right'>" . $created . "</td>\n";
    }
    if ($col[11]) {
        $list .= " <td class='" . $style . "' align='right'>" . $expire . "</td>\n";
    }
    $list .= "</tr>\n";
}
$list .= "</table>";
$searched = $search ? $_SESSION['search_users_list'] : '';
// Template Data
$tpl = array('MESSAGE:H' => $tpl['MESSAGE:H'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:L' => $tpl['MESSAGE:L'], 'GET:Theme' => $SUMO['page']['theme'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:NumUsers' => number_format($users, 0, "", "."), 'GET:NumUsersActive' => number_format($active, 0, "", "."), 'GET:NumSuspendedUsers' => "<a href='javascript:sumo_ajax_get(\"users.content\",\"index.php?start_users_list=0&module=users&action=list&om=0&oc=6&decoration=false\");'>" . number_format($users - $active, 0, "", ".") . "</a>", 'GET:UsersList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_users_list'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_users_list'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_users_list'], 5, $_SESSION['start_users_list'], 'start_users_list', 'list'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['list']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => sumo_get_export_data(), 'LINK:AddUser' => sumo_get_action_icon("", "new", "users.content", "?module=users&action=new&decoration=false"));
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #6
0
ファイル: action.loglist.php プロジェクト: airedale/sumo
        if ($col[2]) {
            $list .= " <td {$style} align='center'><img src='themes/" . $SUMO['page']['theme'] . "/images/modules/security/priority_" . $tab['priority'] . ".gif' class='log-priority' alt='" . $tab['priority'] . "'></td>\n";
        }
        if ($col[3]) {
            $list .= " <td {$style} align='right'>" . $tab['code'] . "</td>\n";
        }
        if ($col[4]) {
            $list .= " <td {$style} align='right'>" . $node['name'] . "</td>\n";
        }
        if ($col[5]) {
            $list .= " <td {$style} align='right'>" . $tab['ip'] . "</td>\n";
        }
        if ($col[6]) {
            $list .= " <td {$style} align='right'>" . ucwords(strtolower($tab['country_name'])) . "</td>\n";
        }
        if ($col[7]) {
            $list .= " <td {$style} width='100%'>" . $tab['message'] . "</td>\n";
        }
        if ($col[8]) {
            $list .= " <td {$style} align='right'>" . sumo_get_human_date($tab['time'], TRUE, TRUE) . "</td>\n";
        }
        $list .= "</tr>\n";
    }
    $list .= "</table>";
} else {
    $list = "<div class='no-results'>" . $language['LogsNotFound'] . "</div>";
}
$searched = $search ? $_SESSION['search_security_' . $action] : '';
// Template Data
$tpl = array('MESSAGE:H' => $tpl['MESSAGE:H'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:L' => $tpl['MESSAGE:L'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:MessagesList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_security_' . $action], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_security_' . $action] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_security_' . $action], 5, $_SESSION['start_security_' . $action], 'start_security_' . $action), 'GET:TableSettings' => sumo_get_table_settings($table['data'][$action]), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => sumo_get_export_data(), 'GET:WindowScripts' => 'sumo_unrefresh_window("security");' . 'sumo_refresh_window("security", "' . $action . '", ' . SUMO_TIMER_LOGS . ', "index.php?module=security");');
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #7
0
ファイル: action.nlist.php プロジェクト: airedale/sumo
    if ($col[100]) {
        $list .= " <td '" . $style2 . "'>" . $status . "</td>\n";
    }
    if ($col[2]) {
        $list .= " <td class='" . $style . "'><img src='themes/" . $SUMO['page']['theme'] . "/images/modules/network/" . $active . ".gif'></td>\n";
    }
    if ($col[5]) {
        $list .= " <td class='" . $style . "'>" . "<a href='javascript:sumo_ajax_get(\"network.content\",\"?module=network&action=view_node&id=" . $tab['id'] . "&decoration=false\");'>" . $tab['name'] . "</a></td>\n";
    }
    if ($col[3]) {
        $list .= " <td class='" . $style . "' align='right'>" . $tab['host'] . "</td>\n";
    }
    if ($col[4]) {
        $list .= " <td class='" . $style . "' align='right'>" . $tab['port'] . "</td>\n";
    }
    if ($col[6]) {
        $list .= " <td class='" . $style . "'>" . $tab['protocol'] . "</td>\n";
    }
    if ($col[7]) {
        $list .= " <td class='" . $style . "'>" . $tab['sumo_path'] . "</td>\n";
    }
    if ($col[8]) {
        $list .= " <td class='" . $style . "' align='right'>" . $ap . "</td>\n";
    }
    $list .= "</tr>\n";
}
$list .= "</table>";
$searched = $search ? $_SESSION['search_network_nlist'] : '';
// Template Data
$tpl = array('MESSAGE:H' => $tpl['MESSAGE:H'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:L' => $tpl['MESSAGE:L'], 'GET:Theme' => $SUMO['page']['theme'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:NodesList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_network_nlist'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_network_nlist'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_network_nlist'], 5, $_SESSION['start_network_nlist'], 'start_network_nlist'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['nlist']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => '', 'LINK:AddNode' => sumo_verify_permissions(4, 'sumo') ? sumo_get_action_icon("network", "add_node", "network.content", "?module=network&action=new_node&decoration=false") : sumo_get_action_icon("", "add_node"), 'BUTTON:TestConnection' => "<input value='" . $language['TestConnection'] . "' type='button' class='button' onclick='javascript:sumo_ajax_get(\"network.content\",\"?module=network&action=nlist&test=1&network_nlist_view_col=100.1&decoration=false" . "\");'>");
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #8
0
ファイル: action.list.php プロジェクト: airedale/sumo
        if ($col[8]) {
            $list .= " <td class='" . $style . "' align='center'><img src='themes/" . $SUMO['page']['theme'] . "/images/modules/accesspoints/" . $pwd_encrypt . ".gif'></td>\n";
        }
        if ($col[9]) {
            $list .= " <td class='" . $style . "' align='center'><img src='themes/" . $SUMO['page']['theme'] . "/images/modules/accesspoints/" . $registration . ".gif'></td>\n";
        }
        if ($col[10]) {
            $list .= " <td class='" . $style . "' align='center'>" . $tab['reg_group'] . "</td>\n";
        }
        if ($col[11]) {
            $list .= " <td class='" . $style . "' align='center'><img src='themes/" . $SUMO['page']['theme'] . "/images/modules/accesspoints/" . $change_pwd . ".gif'></td>\n";
        }
        if ($col[12]) {
            $list .= " <td class='" . $style . "'>" . $theme . "</td>\n";
        }
        if ($col[13]) {
            $list .= " <td class='" . $style . "'>" . $created . "</td>\n";
        }
        if ($col[14]) {
            $list .= " <td class='" . $style . "'>" . $updated . "</td>\n";
        }
        $list .= "</tr>\n";
    }
    $list .= "</table>";
} else {
    $list = "<div class='no-results'>" . $language['AccesspointsNotFound'] . "</div>";
}
$searched = $search ? $_SESSION['search_accesspoints_list'] : '';
// Template Data
$tpl = array('MESSAGE:H' => $tpl['MESSAGE:H'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:L' => $tpl['MESSAGE:L'], 'GET:MenuModule' => $tpl['GET:MenuModule'], 'GET:AccessPointsList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_accesspoints_list'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_accesspoints_list'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_accesspoints_list'], 5, $_SESSION['start_accesspoints_list'], 'start_accesspoints_list'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['list']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => sumo_get_export_data(), 'LINK:AddAccessPoint' => sumo_verify_permissions(5, 'sumo') ? sumo_get_action_icon("", "add", "accesspoints.content", "?module=accesspoints&action=new&decoration=false") : sumo_get_action_icon("", "add"));
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";
コード例 #9
0
ファイル: action.stats.php プロジェクト: airedale/sumo
            $list .= " <td class='" . $style . "' align='right'>" . number_format($tab['access'], 0, '', '.') . "</td>\n";
        }
        if ($_SESSION['accesspoints']['stats']['col'][5]) {
            $list .= " <td class='" . $style . "'>" . sumo_get_graph($tab['access'], $max_access, 2) . "</td>\n";
        }
        if ($_SESSION['accesspoints']['stats']['col'][6]) {
            $list .= " <td class='" . $style . "' align='right'>" . number_format($tab['activity'], 0, '', '.') . "</td>\n";
        }
        if ($_SESSION['accesspoints']['stats']['col'][6]) {
            $list .= " <td class='" . $style . "'>" . sumo_get_graph($tab['activity'], $max_activity, 2) . "</td>\n";
        }
        if ($_SESSION['accesspoints']['stats']['col'][7]) {
            $list .= " <td class='" . $style . "' align='right'>" . sumo_get_human_date($tab['last_login']) . "</td>\n";
        }
        if ($_SESSION['accesspoints']['stats']['col'][8]) {
            $list .= " <td class='" . $style . "' align='right'>" . sumo_get_human_date($tab['updated']) . "</td>\n";
        }
        $list .= "</tr>\n";
    }
    $list .= "</table>";
} else {
    if ($SUMO['config']['accesspoints']['stats']['enabled']) {
        $list = "<div class='no-results'>" . $language['NoStatsForAccesspoints'] . "</div>";
    }
    #else
    #	$list = "<div class='no-results'>".$language['StatisticsDisabled']."</div>";
}
$searched = $search ? $_SESSION['search_accesspoints_stats'] : '';
// Template Data
$tpl = array('GET:MenuModule' => $tpl['GET:MenuModule'], 'MESSAGE:M' => $tpl['MESSAGE:M'], 'MESSAGE:A' => 1, 'GET:AccessPointsList' => $list, 'GET:TotalRows' => number_format($tot, 0, "", "."), 'GET:StartRow' => number_format($_SESSION['start_accesspoints_stats'], 0, "", "."), 'GET:EndRow' => number_format($_SESSION['start_accesspoints_stats'] + $vis, 0, "", "."), 'GET:PagingResults' => sumo_paging_results($tot, $vis, $_SESSION['rows_accesspoints_stats'], 5, $_SESSION['start_accesspoints_stats'], 'start_accesspoints_stats'), 'GET:TableSettings' => sumo_get_table_settings($table['data']['stats']), 'GET:SearchForm' => sumo_get_form_search($searched), 'GET:ExportData' => '', 'GET:WindowScripts' => 'sumo_unrefresh_window("accesspoints");' . 'sumo_refresh_window("accesspoints", "stats", ' . SUMO_TIMER_APSTATS . ', "index.php?module=accesspoints");');
$tpl['GET:Pagination'] = $tot > 0 ? $tpl['GET:StartRow'] . "..." . $tpl['GET:EndRow'] . "&nbsp;&nbsp;" . $language['of'] . "&nbsp;<b>" . $tpl['GET:TotalRows'] . "</b>" : "";