win32 to unix line delimiters changed
[mailer.git] / 0.2.1 / inc / modules / admin / what-config_order.php
index 6593bfb7f035e1ef417bcc229e58be16b0653724..5714b3a90ef893e216380257c395ee61cf473a54 100644 (file)
@@ -1,88 +1,88 @@
-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1                                    Start: 09/22/2004 *\r
- * ================                             Last change: 09/22/2004 *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * File              : what-config_order.php                            *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Configuration for order page                     *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung  : Konfiguration der Mailbuchungsseite              *\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
-// Some security stuff...\r
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))\r
-{\r
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
-       require($INC);\r
-}\r
-// Add description as navigation point\r
-ADD_DESCR("admin", basename(__FILE__));\r
-\r
-if (isset($_POST['ok']))\r
-{\r
-       // Save data\r
-       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");\r
-}\r
- else\r
-{\r
-       // Prepare constants for the template\r
-       switch ($CONFIG['order_max'])\r
-       {\r
-       case "ORDER":\r
-               define('__ORDER_DEFAULT', " checked");\r
-               define('__MAX_DEFAULT'  , "");\r
-               break;\r
-\r
-       case "MAX":\r
-               define('__ORDER_DEFAULT', "");\r
-               define('__MAX_DEFAULT'  , " checked");\r
-               break;\r
-       }\r
-\r
-       // Minimum mails / order\r
-       define('__MIN_VALUE', $CONFIG['order_min']);\r
-\r
-       // Sorting mode (ascending / descending)\r
-       switch ($CONFIG['order_mode'])\r
-       {\r
-       case "ASC":\r
-               define('__ASC_DEFAULT' , " selected=\"selected\"");\r
-               define('__DESC_DEFAULT', "");\r
-               break;\r
-\r
-       case "DESC":\r
-               define('__ASC_DEFAULT' , "");\r
-               define('__DESC_DEFAULT', " selected=\"selected\"");\r
-               break;\r
-       }\r
-\r
-       // Selection list\r
-       define('__ORDER_SELECT', ORDER_SELECT_OPTION_LIST($CONFIG['order_select']));\r
-\r
-       // Load template\r
-       LOAD_TEMPLATE("admin_config_order");\r
-}\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 09/22/2004 *
+ * ================                             Last change: 09/22/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-config_order.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description : Configuration for order page                     *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Konfiguration der Mailbuchungsseite              *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * 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                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       require($INC);
+}
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+if (isset($_POST['ok']))
+{
+       // Save data
+       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
+}
+ else
+{
+       // Prepare constants for the template
+       switch ($CONFIG['order_max'])
+       {
+       case "ORDER":
+               define('__ORDER_DEFAULT', " checked");
+               define('__MAX_DEFAULT'  , "");
+               break;
+
+       case "MAX":
+               define('__ORDER_DEFAULT', "");
+               define('__MAX_DEFAULT'  , " checked");
+               break;
+       }
+
+       // Minimum mails / order
+       define('__MIN_VALUE', $CONFIG['order_min']);
+
+       // Sorting mode (ascending / descending)
+       switch ($CONFIG['order_mode'])
+       {
+       case "ASC":
+               define('__ASC_DEFAULT' , " selected=\"selected\"");
+               define('__DESC_DEFAULT', "");
+               break;
+
+       case "DESC":
+               define('__ASC_DEFAULT' , "");
+               define('__DESC_DEFAULT', " selected=\"selected\"");
+               break;
+       }
+
+       // Selection list
+       define('__ORDER_SELECT', ORDER_SELECT_OPTION_LIST($CONFIG['order_select']));
+
+       // Load template
+       LOAD_TEMPLATE("admin_config_order");
+}
+//
+?>