* -------------------------------------------------------------------- *
* Kurzbeschreibung : Punktetransfers *
* -------------------------------------------------------------------- *
- * $Revision:: 856 $ *
- * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. Mär 2009) $ *
+ * $Revision:: $ *
+ * $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
- * $Author:: stelzi $ *
+ * $Author:: $ *
* Needs to be in all Files and every File needs "svn propset *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
// 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();
$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
// 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>";
}