$blogownerid==$authorizedid
кривая попытка
$var = str_replace('{admin}', '<?php '."$blogownerid".'=='."$authorizedid".'?>;',$var);
$blogownerid==$authorizedid
$var = str_replace('{admin}', '<?php '."$blogownerid".'=='."$authorizedid".'?>;',$var);
Parse error: syntax error, unexpected '<' in /home/users1/b/bestime/domains/work-link.ru/blog.php(91) : eval()'d code on line 13
{admin}
$blogownerid==$authorizedid
$var = str_replace('{admin}', '<?php $blogownerid==$authorizedid; ?>',$var);
$blogownerid=1;
$authorizedid=1;
$blogownerid==$authorizedid
$var = '{admin}';
$blogownerid=1;
$authorizedid=1;
echo $var = str_replace('{admin}', "<?php $blogownerid==$authorizedid; ?>",$var);
<?if({admin}):?>Вы авторизованны<?endif?>
Parse error: syntax error, unexpected '<' in /home/users1/b/bestime/domains/work-link.ru/blog.php(91) : eval()'d code on line 16
<html><head>
</head><body><?if({admin}):?>Вы авторизованны<?else:?>Вы не авторизованы<?endif?>
</body></html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<?php
session_start();
include("config.php");
$authorizedid=$_SESSION['authorized_id'];
include("id.php");
$query = "select * from `blogs` WHERE `id` = '$blogid'";
$result = mysql_query($query, $link);
while($row=mysql_fetch_array($result))
{
$index_tbl=$row['index_tbl'];
}
$var = $index_tbl;
$var = str_replace('{admin}', "<?php $blogownerid==$authorizedid; ?>",$var);
eval('?>'.$var);
include("configclose.php");
?>
$var = str_replace('{admin}', "<?php '$blogownerid==$authorizedid'; ?>",$var);
$var = '{admin}';
$blogownerid=1;
$authorizedid=1;
$var = str_replace('{admin}', "<?php echo '$blogownerid==$authorizedid'; ?>",$var);
eval('?>' . $var);
<?if({admin})?>Ха<?endif?>