FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » FUDforum in eGroupWare » disabling the option of UPload files
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: disabling the option of UPload files [message #24060 is a reply to message #23987] Tue, 12 April 2005 12:49 Go to previous messageGo to previous message
sanju is currently offline  sanju   India
Messages: 11
Registered: March 2005
Location: Linux World
Karma:
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?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: threads and posts are mixed up
Next Topic: 404 Error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 00:38:11 GMT 2024

Total time taken to generate the page: 0.05399 seconds