]> git.mxchange.org Git - mailer.git/blobdiff - 0.2.1/install.php
win32 to unix line delimiters changed
[mailer.git] / 0.2.1 / install.php
index 1566acdb69b89cb57e99bc2e5a298fdeec089d01..046dcf9a248748a1143c45218175cfd792a6092d 100644 (file)
@@ -1,97 +1,97 @@
-<?php\r
-/************************************************************************\r
- * MXChange v0.1.0                                    Start: 08/25/2003 *\r
- * ===============                              Last change: 04/26/2004 *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * File              : install.php                                      *\r
- * -------------------------------------------------------------------- *\r
- *                                                                      *\r
- *          ------------------------------------------------            *\r
- *         / PLEASE READ THIS!  /  BITTE LESEN SIE DIESES! /            *\r
- *        -------------------------------------------------             *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Installation script. Please delete this file     *\r
- *           after successfully installation or ANYONE can re-setup     *\r
- *           your mail exchange script!!!                               *\r
- *                                                                      *\r
- *           First of all setup the base URL.                           *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung  : Installationsscript. Bitte l�schen Sie diese     *\r
- *           Datei nach der fertiggestellten Installation oder JEDER    *\r
- *           kann Ihr Mailtausch-Script neu einstellen!!!               *\r
- *                                                                      *\r
- *           Als erstes sollten Sie die Basis-URL einstellen.           *\r
- * -------------------------------------------------------------------- *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * Copyright (c) 2003 - 2008 by Roland Haeder                           *\r
- * For more information visit: http://www.mxchange.org                  *\r
- *                                                                      *\r
- * This program is free software; you can redistribute it and/or modify *\r
- * it under the terms of the GNU General Public License as published by *\r
- * the Free Software Foundation; either version 2 of the License, or    *\r
- * (at your option) any later version.                                  *\r
- *                                                                      *\r
- * This program is distributed in the hope that it will be useful,      *\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of       *\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *\r
- * GNU General Public License for more details.                         *\r
- *                                                                      *\r
- * You should have received a copy of the GNU General Public License    *\r
- * along with this program; if not, write to the Free Software          *\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *\r
- * MA  02110-1301  USA                                                  *\r
- ************************************************************************/\r
-\r
-// Tell every module / include file we are installing\r
-define ('mxchange_installing', true);\r
-\r
-// Load security system\r
-require ("inc/libs/security_functions.php");\r
-\r
-// Init "action" and "what"\r
-global $what, $action;\r
-$GLOBALS['what'] = ""; $GLOBALS['action'] = "";\r
-if (!empty($_GET['action'])) $GLOBALS['action'] = trim(strip_tags($_GET['action']));\r
-if (!empty($_GET['what'])) $GLOBALS['what'] = trim(strip_tags($_GET['what']));\r
-\r
-// Set module\r
-$GLOBALS['module'] = "install";\r
-\r
-// Load config file\r
-require ("inc/config.php");\r
-\r
-// Header\r
-require (PATH."inc/header.php");\r
-\r
-// Reload page to page=welcome when it is not specified\r
-if (!isset($_GET['page']))\r
-{\r
-       LOAD_URL(URL."/install.php?page=welcome");\r
-}\r
-\r
-// Already installed?\r
-if ((mxchange_installed) && (admin_registered)) {\r
-       // Add fatal message\r
-       ADD_FATAL(ALREADY_INSTALLED);\r
-}\r
-\r
-// Does something goes wrong?\r
-if ((sizeof($FATAL == 0)) && (empty($FATAL[0]))) {\r
-       // Add main installation table\r
-       LOAD_TEMPLATE("install_header");\r
-\r
-       // Here start's our installtion stuff\r
-       require_once (PATH."inc/install-inc.php");\r
-\r
-       // Close main installation table\r
-       LOAD_TEMPLATE("install_footer");\r
-}\r
-\r
-// Footer\r
-require (PATH."inc/footer.php");\r
-\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.1.0                                    Start: 08/25/2003 *
+ * ===============                              Last change: 04/26/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : install.php                                      *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ *          ------------------------------------------------            *
+ *         / PLEASE READ THIS!  /  BITTE LESEN SIE DIESES! /            *
+ *        -------------------------------------------------             *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Short description : Installation script. Please delete this file     *
+ *           after successfully installation or ANYONE can re-setup     *
+ *           your mail exchange script!!!                               *
+ *                                                                      *
+ *           First of all setup the base URL.                           *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Installationsscript. Bitte l�schen Sie diese     *
+ *           Datei nach der fertiggestellten Installation oder JEDER    *
+ *           kann Ihr Mailtausch-Script neu einstellen!!!               *
+ *                                                                      *
+ *           Als erstes sollten Sie die Basis-URL einstellen.           *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * For more information visit: http://www.mxchange.org                  *
+ *                                                                      *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * 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., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Tell every module / include file we are installing
+define ('mxchange_installing', true);
+
+// Load security system
+require ("inc/libs/security_functions.php");
+
+// Init "action" and "what"
+global $what, $action;
+$GLOBALS['what'] = ""; $GLOBALS['action'] = "";
+if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
+if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);
+
+// Set module
+$GLOBALS['module'] = "install";
+
+// Load config file
+require ("inc/config.php");
+
+// Header
+require (PATH."inc/header.php");
+
+// Reload page to page=welcome when it is not specified
+if (!isset($_GET['page']))
+{
+       LOAD_URL(URL."/install.php?page=welcome");
+}
+
+// Already installed?
+if ((mxchange_installed) && (admin_registered)) {
+       // Add fatal message
+       ADD_FATAL(ALREADY_INSTALLED);
+}
+
+// Does something goes wrong?
+if ((sizeof($FATAL == 0)) && (empty($FATAL[0]))) {
+       // Add main installation table
+       LOAD_TEMPLATE("install_header");
+
+       // Here start's our installtion stuff
+       require_once (PATH."inc/install-inc.php");
+
+       // Close main installation table
+       LOAD_TEMPLATE("install_footer");
+}
+
+// Footer
+require (PATH."inc/footer.php");
+
+//
+?>