Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: attachment_types.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id$
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 66 | Zeile 66 |
---|
$plugins->run_hooks("admin_config_attachment_types_add_commit");
// Log admin action
|
$plugins->run_hooks("admin_config_attachment_types_add_commit");
// Log admin action
|
log_admin_action($atid, $mybb->input['extension']);
| log_admin_action($atid, htmlspecialchars_uni($mybb->input['extension']));
|
$cache->update_attachtypes();
| $cache->update_attachtypes();
|
Zeile 186 | Zeile 186 |
---|
$plugins->run_hooks("admin_config_attachment_types_edit_commit");
// Log admin action
|
$plugins->run_hooks("admin_config_attachment_types_edit_commit");
// Log admin action
|
log_admin_action($attachment_type['atid'], $mybb->input['extension']);
| log_admin_action($attachment_type['atid'], htmlspecialchars_uni($mybb->input['extension']));
|
$cache->update_attachtypes();
| $cache->update_attachtypes();
|
Zeile 277 | Zeile 277 |
---|
$plugins->run_hooks("admin_config_attachment_types_delete_commit");
// Log admin action
|
$plugins->run_hooks("admin_config_attachment_types_delete_commit");
// Log admin action
|
log_admin_action($attachment_type['atid'], $attachment_type['extension']);
| log_admin_action($attachment_type['atid'], htmlspecialchars_uni($attachment_type['extension']));
|
flash_message($lang->success_attachment_type_deleted, 'success'); admin_redirect("index.php?module=config-attachment_types");
| flash_message($lang->success_attachment_type_deleted, 'success'); admin_redirect("index.php?module=config-attachment_types");
|
Zeile 316 | Zeile 316 |
---|
while($attachment_type = $db->fetch_array($query)) { // Just show default icons in ACP
|
while($attachment_type = $db->fetch_array($query)) { // Just show default icons in ACP
|
$attachment_type['icon'] = str_replace("{theme}", "images", $attachment_type['icon']);
| $attachment_type['icon'] = htmlspecialchars_uni(str_replace("{theme}", "images", $attachment_type['icon']));
|
if(!$attachment_type['icon'] || $attachment_type['icon'] == "images/attachtypes/") { $attachment_type['icon'] = " ";
| if(!$attachment_type['icon'] || $attachment_type['icon'] == "images/attachtypes/") { $attachment_type['icon'] = " ";
|
Zeile 328 | Zeile 328 |
---|
$table->construct_cell($attachment_type['icon'], array("width" => 1)); $table->construct_cell("<strong>.{$attachment_type['extension']}</strong>");
|
$table->construct_cell($attachment_type['icon'], array("width" => 1)); $table->construct_cell("<strong>.{$attachment_type['extension']}</strong>");
|
$table->construct_cell($attachment_type['mimetype']);
| $table->construct_cell(htmlspecialchars_uni($attachment_type['mimetype']));
|
$table->construct_cell(get_friendly_size(($attachment_type['maxsize']*1024)), array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-attachment_types&action=edit&atid={$attachment_type['atid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-attachment_types&action=delete&atid={$attachment_type['atid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_attachment_type_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
| $table->construct_cell(get_friendly_size(($attachment_type['maxsize']*1024)), array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-attachment_types&action=edit&atid={$attachment_type['atid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-attachment_types&action=delete&atid={$attachment_type['atid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_attachment_type_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
|