More other options moved out (to config_order)
[mailer.git] / inc / libs / order_functions.php
index a05f2f345a20affb81d6ce6cf9d3bab38391f4ec..92e10a574e3cfb7f1629919dbdb1e21fbb9a4a89 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
 
-function ORDER_SELECT_OPTION_LIST($default)
-{
+function ORDER_SELECT_OPTION_LIST($default) {
        // Currenty the list is hardcoded...
        $LIST = array("userid", "zip", "country", "email", "birth_year", "last_online", "ref_clicks", "total_logins", "mail_orders");
        $OUT = "";
-       foreach ($LIST as $item)
-       {
+       foreach ($LIST as $item) {
                $selected = "";
                if ($item == $default) $selected = " selected=\"selected\"";
                $OUT .= "<OPTION value=\"".$item."\"".$selected.">{--ORDER_SELECT_COLUMN_".strtoupper($item)."--}</OPTION>\n";
        }
+
+       // Return the output
        return $OUT;
 }