]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/user_functions.php
Initial non-working import for Primera, Wernis now as static word
[mailer.git] / inc / libs / user_functions.php
index 4701307d3df9eedb425d934a2faae55307a55abf..533dded2603b1c82f61b5a379ed236919d74ac4f 100644 (file)
@@ -40,13 +40,13 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
 
 function alpha($sortby, $colspan, $return=false)
 {
-       global $CONFIG;
+       global $_CONFIG;
        if (empty($_GET['offset'])) $_GET['offset'] = "0";
        $ADD = "&page=".$_GET['page']."&offset=".$_GET['offset'];
        if (!empty($_GET['mode'])) $ADD .= "&mode=".SQL_ESCAPE($_GET['mode']);
 
        /* Creates the list of letters and makes them a link. */
-       $alphabet = array(_ALL2, "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", _OTHERS);
+       $alphabet = array(_ALL2, "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", 'N', "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", 'Y', "Z", _OTHERS);
        $num = count($alphabet) - 1;
        $OUT = "";
        while (list($counter, $ltr) = each($alphabet))
@@ -63,9 +63,9 @@ function alpha($sortby, $colspan, $return=false)
                        if (!empty($_GET['mode'])) $OUT .= "&mode=".SQL_ESCAPE($_GET['mode']);
                        $OUT .= "&amp;letter=".$ltr."&amp;sortby=".$sortby.$ADD."\">".$ltr."</A>";
                }
-               if ((($counter / $CONFIG['user_alpha']) == round($counter / $CONFIG['user_alpha'])) && ($counter > 0))
+               if ((($counter / $_CONFIG['user_alpha']) == round($counter / $_CONFIG['user_alpha'])) && ($counter > 0))
                {
-                       $OUT .= "&nbsp;]<BR>[&nbsp;";
+                       $OUT .= "&nbsp;]<br />[&nbsp;";
                }
                 elseif ( $counter != $num )
                {
@@ -84,7 +84,7 @@ function alpha($sortby, $colspan, $return=false)
         else
        {
                // Output generated code
-               OUTPUT_HTML ($OUT);
+               OUTPUT_HTML($OUT);
        }
 }
 //
@@ -130,7 +130,7 @@ function SortLinks($letter, $sortby, $colspan, $return=false)
         else
        {
                // Output code
-               OUTPUT_HTML ($OUT);
+               OUTPUT_HTML($OUT);
        }
 }
 //
@@ -195,7 +195,7 @@ function ADD_PAGENAV($PAGES, $offset, $show_form, $colspan,$return=false)
         else
        {
                // Output code
-               OUTPUT_HTML ($OUT);
+               OUTPUT_HTML($OUT);
        }
 }
 // Create email link to user's account