When I use SSI.php I just get the following Output:
$txt[34] $txt[377] $txt[97]." : "$txt[247] $tmp, "; $yyim = ''; if($username != "Guest") { $request = mysql_query("SELECT COUNT(*) FROM {$db_prefix}instant_messages WHERE (toName='$username' && deletedBy!=1)"); $temp = mysql_fetch_row($request); $mnum = $temp[0]; if($mnum == "1") { $yyim = "$txt[152] $mnum $txt[471]."; } else { $yyim = "$txt[152] $mnum $txt[153]."; } if($maintenance) { $yyim .= "
$txt[616]"; } } print "$yyuname$yyim"; } function menubar() { global $scripturl, $menusep, $img, $settings, $username, $enable_notification, $cgi, $helpfile; $yymenu = "$img[home]$menusep$img[help]$menusep$img[search]"; if($settings[7] == 'Administrator') { $yymenu = $yymenu.$menusep."$img[admin]"; } if($username == "Guest") { $yymenu .= $menusep."$img[login]$menusep$img[register]"; } else { $yymenu .= "$menusep$img[profile]"; if($enable_notification) { $yymenu .= "$menusep$img[notification]"; } $yymenu .= "$menusep$img[logout]"; } print "$yymenu"; } function logout() { global $username,$txt,$cgi,$db_prefix,$realname; $tmp = ($realname=='')?$username:$realname; if($username != "Guest") { $yylogout = "$txt[108]"; } print "$yylogout"; } function recentTopics(){ ob_end_clean(); global $settings,$scripturl,$txt,$censored,$recentsender,$db_prefix, $post, $dummy,$showlatestcount,$showBoard,$showPoster,$showTime; # Load Censor List LoadCensorList(); if (!isset($recentsender)) {$recentsender='';} $request = mysql_query("SELECT m.posterTime,m.subject,m.ID_TOPIC,t.ID_BOARD,m.posterName,m.ID_MEMBER,t.numReplies,t.ID_FIRST_MSG FROM {$db_prefix}messages as m,{$db_prefix}topics as t,{$db_prefix}boards as b,{$db_prefix}categories as c WHERE (m.ID_MSG=t.ID_LAST_MSG &&
t.ID_BOARD=b.ID_BOARD &&
b.ID_CAT=c.ID_CAT && (FIND_IN_SET('$settings[7]',c.memberGroups)!=0 || c.memberGroups='' || '$settings[7]' LIKE 'Administrator' || '$settings[7]' LIKE 'Global Moderator')) ORDER BY m.posterTime DESC LIMIT 0,$showlatestcount"); $thepost = ""; if( mysql_num_rows($request) > "0" ) { $post = array(); while ($row = mysql_fetch_array($request)) { $request3 = mysql_query ("SELECT name FROM {$db_prefix}boards WHERE (ID_BOARD=$row[ID_BOARD]) LIMIT 1"); $temp = mysql_fetch_row($request3); $bname = $temp[0]; if ($row['ID_MEMBER'] != -1) { $request4 = mysql_query ("SELECT realName FROM {$db_prefix}members WHERE ID_MEMBER=$row[ID_MEMBER] LIMIT 1"); $temp2 = mysql_fetch_row($request4); $dummy = "$temp2[0]"; } else { $dummy = $row['posterName']; } $request2 = mysql_query ("SELECT subject FROM {$db_prefix}messages WHERE ID_MSG=$row[ID_FIRST_MSG] LIMIT 1"); $row2 = mysql_fetch_array($request2); $dummy1 = $showBoard?"$txt[yse88] $bname ":""; $dummy2 = $showPoster?"$txt[525] $dummy ":""; $dummy3 = $showTime?timeformat($row['posterTime']):""; $thepost .="ยป $row2[subject] $dummy1$dummy2$dummy3
\n"; } } foreach ($censored as $tmpa=>$tmpb) { $thepost = str_replace($tmpa,$tmpb,$thepost ); } print $thepost; } function topPoster() { ob_end_clean(); global $db_prefix,$scripturl; $request = mysql_query("SELECT memberName,realName FROM {$db_prefix}members ORDER BY posts DESC LIMIT 1"); $row = mysql_fetch_array($request); print "$row[realName]"; } function whosOnline() { ob_end_clean(); global $scripturl,$db_prefix,$txt; $guests = 0; $tmpusers = array(); $request3 = mysql_query("SELECT identity FROM {$db_prefix}log_online WHERE 1 ORDER BY logTime DESC"); while ($tmp = mysql_fetch_array($request3)) { $identity = $tmp[0]; $request4 = mysql_query("SELECT realName, memberGroup FROM {$db_prefix}members WHERE (memberName='$identity') LIMIT 1"); if (mysql_num_rows($request4) > 0){ $tmp = mysql_fetch_row($request4); if ($tmp[1]=="Administrator") $tmpusers[] = "$tmp[0]"; elseif ($tmp[1]=="Global Moderator") $tmpusers[] = "$tmp[0]"; else $tmpusers[] = "$tmp[0]";} else $guests ++; } $users = implode(", ",$tmpusers); $numusersonline = sizeof($tmpusers); print "$guests $txt[141], $numusersonline $txt[142]
$users"; } function login() { $user = 'user'; $pass = 'pass'; ob_end_clean(); global $username,$cgi,$txt; print << $user:
$pass:
EOT; } ?>
Please help!