Insanoff
28.06.2008, 22:54
Parse error: parse error, unexpected T_STRING in T:\home\localhost\rav\mainfile.php on line 580
if (strlen($name) != 0) {
$name = str_replace(' ','_',$name);
$name = str_replace('%20','_',$name);
$result = $db->sql_query('.$prefix.'_blocks b, '.$prefix.'_blocks_manager m WHERE b.bid=m.bid AND m.title=\''.$name.'\' AND m.position=\''.$pos'\' AND b.active=1 '.$querylang.' ORDER BY m.weight ASC');
} else {
$result = $db->sql_query('.$prefix.'_blocks b, '.$prefix.'_blocks_manager m WHERE b.bid=m.bid AND m.title=admin AND m.position=\''.$pos'\' AND b.active=1 '.$querylang.' ORDER BY m.weight ASC');
}
if (strlen($name) != 0) {
$name = str_replace(' ','_',$name);
$name = str_replace('%20','_',$name);
$result = $db->sql_query('.$prefix.'_blocks b, '.$prefix.'_blocks_manager m WHERE b.bid=m.bid AND m.title=\''.$name.'\' AND m.position=\''.$pos'\' AND b.active=1 '.$querylang.' ORDER BY m.weight ASC');
} else {
$result = $db->sql_query('.$prefix.'_blocks b, '.$prefix.'_blocks_manager m WHERE b.bid=m.bid AND m.title=admin AND m.position=\''.$pos'\' AND b.active=1 '.$querylang.' ORDER BY m.weight ASC');
}