]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_sponsor.php
Newer sponsor scripts found in backup\! :D :D
[mailer.git] / inc / modules / admin / what-add_sponsor.php
index 07767a67af5e594976b1e308a75c6edb4f1dbcd3..2d056ebce741d85f908585cb97931c512681077f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 04/03/2005 *
- * ===============                              Last change: 05/18/2008 *
+ * M-XChange v0.2.1                                   Start: 04/03/2005 *
+ * ================                             Last change: 05/19/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-add_sponsor.php                             *
  ************************************************************************/
 
 // Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin()))
-{
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!is_admin())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
        require($INC);
 }
+
 // Add description as navigation point
 ADD_DESCR("admin", basename(__FILE__));
 
-if (isset($HTTP_POST_VARS['ok']))
-{
+if (isset($_POST['ok'])) {
        // Save sponsor in database
-       SPONSOR_HANDLE_SPONSOR($HTTP_POST_VARS);
-}
- else
-{
+       SPONSOR_HANDLE_SPONSOR($_POST);
+} else {
        // Prepare constants for the template
        define('__SPONSOR_MIN_VALUE', $CONFIG['sponsor_min_points']);
 
        // Output form
        LOAD_TEMPLATE("admin_add_sponsor");
 }
+
 //
 ?>