<?php
function smiles($msg){
$q=mysql_query("SELECT * FROM `smiles_spis`");
while($post = mysql_fetch_array($q)){
$msg = str_replace($post['sim'], '<img src="/style/smiles/'.$post['name'].'.gif" alt="'.$post['name'].'"/>', $msg);
}
return $msg;
}
function uspage($nick){
$a = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `nick`='".$nick."'"));
$nick=preg_replace('#([^]=]||^)(u?|page)@.*( |$)#mUsi','<a href=/id'.$a['id'].'>