{include file='header'}
+<script type="text/javascript">
+ //<![CDATA[
+ $(function() {
+ WCF.TabMenu.init();
+ });
+ //]]>
+</script>
+<style type="text/css">
+#credits dd > ul > li {
+ display: inline;
+}
+#credits dd > ul > li:after {
+ content: ", ";
+}
+#credits dd > ul > li:last-child:after {
+ content: "";
+}
+</style>
+{if $didYouKnow !== ''}<p class="info">{lang}wcf.acp.index.didYouKnow{/lang}: {$didYouKnow|language}</p>{/if}
+<div class="tabMenuContainer" data-active="credits" data-store="activeTabMenuItem">
+ <nav class="tabMenu">
+ <ul>
+ <li><a href="#credits" title="Credits">Credits</a></li>
+ </ul>
+ </nav>
+
+ <fieldset id="credits" class="container containerPadding shadow hidden tabMenuContent">
+ <dl>
+ <dt>{lang}wcf.acp.index.credits.developedBy{/lang}</dt>
+ <dd><a href="{@RELATIVE_WCF_DIR}acp/dereferrer.php?url={"http://www.woltlab.com"|rawurlencode}" class="externalURL">WoltLab® GmbH</a></dd>
+ </dl>
+
+ <dl>
+ <dt>{lang}wcf.acp.index.credits.productManager{/lang}</dt>
+ <dd>
+ <ul>
+ <li>Marcel Werk</li>
+ </ul>
+ </dd>
+ </dl>
+
+ <dl>
+ <dt>{lang}wcf.acp.index.credits.developer{/lang}</dt>
+ <dd>
+ <ul>
+ <li>Alexander Ebert</li><li>Marcel Werk</li>
+ </ul>
+ </dd>
+ </dl>
+
+ <dl>
+ <dt>{lang}wcf.acp.index.credits.designer{/lang}</dt>
+ <dd>
+ <ul>
+ <li>Harald Szekely</li><li>Marcel Werk</li>
+ </ul>
+ </dd>
+ </dl>
+
+ <dl>
+ <dt>{lang}wcf.acp.index.credits.contributor{/lang}</dt>
+ <dd>
+ <ul>
+ <li>Thorsten Buitkamp</li><li>Tim Düsterhus</li><li>Matthias Schmidt</li>
+ </ul>
+ </dd>
+ </dl>
+
+ {*<dl>
+ <dt>{lang}wcf.acp.index.credits.translators{/lang}</dt>
+ <dd>
+ <ul>
+ </ul>
+ </dd>
+ </dl>*}
+
+ <dl>
+ <dt></dt>
+ <dd>Copyright © 2001-2012 WoltLab® GmbH. All rights reserved.</dd>
+ </dl>
+
+ <dl>
+ <dt></dt>
+ <dd>{lang}wcf.acp.index.credits.trademarks{/lang}</dd>
+ </dl>
+ </fieldset>
+</div>
{include file='footer'}
\ No newline at end of file
namespace wcf\acp\page;
use wcf\page\AbstractPage;
use wcf\system\cache\CacheHandler;
+use wcf\system\language\LanguageFactory;
use wcf\system\package\PackageInstallationDispatcher;
use wcf\system\WCF;
use wcf\system\WCFACP;
*/
public $templateName = 'index';
+ /**
+ * Did you know language item.
+ *
+ * @var string
+ */
+ public $didYouKnow = '';
+
+ /**
+ * @see wcf\page\IPage::assignVariables()
+ */
+ public function assignVariables() {
+ parent::assignVariables();
+
+ WCF::getTPL()->assign(array(
+ 'didYouKnow' => $this->didYouKnow
+ ));
+ }
+
+ /**
+ * @see wcf\page\IPage::readData()
+ */
+ public function readData() {
+ parent::readData();
+
+ $sql = "SELECT
+ languageItem
+ FROM
+ wcf".WCF_N."_language_item
+ WHERE
+ languageCategoryID = ?
+ ORDER BY
+ rand()";
+ $statement = WCF::getDB()->prepareStatement($sql, 1);
+ // TODO: Change category
+ $statement->execute(array(LanguageFactory::getInstance()->getCategory('wcf.global')->languageCategoryID));
+ $this->didYouKnow = $statement->fetchColumn();
+ }
+
/**
* @see wcf\page\IPage::show()
*/
}
}
- /*
- if (WCFACP::getWcfPackageID() == PACKAGE_ID) {
- $packages = CacheHandler::getInstance()->get('packages');
- foreach ($packages as $packageID => $package) {
- break;
- }
-
- if (isset($packageID) && $packageID != PACKAGE_ID) {
- HeaderUtil::redirect('../'.$packages[$packageID]['packageDir'].'acp/index.php'.SID_ARG_1ST, false);
- exit;
- }
- }
- */
-
// show page
parent::show();
}