Zeile 48 | Zeile 48 |
---|
$cache->update_posticons();
// Log admin action
|
$cache->update_posticons();
// Log admin action
|
log_admin_action($iid, htmlspecialchars_uni($mybb->input['name']));
| log_admin_action($iid, $mybb->input['name']);
|
flash_message($lang->success_post_icon_added, 'success'); admin_redirect('index.php?module=config-post_icons');
| flash_message($lang->success_post_icon_added, 'success'); admin_redirect('index.php?module=config-post_icons');
|
Zeile 87 | Zeile 87 |
---|
$form = new Form("index.php?module=config-post_icons&action=add", "post", "add"); $form_container = new FormContainer($lang->add_post_icon);
|
$form = new Form("index.php?module=config-post_icons&action=add", "post", "add"); $form_container = new FormContainer($lang->add_post_icon);
|
$form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
| $form_container->output_row($lang->name." <em>*</em>", $lang->name_desc, $form->generate_text_box('name', $mybb->get_input('name'), array('id' => 'name')), 'name');
|
$form_container->output_row($lang->image_path." <em>*</em>", $lang->image_path_desc, $form->generate_text_box('path', $mybb->input['path'], array('id' => 'path')), 'path'); $form_container->end();
| $form_container->output_row($lang->image_path." <em>*</em>", $lang->image_path_desc, $form->generate_text_box('path', $mybb->input['path'], array('id' => 'path')), 'path'); $form_container->end();
|
Zeile 186 | Zeile 186 |
---|
$form = new Form("index.php?module=config-post_icons&action=add_multiple", "post", "add_multiple"); echo $form->generate_hidden_field("step", "2"); echo $form->generate_hidden_field("pathfolder", $path);
|
$form = new Form("index.php?module=config-post_icons&action=add_multiple", "post", "add_multiple"); echo $form->generate_hidden_field("step", "2"); echo $form->generate_hidden_field("pathfolder", $path);
|
|
|
$form_container = new FormContainer($lang->add_multiple_post_icons); $form_container->output_row_header($lang->image, array("class" => "align_center", 'width' => '10%')); $form_container->output_row_header($lang->name);
| $form_container = new FormContainer($lang->add_multiple_post_icons); $form_container->output_row_header($lang->image, array("class" => "align_center", 'width' => '10%')); $form_container->output_row_header($lang->name);
|
Zeile 281 | Zeile 281 |
---|
$form = new Form("index.php?module=config-post_icons&action=add_multiple", "post", "add_multiple"); echo $form->generate_hidden_field("step", "1");
|
$form = new Form("index.php?module=config-post_icons&action=add_multiple", "post", "add_multiple"); echo $form->generate_hidden_field("step", "1");
|
if($errors) { $page->output_inline_error($errors); }
| if($errors) { $page->output_inline_error($errors); }
|
$form_container = new FormContainer($lang->add_multiple_post_icons);
|
$form_container = new FormContainer($lang->add_multiple_post_icons);
|
$form_container->output_row($lang->path_to_images." <em>*</em>", $lang->path_to_images_desc, $form->generate_text_box('pathfolder', $mybb->input['pathfolder'], array('id' => 'pathfolder')), 'pathfolder');
| $form_container->output_row($lang->path_to_images." <em>*</em>", $lang->path_to_images_desc, $form->generate_text_box('pathfolder', $mybb->get_input('pathfolder'), array('id' => 'pathfolder')), 'pathfolder');
|
$form_container->end();
$buttons[] = $form->generate_submit_button($lang->show_post_icons);
| $form_container->end();
$buttons[] = $form->generate_submit_button($lang->show_post_icons);
|
Zeile 338 | Zeile 338 |
---|
$cache->update_posticons();
// Log admin action
|
$cache->update_posticons();
// Log admin action
|
log_admin_action($icon['iid'], htmlspecialchars_uni($mybb->input['name']));
| log_admin_action($icon['iid'], $mybb->input['name']);
|
flash_message($lang->success_post_icon_updated, 'success'); admin_redirect('index.php?module=config-post_icons');
| flash_message($lang->success_post_icon_updated, 'success'); admin_redirect('index.php?module=config-post_icons');
|
Zeile 388 | Zeile 388 |
---|
$icon = $db->fetch_array($query);
if(!$icon['iid'])
|
$icon = $db->fetch_array($query);
if(!$icon['iid'])
|
{
| {
|
flash_message($lang->error_invalid_post_icon, 'error'); admin_redirect("index.php?module=config-post_icons"); }
// User clicked no
|
flash_message($lang->error_invalid_post_icon, 'error'); admin_redirect("index.php?module=config-post_icons"); }
// User clicked no
|
if($mybb->input['no'])
| if($mybb->get_input('no'))
|
{ admin_redirect("index.php?module=config-post_icons"); }
| { admin_redirect("index.php?module=config-post_icons"); }
|
Zeile 410 | Zeile 410 |
---|
$cache->update_posticons();
// Log admin action
|
$cache->update_posticons();
// Log admin action
|
log_admin_action($icon['iid'], htmlspecialchars_uni($icon['name']));
| log_admin_action($icon['iid'], $icon['name']);
|
flash_message($lang->success_post_icon_deleted, 'success'); admin_redirect("index.php?module=config-post_icons");
| flash_message($lang->success_post_icon_deleted, 'success'); admin_redirect("index.php?module=config-post_icons");
|
Zeile 444 | Zeile 444 |
---|
);
$page->output_nav_tabs($sub_tabs, 'manage_icons');
|
);
$page->output_nav_tabs($sub_tabs, 'manage_icons');
|
| $query = $db->simple_select("icons", "COUNT(iid) AS icons"); $total_rows = $db->fetch_field($query, "icons");
|
$pagenum = $mybb->get_input('page', MyBB::INPUT_INT); if($pagenum) { $start = ($pagenum - 1) * 20;
|
$pagenum = $mybb->get_input('page', MyBB::INPUT_INT); if($pagenum) { $start = ($pagenum - 1) * 20;
|
| $pages = ceil($total_rows / 20); if($pagenum > $pages) { $start = 0; $pagenum = 1; }
|
} else {
| } else {
|
Zeile 465 | Zeile 474 |
---|
while($icon = $db->fetch_array($query)) { $icon['path'] = str_replace("{theme}", "images", $icon['path']);
|
while($icon = $db->fetch_array($query)) { $icon['path'] = str_replace("{theme}", "images", $icon['path']);
|
if(my_strpos($icon['path'], "p://") || substr($icon['path'], 0, 1) == "/")
| if(my_validate_url($icon['path'], true))
|
{ $image = $icon['path'];
|
{ $image = $icon['path'];
|
}
| }
|
else { $image = "../".$icon['path'];
| else { $image = "../".$icon['path'];
|
Zeile 479 | Zeile 488 |
---|
$table->construct_cell("<a href=\"index.php?module=config-post_icons&action=edit&iid={$icon['iid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-post_icons&action=delete&iid={$icon['iid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_icon_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
|
$table->construct_cell("<a href=\"index.php?module=config-post_icons&action=edit&iid={$icon['iid']}\">{$lang->edit}</a>", array("class" => "align_center")); $table->construct_cell("<a href=\"index.php?module=config-post_icons&action=delete&iid={$icon['iid']}&my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_icon_deletion}')\">{$lang->delete}</a>", array("class" => "align_center"));
|
$table->construct_row(); }
| $table->construct_row(); }
|
if($table->num_rows() == 0) {
| if($table->num_rows() == 0) {
|
Zeile 489 | Zeile 498 |
---|
}
$table->output($lang->manage_post_icons);
|
}
$table->output($lang->manage_post_icons);
|
$query = $db->simple_select("icons", "COUNT(iid) AS icons"); $total_rows = $db->fetch_field($query, "icons");
| |
echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-post_icons&page={page}");
| echo "<br />".draw_admin_pagination($pagenum, "20", $total_rows, "index.php?module=config-post_icons&page={page}");
|