]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-del_transfer.php
config.php partly solved, see #117
[mailer.git] / inc / modules / admin / what-del_transfer.php
index 086d7a237a237f4ef37e317e138c4a4f9d03ab5d..04f171e199ee916f93ee84d52a5aa4e7658dbb1f 100644 (file)
@@ -10,7 +10,7 @@
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Punktetransfers                                  *
  * -------------------------------------------------------------------- *
- * $Revision:: 856                                                    $ *
+ * $Revision::                                                        $ *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
 
 // Some security stuff...
 if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
 if (REQUEST_ISSET_POST('del')) {
        // Delete entries from tables
-       $SEL = SELECTION_COUNT(REQUEST_POST('sel'));
+       $SEL = countPostSelection();
        if ($SEL > 0) {
                // Init SQLs
                INIT_SQLS();
@@ -70,18 +70,18 @@ $result = SQL_QUERY("SELECT userid, to_uid, trans_id, points, reason, time_trans
 $total = 0;
 if (SQL_NUMROWS($result) > 0) {
        // Output rows
-       $OUT = ""; $SW = 2;
+       $OUT = ''; $SW = 2;
        while ($content = SQL_FETCHARRAY($result)) {
                // Prepare data for the row template
                // @TODO Rewritings: idx->trans_id in template
                $content = array(
                        'sw'       => $SW,
                        'idx'      => $content['trans_id'],
-                       'stamp'    => MAKE_DATETIME($content['time_trans'], "3"),
-                       'uid_from' => ADMIN_USER_PROFILE_LINK($content['userid']),
-                       'uid_to'   => ADMIN_USER_PROFILE_LINK($content['to_uid']),
+                       'stamp'    => generateDateTime($content['time_trans'], '3'),
+                       'uid_from' => generateUserProfileLink($content['userid']),
+                       'uid_to'   => generateUserProfileLink($content['to_uid']),
                        'reason'   => $content['reason'],
-                       'points'   => TRANSLATE_COMMA($content['points']),
+                       'points'   => translateComma($content['points']),
                );
 
                // Load row template
@@ -97,7 +97,7 @@ if (SQL_NUMROWS($result) > 0) {
        // Nothing for in and out
        $OUT = "<tr>
   <td colspan=\"6\" align=\"center\" class=\"bottom2\" height=\"70\">
-    ".LOAD_TEMPLATE("admin_settings_saved", true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))."
+    ".LOAD_TEMPLATE('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))."
   </td>
 </tr>";
 }