示例#1
0
 *  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, see <http://www.gnu.org/licenses/>.
 *
 *  2007 - 2012, Rainer Furtmeier - Rainer@Furtmeier.de
 */
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
error_reporting(E_ALL);
if (function_exists('date_default_timezone_set')) {
    date_default_timezone_set('Europe/Berlin');
}
require "./connect.php";
if (isset($_POST["formID"]) or isset($_GET["formID"])) {
    Handler::handleForm(isset($_POST["formID"]) ? $_POST : $_GET);
    exit;
}
if (isset($_GET["d"])) {
    $_SERVER["HTTP_HOST"] = $_GET["d"];
}
if (isset($_GET["AJAXClass"])) {
    $c = $_GET["AJAXClass"];
    if (substr($c, 0, 2) != "CC") {
        $c = "CC{$c}";
    }
    $c = new $c();
    $parameters = array();
    if (isset($_GET["AJAXParameters"])) {
        $parameters = explode(";;;", $_GET["AJAXParameters"]);
    }