You're right Bunzo 8)
[squirrelmail.git] / plugins / squirrelspell / sqspell_options.php
CommitLineData
849bdf42 1<?php
2/**
3 SQSPELL_OPTIONS.PHP
4 --------------------
5 Main wrapper for the options interface.
6 **/
7// Set a couple of constants. Don't change these, the setuppable stuff is
8// in sqspell_config.php
9$SQSPELL_DIR="squirrelspell";
10$SQSPELL_CRYPTO=false;
11
12// Load some necessary stuff.
13chdir("..");
14include("../src/validate.php");
15include("../src/load_prefs.php");
16include("../functions/strings.php");
17include("../functions/page_header.php");
18include ("$SQSPELL_DIR/sqspell_config.php");
19require ("$SQSPELL_DIR/sqspell_functions.php");
20
21// Access the module needed
22//
23if (!$MOD) $MOD="options_main";
24
25// see if someone is attempting to be nasty by trying to get out of the
26// modules directory, although it probably wouldn't do them any good,
27// since every module has to end with .mod.php. Still, they deserve
28// to be warned. ;)
29if (strstr($MOD, ".") || strstr($MOD, "/") || strstr($MOD, "%")){
30 echo "SECURITY BREACH ON DECK 5! CMDR TUVOK AND SECURITY TEAM REQUESTED.";
31 exit;
32}
33// load the stuff already.
34include ("$SQSPELL_DIR/modules/$MOD.mod.php");
35?>