Vergleich admin/modules/config/mycode.php - 1.6.4 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: mycode.php 5297 2010-12-28 22:01:14Z Tomm $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 129Zeile 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 239Zeile 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 248Zeile 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 353Zeile 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 403Zeile 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&amp;action=edit&amp;cid={$mycode['cid']}\">{$mycode['title']}</a></strong><br />{$mycode['description']}");

		$table->construct_cell("{$indicator}<strong><a href=\"index.php?module=config-mycode&amp;action=edit&amp;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&amp;action=edit&amp;cid={$mycode['cid']}");


$popup = new PopupMenu("mycode_{$mycode['cid']}", $lang->options);
$popup->add_item($lang->edit_mycode, "index.php?module=config-mycode&amp;action=edit&amp;cid={$mycode['cid']}");

Zeile 431Zeile 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;
}
?>