$val) { if ($priority == 'tag') $attributes_data[$attr] = $val; else $result['attr'][$attr] = $val; //Set all the attributes in a array called 'attr' } } if ($type == "open") { $parent[$level -1] = & $current; if (!is_array($current) or (!in_array($tag, array_keys($current)))) { $current[$tag] = $result; if ($attributes_data) $current[$tag . '_attr'] = $attributes_data; $repeated_tag_index[$tag . '_' . $level] = 1; $current = & $current[$tag]; } else { if (isset ($current[$tag][0])) { $current[$tag][$repeated_tag_index[$tag . '_' . $level]] = $result; $repeated_tag_index[$tag . '_' . $level]++; } else { $current[$tag] = array ( $current[$tag], $result ); $repeated_tag_index[$tag . '_' . $level] = 2; if (isset ($current[$tag . '_attr'])) { $current[$tag]['0_attr'] = $current[$tag . '_attr']; unset ($current[$tag . '_attr']); } } $last_item_index = $repeated_tag_index[$tag . '_' . $level] - 1; $current = & $current[$tag][$last_item_index]; } } elseif ($type == "complete") { if (!isset ($current[$tag])) { $current[$tag] = $result; $repeated_tag_index[$tag . '_' . $level] = 1; if ($priority == 'tag' and $attributes_data) $current[$tag . '_attr'] = $attributes_data; } else { if (isset ($current[$tag][0]) and is_array($current[$tag])) { $current[$tag][$repeated_tag_index[$tag . '_' . $level]] = $result; if ($priority == 'tag' and $get_attributes and $attributes_data) { $current[$tag][$repeated_tag_index[$tag . '_' . $level] . '_attr'] = $attributes_data; } $repeated_tag_index[$tag . '_' . $level]++; } else { $current[$tag] = array ( $current[$tag], $result ); $repeated_tag_index[$tag . '_' . $level] = 1; if ($priority == 'tag' and $get_attributes) { if (isset ($current[$tag . '_attr'])) { $current[$tag]['0_attr'] = $current[$tag . '_attr']; unset ($current[$tag . '_attr']); } if ($attributes_data) { $current[$tag][$repeated_tag_index[$tag . '_' . $level] . '_attr'] = $attributes_data; } } $repeated_tag_index[$tag . '_' . $level]++; //0 and 1 index is already taken } } } elseif ($type == 'close') { $current = & $parent[$level -1]; } } return ($xml_array); } function getxml2($url,$get_attributes = 1, $priority = 'tag'){ $url=iconv("UTF-8","TIS-620",$url); $arr = xml2array($url,$get_attributes,$priority); return $arr; } function chEncode($str){ if(!is_array($str)){ return iconv("UTF-8","TIS-620",$str); } } function getxml($url,$get_attributes = 1, $priority = 'tag'){ $url=iconv("UTF-8","TIS-620",$url); $parser = new XMLParser($url , 'file', 1); $array =& $parser->getTree(); return $array; } //$array=getxml("http://www.gmember.com/xmlGenerator/artistsite/gen_schedule.php?id=1025"); ?>prepare(); $menu = array('HOME','PROFILE','NEWS','MUSIC','VDO','GALLERY','WALLPAPER','WALL','DARAOKE','WIDGET'); foreach($menu as $value){ if($value == $menuActive){ $tpl->newBlock( "BLOCK_".$value."_NONE"); }else{ $tpl->newBlock( "BLOCK_".$value); } $tpl->gotoBlock( "_ROOT" ); } $tpl->assign("WEBBOARD_URL",WEBBOARD_URL."viewforum.php?f=".$setting["forum_id"]); $tpl->assign( "APP_URL", APP_URL); $strOutput = $tpl->getOutputContent(); return $strOutput; } ?>encoding = 'windows-874'; if($passport->islogin == true && $_SESSION['user_member']['XML']['LOGINSTATUS'] != 'OK'){ $_SESSION['user_member']['XML']['PASSPORTID']['VALUE'] = $passport->userid; $_SESSION['user_member']['XML']['EMAIL']['VALUE'] = $passport->email; $_SESSION['user_member']['XML']['SHOWNAME']['VALUE'] = $passport->callname; $_SESSION['user_member']['XML']['ICON']['VALUE'] = "http://service.gmember.com/images/nophoto.jpg"; $_SESSION['user_member']['XML']['LOGINSTATUS']['VALUE'] = "OK"; $_SESSION['user_member']['XML']['LOGINDETAIL']['VALUE'] = "successful"; } if($_SESSION['user_member']['XML']['LOGINSTATUS']['VALUE'] == "OK"){ $tpl = new TemplatePower( "theme/header/logout.html" ); $tpl->assignInclude( "WEBTREND_TAG", "webstat/webtrends.html" ); // Webtrend : Edit by aOr 04.05.2010 $member_displayname = $passport->callname; if($passport->startime<>"") { $str_datetime = explode(" ", $passport->startime); if ( $str_datetime != FALSE ) { $logindate = explode("-", $str_datetime[0]); $logintime = explode(":", end($str_datetime)); $logindd = end($logindate); $startlogin = $logintime[0]; $today = getdate(); $current_hour = $today["hours"] + (($today["mday"]-$logindd)*24); $duration = $current_hour-$logintime[0]; if(strlen($startlogin)==1) { $startlogin = "0".$startlogin; } } }else{ $startlogin = ""; $duration = ""; } $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; // End Webtrend : Edit by aOr 04.05.2010 $tpl->prepare(); $tpl->assignGlobal( "META_TAG", $strMetaTag); // Webtrend : Edit by aOr 04.05.2010 $tpl->assign("DISPLAY_NAME", $_SESSION['user_member']['XML']['SHOWNAME']['VALUE']); $tpl->assign( "FORUMID", $setting["forum_id"]); }else{ $tpl = new TemplatePower( "theme/header/login.html" ); $tpl->assignInclude( "WEBTREND_TAG", "webstat/webtrends.html" ); // Webtrend : Edit by aOr 04.05.2010 $member_displayname = "guest"; $strMetaTag .= ''; $strMetaTag .= ''; $strMetaTag .= ''; // End Webtrend : Edit by aOr 04.05.2010 $tpl->prepare(); $tpl->assignGlobal( "META_TAG", $strMetaTag); // Webtrend : Edit by aOr 04.05.2010 $tpl->assign( "FORUMID", $setting["forum_id"]); } $strOutput = $tpl->getOutputContent(); return $strOutput; } ?>