[Suggestion] Disable all Hooks in config.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andreas
    Senior Member
    • Feb 2004
    • 2323

    [Suggestion] Disable all Hooks in config.php

    A broken plugin placed in hook fetch_userinfo, global_start etc. can stop whole system from working.
    Knowledged users can get around this problem, but others may get stuck.
    Therefor I suggest to add a setting to config.php to globally disable all hooks in case of problems.

    Edit: I should read more carefully ...
    Code:
    define('DISABLE_HOOKS', 1);
  • digitalpoint
    Senior Member
    • Mar 2004
    • 2573
    • 4.1.x

    #2
    I believe it's also a normal setting in the Admin CP...

    vBulletin Options -> Plugin/Hook System
    Sphinx Search for vBulletin 4: https://marketplace.digitalpoint.com...tin-4.870/item
    Someone send me a message on Twitter when this site is usable again. https://twitter.com/digitalpoint

    Comment

    • Matthew Gordon
      Senior Member
      • May 2002
      • 3243
      • 1.1.x

      #3
      Yeah, but that doesn't help if a plugin kills the board, locking you out of the Admin CP.

      Comment

      • digitalpoint
        Senior Member
        • Mar 2004
        • 2573
        • 4.1.x

        #4
        Hmmm... yeah, didn't think of that. Although since there are no plug-ins in the admin CP, I'm not so sure a messed up one could lock you out.
        Sphinx Search for vBulletin 4: https://marketplace.digitalpoint.com...tin-4.870/item
        Someone send me a message on Twitter when this site is usable again. https://twitter.com/digitalpoint

        Comment

        • Matthew Gordon
          Senior Member
          • May 2002
          • 3243
          • 1.1.x

          #5
          Add a hook with this code into fetch_userinfo:
          PHP Code:
          exit; 
          Boom! Instant death to all vB pages, including the Admin CP.

          Comment

          • Onimua
            Senior Member
            • Apr 2005
            • 4572

            #6
            Originally posted by squall14716
            Add a hook with this code into fetch_userinfo:
            PHP Code:
            exit; 
            Boom! Instant death to all vB pages, including the Admin CP.
            Back-up database, keep that code on file, next year's April Fool's.

            EDIT: Wow... post stretch with that one.
            Congratulations on the death of vBulletin, Internet Brands.

            Comment

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