XmasB Quotes
Number of quotes: count ?>
";
xmasb_print_quote($quote);
echo "";
}
?>
query($sql);
if ( $sqlresponse == 1 )
{
?>
Failure: No quote ID given.
query($sql);
if ( $sqlresponse == 1 )
{
?>
Quote deleted successfully
Failure: Could not delete quote.
Mode: " . $mode . ""; }
if ( $quoteID !== false )
{
if ( intval($quoteID) != $quoteID )
{
?>
get_results("select * from " . XMASB_QUOTES_TABLE . " where id='" . mysql_real_escape_string($quoteID) . "' limit 1");
if ( empty($quote) )
{
?>
\n";
# JS inclusion
echo "\n";
}
/*
Widget code
*/
function widget_xmasb_quotes_init()
{
if ( !function_exists('register_sidebar_widget') )
return;
function widget_xmasb_quotes($args)
{
extract($args);
$options = get_option('widget_xmasb_quotes');
$title = $options['title'];
echo $before_widget . $before_title . $title . $after_title;
if ( !function_exists('xmasb_random_quote') )
{
?>
Cannot find the XmasB quotes plugin. If you have installed it check if you have activated it. If you have not installed it, you can download it from
xmasb.com .
'XmasB Quotes', 'showimages'=>'yes', 'defaultimage'=>'quote.gif', 'showlink'=>'yes');
if ( $_POST['xmasb_quotes-submit'] )
{
$options['title'] = strip_tags(stripslashes($_POST['xmasb_quotes-title']));
update_option('widget_xmasb_quotes', $options);
}
$title = htmlspecialchars($options['title'], ENT_QUOTES);
?>
Title: