<?php
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}
/**
* Plugin info
*
*/
function no_image_quote_info()
{
return array(
"name" => "no image quote",
"description" => "",
"website" => "",
"author" => "",
"authorsite" => "",
"version" => "0.1",
"guid" => "",
"compatibility" => "16*"
);
}
$plugins->add_hook('xmlhttp', 'no_image_quote_do');
function no_image_quote_do()
{
global $mybb;
if($mybb->input['action'] != 'get_multiquoted') return;
ob_start();
function no_image_quote_do_shutdown()
{
global $message;
if(!$message)
{
ob_end_flush();
return;
}
ob_end_clean();
$message = preg_replace("#\[img\](\r\n?|\n?)(https?://([^<>\"']+?))\[/img\]#ise", "", $message);
echo $message;
}
register_shutdown_function('no_image_quote_do_shutdown');
}
?>