]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/order_functions.php
A lot while() conditions rewritten to SQL_FETCHARRAY(), see bug #107, @TODO tags...
[mailer.git] / inc / libs / order_functions.php
index 92e10a574e3cfb7f1629919dbdb1e21fbb9a4a89..89c1181eb5dc0b33ad88a3d08be33ec76055c9c6 100644 (file)
@@ -32,7 +32,7 @@
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
 }
@@ -44,7 +44,7 @@ function ORDER_SELECT_OPTION_LIST($default) {
        foreach ($LIST as $item) {
                $selected = "";
                if ($item == $default) $selected = " selected=\"selected\"";
-               $OUT .= "<OPTION value=\"".$item."\"".$selected.">{--ORDER_SELECT_COLUMN_".strtoupper($item)."--}</OPTION>\n";
+               $OUT .= "<option value=\"".$item."\"".$selected.">{--ORDER_SELECT_COLUMN_".strtoupper($item)."--}</option>\n";
        }
 
        // Return the output