X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-del_transfer.php;h=33c375ad5ec2260274b7172a50966873cf8540ea;hb=49248176a5638be80b148ef55d0dc8c334522bf3;hp=2f3d8e8f060a4a294a8510217be3bae0208c1f9c;hpb=4001187f22197f55e5a1f211fc8defcc180f7c32;p=mailer.git diff --git a/inc/modules/admin/what-del_transfer.php b/inc/modules/admin/what-del_transfer.php index 2f3d8e8f06..33c375ad5e 100644 --- a/inc/modules/admin/what-del_transfer.php +++ b/inc/modules/admin/what-del_transfer.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Punktetransfers * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -33,16 +38,16 @@ // 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(); @@ -50,9 +55,9 @@ if (REQUEST_ISSET_POST('del')) { // Delete entries... foreach (REQUEST_POST('sel') as $id => $sel) { ADD_SQL(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_user_transfers_in` WHERE trans_id=%s LIMIT 1", - array(bigintval($id)), __FILE__, __LINE__, false)); + array(bigintval($id)), __FILE__, __LINE__, false)); ADD_SQL(SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{!_MYSQL_PREFIX!}_user_transfers_out` WHERE trans_id=%s LIMIT 1", - array(bigintval($id)), __FILE__, __LINE__, false)); + array(bigintval($id)), __FILE__, __LINE__, false)); } // END - foreach // Run all SQLs @@ -65,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 @@ -92,7 +97,7 @@ if (SQL_NUMROWS($result) > 0) { // Nothing for in and out $OUT = " - ".LOAD_TEMPLATE("admin_settings_saved", true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))." + ".LOAD_TEMPLATE('admin_settings_saved', true, getMessage('TRANSFER_NO_INOUT_TRANSFERS'))." "; }