Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

sternenkindsaga.php 657B

123456789101112131415161718192021222324
  1. <?php
  2. use SCF\Core\DI;
  3. use SCF\Core\Database;
  4. $acl = DI::getInstance()->get('acl');
  5. if($acl->acl('see_SKS') == 1) {
  6. $db_slave = new Database($config['dbext'], $config['dbhost'], $config['dbuser'], $config['dbpass'], 'sks_gametracking');
  7. $sksSettings = [];
  8. $db_slave->query("SELECT * FROM sks_core_settings");
  9. $set = $db_slave->fetchArray();
  10. foreach ($set as $key => $value) {
  11. $sksSettings[$value['setting']] = $value['value'];
  12. }
  13. //var_dump($sksSettings);
  14. $tpl->assign('sksSettings', $sksSettings);
  15. $tpl->display('Data/PageAdmin/sternenkindsaga.tpl');
  16. } else {
  17. $tpl->display('errorpages/AclError.tpl');
  18. }