New functions introduced, several rewrites:
[mailer.git] / inc / modules / admin / what-edit_sponsor.php
index e522a1f..c45ffde 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
 <?php
 /************************************************************************
- * M-XChange v0.2.1                                   Start: 04/24/2005 *
- * ================                             Last change: 05/12/2005 *
+ * Mailer v0.2.1-FINAL                                Start: 04/24/2005 *
+ * ===================                          Last change: 05/12/2005 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-edit_sponsor.php                            *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-edit_sponsor.php                            *
@@ -62,7 +62,7 @@ LIMIT 1",
                $content = SQL_FETCHARRAY($result_main);
 
                // Prepare all data for the template
                $content = SQL_FETCHARRAY($result_main);
 
                // Prepare all data for the template
-               //  Sponsor's ID
+               //  Sponsor's id
                $content['id'] = bigintval(getRequestElement('id'));
 
                // Init gender
                $content['id'] = bigintval(getRequestElement('id'));
 
                // Init gender
@@ -160,7 +160,7 @@ LIMIT 1",
 
                                default: // Unknown mode
                                        logDebugMessage(__FILE__, __LINE__, sprintf("Unknown mode %s detected.", getRequestElement('mode')));
 
                                default: // Unknown mode
                                        logDebugMessage(__FILE__, __LINE__, sprintf("Unknown mode %s detected.", getRequestElement('mode')));
-                                       $message = sprintf(getMessage('ADMIN_SPONSOR_INVALID_MODE'), getRequestElement('mode'));
+                                       $message = getMaskedMessage('ADMIN_SPONSOR_INVALID_MODE', getRequestElement('mode'));
                                        break;
                        }
 
                                        break;
                        }
 
@@ -170,17 +170,17 @@ LIMIT 1",
                        } // END - if
                } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getConfig('PATH'), getLanguage(), $TPL))) {
                        // Create mailto link
                        } // END - if
                } elseif (isFileReadable(sprintf("%stemplates/%s/html/admin/%s.tpl", getConfig('PATH'), getLanguage(), $TPL))) {
                        // Create mailto link
-                       $content['contact'] = "<a href=\"" . generateEmailLink($content['email'], 'sponsor_data') . "\">" . $content['surname'] . " " . $content['family'] . "</a>";
+                       $content['contact'] = '<a href="' . generateEmailLink($content['email'], 'sponsor_data') . '">' . $content['surname'] . ' ' . $content['family'] . '</a>';
 
                        // Load mode template
                        loadTemplate($TPL);
                } else {
                        // Template not found!
 
                        // Load mode template
                        loadTemplate($TPL);
                } else {
                        // Template not found!
-                       loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_SPONSOR_MODUS_TPL_404'), getRequestElement('mode')));
+                       loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_MODUS_TPL_404', getRequestElement('mode')));
                }
        } else {
                // Sponsor not found!
                }
        } else {
                // Sponsor not found!
-               loadTemplate('admin_settings_saved', false, sprintf(getMessage('ADMIN_SPONSOR_404'), bigintval(getRequestElement('id'))));
+               loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_SPONSOR_404', bigintval(getRequestElement('id'))));
        }
 
        // Free result
        }
 
        // Free result