'ADMIN_CONFIG_SECURE_TITLE' => "Sicherheitseinstellungen:",
'ADMIN_CONFIG_MINIMUM_PASSWORD_LENGTH_LEGEND' => "Minimale Passwort/Saltlängen:",
'ADMIN_CONFIG_MINIMUM_PASSWORD_LENGTH' => "Minimale Passwortlänge:",
- 'ADMIN_CONFIG_SALT_LENGTH' => "Länge des "Salz-Hhashes" für alle Passwörter:",
+ 'ADMIN_CONFIG_SALT_LENGTH' => "Länge des "Salz-Hashes" für alle Passwörter:",
'ADMIN_CONFIG_MINIMUM_PASSWORD_SCORE' => "Minimale Sicherheitsstufe aller Passwörter:",
'ADMIN_CONFIG_SECURE_NOTICE' => "Um für alle Accounts (Mitglieder/Admins derzeit) neue Passwörter zu generieren, lassen Sie das Eingabefeld <strong>{--ADMIN_CONFIG_SALT_LENGTH--}</strong> leer oder geben Sie eine <strong>0</strong> ein! <strong>Vorsicht!</strong> Sie müssen sich dann anschliessend erneut einloggen. Sie sollten die minimale Passwortstärke <u>nie</u> unter {--PASSWORD_SCORE_3--} stellen, da diese dann zu schach und somit leicht "erratbar" sind (Brute-Force-Attacke).",
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-// Init variable to avoid a notice
-$CATS = '';
-
if (isFormSent('add')) {
// Default message
$content = '<span class="bad">{--CATEGORY_ALREADY_EXISTS--}</span>';
$OUT = '';
foreach (postRequestElement('sel') as $id => $value) {
// Load row template and switch colors
- $OUT .= loadTemplate('admin_delete_cats_row', TRUE, $id);
+ $OUT .= loadTemplate('admin_delete_categories_row', TRUE, $id);
} // END - foreach
// Load main template
- loadTemplate('admin_delete_cats', FALSE, $OUT);
+ loadTemplate('admin_delete_categories', FALSE, $OUT);
} elseif ((isFormSent('edit')) && (ifPostContainsSelections())) {
// Edit categories
$OUT = '';
$content['visible_selection'] = addSelectionBox('yn', $content['visible'], 'visible', $content['id']);
// Load row template and switch colors
- $OUT .= loadTemplate('admin_edit_cats_row', TRUE, $content);
+ $OUT .= loadTemplate('admin_edit_categories_row', TRUE, $content);
} // END - foreach
// Load main template
- loadTemplate('admin_edit_cats', FALSE, $OUT);
+ loadTemplate('admin_edit_categories', FALSE, $OUT);
} else {
// Init variable here
- $CATS = '';
+ $categoryOptions = '';
// Load all categories
$result = sqlQuery("SELECT
// List already existing categories for editing
while ($content = sqlFetchArray($result)) {
- // Put cat descriptions into variable for the selection box
- if (strlen($content['cat']) > 40) $content['cat'] = substr($content['cat'], 0, 37) . '...';
- $CATS .= '<option value="' . $content['sort'] . '">' . $content['cat'] . '</option>';
+ // Is the category's name to long?
+ if (strlen($content['cat']) > 40) {
+ // Put cat descriptions into variable for the selection box
+ $content['cat'] = substr($content['cat'], 0, 37) . '...';
+ } // END - if
+
+ $categoryOptions .= '<option value="' . $content['sort'] . '">' . $content['cat'] . '</option>';
// Load row template and switch color
- $OUT .= loadTemplate('admin_list_cats_row', TRUE, $content);
+ $OUT .= loadTemplate('admin_list_categories_row', TRUE, $content);
} // END - while
// Free memory
sqlFreeResult($result);
// Load main template
- loadTemplate('admin_list_cats', FALSE, $OUT);
+ loadTemplate('admin_list_categories', FALSE, $OUT);
} // END - if
// Remember in array
- $content['cats'] = $CATS;
+ $content['cats'] = $categoryOptions;
// Form to add a new category
- loadTemplate('admin_add_cat', FALSE, $content);
+ loadTemplate('admin_add_category', FALSE, $content);
}
// [EOF]
+++ /dev/null
-<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=list_cats%}
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
- <tr>
- <td class="table_header bottom" align="center" colspan="2">
- <strong>{--ADMIN_ADD_NEW_CATEGORY_TITLE--}</strong>
- </td>
- </tr>
-
- <tr>
- <td align="right">
- {--ADMIN_ENTER_CATEGORY_NAME--}:
- </td>
- <td>
- <input type="text" class="form_field" name="catname" size="30" maxlength="255" />
- </td>
- </tr>
-
- <tr>
- <td align="right">
- {--ADMIN_SELECT_PARENT_CATEGORY--}
- </td>
- <td>
- <select name="parent" size="1" class="form_select">
- $content[cats]
- <option value="-1">{--IS_TOP_CATEGORY--}</option>
- </select>
- </td>
- </tr>
-
- <tr>
- <td class="bottom" align="right">
- {--ADMIN_CATEGORY_IS_VISIBLE--}
- </td>
- <td class="bottom">
- <input type="radio" class="form_field" name="visible" value="Y" checked="checked" /> {--YES--}<br />
- <input type="radio" class="form_field" name="visible" value="N" /> {--NO--}
- </td>
- </tr>
-
- <tr>
- <td class="table_footer" colspan="2">
- <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NEW_CATEGORY--}" />
- </td>
- </tr>
-</table>
-{%form_close%}
-</div>
--- /dev/null
+<div align="center">
+{%form,formMethodPost=modules.php?module=admin&what=list_cats%}
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+ <tr>
+ <td class="table_header bottom" align="center" colspan="2">
+ <strong>{--ADMIN_ADD_NEW_CATEGORY_TITLE--}</strong>
+ </td>
+ </tr>
+
+ <tr>
+ <td align="right">
+ {--ADMIN_ENTER_CATEGORY_NAME--}:
+ </td>
+ <td>
+ <input type="text" class="form_field" name="catname" size="30" maxlength="255" />
+ </td>
+ </tr>
+
+ <tr>
+ <td align="right">
+ {--ADMIN_SELECT_PARENT_CATEGORY--}
+ </td>
+ <td>
+ <select name="parent" size="1" class="form_select">
+ $content[cats]
+ <option value="-1">{--IS_TOP_CATEGORY--}</option>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td class="bottom" align="right">
+ {--ADMIN_CATEGORY_IS_VISIBLE--}
+ </td>
+ <td class="bottom">
+ <input type="radio" class="form_field" name="visible" value="Y" checked="checked" /> {--YES--}<br />
+ <input type="radio" class="form_field" name="visible" value="N" /> {--NO--}
+ </td>
+ </tr>
+
+ <tr>
+ <td class="table_footer" colspan="2">
+ <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+ <input type="submit" class="form_submit" name="add" value="{--ADMIN_ADD_NEW_CATEGORY--}" />
+ </td>
+ </tr>
+</table>
+{%form_close%}
+</div>
--- /dev/null
+<div align="center">
+{%form,formMethodPost=modules.php?module=admin&what=list_cats&do=del%}
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+ <tr>
+ <td align="center" class="table_header bottom">
+ <strong>{--ADMIN_DELETE_CATEGORIES_TITLE--}:</strong>
+ </td>
+ </tr>
+ $content
+ <tr>
+ <td align="center" class="table_footer">
+ <input type="submit" name="ok" class="form_delete" value="{--ADMIN_REMOVE_CATEGORIES--}" />
+ </td>
+ </tr>
+</table>
+{%form_close%}
+</div>
--- /dev/null
+<tr>
+ <td align="center" class="{%template,ColorSwitch%}">
+ <strong>{--ADMIN_CATEGORY_ID--} $content:</strong>
+ </td>
+</tr>
+<tr>
+ <td align="center" class="{%template,ColorSwitch%} bottom">
+ {%pipe,getCategory=$content%}
+ <input type="hidden" name="id[$content]" value="1" />
+ </td>
+</tr>
+++ /dev/null
-<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=list_cats&do=del%}
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
- <tr>
- <td align="center" class="table_header bottom">
- <strong>{--ADMIN_DELETE_CATEGORIES_TITLE--}:</strong>
- </td>
- </tr>
- $content
- <tr>
- <td align="center" class="table_footer">
- <input type="submit" name="ok" class="form_delete" value="{--ADMIN_REMOVE_CATEGORIES--}" />
- </td>
- </tr>
-</table>
-{%form_close%}
-</div>
+++ /dev/null
-<tr>
- <td align="center" class="{%template,ColorSwitch%}">
- <strong>{--ADMIN_CATEGORY_ID--} $content:</strong>
- </td>
-</tr>
-<tr>
- <td align="center" class="{%template,ColorSwitch%} bottom">
- {%pipe,getCategory=$content%}
- <input type="hidden" name="id[$content]" value="1" />
- </td>
-</tr>
--- /dev/null
+<div align="center">
+{%form,formMethodPost=modules.php?module=admin&what=list_cats&do=edit%}
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
+<tr>
+ <td align="center" colspan="2" class="table_header bottom">
+ <strong>{--ADMIN_EDIT_CATEGORIES_TITLE--}:</strong>
+ </td>
+</tr>
+$content
+<tr>
+ <td align="center" colspan="2" class="table_footer">
+ <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
+ <input type="submit" class="form_submit" name="ok" value="{--ADMIN_CHANGE_CATEGORIES--}" />
+ </td>
+</tr>
+</table>
+{%form_close%}
+</div>
--- /dev/null
+<tr>
+ <td colspan="2" align="left" class="table_header bottom">
+ <strong>{--ADMIN_CATEGORY_ID--} $content[id]:</strong>
+ </td>
+</tr>
+<tr>
+ <td align="right" class="{%template,ColorSwitch%}">{--ADMIN_CATEGORY_DESCRIPTION--}: </td>
+ <td class="{%template,ColorSwitch%}">
+ <input type="text" class="form_field" name="id[$content[id]]" value="{%pipe,getCategory=$content[id]%}" size="32" maxlength="255" />
+ </td>
+</tr>
+<tr>
+ <td class="{%template,ColorSwitch%}" align="right">{--ADMIN_CATEGORY_IS_VISIBLE--} </td>
+ <td class="{%template,ColorSwitch%}">$content[visible_selection]</td>
+</tr>
+<tr>
+ <td class="{%template,ColorSwitch%} bottom" align="right">{--ADMIN_ENTER_SORT_KEY--}: </td>
+ <td class="{%template,ColorSwitch%} bottom">
+ <input type="text" class="form_field" name="sort[$content[id]]" value="$content[sort]" size="3" maxlength="10" />
+ </td>
+</tr>
+++ /dev/null
-<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=list_cats&do=edit%}
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed">
-<tr>
- <td align="center" colspan="2" class="table_header bottom">
- <strong>{--ADMIN_EDIT_CATEGORIES_TITLE--}:</strong>
- </td>
-</tr>
-$content
-<tr>
- <td align="center" colspan="2" class="table_footer">
- <input type="reset" class="form_reset" value="{--CLEAR_FORM--}" />
- <input type="submit" class="form_submit" name="ok" value="{--ADMIN_CHANGE_CATEGORIES--}" />
- </td>
-</tr>
-</table>
-{%form_close%}
-</div>
+++ /dev/null
-<tr>
- <td colspan="2" align="left" class="table_header bottom">
- <strong>{--ADMIN_CATEGORY_ID--} $content[id]:</strong>
- </td>
-</tr>
-<tr>
- <td align="right" class="{%template,ColorSwitch%}">{--ADMIN_CATEGORY_DESCRIPTION--}: </td>
- <td class="{%template,ColorSwitch%}">
- <input type="text" class="form_field" name="id[$content[id]]" value="{%pipe,getCategory=$content[id]%}" size="32" maxlength="255" />
- </td>
-</tr>
-<tr>
- <td class="{%template,ColorSwitch%}" align="right">{--ADMIN_CATEGORY_IS_VISIBLE--} </td>
- <td class="{%template,ColorSwitch%}">$content[visible_selection]</td>
-</tr>
-<tr>
- <td class="{%template,ColorSwitch%} bottom" align="right">{--ADMIN_ENTER_SORT_KEY--}: </td>
- <td class="{%template,ColorSwitch%} bottom">
- <input type="text" class="form_field" name="sort[$content[id]]" value="$content[sort]" size="3" maxlength="10" />
- </td>
-</tr>
--- /dev/null
+<div align="center">
+{%form,formMethodPost=modules.php?module=admin&what=list_cats%}
+<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" width="30"><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_close%}
+</div>
--- /dev/null
+<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,translateYesNo=$content[visible]%}
+ </td>
+ <td align="center" class="bottom {%template,ColorSwitch%}">
+ $content[sort]
+ </td>
+</tr>
+++ /dev/null
-<div align="center">
-{%form,formMethodPost=modules.php?module=admin&what=list_cats%}
-<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" width="30"><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_close%}
-</div>
+++ /dev/null
-<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,translateYesNo=$content[visible]%}
- </td>
- <td align="center" class="bottom {%template,ColorSwitch%}">
- $content[sort]
- </td>
-</tr>