Exemplo n.º 1
0
<?php

ob_start('ob_gzhandler');
require_once $_SERVER['DOCUMENT_ROOT'] . '/class/autoload.php';
use NERDZ\Core\User;
use NERDZ\Core\Config;
use NERDZ\Core\System;
$user = new User();
ob_start(array('NERDZ\\Core\\Utils', 'minifyHTML'));
if (!$user->isLogged()) {
    die($user->lang('REGISTER'));
}
$vals = [];
$vals['tok_n'] = NERDZ\Core\Security::getCsrfToken('edit');
$vals['themes_a'] = [];
$i = 0;
$templates = System::getAvailableTemplates();
foreach ($templates as $val) {
    $vals['themes_a'][$i]['tplno_n'] = $val['number'];
    $vals['themes_a'][$i]['tplname_n'] = $val['name'];
    ++$i;
}
$vals['mytplno_n'] = $user->getTemplate($_SESSION['id']);
$vals['mobile_b'] = User::isOnMobileHost();
$user->getTPL()->assign($vals);
$user->getTPL()->draw('preferences/themes');
Exemplo n.º 2
0
	<meta name="theme-color" content="#1D1B1B">
<?php 
}
/* END MOBILE_META_TAGS */
$static_domain = System::getResourceDomain();
/* BEGIN WINDOWS_META_TAGS */
if ($uagdata['platform'] == 'Windows' && (double) $uagdata['version'] >= 10) {
    ?>
    <meta name="application-name" content="NERDZ" /> 
    <meta name="msapplication-TileColor" content="#1D1B1B" /> 
    <meta name="msapplication-TileImage" content="/static/images/winicon.png" />
<?php 
}
/* END WINDOWS_META_TAGS */
/* BEGIN FAVICON */
if (User::isOnMobileHost()) {
    ?>
    <link rel="manifest" href="<?php 
    echo $static_domain;
    ?>
/static/webapp/manifest.json" />
    <?php 
} else {
    ?>
    <link rel="icon" type="image/x-icon" href="<?php 
    echo $static_domain;
    ?>
/static/images/favicon.ico" />
<?php 
}
/* END FAVICON */