Declarion of templates

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Declarion of templates

      Hello all,

      can any help me with this error code. i get this with the Xterium.

      WARNING
      Message: Declaration of template::display($file) should be compatible with Smarty_Internal_TemplateBase::display($template = NULL, $cache_id = NULL, $compile_id = NULL, $parent = NULL)
      File: /includes/classes/class.template.php
      Line: 32
      URL: 91.200.102.92/plesk-site-previ…r.de/https/91.200.102.92/
      PHP-Version: 7.0.33
      PHP-API: cgi-fcgi
      MySQL-Cleint-Version: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
      2Moons Version: UNKNOWN
      Debug Backtrace:
      #0 /includes/classes/class.template.php(32): errorHandler(2, 'Declaration of ...', 'FILEPATH ...', 32, Array)
      #1 /includes/common.php(75): require('FILEPATH ...')
      #2 /index.php(35): require('FILEPATH ...')
      #3 {main}
    • if your using the old version then it only works with version php 5...but i have found that the last discontinued version you can download on github also only works with 7.0 and under
    • ok i have a question about the installation because i think that's where my mistake is.I have to change the domain name in the files. do I have to enter my main domain name or that of the subdomain?

      PHP Source Code: GAME_FILES/TYPE_GAME_ONE/includes/pages/game/AbstractGamePage.class.php

      1. - 'my_game_url' => $config->domain_name //without https or www
      2. + 'my_game_url' => $config->worldofconqueror.de //without https or www

      Or do I have to enter my subdomain name? because you should make the file structure with subdomains
      EXAMPLE OF PORTAL AND GAME URL USING THE FOLLOWING STRUCTURE FOR CREATING SUBDOMAINS
      :httpdocs/XTERIUM_GAME/PORTAL
      httpdocs/XTERIUM_GAME/UNIVERSE/WORLD_1
      httpdocs/XTERIUM_GAME/UNIVERSE/WORLD_2
      httpdocs/XTERIUM_GAME/UNIVERSE/WORLD_3

      + 'my_game_url' => $config->world_1.worldofconqueror.de //without https or www
    • i got mine working thanks to cronos86

      class ShowIngamePage extends AbstractLoginPage
      {
      public static $requireModule = 0;

      function __construct()
      {
      parent::__construct();
      $this->setWindow('light');

      }
      function show()
      {

      $session = session::load();
      $sql = "SELECT * FROM %%USERS%% WHERE id = :userId;";
      $AccountInf = database::get()->selectSingle($sql, array(
      ':userId' => $session->userId
      ));

      if(!$session->isValidSession())
      {
      $session->delete();
      $this->assign(array(
      ));
      $this->display('page.lobby.notlogged.tpl');
      }elseif(config::get()->game_disable == 0 && $AccountInf['authlevel'] < 3){
      HTTP::redirectTo('index.php?code=6');
      }else{
      $sql = "SELECT * FROM %%USERS%% WHERE id = :userId;";
      $AccountInf = database::get()->selectSingle($sql, array(
      ':userId' => $session->userId
      ));



      $universe = HTTP::_GP('universe', 'wog', UTF8_SUPPORT);
      $authorisedArray = array('wog', 'wog2');
      if(!in_array($universe, $authorisedArray))
      HTTP::redirectTo('index.php');

      if($universe == "wog")
      $universe = "put your game subdomain here";

      if($universe == "wog2")
      $universe = "put your game subdomain here";

      header('Location: http://'.$universe.'.'.'/check.php?referralID='.$AccountInf['ref_id'].'&email='.$AccountInf['email'].'&username='.$AccountInf['username'].'&lang='.$AccountInf['lang'].'&userId='.$AccountInf['id'].'&encodingplayer='.$AccountInf['encodage'].'&password='.$AccountInf['password'].'');

      }
      }
      }