File: index.php

package info (click to toggle)
boinc 5.4.11-4%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 21,440 kB
  • ctags: 16,986
  • sloc: cpp: 70,682; ansic: 45,747; php: 35,513; xml: 10,487; sh: 9,324; python: 4,291; makefile: 1,958; asm: 1,258; perl: 914; sql: 395; csh: 126; pascal: 124
file content (87 lines) | stat: -rw-r--r-- 3,812 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
$cvs_version_tracker[]="\$Id: index.php,v 1.29 2006/02/08 03:30:44 ballen Exp $";  //Generated automatically - do not edit

require_once("../inc/db_ops.inc");
require_once("../inc/util_ops.inc");

$config = get_config();
$cgi_url = parse_config($config, "<cgi_url>");
$stripchart_cgi_url = parse_config($config, "<stripchart_cgi_url>");

db_init();

$title = "Project Management";
admin_page_head($title);

echo "
    <p><table><tr valign=\"top\"><td width=\"30%\">
    Browse database:
    <ul> 
    <li><a href=\"db_action.php?table=platform\">Platforms</a>
    <li><a href=\"db_action.php?table=app\">Applications</a>
    <li><a href=\"db_form.php?table=app_version\">Application versions</a>
    <li><a href=\"db_form.php?table=user\">Users</a>
    <li><a href=\"db_form.php?table=team\">Teams</a>
    <li><a href=\"db_form.php?table=host&detail=low\">Hosts</a>
    <li><a href=\"db_form.php?table=workunit\">Workunits</a>
    <li><a href=\"db_form.php?table=result&detail=low\">Results</a>
    </ul></td>
    <td width=\"50%\">
    Maintain and Modify database:
    <ul>
    <li><a href=\"profile_screen_form.php\">Screen user profiles for User of the Day</a>
    <li><a href=\"forum_repair.php\">Forum repair</a>
    <li><a href=\"team_repair.php\">Team repair</a>
    <li><a href=\"repair_validator_problem.php\">Repair a validator problem</a>
    <li><a href=\"update_forum_activities.php\">Update forum activities</a>
    <li><a href=\"update_profile_pages.php\">Update profile pages</a> (Should run as cron-job)
    <li><a href=\"update_uotd.php\">Update user of the day</a> (Should run as cron-job)
    <li><a href=\"create_account_form.php\">Create account</a>
    <li><a href=\"cancel_wu_form.php\">Cancel workunits</a>
    <li><a href=\"manage_special_users.php\">Manage special users</a>
    <li><a href=\"problem_host.php\">Email user with misconfigured host</a>
    <li><a href=\"mass_email.php\">Send mass email to a selected set of users</a>

    </ul>
    </table>
";

echo "<br><form method=\"get\" action=\"clear_host.php\">
    Clear Host: 
    <input type=\"text\" size=\"5\" name=\"hostid\">
    <input type=\"submit\" value=\"Clear RPC\">
    </form>
    ";


$show_only = array('all'); // Add all appid's you want to display or 'all'
$result = mysql_query("select id, name from app");
while ($app = mysql_fetch_object($result)) {
    if (in_array($app->id, $show_only) || in_array("all", $show_only)) {
    echo "<br>Result summary for $app->name:
        <ul>
        <li><a href=\"result_summary.php?appid=$app->id&nsecs=86400\">last 24 hours</a>
        <li><a href=\"pass_percentage_by_platform.php?appid=$app->id&nsecs=86400\">last 24 hours - pass percentage by platform</a>
        <li><a href=\"failure_result_summary_by_host.php?appid=$app->id&nsecs=86400\">last 24 hours - failure by host</a>
        <li><a href=\"failure_result_summary_by_platform.php?appid=$app->id&nsecs=86400\">last 24 hours - failure by platform</a>
        <li><a href=\"result_summary.php?appid=$app->id&nsecs=604800\">last week</a>
        <li><a href=\"pass_percentage_by_platform.php?appid=$app->id&nsecs=604800\">last week - pass percentage by platform</a>
        <li><a href=\"failure_result_summary_by_host.php?appid=$app->id&nsecs=604800\">last week - failure by host</a>
        <li><a href=\"failure_result_summary_by_platform.php?appid=$app->id&nsecs=604800\">last week - failure by platform</a>
        </ul>
    ";
    }
}
mysql_free_result($result);

echo "
    <a href=\"$stripchart_cgi_url/stripchart.cgi\">Stripcharts</a>
    | <a href=\"show_log.php\">Show/Grep all logs</a>
    | <a href=\"show_log.php?f=mysql*.log&l=-20\">Tail MySQL logs</a>
";

admin_page_tail();
// TODO: Add functionality to list the number of recommends / rejects received
// by each profiled user.

?>