HTML->XHTML preparation (still *A LOT* to convert
[mailer.git] / inc / modules / guest / what-sponsor_reg.php
index a101f17ae3425e8aea0b11c905d276f06e5141f2..3de41a33a0d4ddf2d72433eb01bf9ed4406767ba 100644 (file)
@@ -36,9 +36,9 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif ((!EXT_IS_ACTIVE("sponsor"))) {
        if (IS_ADMIN()) {
        require($INC);
 } elseif ((!EXT_IS_ACTIVE("sponsor"))) {
        if (IS_ADMIN()) {
-               ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "sponsor"));
+               addFatalMessage(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "sponsor"));
        } else {
        } else {
-               ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
+               addFatalMessage(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
        }
        return;
 }
        }
        return;
 }
@@ -186,15 +186,14 @@ if (isset($_POST['ok'])) {
                }
        }
        // Is the password long enough?
                }
        }
        // Is the password long enough?
-        elseif (strlen($_POST['pass1']) < $_CONFIG['pass_len'])
+        elseif (strlen($_POST['pass1']) < getConfig('pass_len'))
        {
                // Too short!
                $FORM_ERRORS[] = SPONSOR_PASSWORD_TOO_SHORT;
        }
 
        // Check if he has accepted the terms&conditions
        {
                // Too short!
                $FORM_ERRORS[] = SPONSOR_PASSWORD_TOO_SHORT;
        }
 
        // Check if he has accepted the terms&conditions
-       if (empty($_POST['terms']))
-       {
+       if (empty($_POST['terms'])) {
                // Homepage URL is empty
                $FORM_ERRORS[] = SPONSOR_TERMS_NOT_ACCEPTED;
        }
                // Homepage URL is empty
                $FORM_ERRORS[] = SPONSOR_TERMS_NOT_ACCEPTED;
        }
@@ -203,8 +202,7 @@ if (isset($_POST['ok'])) {
        if (count($FORM_ERRORS) > 0) unset($_POST['ok']);
 }
 
        if (count($FORM_ERRORS) > 0) unset($_POST['ok']);
 }
 
-if ((isset($_POST['ok'])) && (count($FORM_ERRORS) == 0))
-{
+if ((isset($_POST['ok'])) && (count($FORM_ERRORS) == 0)) {
        // Generate message array
        $MSGs = array(
                'failed' => SPONSOR_REGISTRATION_FAILED,
        // Generate message array
        $MSGs = array(
                'failed' => SPONSOR_REGISTRATION_FAILED,
@@ -299,7 +297,7 @@ ORDER BY pay_name", __FILE__, __LINE__);
                        $OUT .= "<TR>
   <TD class=\"bottom2 switch_sw".$SW."\" height=\"50\" style=\"padding-left: 2px; padding-right: 2px\">
     <INPUT type=\"radio\" name=\"pay_type\" class=\"guest_normal\" value=\"".bigintval($id)."\">&nbsp;".$name."<br />
                        $OUT .= "<TR>
   <TD class=\"bottom2 switch_sw".$SW."\" height=\"50\" style=\"padding-left: 2px; padding-right: 2px\">
     <INPUT type=\"radio\" name=\"pay_type\" class=\"guest_normal\" value=\"".bigintval($id)."\">&nbsp;".$name."<br />
-    <DIV align=\"right\">(".$min." ".$curr." = ".TRANSLATE_COMMA($rate * $min)." ".POINTS.")</DIV>
+    <div align=\"right\">(".$min." ".$curr." = ".TRANSLATE_COMMA($rate * $min)." ".POINTS.")</div>
   </TD>
 </TR>\n";
                        $SW = 3 - $SW;
   </TD>
 </TR>\n";
                        $SW = 3 - $SW;
@@ -366,14 +364,14 @@ ORDER BY pay_name", __FILE__, __LINE__);
 
                        // Errors found
                        $OUT = "<P align=\"center\">
 
                        // Errors found
                        $OUT = "<P align=\"center\">
-  <STRONG><FONT class=\"guest_failed\">".SPONSOR_REGISTER_SOMETHING_MISSING.":</FONT></STRONG><br />
+  <strong><div class=\"guest_failed\">".SPONSOR_REGISTER_SOMETHING_MISSING.":</div></strong><br />
 </P>
 </P>
-<OL>\n";
+<ol>\n";
                        foreach ($FORM_ERRORS as $error) {
                        foreach ($FORM_ERRORS as $error) {
-                               $OUT .= "<LI>".$error."</LI>\n";
+                               $OUT .= "<li>".$error."</li>\n";
                        } // END - if
 
                        } // END - if
 
-                       $OUT .= "</OL><br />\n";
+                       $OUT .= "</ol><br />\n";
                        define('__SPONSOR_FORM_ERRORS', $OUT);
                        define('__SPONSOR_REFID', $_POST['refid']);
                } else {
                        define('__SPONSOR_FORM_ERRORS', $OUT);
                        define('__SPONSOR_REFID', $_POST['refid']);
                } else {