CSS Mester
if($r['type'] == 'plain') {
$text = $r['content'];
$text = aswc_szovegformaz($text);
$pattern = "#\[pelda=([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\](.*?)\[/pelda\]#si";
$wid = mysql_result( mysql_query("SELECT aswc_users.id FROM aswc_tutorials LEFT JOIN aswc_users ON cby=aswc_users.uname WHERE aswc_tutorials.id='$_GET[id]'") ,0);
$text = preg_replace($pattern,"\\2",$text);
$text = str_replace('\"','"',$text);
echo ($text);
}
else {
$exp1 = explode("|:>",$r[content]);
$pic_n = 1;
for ($i=0; $i<$r['steps']; $i++) {
echo ''.($i+1).'. lépés
';
$exp2 = explode("===",$exp1[$i]);
for ($j=0; $j<=1; $j++) {
if ($j % 2 == 0) { // szerkezetek szamai
$szerk[$i] = $exp2[$j];
switch($exp2[$j]) {
case '2':
echo '';
$pic_n++;
break;
case '3':
echo '';
$pic_n++;
break;
case '4':
echo '';
$pic_n++;
echo '';
$pic_n++;
break;
}
}
elseif ($j % 2 == 1) { // tartalom
$text = $exp2[$j];
$text = aswc_szovegformaz($text);
$pattern = "#\[pelda=([a-z0-9\-\.,\?!%\*_\#:;~\\&$@\/=\+\(\)]+)\](.*?)\[/pelda\]#si";
$wid = mysql_result( mysql_query("SELECT aswc_users.id FROM aswc_tutorials LEFT JOIN aswc_users ON cby=aswc_users.uname WHERE aswc_tutorials.id='$_GET[id]'") ,0);
$text = preg_replace($pattern,"\\2",$text);
echo ''.$text.'
';
}
}
}
}
?>