Exemplo n.º 1
0
 *
 * @copyright 2011-2014 See AUTHORS.txt
 * @license CC-BY 3.0 <https://creativecommons.org/licenses/by/3.0/>
 * @package intuition
 */
/**
 * Configuration
 * -------------------------------------------------
 */
// BaseTool & Localization
require_once __DIR__ . '/../libs/basetool/InitTool.php';
require_once __DIR__ . '/../ToolStart.php';
$I18N = new Intuition(array('domain' => 'tsintuition', 'mode' => 'dashboard'));
// Load all domains so we can get some statistics later on and
// make sure "getAvailableLangs" is complete
foreach ($I18N->getAllRegisteredDomains() as $domainKey) {
    $I18N->loadTextdomain($domainKey);
}
// Initialize BaseTool
$Tool = BaseTool::newFromArray(array('displayTitle' => $I18N->msg('title'), 'remoteBasePath' => $I18N->dashboardHome, 'localBasePath' => $I18N->localBaseDir, 'revisionId' => $I18N->version, 'styles' => array('main.css'), 'scripts' => array('main.js'), 'licenses' => array('CC-BY 3.0' => 'https://creativecommons.org/licenses/by/3.0/')));
$Tool->setSourceInfoGithub('Krinkle', 'intuition', dirname(__DIR__));
/**
 * Tool settings
 * -------------------------------------------------
 */
$toolSettings = array('tabs' => array());
/**
 * Post actions
 * -------------------------------------------------
 */
if (isset($_POST['action'])) {