GetID()) { Ctrl::Redirect("/dashboard/"); } # Define headers $html->SetHead("#%meta_title_index%#", "#%meta_description_index%#", "#%meta_key_index%#"); # Set menu $html->SetMenu("home", $player->GetLogin()); # Load blog list $sBlog = ""; $qrBlog = new Query("select * from blog where active='y' order by date desc, id desc limit 3"); while ($qrBlog->GetNextRow()) { $sDate = date("m/d ’y", strtotime($qrBlog->row['date'])); $sAnnot = Ctrl::CropText(strip_tags(Ctrl::ConvertTextToHtml($qrBlog->row['text'])), 200); $sBlog .= << $sDate {$qrBlog->row['title']}

$sAnnot

TXT; } # Set content $sPlayUrl = $player->GetID() ? "/game/" : "/signup/"; $sVideoPlayer = HtmlPlayer::PrintVideoPlayer(); $sPage = <<

#%header_index_play%#

#%description_index_1%#

#%description_index_2%#
$sVideoPlayer

#%description_index_3%#

#%link_winners%#

#%description_index_4%#

#%title_responses%#

    #%list_index_responses%#


#%title_index_blog%#

TXT; $html->SetContent($sPage); # Set bottom $html->SetBottom(); # Print all content $html->PrintPage(); # Close db connection $db->Disconnect(); ?>