Exemple #1
0
<?php

include realpath(dirname(__DIR__) . "/../private/class/RTBAddonManager.php");
include realpath(dirname(__DIR__) . "/../private/class/AWSFileManager.php");
include realpath(dirname(__DIR__) . "/../private/class/AddonManager.php");
$addonData = RTBAddonManager::getAddonFromId($_GET['id']);
$_PAGETITLE = "Blockland Glass | " . utf8_encode($addonData->title);
include realpath(dirname(__DIR__) . "/../private/header.php");
include realpath(dirname(__DIR__) . "/../private/navigationbar.php");
?>
<div class="maincontainer">
	<span style="font-size: 9pt;"><a href="/addons/">Add-Ons</a> >> <a href="/addons/rtb/">RTB Archive</a> >> <a href="board.php?name=<?php 
echo $addonData->type;
?>
"><?php 
echo $addonData->type;
?>
</a> >> <a href="#"><?php 
echo htmlspecialchars($addonData->title);
?>
</a></span>
  <?php 
echo "<h2>" . utf8_encode($addonData->title) . "</h2>";
?>
	<div style="margin-bottom: 15px; display: inline-block; width: 100%; font-size: 0.8em">
		<div class="addoninfoleft">
			<image style="height:1.5em" src="/img/icons32/folder_vertical_zipper.png" />
			<?php 
echo $addonData->filename;
?>
			<br />
<?php

require_once dirname(__DIR__) . "/../../../private/class/RTBAddonManager.php";
$ret = new stdClass();
$ret->status = "success";
$ret->addon = RTBAddonManager::getAddonFromId($_REQUEST['id']);
echo json_encode($ret, JSON_PRETTY_PRINT);