<?php

/**
 * Admin status page: show the explorer and address reference used for each currency (#256)
 */
require_admin();
require __DIR__ . "/../layout/templates.php";
$messages = array();
$errors = array();
page_header("Admin: Show Explorers", "page_admin_show_explorers");
?>

<h1>Currency Explorers</h1>

<p class="backlink"><a href="<?php 
echo htmlspecialchars(url_for('admin'));
?>
">&lt; Back to Site Status</a></p>

<ul>
<?php 
$grouped = account_data_grouped();
$external = get_external_apis();
foreach ($grouped['Addresses'] as $key => $data) {
    echo "<li><span style=\"display: inline-block; min-width: 250px;\">";
    echo get_currency_abbr($data['currency']);
    echo " using " . $external['Address balances'][$key];
    echo " using " . $external['Address balances'][$key]['link'];
    echo ":</span> ";
    echo crypto_address($data['currency'], 'example');
    echo "</li>";
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
require_once "../inc/boinc_db.inc";
require_once "../inc/util.inc";
require_once "../inc/team.inc";
check_get_args(array("teamid"));
ini_set("memory_limit", "1024M");
$logged_in_user = get_logged_in_user();
$teamid = get_int("teamid");
$team = BoincTeam::lookup_id($teamid);
if (!$team) {
    error_page("no such team");
}
require_admin($logged_in_user, $team);
page_head(tra("Remove members from %1", $team->name));
echo "\n    <form method=\"post\" action=\"team_remove_inactive_action.php\">\n    <input type=\"hidden\" name=\"id\" value=\"" . $team->id . "\">\n";
start_table();
echo "<tr>\n    <th>" . tra("Remove?") . "</th>\n    <th>" . tra("Name (ID)") . "</th>\n    <th>" . tra("Total credit") . "</th>\n    <th>" . tra("Recent average credit") . "</th>\n    </tr>\n";
$users = BoincUser::enum("teamid={$team->id}");
$ninactive_users = 0;
foreach ($users as $user) {
    if ($user->id == $logged_in_user->id) {
        continue;
    }
    if ($user->id == $team->userid) {
        continue;
    }
    $user_total_credit = format_credit($user->total_credit);
    $user_expavg_credit = format_credit($user->expavg_credit);
示例#3
0
     if (!require_admin()) {
         return;
     }
     render_json(helpHourQuery::create()->where('helpHour.Approved = 0')->count());
 });
 $app->get('/approve/:id', function ($id) use($app) {
     if (!require_admin()) {
         return;
     }
     $helpHour = helpHourQuery::create()->findPk($id);
     $helpHour->setApproved(1);
     $helpHour->save();
     render_json("Success");
 });
 $app->get('/unapprove/:id', function ($id) use($app) {
     if (!require_admin()) {
         return;
     }
     helpHourQuery::create()->findPk($id)->delete();
     render_json("Success");
 });
 $app->post('/submit', function () use($app) {
     if (!require_authenticated()) {
         return;
     }
     $data = json_decode($app->request->getBody());
     $who = get_loggedin_info();
     $data->UserId = $who['user']['Id'];
     $obj = new helpHour();
     $obj->fromJSON(json_encode($data));
     $obj->setStartTime(convert_timezone($obj->getStartTime()));
示例#4
0
        $tokens = url_tokens($user->authenticator);
        if ($team->ping_user > 0) {
            $user2 = BoincUser::lookup_id($team->ping_user);
            $deadline = date_str(transfer_ok_time($team));
            echo "<li>\n                <a href=team_change_founder_form.php?teamid={$team->id}><font color=red><strong>" . tra("Respond to foundership request.") . "</strong></font></a>  " . tra("If you don't respond by %1, %2 may assume foundership of this team.", $deadline, $user2->name);
        }
        echo "\n            <li><a href=team_remove_inactive_form.php?teamid={$team->id}>" . tra("Remove members") . "</a>\n                <br><p class=\"text-muted\">" . tra("Remove inactive or unwanted members from this team") . "</p>\n            <li><a href=team_change_founder_form.php?teamid={$team->id}>" . tra("Change founder") . "</a>\n                <br><p class=\"text-muted\">" . tra("Transfer foundership to another member") . "</p>\n            <li><a href=team_admins.php?teamid={$team->id}>" . tra("Add/remove Team Admins") . "</a>\n                <br><p class=\"text-muted\">" . tra("Give selected team members Team Admin privileges") . "</p>\n\n            <li><a href=team_manage.php?teamid={$team->id}&action=delete&{$tokens}>" . tra("Remove team") . "</a>\n                <br><p class=\"text-muted\">" . tra("Allowed only if team has no members") . "</p>\n            <li><a href=team_forum.php?teamid={$team->id}&cmd=manage>" . tra("Message board") . "</a>\n                <br><p class=\"text-muted\">" . tra("Create or manage a team message board") . "</p>\n        ";
    }
    echo "\n\n        <p>\n        <li>\n            " . tra("To have this team created on all BOINC projects (current and future) you can make it into a %1BOINC-wide team%2.", "<a href=http://boinc.berkeley.edu/teams/>", "</a>") . "\n        <li>\n            " . tra("Team admins are encouraged to join and participate in the Google %1boinc-team-founders%2 group.", "<a href=http://groups.google.com/group/boinc-team-founders>", "</a>") . "\n    </ul>\n    ";
    page_tail();
}
$user = get_logged_in_user(true);
$teamid = get_int('teamid');
$team = BoincTeam::lookup_id($teamid);
if (!$team) {
    error_page(tra("No such team"));
}
$action = get_str('action', true);
if ($action == 'delete') {
    require_founder_login($user, $team);
    if (team_count_members($team->id) > 0) {
        error_page(tra("Can't delete non-empty team"));
    }
    check_tokens($user->authenticator);
    $team->delete();
    page_head(tra("Team %1 deleted", $team->name));
    page_tail();
} else {
    require_admin($user, $team);
    show_admin_page($user, $team);
}
}
include_once '../gammu/gammu-cores.php';
include_once '../cores/db.php';
include_once '../cores/session.php';
$ajax = post_var('ajax');
if ($ajax == 'ajax') {
    $sx = post_var('smscount');
    if (set_system_config('sms_to_process_per_minute', $sx)) {
        echo 'OK';
    } else {
        echo 'ER';
    }
    die('ER');
}
require_login();
require_admin('index.php', 'Pooling SMS Settings', 'Anda tidak memiliki hak akses ke halaman ini.', 'Dashboard');
$sms_count_per_min = get_system_config('sms_to_process_per_minute', 20);
?>

<?php 
include "_head.php";
function waktu()
{
    echo date('H:i:s');
}
?>


<body>

    <div class="container">