Welcome, Guest. Please Login or Register.
August 28, 2025, 12:23:56 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  SSI error « previous next »
Pages: [1] Reply Ignore Print
Author Topic: SSI error  (Read 419 times)
darkdrone
Noobie
*
Posts: 36


I'm a llama!

WWW
SSI error
« on: April 08, 2002, 04:32:12 PM »
Reply with quote

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!
Logged
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:SSI error
« Reply #1 on: April 08, 2002, 05:39:17 PM »
Reply with quote

have you checked your CHmod-settings for SSI.php (should be 666).
Logged

darkdrone
Noobie
*
Posts: 36


I'm a llama!

WWW
Re:SSI error
« Reply #2 on: April 08, 2002, 06:37:04 PM »
Reply with quote

It wasn't at 666  but thats still not made any difference :(
Logged
Compuart
Quality, Quality, Quality!
YaBB God
*****
Posts: 1283


ICQ - 8801024Compuart@hotmail.com WWW
Re:SSI error
« Reply #3 on: April 08, 2002, 07:05:20 PM »
Reply with quote

hmmm, ok. So where do you call the SSI from? From a php-page or from an shtml-page? What statement do you use to call the SSI-functions?
Logged

darkdrone
Noobie
*
Posts: 36


I'm a llama!

WWW
Re:SSI error
« Reply #4 on: April 08, 2002, 07:11:44 PM »
Reply with quote

SHTML, and if by statement u mean the code I use, then its <!--#include virtual="community/SSI.php?function=whosOnline" --> (Obviously I change the address to match my site)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  SSI error « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.074 seconds with 20 queries.