]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-unlock_sponsor.php
fooRequestElementBar() functions renamed, adding of request parameters added:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index bd1f77f5060c45d90c026fa18ea49201a11fbeb9..e6924acb4f7d52700ac23069cd1f19d39b83f1de 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
 <?php
 /************************************************************************
- * M-XChange v0.2.1                                   Start: 04/23/2005 *
- * ================                             Last change: 05/19/2008 *
+ * Mailer v0.2.1-FINAL                                Start: 04/23/2005 *
+ * ===================                          Last change: 05/19/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-unlock_sponsor.php                          *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-unlock_sponsor.php                          *
@@ -47,9 +47,9 @@ addMenuDescription('admin', __FILE__);
 // Check if admin has submitted form
 if (isFormSent()) {
        // Does he have selected at least one sponsor?
 // Check if admin has submitted form
 if (isFormSent()) {
        // Does he have selected at least one sponsor?
-       if (countSelection(postRequestElement('id')) > 0) {
+       if (countSelection(postRequestParameter('id')) > 0) {
                // At least one entry selected
                // At least one entry selected
-               foreach (postRequestElement('id') as $id => $selected) {
+               foreach (postRequestParameter('id') as $id => $selected) {
                        // Secure id number and init $content
                        $content = array(
                                'id'    => bigintval($id),
                        // Secure id number and init $content
                        $content = array(
                                'id'    => bigintval($id),
@@ -91,7 +91,7 @@ ORDER BY sp.pay_name",
                                                // Transfer data to array
                                                $data = array(
                                                        'admin_id'   => $content['email'],
                                                // Transfer data to array
                                                $data = array(
                                                        'admin_id'   => $content['email'],
-                                                       'order' => ($content['pay_count'] * $content['pay_rate'])." ".$content['pay_currency'],
+                                                       'order' => ($content['pay_count'] * $content['pay_rate']) . ' ' . $content['pay_currency'],
                                                        'stamp' => generateDateTime($content['pay_ordered'], 2),
                                                        'pname' => $content['pay_name'],
                                                );
                                                        'stamp' => generateDateTime($content['pay_ordered'], 2),
                                                        'pname' => $content['pay_name'],
                                                );