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: mycode.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 129 | Zeile 129 |
---|
$plugins->run_hooks("admin_config_mycode_add_commit");
// Log admin action
|
$plugins->run_hooks("admin_config_mycode_add_commit");
// Log admin action
|
log_admin_action($cid, $mybb->input['title']);
| log_admin_action($cid, htmlspecialchars_uni($mybb->input['title']));
|
flash_message($lang->success_added_mycode, 'success'); admin_redirect('index.php?module=config-mycode');
| flash_message($lang->success_added_mycode, 'success'); admin_redirect('index.php?module=config-mycode');
|
Zeile 239 | Zeile 239 |
---|
if(!$errors) {
|
if(!$errors) {
|
$mycode = array(
| $updated_mycode = array(
|
'title' => $db->escape_string($mybb->input['title']), 'description' => $db->escape_string($mybb->input['description']), 'regex' => $db->escape_string(str_replace("\x0", "", $mybb->input['regex'])),
| 'title' => $db->escape_string($mybb->input['title']), 'description' => $db->escape_string($mybb->input['description']), 'regex' => $db->escape_string(str_replace("\x0", "", $mybb->input['regex'])),
|
Zeile 248 | Zeile 248 |
---|
'parseorder' => intval($mybb->input['parseorder']) );
|
'parseorder' => intval($mybb->input['parseorder']) );
|
$db->update_query("mycode", $mycode, "cid='".intval($mybb->input['cid'])."'");
| $db->update_query("mycode", $updated_mycode, "cid='".intval($mybb->input['cid'])."'");
|
$cache->update_mycode(); $plugins->run_hooks("admin_config_mycode_edit_commit");
// Log admin action
|
$cache->update_mycode(); $plugins->run_hooks("admin_config_mycode_edit_commit");
// Log admin action
|
log_admin_action($mycode['cid'], $mybb->input['title']);
| log_admin_action($mycode['cid'], htmlspecialchars_uni($mybb->input['title']));
|
flash_message($lang->success_updated_mycode, 'success'); admin_redirect('index.php?module=config-mycode');
| flash_message($lang->success_updated_mycode, 'success'); admin_redirect('index.php?module=config-mycode');
|
Zeile 353 | Zeile 353 |
---|
$plugins->run_hooks("admin_config_mycode_delete_commit");
// Log admin action
|
$plugins->run_hooks("admin_config_mycode_delete_commit");
// Log admin action
|
log_admin_action($mycode['cid'], $mycode['title']);
| log_admin_action($mycode['cid'], htmlspecialchars_uni($mycode['title']));
|
flash_message($lang->success_deleted_mycode, 'success'); admin_redirect("index.php?module=config-mycode");
| flash_message($lang->success_deleted_mycode, 'success'); admin_redirect("index.php?module=config-mycode");
|
Zeile 403 | Zeile 403 |
---|
if($mycode['description']) {
|
if($mycode['description']) {
|
$mycode['description'] = "<small>{$mycode['description']}</small>";
| $mycode['description'] = "<small>".htmlspecialchars_uni($mycode['description'])."</small>";
|
}
|
}
|
$table->construct_cell("{$indicator}<strong><a href=\"index.php?module=config-mycode&action=edit&cid={$mycode['cid']}\">{$mycode['title']}</a></strong><br />{$mycode['description']}");
| $table->construct_cell("{$indicator}<strong><a href=\"index.php?module=config-mycode&action=edit&cid={$mycode['cid']}\">".htmlspecialchars_uni($mycode['title'])."</a></strong><br />{$mycode['description']}");
|
$popup = new PopupMenu("mycode_{$mycode['cid']}", $lang->options); $popup->add_item($lang->edit_mycode, "index.php?module=config-mycode&action=edit&cid={$mycode['cid']}");
| $popup = new PopupMenu("mycode_{$mycode['cid']}", $lang->options); $popup->add_item($lang->edit_mycode, "index.php?module=config-mycode&action=edit&cid={$mycode['cid']}");
|
Zeile 431 | Zeile 431 |
---|
{ $array = array(); $array['actual'] = @preg_replace("#".str_replace("\x0", "", $regex)."#si", $replacement, $test);
|
{ $array = array(); $array['actual'] = @preg_replace("#".str_replace("\x0", "", $regex)."#si", $replacement, $test);
|
$array['html'] = htmlspecialchars($array['actual']);
| $array['html'] = htmlspecialchars_uni($array['actual']);
|
return $array; } ?>
| return $array; } ?>
|