Thread subject: pHpFusion Nederlands (BE|NL) » Ondersteuning, Themas, Infusies, Modificaties en Installatie :: [OPGELOST] Zwar calender block geeft verkeerde tijd weer.

Posted by Stoempie on 16 november 2011, 09:10
#1

ik heb een panel toegevoegd in zwar dit werkt maar geeft een verkeerde tijd weer in het panel geeft ongeveer 10 oor minder aan dan dat die war effectief doorgaat?
Kan iemand mij hierbij helpen?

Alvast bedankt

Dits is de code van het countdown pannel.
Code


/*-----------------------------------------------------------
|   Countdown Panel for zWar Clan-Infusion            |
|                                             |
|   Copyright (C) 2006-2008 Christoph Schreck            |
|   zezoar@gmx.net                                 |
|   http://www.zoffclan.de/zoffdev/                     |
|                                             |
|   This program is free software;                      |
|   you can redistribute it and/or modify it under          |
|   the terms of the GNU General Public License          |
|   as published by the Free Software Foundation;          |
|   either version 3 of the License,                   |
|   or (at your option) any later version.               |
|                                             |
|   This program is distributed in the hope that          |
|   it will be useful, but WITHOUT ANY WARRANTY;          |
|   without even the implied warranty of MERCHANTABILITY    |
|   or FITNESS FOR A PARTICULAR PURPOSE.                |
|   See the GNU General Public License for more details.   |
|                                             |
|   You should have received a copy of the                |
|   GNU General Public License along with this program;    |
|   if not, see .            |
-----------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

if (file_exists(INFUSIONS."zwar_countdown_panel/locale/".$settings['locale'].".php")) {
   include_once INFUSIONS."zwar_countdown_panel/locale/".$settings['locale'].".php";
} else {
   include_once INFUSIONS."zwar_countdown_panel/locale/English.php";
}

if (file_exists(INFUSIONS."zwar_warscript/zwar_functions.php") && dbcount("(inf_id)", DB_INFUSIONS, "inf_folder='zwar_warscript'")) {
   require_once INFUSIONS."zwar_warscript/zwar_functions.php";
      
   openside($p_data['panel_name'], true, "on");
   $result = dbquery("SELECT * FROM ".DB_ZWAR_WARS." AS zw LEFT JOIN ".DB_ZWAR_OPPONENTS." AS zop ON zw.war_opp_id=zop.opp_id WHERE war_date>'".(time()+($settings['timeoffset']*3600))."' ORDER BY war_date ASC LIMIT 1");
   if (dbrows($result)) {
      $data = dbarray($result);
      echo "

      

      

      ".$locale['zwar_cdp01']."

      ".$data['opp_name']."

      ".display_zwar_games($data['war_game_id'], true, false)."
      
";
      echo "";
   } else {
      echo "
".$locale['zwar_cdp03']."
\n";
   }
   closeside();
}
?>

Edited by MysticFire on 22 november 2011, 16:27