|
|
Re: disabling the option of UPload files [message #24060 is a reply to message #23987] |
Tue, 12 April 2005 12:49 |
sanju
Messages: 11 Registered: March 2005 Location: Linux World
Karma: 0
|
Junior Member |
|
|
hmm, but still the upload option is visible
just i dont want to show it there
basically,
now i am running bugzilla in the same machine, i am getting afraid to upgrade the php version, but this upload option is still giving me the error
"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/egroupware/fudforum/3814588639/theme/default/getfile.php on line 123"
line 123 is like this
LEFT JOIN phpgw_fud_mod mod ON mod.forum_id=t.forum_id AND mod.user_id='._uid.';
the entire set of code is like this,
"
$r = db_saq('SELECT mm.mime_hdr, a.original_name, a.location, m.id, md.id,
('.(_uid ? '(CASE WHEN g2.id IS NOT NULL THEN g2.group_cache_opt ELSE g1.group_cache_opt END)' : 'g1.group_cache_opt').' & 2) > 0
FROM {SQL_TABLE_PREFIX}attach a
INNER JOIN {SQL_TABLE_PREFIX}msg m ON a.message_id=m.id AND a.attach_opt=0
INNER JOIN {SQL_TABLE_PREFIX}thread t ON m.thread_id=t.id
INNER JOIN {SQL_TABLE_PREFIX}group_cache g1 ON g1.user_id='.(_uid ? 2147483647 : 0).' AND g1.resource_id=t.forum_id
LEFT JOIN {SQL_TABLE_PREFIX}mod md ON md.forum_id=t.forum_id AND md.user_id='._uid.'
LEFT JOIN {SQL_TABLE_PREFIX}mime mm ON mm.id=a.mime_type
'.(_uid ? 'LEFT JOIN {SQL_TABLE_PREFIX}group_cache g2 ON g2.user_id='._uid.' AND g2.resource_id=t.forum_id' : '').'
WHERE a.id='.$id)';
LEFT JOIN phpgw_fud_mod mod ON mod.forum_id=t.forum_id AND mod.user_id='._uid.';
LEFT JOIN phpgw_fud_mime mm ON mm.id=a.mime_type
'.(_uid ? 'LEFT JOIN phpgw_fud_group_cache g2 ON g2.user_id='._uid.' AND g2.resource_id=t.forum_id' : '').'
WHERE a.id='.$id)';
if (!$r) {
invl_inp_err();
}
if (!($usr->users_opt & 1048576) && !$r[4] && !$r[5]) {
std_error('access');
}
} else {
$r = db_saq('SELECT mm.mime_hdr, a.original_name, a.location, pm.id, a.owner
FROM phpgw_fud_attach a
INNER JOIN phpgw_fud_pmsg pm ON a.message_id=pm.id AND a.attach_opt=1
LEFT JOIN phpgw_fud_mime mm ON mm.id=a.mime_type
WHERE a.attach_opt=1 AND a.id='.$id);
will you please help me?
|
|
|
Re: disabling the option of UPload files [message #24061 is a reply to message #24060] |
Tue, 12 April 2005 13:03 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Looks like the theme compiler did not work, try to rebuild the theme one more time... and make sure you have the latest source of FUDeGW.
FUDforum Core Developer
|
|
|
|