Forbidden: You don't have permission to access

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asterix_ita
    Member
    • Nov 2009
    • 63
    • 4.2.X

    [CMS] Forbidden: You don't have permission to access

    I’m writing a tutorial and when saving an article, if I enter this code using bbcode php

    PHP Code:
    <?php
     
    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);
     
    // #################### DEFINE IMPORTANT CONSTANTS #######################
     
    define('THIS_SCRIPT''jukebox');
    define('CSRF_PROTECTION'true);  
    // change this depending on your filename
     
    // ################### PRE-CACHE TEMPLATES AND DATA ######################
    // get special phrase groups
    $phrasegroups = array();
     
    // get special data templates from the datastore
    $specialtemplates = array();
     
    // pre-cache templates used by all actions
    $globaltemplates = array('jukebox',);
     
    // pre-cache templates used by specific actions
    $actiontemplates = array();
     
    // ######################### REQUIRE BACK-END ############################
    // if your page is outside of your normal vb forums directory, you should change directories by uncommenting the next line
    // chdir ('/path/to/your/forums');
    require_once('./global.php');
     
    // #######################################################################
    // ######################## START MAIN SCRIPT ############################
    // #######################################################################
     
    $navbits construct_navbits(array('' => 'jukebox'));
    $navbar render_navbar_template($navbits);
     
    // ###### YOUR CUSTOM CODE GOES HERE #####
    $pagetitle 'jukebox';
     
    // ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
     
    $templater vB_Template::create('jukebox');
    $templater->register_page_templates();
    $templater->register('navbar'$navbar);
    $templater->register('pagetitle'$pagetitle);
    print_output($templater->render());
     
    ?>
    the vbulletin returns this message Forbidden: You don't have permission to access.

    The article is saved regularly if I don’t insert that code, why?

    regards

    Asterix

    vbulletin suite 4.1.12pl1
    Attached Files
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24354
    • 5.7.X

    #2
    This may be due to mod_security. If so, please see this thread for the possible fix:



    Note: The .htaccess file does not work all the time, particularly if mod_security2 is installed. If that's the case then your host will need to identify which rules are causing this and make the appropriate adjustments.
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • asterix_ita
      Member
      • Nov 2009
      • 63
      • 4.2.X

      #3
      thanks now it works

      regards

      Asterix

      Comment

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