' . htmlentities($authorName) . ' (' . $authorID . ') (' . $existingOwnedPlugins . ')
 </td>
 <td>
     ' . htmlentities($plugin->getName()) . ' (' . $plugin->getID() . ') (' . $existingAuthors . ')
 </td>
 <td>
     ' . $dbo_link . '
 </td>
 <td>
     ' . htmlentities($email) . '
 </td>
 <td>
     ' . epochToHumanString(time() - $created, false) . ' ago
 </td>
 <td>
     ' . epochToHumanString(time() - $plugin->getCreated(), false) . ' ago
 </td>
 <td>
     <form action="" method="POST">
         <input type="hidden" name="author" value="' . $authorID . '" />
         <input type="hidden" name="plugin" value="' . $plugin->getID() . '" />
         <input type="hidden" name="email" value="' . htmlentities($email) . '" />
         <input type="submit" name="submit" class="btn btn-success" value="Accept"/>
     </form>
 </td>
 <td>
     <form action="" method="POST">
         <input type="hidden" name="author" value="' . $authorID . '" />
         <input type="hidden" name="plugin" value="' . $plugin->getID() . '" />
         <input type="hidden" name="email" value="' . htmlentities($email) . '" />
         <input type="submit" name="submit" class="btn btn-danger" value="Reject"/>
Esempio n. 2
0
$encodedName = urlencode($pluginName);
// encoded name, for use in signature url
$more = '';
if (is_loggedin() && in_array($plugin, get_accessible_plugins(false))) {
    $more = '<li><a href="/admin/plugin/' . $encodedName . '/view">Edit in Admin Panel</a>';
}
/// Template hook
$page_title = 'MCStats :: ' . $pluginName;
$breadcrumbs = '<a href="/plugin/' . $encodedName . '" class="current">Plugin: ' . $pluginName . ' by ' . htmlentities($plugin->getAuthors()) . '</a>';
$sidebar_more = '
                <li class="submenu active open">
                    <a href="#"><i class="icon icon-star"></i> <span>Plugin: <strong>' . $pluginName . '</strong></span></a>
                    <ul>
                        ' . $more . '
                        <li><a>Added on: <strong>' . date('F d, Y', $plugin->getCreated()) . '</strong></a></li>
                        <li><a>Rank held for: <strong>' . epochToHumanString(time() - $plugin->getLastRankChange(), false) . '</strong></a></li>
                        <li><a>Global starts: <strong>' . number_format($plugin->getGlobalHits()) . '</strong></a></li>
                    </ul>
                </li>

';
/// Templating
send_header();
$rank = $plugin->getRank();
$rank_class = '';
$rank_change = '';
$rank_graph = '';
if ($rank == '') {
    $rank = '<i>Not ranked</i>';
} else {
    // bolden the rank if they're in the top-10
Esempio n. 3
0
LEFT OUTER JOIN Graph ON Graph.ID = CustomColumn.Graph
LEFT OUTER JOIN Server on Server.ID = CustomData.Server
LEFT OUTER JOIN ServerPlugin ON Server.ID = ServerPlugin.Server WHERE Server.GUID = ? group by CustomColumn.ID order by Plugin.Name asc, LastSent asc limit 1000
');
$query->execute(array($server['GUID']));
$customDataHTML = '';
$c = 0;
while ($row = $query->fetch()) {
    $safeName = htmlentities($row['Name']);
    $safeUrlName = urlencode($safeName);
    $customDataHTML .= '<tr>
                        <td> <a href="/plugin/' . $safeUrlName . '">' . $safeName . '</a> </td>
                        <td> ' . htmlentities($row['GraphName']) . '</td>
                        <td> ' . htmlentities($row['ColumnName']) . '</td>
                        <td> ' . $row['DataPoint'] . '</td>
                        <td> ' . epochToHumanString($row['LastSent']) . ' ago </td>
                    </tr>
';
    $c++;
    if ($c >= 1000) {
        $customDataHTML .= '<tr> <td> DATA TRIMMED, > 1000 ROWS </td> <td> </td> <td>  </td> <td>  </td> </tr>';
    }
}
$onlineMode = $server['online_mode'] == 1 ? '<td style="background-color: #90EE90;"> Yes </td>' : '<td style="background-color: #FA8072;"> No </td>';
echo <<<END


<table class="table">

    <tbody>
    </tbody>