Пример #1
0
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //
if (!defined("XOOPS_MAINFILE_INCLUDED")) {
    exit;
} else {
    //Instantiate security object
    require_once XOOPS_ROOT_PATH . "/class/xoopssecurity.php";
    $xoopsSecurity = new XoopsSecurity();
    global $xoopsSecurity;
    //Check super globals
    $xoopsSecurity->checkSuperglobals();
    // ############## Activate error handler ##############
    //include_once XOOPS_ROOT_PATH . '/class/errorhandler.php';
    //$xoopsErrorHandler =& XoopsErrorHandler::getInstance();
    // Turn on error handler by default (until config value obtained from DB)
    //$xoopsErrorHandler->activate(true);
    define("XOOPS_SIDEBLOCK_LEFT", 0);
    define("XOOPS_SIDEBLOCK_RIGHT", 1);
    define("XOOPS_SIDEBLOCK_BOTH", 2);
    define("XOOPS_CENTERBLOCK_LEFT", 3);
    define("XOOPS_CENTERBLOCK_RIGHT", 4);
    define("XOOPS_CENTERBLOCK_CENTER", 5);
    define("XOOPS_CENTERBLOCK_ALL", 6);
    define("XOOPS_BLOCK_INVISIBLE", 0);
    define("XOOPS_BLOCK_VISIBLE", 1);
    define("XOOPS_MATCH_START", 0);