60)) return $title; $title=substr($title,0,60); $endpos=strrpos($title," "); $title=substr($title,0,$endpos); $title=str_replace("%","_",$title); return $title; } function forumLink($handid) { $subject=handTitle($handid); $result=phpbb_query("select topic_id from ".BB_PREFIX."posts where forum_id = 1 AND post_subject='".$subject."' limit 0,1",$conn); if (mysql_num_rows($result)==0) { return "/phpbb/posting.php?mode=post&f=1&handid=$handid"; } $row=mysql_fetch_array($result); return "/phpbb/".str_replace(" ","-",$subject)."-t".$row['topic_id'].".html"; } function getHandId($title) { $result=poker_query("select id from pokerhands where title LIKE '".$title."%' limit 0,1",$conn); if (mysql_num_rows($result)==0) { return ''; } $row=mysql_fetch_array($result); return $row['id']; } ?>