load("GLOBAL,START,MAEDN"); require("./maedn_functions.php"); $result = $db->query_first("SELECT * FROM bb".$n."_maedn_config"); $iframehigh = $result['iframehigh']; great_check(); if (!$wbbuserdata['userid']) { eval("error(\"".$tpl->get("maedn_guest")."\");"); } elseif (!$wbbuserdata['can_maedn_play']) { access_error(); } else { $allowed = 0; $allow = $result['maedn_allowed'].","; $postings = $result['postings']; $guthaben = $result['guthaben']; $pay = $result['pay']; if ($wbbuserdata['userposts'] < $postings) { eval("\$tpl->output(\"".$tpl->get("maedn_no_post")."\");"); exit; } if ($guthaben) { $res = $db->query_first("SELECT * FROM bb".$n."_guthaben"); $waehrung = $res['waehrung']; $uid=$wbbuserdata['userid']; $spielt = $db->query_first("select gameid from bb".$n."_maedn_users where userid='$uid'"); if ($wbbuserdata['guthaben'] < $pay && $spielt['gameid'] == 0) { eval("\$tpl->output(\"".$tpl->get("maedn_no_money")."\");"); exit; } } } $currenttime=formatdate($wbbuserdata['timeformat'],time()); $toffset=(($wbbuserdata['timezoneoffset']>=0) ? ("+") : ("")).$wbbuserdata['timezoneoffset']; if(class_exists(get4eval)){ eval ("\$lang->items['LANG_START_TIMEZONE'] = \"".$lang->get4eval("LANG_START_TIMEZONE")."\";"); } else { eval ("\$lang->items['LANG_START_TIMEZONE'] = \"".$lang->get("LANG_START_TIMEZONE", array('$toffset' => $toffset))."\";"); } //eval ("\$lang->items['LANG_START_TIMEZONE'] = \"".$lang->get4eval("LANG_START_TIMEZONE")."\";"); $lastvisitdate = formatdate($wbbuserdata['dateformat'],$wbbuserdata['lastvisit']); $lastvisittime = formatdate($wbbuserdata['timeformat'],$wbbuserdata['lastvisit']); eval("\$tpl->output(\"".$tpl->get("maedn")."\");"); exit(); ?>