|
18.04.2005, 23:06
Вот как будет:
PHP код:
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) { global $anonymous, $tipath, $cookie, $loonr, $vasak, $parem, $kokku, $storyhome, $storynum; $ThemeSel = get_theme(); if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) { $t_image = "themes/$ThemeSel/images/topics/$topicimage"; } else { $t_image = "$tipath$topicimage"; } $loonr = ($loonr+1); if (isset($cookie[3])) { $storynum = $cookie[3]; } else { $storynum = $storyhome; } $ridaaa1 = round($loonr/2); if ($notes != "") { $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n"; } else { $notes = ""; } if ("$aid" == "$informant") { $content = "$thetext$notes\n"; } else { if($informant != "") { $content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$i nformant\">$informant</a> "; } else { $content = "$anonymous "; } $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n"; } $posted = ""._POSTEDBY." "; $posted .= get_author($aid); $posted .= " "._ON." $time $timezone ($counter "._READS.")"; $tmpl_file = "themes/blueweb_v3/story_home.html"; $thefile = implode("", file($tmpl_file)); $thefile = addslashes($thefile); $thefile = "\$r_file=\"".$thefile."\";"; eval($thefile); print "$r_file"; }
|
|