if ($in{'action'} eq "intro") { if ($AllowSearch eq "FALSE" || $username eq "") { &StandardHTML("Sorry, the search function is not activated at this time."); exit; } else { &Intro; } }
I think you would be better off wotking on the $AllowSearch variable. It is called from UltBB.setup and interpretted as true/false. If you had a conditional statement in search.cgi that basically assigned the stored value for $AllowSearch for all users EXCEPT unregistered users...which it would then assign FALSE at all times....you *might* be OK!! I don't have time to do it right now...and I may even be WAY off the mark....but that is what I would try to do. Good luck!! Did any of that make sense??? I hope so!!
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.