Announcement

Collapse
No announcement yet.

Access To Chat.php file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Access To Chat.php file

    Hi,

    Does anyone have the code to block access to a cetain php file (chat.php) within the forum dir*?

    Cheers

  • #2
    Not sure I completely understand, but I'll try to help.

    If you are using vBulletin's engine (i.e requiring global.php and everything), then you can just put show_nopermission(); and the page will display a "You don't have permission to access this" page.

    If you're not, use the exit; command.

    Is that what you need?
    Chen Avinadav
    Better to remain silent and be thought a fool than to speak out and remove all doubt.

    גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

    Comment


    • #3
      Hi Firefly, yes the chat.php file does use the vb engine (using $headinclude $header) for example what I want is to block access to Users Awaiting Moderation but allow other usergroups.

      Comment


      • #4
        Then that's really easy.

        Just add this:
        PHP Code:
        if ($bbuserinfo[usergroupid]==4) {
          
        show_nopermission();

        but change 4 to that usergroup.
        Chen Avinadav
        Better to remain silent and be thought a fool than to speak out and remove all doubt.

        גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

        Comment


        • #5
          Cheers Firefly.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X