コード例 #1
0
</style>
<div class="maincontainer">
	<h2><image style="height: 1.5em" src="/img/icons32/document_info.png" /> Glass Reviewer Information <span style="font-size: 0.5em; color: gray">(As of 11/4/2016)</span></h2>
	<p><i>If you would like to suggest amendments to the following information, contact a Glass Administrator.</i></p>
	<h3><image style="height: 1.4em" src="/img/icons32/brick_error.png" /> On the Subject of Brick Packs</h3>
	<p><b>If the add-on being updated was previously imported from RTB</b>, ensure the update does not change UI names as this will break old save files.</p>
	<h3><image style="height: 1.4em" src="/img/icons32/caution_biohazard.png" /> On the Subject of Malicious Updates</h3>
	<p><b>Above all else, ensure the update is not malicious, that it can not be easily exploited by a regular user and has no backdoors - <span style="color: red">this is your top priority</span>.</b></p>
	<hr />
	<table style="width: 100%">
    <thead>
      <tr><th>Add-On</th><th>Submitted</th><th>Version</th></tr>
    </thead>
    <tbody>
    <?php 
$updates = AddonManager::getPendingUpdates();
foreach ($updates as $update) {
    $addon = $update->getAddon();
    echo "<tr>";
    echo "<td>";
    echo '<a href="update.php?id=' . $addon->getId() . '">';
    echo $addon->getName();
    echo "</a></td>";
    echo "<td>";
    echo date("M d, H:i", strtotime($update->submitted));
    echo "</td>";
    echo "<td>";
    echo $update->version;
    echo "</td>";
    echo "</tr>";
}
コード例 #2
0
ファイル: index.php プロジェクト: BlocklandGlass/GlassWebsite
include realpath(dirname(__DIR__) . "/private/searchbar.php");
?>
	<ul class="addonnav tile" style="margin-bottom: 15px;">
		<li><a href="/addons/boards.php">Boards</a></li>
		<li><a href="/addons/rtb/">RTB Archive</a></li>
		<?php 
if ($user && $user->inGroup("Reviewer")) {
    ?>
		<li><a class="addonnavmod" href="review/list.php">Review<?php 
    if (sizeof(AddonManager::getUnapproved()) > 0) {
        echo " <span class=\"notice\">!</span>";
    }
    ?>
</a></li>
		<li><a class="addonnavmod" href="review/updates.php">Updates<?php 
    if (sizeof(AddonManager::getPendingUpdates()) > 0) {
        echo " <span class=\"notice\">!</span>";
    }
    ?>
</a></li>
		<li><a class="addonnavmod" href="review/reclaims.php">Reclaims<?php 
    if (sizeof(RTBAddonManager::getPendingReclaims()) > 0) {
        echo " <span class=\"notice\">!</span>";
    }
    ?>
</a></li>
		<?php 
}
?>
	</ul>