Joined: May 21, 2003 Posts: 50 Location: Suffolk, VA USA
Posted:
Tue Jul 27, 2004 8:33 am
Hey all,
My dynamic signature stopped working after I did the 2.08 forum upgrade. I now have the 2.10 installed and still the dynamic sig does not work. Was there a code change or something. Here is my signature.php
$user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
$sql = "SELECT u.username, u.user_id, s.session_logged_in, s.session_ip
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 3600 ) . "
$user_forum_sql
ORDER BY u.username ASC, s.session_ip ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
}
$logged_online = 0;
$prev_user_id = 0;
while( $row = $db->sql_fetchrow($result) )
{
// User is logged in and therefor not a guest
if ( $row['session_logged_in'] )
{
// Skip multiple sessions for one user
if ( $row['user_id'] != $prev_user_id )
{
$logged_online++;
}
if the image is calles as .php file phpbb 2.08 doesnt accept it.
PhpBB 2.08 changes wrote:
Limited allowed images in img bbcode tag to jpg, jpeg, gif and png
If it is a .jpg Chat should look it
If it is what i said you could easily use the rewrite function by apache.
Just place an .htacces file in the directory that contains
Code:
RewriteEngine on
RewriteRule ^signature.gif /signature.php
RewriteRule ^signature.jpg /signature.php
Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
Posted:
Wed Jul 28, 2004 12:01 am
I believe tix is correct, the phpBB group hardened the image filter in 2.0.8 because of an attack that placed a broken image in forum posts and private messages that when viewed by the forum admin would execute arbitrary code.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum