Zeile 81 | Zeile 81 |
---|
$cache->update_smilies();
// Log admin action
|
$cache->update_smilies();
// Log admin action
|
log_admin_action($sid, htmlspecialchars_uni($mybb->input['name']));
| log_admin_action($sid, $mybb->input['name']);
|
flash_message($lang->success_smilie_added, 'success'); admin_redirect("index.php?module=config-smilies");
| flash_message($lang->success_smilie_added, 'success'); admin_redirect("index.php?module=config-smilies");
|
Zeile 182 | Zeile 182 |
---|
else { $mybb->input['disporder'] = $mybb->get_input('disporder', MyBB::INPUT_INT);
|
else { $mybb->input['disporder'] = $mybb->get_input('disporder', MyBB::INPUT_INT);
|
$query = $db->simple_select("smilies", "sid", "disporder= '".$mybb->input['disporder']."' AND sid != '".$mybb->input['sid']."'");
| $query = $db->simple_select("smilies", "sid", "disporder= '".$mybb->input['disporder']."' AND sid != '".$smilie['sid']."'");
|
$duplicate_disporder = $db->fetch_field($query, 'sid');
if($duplicate_disporder)
| $duplicate_disporder = $db->fetch_field($query, 'sid');
if($duplicate_disporder)
|
Zeile 212 | Zeile 212 |
---|
$plugins->run_hooks("admin_config_smilies_edit_commit");
|
$plugins->run_hooks("admin_config_smilies_edit_commit");
|
$db->update_query("smilies", $updated_smilie, "sid = '".$mybb->get_input('sid', MyBB::INPUT_INT)."'");
| $db->update_query("smilies", $updated_smilie, "sid = '{$smilie['sid']}'");
|
$cache->update_smilies();
// Log admin action
|
$cache->update_smilies();
// Log admin action
|
log_admin_action($smilie['sid'], htmlspecialchars_uni($mybb->input['name']));
| log_admin_action($smilie['sid'], $mybb->input['name']);
|
flash_message($lang->success_smilie_updated, 'success'); admin_redirect("index.php?module=config-smilies");
| flash_message($lang->success_smilie_updated, 'success'); admin_redirect("index.php?module=config-smilies");
|
Zeile 298 | Zeile 298 |
---|
$cache->update_smilies();
// Log admin action
|
$cache->update_smilies();
// Log admin action
|
log_admin_action($smilie['sid'], htmlspecialchars_uni($smilie['name']));
| log_admin_action($smilie['sid'], $smilie['name']);
|
flash_message($lang->success_smilie_updated, 'success'); admin_redirect("index.php?module=config-smilies");
| flash_message($lang->success_smilie_updated, 'success'); admin_redirect("index.php?module=config-smilies");
|
Zeile 409 | Zeile 409 |
---|
$find = str_replace(".".$ext, "", $file); $name = ucfirst($find);
|
$find = str_replace(".".$ext, "", $file); $name = ucfirst($find);
|
$form_container->output_cell("<img src=\"../".$path.$file."\" alt=\"\" /><br /><small>{$file}</small>", array("class" => "align_center", "width" => 1)); $form_container->output_cell($form->generate_text_box("name[{$file}]", $name, array('id' => 'name', 'style' => 'width: 98%')));
| $file = htmlspecialchars_uni($file);
$form_container->output_cell("<img src=\"../".htmlspecialchars_uni($path).$file."\" alt=\"\" /><br /><small>{$file}</small>", array("class" => "align_center", "width" => 1)); $form_container->output_cell($form->generate_text_box("name[{$file}]", htmlspecialchars_uni($name), array('id' => 'name', 'style' => 'width: 98%')));
|
$form_container->output_cell($form->generate_text_box("find[{$file}]", ":".$find.":", array('id' => 'find', 'style' => 'width: 95%'))); $form_container->output_cell($form->generate_check_box("include[{$file}]", 1, "", array('checked' => 1)), array("class" => "align_center")); $form_container->construct_row();
| $form_container->output_cell($form->generate_text_box("find[{$file}]", ":".$find.":", array('id' => 'find', 'style' => 'width: 95%'))); $form_container->output_cell($form->generate_check_box("include[{$file}]", 1, "", array('checked' => 1)), array("class" => "align_center")); $form_container->construct_row();
|
Zeile 643 | Zeile 645 |
---|
while($smilie = $db->fetch_array($query)) { $smilie['image'] = str_replace("{theme}", "images", $smilie['image']);
|
while($smilie = $db->fetch_array($query)) { $smilie['image'] = str_replace("{theme}", "images", $smilie['image']);
|
if(my_strpos($smilie['image'], "p://") || substr($smilie['image'], 0, 1) == "/")
| if(my_validate_url($smilie['image'], true))
|
{
|
{
|
$image = $smilie['image'];
| $image = htmlspecialchars_uni($smilie['image']);
|
} else {
|
} else {
|
$image = "../".$smilie['image'];
| $image = "../".htmlspecialchars_uni($smilie['image']);
|
}
$form_container->output_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center", "width" => 1));
| }
$form_container->output_cell("<img src=\"{$image}\" alt=\"\" />", array("class" => "align_center", "width" => 1));
|
Zeile 726 | Zeile 728 |
---|
while($smilie = $db->fetch_array($query)) { $smilie['image'] = str_replace("{theme}", "images", $smilie['image']);
|
while($smilie = $db->fetch_array($query)) { $smilie['image'] = str_replace("{theme}", "images", $smilie['image']);
|
if(my_strpos($smilie['image'], "p://") || substr($smilie['image'], 0, 1) == "/")
| if(my_validate_url($smilie['image'], true))
|
{
|
{
|
$image = $smilie['image']; $smilie['image'] = str_replace("{theme}", "images", $smilie['image']);
| $image = htmlspecialchars_uni($smilie['image']);
|
} else {
|
} else {
|
$image = "../".$smilie['image'];
| $image = "../".htmlspecialchars_uni($smilie['image']);
|
}
$table->construct_cell("<img src=\"{$image}\" alt=\"\" class=\"smilie smilie_{$smilie['sid']}\" />", array("class" => "align_center"));
| }
$table->construct_cell("<img src=\"{$image}\" alt=\"\" class=\"smilie smilie_{$smilie['sid']}\" />", array("class" => "align_center"));
|