templates/de/html/admin/admin_list_unconfirmed_row_404.tpl svneol=native#text/plain
templates/de/html/admin/admin_list_user.tpl svneol=native#text/plain
templates/de/html/admin/admin_list_user_alpha.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_user_cats.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_user_cats_404.tpl svneol=native#text/plain
+templates/de/html/admin/admin_list_user_cats_row.tpl svneol=native#text/plain
templates/de/html/admin/admin_list_user_pagenav.tpl svneol=native#text/plain
templates/de/html/admin/admin_list_user_row.tpl svneol=native#text/plain
templates/de/html/admin/admin_list_user_sort.tpl svneol=native#text/plain
array(getUserData('userid')), __FILE__, __LINE__);
// Check for last entry for userid w/o IP number
- $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE (`timeout` > (UNIX_TIMESTAMP() - {?beg_timeout?}) OR (timeout > (UNIX_TIMESTAMP() - {?beg_userid_timeout?}) AND `userid`=%s)) AND (`remote_ip`='%s' OR `sid`='%s') LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT `id` FROM `{?_MYSQL_PREFIX?}_beg_ips` WHERE (`timeout` > (UNIX_TIMESTAMP() - {?beg_timeout?}) OR (`timeout` > (UNIX_TIMESTAMP() - {?beg_userid_timeout?}) AND `userid`=%s)) AND (`remote_ip`='%s' OR `sid`='%s') LIMIT 1",
array(getUserData('userid'), detectRemoteAddr(), session_id()), __FILE__, __LINE__);
// Entry not found, points set and not logged in?
$content['ap_notify_del_mails'] = addSelectionBox('yn', getConfig('ap_dm_notify') , 'ap_dm_notify');
// Output time selection boxes
- $content['ap_in_since'] = createTimeSelections(getApInactiveSince() , 'ap_inactive_since' , 'MWDh');
- $content['ap_in_time'] = createTimeSelections(getApInactiveTime() , 'ap_inactive_time' , 'MWDh');
- $content['ap_un_time'] = createTimeSelections(getApUnconfirmedTime(), 'ap_unconfirmed_time', 'MWDh');
- $content['ap_task_time'] = createTimeSelections(getApTasksTime() , 'ap_tasks_time' , 'MWDh');
- $content['ap_del_mails_time'] = createTimeSelections(getApDmTimeout() , 'ap_dm_timeout' , 'MWDh');
+ $content['ap_in_since'] = createConfigurationTimeSelections('ap_inactive_since' , 'MWDh');
+ $content['ap_in_time'] = createConfigurationTimeSelections('ap_inactive_time' , 'MWDh');
+ $content['ap_un_time'] = createConfigurationTimeSelections('ap_unconfirmed_time', 'MWDh');
+ $content['ap_task_time'] = createConfigurationTimeSelections('ap_tasks_time' , 'MWDh');
+ $content['ap_del_mails_time'] = createConfigurationTimeSelections('ap_dm_timeout' , 'MWDh');
// Mail confirmation links
- $content['auto_purge'] = createTimeSelections(getAutoPurge(), 'auto_purge', 'MWD');
+ $content['auto_purge'] = createConfigurationTimeSelections('auto_purge', 'MWD');
// Prepare more Y/N selections
foreach (array('auto_purge_active') as $entry) {
setConfigEntry('beg_rallye_disable_notify', postRequestParameter('beg_rallye_disable_notify'));
} else {
// Prepare constants for the template
- $content['points'] = translateComma(getBegPoints() , false);
- $content['points_max'] = translateComma(getBegPointsMax() , false);
- $content['notify_bonus'] = translateComma(getBegNotifyBonus() , false);
- $content['timeout'] = createTimeSelections(getBegTimeout() , 'beg_timeout' , 'Dhm');
- $content['userid_timeout'] = createTimeSelections(getBegUseridTimeout(), 'beg_userid_timeout', 'Dhm');
- $content['ip_timeout'] = createTimeSelections(getBegIpTimeout() , 'beg_ip_timeout' , 'Dhm');
- $content['wait_selection'] = createTimeSelections(getBegNotifyWait() , 'beg_notify_wait' , 'ms' );
+ $content['timeout'] = createConfigurationTimeSelections('beg_timeout' , 'Dhm');
+ $content['userid_timeout'] = createConfigurationTimeSelections('beg_userid_timeout', 'Dhm');
+ $content['ip_timeout'] = createConfigurationTimeSelections('beg_ip_timeout' , 'Dhm');
+ $content['wait_selection'] = createConfigurationTimeSelections('beg_notify_wait' , 'ms' );
// Init all Y/N selections
foreach (array('rallye', 'active', 'mode', 'rallye_enable_notify', 'rallye_disable_notify', 'new_member_notify', 'include_own') as $entry) {
$CATS .= '<option value="' . $content['sort'] . '">' . $cat . '</option>';
// Load row template and switch color
- $OUT .= loadTemplate('admin_config_cats_row', true, $content);
+ $OUT .= loadTemplate('admin_list_cats_row', true, $content);
} // END - while
// Free memory
SQL_FREERESULT($result);
// Load main template
- loadTemplate('admin_config_cats', false, $OUT);
+ loadTemplate('admin_list_cats', false, $OUT);
} // END - if
// Remember in array
adminSaveSettingsFromPostData();
} else {
// Time selection boxes
- $content['online_timeout'] = createTimeSelections(getOnlineTimeout() , 'ip_timeout' , 'ms');
- $content['url_tlock'] = createTimeSelections(getUrlTlock() , 'url_tlock' , 'WDh');
- $content['profile_lock'] = createTimeSelections(getProfileLock() , 'profile_lock' , 'WDh');
- $content['profile_update'] = createTimeSelections(getProfileUpdate() , 'profile_update' , 'YM');
- $content['profile_reupdate'] = createTimeSelections(getResendProfileUpdate(), 'resend_profile_update', 'MWD');
+ $content['online_timeout'] = createConfigurationTimeSelections('ip_timeout' , 'ms');
+ $content['url_tlock'] = createConfigurationTimeSelections('url_tlock' , 'WDh');
+ $content['profile_lock'] = createConfigurationTimeSelections('profile_lock' , 'WDh');
+ $content['profile_update'] = createConfigurationTimeSelections('profile_update' , 'YM');
+ $content['profile_reupdate'] = createConfigurationTimeSelections('resend_profile_update', 'MWD');
// Prepare more Y/N selections
foreach (array('show_points_unconfirmed','show_timings','youre_here','member_menu','guest_menu','order_multi_page','autosend_active','send_prof_update','admin_notify','display_debug_sqls','stats_enabled') as $entry) {
} else {
// Remember stuff in constants
$content['display_refid'] = addSelectionBox('yn', getDisplayRefid() , 'display_refid');
- $content['ip_timeout'] = createTimeSelections(getIpTimeout() , 'ip_timeout', 'Dhm');
+ $content['ip_timeout'] = createConfigurationTimeSelections('ip_timeout', 'Dhm');
$content['check_double_email'] = addSelectionBox('yn', getCheckDoubleEmail() , 'check_double_email');
$content['register_default'] = addSelectionBox('yn', getRegisterDefault() , 'register_default');
$content['register_generate_password_empty'] = addSelectionBox('yn', getRegisterGeneratePasswordEmpty(), 'register_generate_password_empty');
$content['sel'] = $selection;
// Load row template and count up
- $OUT .= loadTemplate('admin_list_cats_row', true, $content);
+ $OUT .= loadTemplate('admin_list_user_cats_row', true, $content);
$count++;
} // END - while
$content['rows'] = $OUT;
// Load main template
- loadTemplate('admin_list_cats', false, $content);
+ loadTemplate('admin_list_user_cats', false, $content);
} else {
// No categories selected! :-(
- loadTemplate('admin_list_cats_404', false, $content);
+ loadTemplate('admin_list_user_cats_404', false, $content);
}
} else {
// User not found
{--ADMIN_BEG_POINTS--}:
</td>
<td width="295" align="center">
- <input type="text" class="form_field" name="beg_points" size="7" maxlength="10" value="{?beg_points?}" />
+ <input type="text" class="form_field" name="beg_points" size="7" maxlength="10" value="{%config,translateComma=beg_points%}" />
</td>
</tr>
<tr>
{--ADMIN_BEG_POINTS_MAX--}:
</td>
<td width="195" align="center">
- <input type="text" class="form_field" name="beg_points_max" size="7" maxlength="10" value="{?beg_points_max?}" />
+ <input type="text" class="form_field" name="beg_points_max" size="7" maxlength="10" value="{%config,translateComma=beg_points_max%}" />
</td>
</tr>
<tr>
{--ADMIN_BEG_NOTIFY_BONUS--}
</td>
<td align="center">
- <input type="text" class="form_field" name="beg_notify_bonus" size="3" maxlength="7" value="{?beg_notify_bonus?}" />
+ <input type="text" class="form_field" name="beg_notify_bonus" size="3" maxlength="7" value="{%config,translateComma=beg_notify_bonus%}" />
</td>
</tr>
<tr>
-<div align="center">
-<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&what=config_cats%}" method="post">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
- <tr>
- <td align="center" colspan="4" class="table_header bottom">
- <strong>{--ADMIN_CONFIG_CATEGORIES_TITLE--}</strong>
- </td>
- </tr>
- <tr>
- <td class="header_column bottom right" align="center"><strong>{--ID_SELECT--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--CATEGORY_NAME--}</strong></td>
- <td class="header_column bottom right" align="center"><strong>{--ADMIN_IS_VISIBLE--}</strong></td>
- <td class="header_column bottom" align="center"><strong>{--SORTING_KEY--}</strong></td>
- </tr>
- $content
- <tr>
- <td class="table_footer" colspan="4">
- <input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
- <input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_CATEGORIES--}" />
- <input type="submit" class="form_delete" name="delete" value="{--ADMIN_DELETE_CATEGORIES--}" />
- </td>
- </tr>
-</table>
-</form>
-</div>
+<!-- @DEPRECATED //-->
-<tr>
- <td align="center" class="bottom right {%template,ColorSwitch%}">
- <input type="checkbox" class="form_field" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
- </td>
- <td class="bottom right {%template,ColorSwitch%}">
- {%pipe,getCategory=$content[id]%}
- </td>
- <td align="center" class="bottom right {%template,ColorSwitch%}">
- {%pipe,translateComma=$content[visible]%}
- </td>
- <td align="center" class="bottom {%template,ColorSwitch%}">
- $content[sort]
- </td>
-</tr>
+<!-- @DEPRECATED //-->
</tr>
<tr>
<td class="{%template,ColorSwitch%} bottom" align="right">{--ADMIN_SELECT_REFERAL_BANNER_ACTIVE--}:</td>
- <td class="{%template,ColorSwitch%} bottom">$content[visible]</td>
+ <td class="{%template,ColorSwitch%} bottom">
+ $content[visible]
+ </td>
</tr>
<div align="center">
+<form accept-charset="UTF-8" action="{%url=modules.php?module=admin&what=config_cats%}" method="post">
<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
<tr>
- <td colspan="3" align="center" class="table_header bottom" height="50">
- {--USER_ID--}: <strong><a href="{%url=modules.php?module=admin&what=list_user&userid=$content[userid]%}">$content[userid]</a></strong>
- ($content[email])
+ <td align="center" colspan="4" class="table_header bottom">
+ <strong>{--ADMIN_CONFIG_CATEGORIES_TITLE--}</strong>
</td>
</tr>
- $content[rows]
<tr>
- <td colspan="3" class="table_footer">
- <div>
- <u>{--ADMIN_MEMBER_FUNCTIONS--}:</u>
- </div>
- <div>
- {%pipe,generateMemberAdminActionLinks=$content[userid]%}
- </div>
+ <td class="header_column bottom right" align="center"><strong>{--ID_SELECT--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--CATEGORY_NAME--}</strong></td>
+ <td class="header_column bottom right" align="center"><strong>{--ADMIN_IS_VISIBLE--}</strong></td>
+ <td class="header_column bottom" align="center"><strong>{--SORTING_KEY--}</strong></td>
+ </tr>
+ $content
+ <tr>
+ <td class="table_footer" colspan="4">
+ <input type="reset" class="form_reset" value="{--UNDO_SELECTIONS--}" />
+ <input type="submit" class="form_submit" name="edit" value="{--ADMIN_EDIT_CATEGORIES--}" />
+ <input type="submit" class="form_delete" name="delete" value="{--ADMIN_DELETE_CATEGORIES--}" />
</td>
</tr>
</table>
+</form>
</div>
-<div align="center">
-<div class="table dashed">
- <div class="table_header bottom">
- <strong>{--ADMIN_MEMBER_NO_CATEGORIES_1--}<a href="{%url=modules.php?module=admin&what=list_user&userid=$content[userid]%}">$content[userid]</a>{--ADMIN_MEMBER_NO_CATEGORIES_2--}</strong>
- </div>
- <div class="table_header">
- <div>
- <u>{--ADMIN_MEMBER_FUNCTIONS--}:</u>
- </div>
- <div>
- {%pipe,generateMemberAdminActionLinks=$content[userid]%}
- </div>
- </div>
-</div>
-</div>
+<!-- @DEPRECATED //-->
<tr>
- <td class="bottom {%template,ColorSwitch%}" width="30" align="right">
- $content[cnt].
+ <td align="center" class="bottom right {%template,ColorSwitch%}">
+ <input type="checkbox" class="form_field" title="{--ID_SELECT--} $content[id]" name="sel[$content[id]]" value="1" />
</td>
- <td class="bottom {%template,ColorSwitch%}">
- $content[cat]
+ <td class="bottom right {%template,ColorSwitch%}">
+ {%pipe,getCategory=$content[id]%}
</td>
- <td class="bottom {%template,ColorSwitch%} left" width="50" align="center">
- $content[sel]
+ <td align="center" class="bottom right {%template,ColorSwitch%}">
+ {%pipe,translateYesNo=$content[visible]%}
+ </td>
+ <td align="center" class="bottom {%template,ColorSwitch%}">
+ $content[sort]
</td>
</tr>
--- /dev/null
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+ <tr>
+ <td colspan="3" align="center" class="table_header bottom" height="50">
+ {--USER_ID--}: <strong><a href="{%url=modules.php?module=admin&what=list_user&userid=$content[userid]%}">$content[userid]</a></strong>
+ ($content[email])
+ </td>
+ </tr>
+ $content[rows]
+ <tr>
+ <td colspan="3" class="table_footer">
+ <div>
+ <u>{--ADMIN_MEMBER_FUNCTIONS--}:</u>
+ </div>
+ <div>
+ {%pipe,generateMemberAdminActionLinks=$content[userid]%}
+ </div>
+ </td>
+ </tr>
+</table>
+</div>
--- /dev/null
+<div align="center">
+<div class="table dashed">
+ <div class="table_header bottom">
+ <strong>{--ADMIN_MEMBER_NO_CATEGORIES_1--}<a href="{%url=modules.php?module=admin&what=list_user&userid=$content[userid]%}">$content[userid]</a>{--ADMIN_MEMBER_NO_CATEGORIES_2--}</strong>
+ </div>
+ <div class="table_header">
+ <div>
+ <u>{--ADMIN_MEMBER_FUNCTIONS--}:</u>
+ </div>
+ <div>
+ {%pipe,generateMemberAdminActionLinks=$content[userid]%}
+ </div>
+ </div>
+</div>
+</div>
--- /dev/null
+<tr>
+ <td class="bottom {%template,ColorSwitch%}" width="30" align="right">
+ $content[cnt].
+ </td>
+ <td class="bottom {%template,ColorSwitch%}">
+ $content[cat]
+ </td>
+ <td class="bottom {%template,ColorSwitch%} left" width="50" align="center">
+ $content[sel]
+ </td>
+</tr>
<td width="25%" class="{%template,ColorSwitch%} bottom">
{--ADMIN_IS_VISIBLE--}:
$content[visible]
- </td>
+ </td>
<td width="25%" class="{%template,ColorSwitch%} bottom">
{--ADMIN_MENU_IS_LOCKED--}:
$content[locked]