=0){ $_AccountShowName = strtoupper($_AccountShowName); define('SSR','cny' ); } if($name_length==3||$name_length==4){ $userdatafile = tools::includeUserData(strtoupper($_AccountShowName),'apt'); if ($ret = @include_once $userdatafile){ $_AccountShowName = strtoupper($_AccountShowName); define('SSR','apt' ); } } } define('SSR','' ); $_insUidCk = new V8UidCk(false); list($avatarUrl,) = tools::getStorage('avatars'); $defaultAvatar_2 = $avatarUrl . 'default_2.jpg'; $defaultAvatar_3 = $avatarUrl . 'default_3.jpg'; try{ $_insUidCk->initCK(); if ($_insUidCk->CKinSession()) { $sesUserID = $_insUidCk->getUserID(); $sesUserName = $_insUidCk->getValueCK('UserName'); //there is no name in the query string, but the user is in session. //if(empty($_AccountShowName)|| strlen($_AccountShowName)==0) if(empty($_AccountShowName)) $_AccountShowName=$sesUserName; if($_AccountShowName==$sesUserName){ $_AccountShowID = $sesUserID; $login_and_visit_home = true; } $alreadyLogin=true; } //no user ref found. go out or go to index page. if(empty($_AccountShowName)|| strlen($_AccountShowName)==0) throw new V9Exception('703'); //now get show user data $userdatafile = tools::includeUserData($_AccountShowName,SSR); if ($ret = @include $userdatafile){ $_AccountShowData = $_userdata_["$lang"]? $_userdata_["$lang"]:$_userdata_; $_AccountShowFollowData = $_FollowData_; $_AccountShowbeFollowData = $_beFollowData_; if(empty($_AccountShowID)) $_AccountShowID = key($_AccountShowData); //reset name, overwrite one in query string. in the case of country or airport , this is different from the one in the query string. //$_AccountShowName= $_AccountShowData["$_AccountShowID"]['name']; }else throw new V9Exception('702'); if($login_and_visit_home){ $SessAccData = $_AccountShowData; $SessAccFollowData = $_AccountShowFollowData; }elseif($alreadyLogin){ //get login user's data unset($_userdata_); unset($_FollowData_); $userdatafile = tools::includeUserData($sesUserName); if ($ret = @include $userdatafile){ $SessAccData = $_userdata_; $SessAccFollowData = $_FollowData_; $SessAccBeFollowData = $_beFollowData_; }else throw new V9Exception('702'); } }catch (V9Exception $e){ $e->handleError(); }catch (Exception $e){ print $e->getMessage(); print "\n
\n"; exit; } $_AccShortShow = $_AccountShowData["$_AccountShowID"]['short']; $_AccScreenName = empty($refMappingRe["$_AccountShowName"])?$_AccountShowName:$refMappingRe["$_AccountShowName"]; //this name is used in textarea, if screen has space , will use accountname. $_refName = strpos($_AccScreenName,' ')>0?$_AccountShowName:$_AccScreenName; $_AccavatarShow = $avatarUrl . $_AccountShowID.'_2.jpg'; $formhash = tools::formhash(); $display = tools::getParameter('display',null); //@determin user status $resMenu = $_MENUES_["$_AccountShowID"]; $currentMenu = '114'; //default is m7 $DOMENU = false; if(count($resMenu)>0){//user has menues $DOMENU = true; //now load customized style code if($_AccountShowData["$_AccountShowID"]["SpaceStyle"]); $layoutscode = $_AccountShowData["$_AccountShowID"]["SpaceStyle"]; if(empty($_GET['page'])){//if page has value , must be 114 menue if(!($display=='0'||$display=='1'|| $display=='2'||$display=='3'||$display=='4')){//if display is these, menu must be 114 if(empty($display)){//no display asked. $currentMenu = $resMenu[0]['SPACEFEATUREID'];//current(array_keys($resMenu));//read first one of menues. $subMenuType = $resMenu[0]['STYLE']; }else{ while(list(,$v)=each($resMenu)){ if($v['REFSTRING']==$display){ $currentMenu = $v['SPACEFEATUREID']; $currentMenuTitle = $v['ONPAGEFEATURENAME']; $subMenuType = $v['STYLE']; break; } } reset($resMenu); } } } $rqtSpaceInstanceID = $_AccountShowName; //tools::getParameter('thread',null); } if($currentMenu=='114'){ //only for m7 menu if($alreadyLogin){ if($display=='2') $view='mark'; elseif($display=='1') $view='my'; else{ if($login_and_visit_home){ if($display=='3') $view='pmr'; elseif($display=='4') $view='pms'; } } } if(!($display=='1'|| $display=='2'||$display=='3'||$display=='4')){ $display = '0'; $view='new'; } } //@try to see if user want a post $rqtSpaceItemID = tools::getParameter('feature',null); if($DOMENU===true && ($currentMenu != '114' || !empty($rqtSpaceItemID))){ { $_ONLINE_ = true; $_MODE_ = 1;//@only thread. //$build = tools::getParameter('build','n','get'); if(empty($rqtSpaceItemID)){ $rqtSpaceItemCmtID = tools::getParameter('SpaceItemCmtID',null); if(empty($rqtSpaceItemCmtID)){ //throw : noting to do here. if(empty($rqtSpaceInstanceID)){ try{ throw new V9Exception ('401'); exit; }catch (V9Exception $e){ $e->handleError(); } } }else{ $_MODE_ = -4;//version list only / no space. //$rqtSpaceItemType = 'g'; $CommentOnly = tools::getParameter('CommentOnly','n'); $rqtSerieNum = tools::getParameter('SerieNum',null); } }else{ $_MODE_ = -6; $rqtSpaceItemCmtID = tools::getParameter('SpaceItemCmtID',null); if(!empty($rqtSpaceItemCmtID)){ $_MODE_ = -8;//@version list/no space //$rqtSpaceItemType = 'g'; $CommentOnly = tools::getParameter('CommentOnly','n'); $rqtSerieNum = tools::getParameter('SerieNum',null); } } //@try to see thread, if called from internet. if(!empty($rqtSpaceInstanceID))$_MODE_ = abs($_MODE_); if(abs($_MODE_)>0){ include_once "./include/Space.inc"; try{ $con = tools::getDBConnection_bd(); $insSpace = new V9Space($con); //$_insUidPm = new V9UidPm($con); $insTree = new V9TreeCmt( $con); }catch (V9Exception $e){ $e->handleError(); } } if(abs($_MODE_)==6 ){ $resPageInfo = current($insSpace->getSpaceItem(null,$rqtSpaceItemID,true));//true means only retirve active. if(empty($resPageInfo)){ try{ throw new V9Exception ('402'); exit; }catch (V9Exception $e){ $e->handleError(); } } //find menu while(list(,$v)=each($resMenu)){ if($v['SPACEFEATUREID']==$resPageInfo['SPACEITEMTYPE']){ $currentMenu = $v['SPACEFEATUREID']; $subMenuType = $v['STYLE']; break; } }reset($resMenu); } if(abs($_MODE_)==8 || abs($_MODE_)==4){ $resPageInfo = current($insSpace->getSpaceItemCmt4public('id',$rqtSpaceItemCmtID)); if(empty($resPageInfo)){ try{ throw new V9Exception ('402'); exit; }catch (V9Exception $e){ $e->handleError(); } } } //@for indepedant qicpage, if requested with instance/space id, then go out. if($resPageInfo['SPACEITEMFLAG']=='n' && $_MODE_>0){ try{ throw new V9Exception ('402'); exit; }catch (V9Exception $e){ $e->handleError(); } } if(abs($_MODE_)==8 || abs($_MODE_)==4){ $cmtType = $resPageInfo['TYPEKIND']; $secureMode = $resPageInfo['SECUREMODE']; $serieType = $resPageInfo['COMPONENTTYPE']; if($CommentOnly=='y'){ $resSerie = array(); }else{ $resSerie = $insTree->getSeries($resPageInfo['COMPONENTID'],"DATA",null,null,false); //@here we do not check if resserie is empty or not. we just log that the cmt is accessed. //@this log happens when user click the detail button to show the content. //@currenly, it is not possible to show the detail content without click the 'show' detail button. //if($resSerie[0]['FLAGLOG']=='y'){ $logData['CMTID'] = $resPageInfo['COMPONENTID']; //} if($secureMode == 'y' && $cmtType=='image'){//@begin build for secure image. $IfSecureImage = true; $_insUidPm->setUseCache(false);//set to false, then the setting will not be strored in session. $sesTextOnImage = trim($_insUidPm->getPref($resPageInfo['USERID'],'TEXTONIMAGE')); } //@determine focus on a vesion. if(empty($rqtSerieNum)) $currentSerie = $resSerie[count($resSerie)-1]['SERIENUMBER']; else $currentSerie = $rqtSerieNum; } } if($_MODE_>0){ $logData['NAMEINFO1'] = $rqtSpaceInstanceID; //$resMenu = $insSpace->getUserSpaceFeature('m',$rqtSpaceInstanceID,true,true);//first true means want acitve menu item, the second means want summary. if(count($resMenu)>0){ if(!empty($resPageInfo['SPACEITEMTYPE'])){ $rqtSpaceItemType = $resPageInfo['SPACEITEMTYPE']; //$randerID = $resPageInfo['SPACEITEMID']; }else{ $rqtSpaceItemType = $currentMenu;//tools::getParameter('SpaceItemType',$resMenu[0]['SPACEFEATUREID']); //$randerID = $rqtSpaceItemType; } while(list(,$v)=each($resMenu)) //if($v['SPACEFEATUREID']==$rqtSpaceItemType && $v['CNT']>0){ if($v['SPACEFEATUREID']==$rqtSpaceItemType){ //$resSpaceitems = $insSpace->getSpaceItems($rqtSpaceItemType,'public',$resMenu[0]['USERID'],null,$v['PUBLISHINGSORTFLAG']=='d'?true:false); $resSpaceitems = $insSpace->getSpaceItems($rqtSpaceItemType,'public',$resMenu[0]['USERID'],null,$v['PUBLISHINGSORTFLAG']=='d'?true:false); break; } //@Not find any items of the instance. if(empty($resSpaceitems) || count($resSpaceitems)==0){ }else{ //@determin current space item. if(empty($resPageInfo)) $resPageInfo = $resSpaceitems[0]; } } } //get type again. $rqtSpaceItemType = $resPageInfo['SPACEITEMTYPE']; if(abs($_MODE_)!=4 && abs($_MODE_)!=8){ //check if a cache versin exits: $_useCache4Post = false; $OS_Path_Seperator = tools::getSeprator(); list($_pagemediaURL,$_pagemediaDISK) = tools::getStorage('pagemedia',$resPageInfo['QICPAGEDOMAIN'],'n'); if(file_exists($_pagemediaDISK.$OS_Path_Seperator.$resPageInfo['SPACEITEMID'].'.inc')){ $_useCache4Post = true; }else{ include 'SpaceFunction.inc'; $resPageItem = $insTree->getPageItemDetail($_ONLINE_,$resPageInfo['SPACEITEMID']); $ifAssociatItem = false; //when $ifAssociatItem is true, then item is assocated, then never output cache file. $Loc2Cmt = transPageItem($resPageItem,$ifAssociatItem); } } //@LOG with intenet access is always ON. $logData['NAMEINFO2'] = $resPageInfo['SPACEITEMID']; $logData['ACTIONUSERNAME'] = $_SERVER['REMOTE_ADDR']; $logData['CMTID'] = $resPageInfo['COMPONENTID']; $logData['ACTIONCODE'] = '9c'; $logData['LOGNOTE'] = $resPageInfo['SPACEITEMTITLE']; } if(!empty($logData['ACTIONCODE'])){ $cmtLog = new V9CmtLog($con); $cmtLog->CmtLog($logData); } $_pageName = tools::Myhtmlentities($resPageInfo['SPACEITEMTITLE']); $CNTSpaceitems = count($resSpaceitems); $_MetaDataKeyword = tools::Myhtmlentities($resPageInfo['METADATAKEYWORD']); $_MetaDataDesc = tools::Myhtmlentities($resPageInfo['METADATADESC']); /*$_MetaPageEncode = tools::Myhtmlentities(trim($resPageInfo['PAGEENCODE'])); $_PAGEMEDIAURL = tools::getPageMediaUrl(); $_PAGEMEDIADISK = tools::getPageMediaDiskStorage(); */ //$showPub = abs($_MODE_) == 4 ||abs($_MODE_) == 8 || ($_MODE_==0 && ($CommentOnly=='y' || count($resSerie)>0)); } list($_CMTURL,) = tools::getStorage('channel', $_insUidCk->getValueCK('Domain')); ?> <?php print $currentMenuTitle.' | '.$_AccScreenName ?> <?php print $_pageName.' | '.$_AccScreenName ?> <?php (SSR!='')?print $_AccountShowData["$_AccountShowID"]['name'].' ('.$_AccountShowName .')': print $_AccScreenName.' @airporters.net' ?>
See Virtual Tour...


MSG:input<  !
0){ ?>
0){?>
    0)while(list(,$v)=each($resSpaceitems)){ ?>
  • >
0){?>
0){ ?>
'0' && $CNTSpaceitems>1 ){ ?>
0){ while(list($_featureID)=each($Loc2Cmt)){ switch ($_featureID){ case '51': case '52': case '53': case '54': case '55': case '56': case '57': case '58': include("pageparts/coltopsmlbanner.php"); break; case '64': include("pageparts/row3.php"); break; case '32': include("pageparts/imagerow.php"); break; case '60': include("pageparts/row1.php"); break; case '62': include("pageparts/row2.php"); break; case '34': include("pageparts/articlerow.php"); break; case '36': include("pageparts/refrow.php"); break; case '38': include("pageparts/attachmentrow.php"); break; } } }else{ ?> No item found!
handleError();} $rqtCurrentPage = tools::getParameter('page',1); $tpl = 'msglist'; include 'pageparts.inc'; } ?>