Kod
# 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'siema';
Kod
function code($source, $lang, $line)
{
include_once('geshi/geshi.php');
$source = stripslashes(htmlspecialchars_decode($source));
$geshi = new geshi($source, $lang);
$geshi -> enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 3);
$geshi->set_header_type(GESHI_HEADER_PRE_VALID);
$geshi->start_line_numbers_at($line);
return '<div>Kod '.$lang.':<div>'.stripslashes($geshi->parse_code());
}
function bbcode($text)
{
$text = preg_replace('/\[code=(.+?) line=([0-9]+)\]([\d, \D]+?)\[\/code\]/e', '$this->code(\'\\3\', \'\\1\', \'\\2\')', $text);
return nl2br($text);
}
{
include_once('geshi/geshi.php');
$source = stripslashes(htmlspecialchars_decode($source));
$geshi = new geshi($source, $lang);
$geshi -> enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 3);
$geshi->set_header_type(GESHI_HEADER_PRE_VALID);
$geshi->start_line_numbers_at($line);
return '<div>Kod '.$lang.':<div>'.stripslashes($geshi->parse_code());
}
function bbcode($text)
{
$text = preg_replace('/\[code=(.+?) line=([0-9]+)\]([\d, \D]+?)\[\/code\]/e', '$this->code(\'\\3\', \'\\1\', \'\\2\')', $text);
return nl2br($text);
}