本文整理汇总了PHP中makeLinks函数的典型用法代码示例。如果您正苦于以下问题:PHP makeLinks函数的具体用法?PHP makeLinks怎么用?PHP makeLinks使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了makeLinks函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_metadata
function display_metadata($alias, $item, $conf)
{
dmGetCollectionFullResInfo($alias, $enabled, $public, $volprefix, $volsize, $displaysize, $archivesize);
$fullres = "";
$std_fields = array();
for ($i = 0; $i < count($conf); $i++) {
$tag = strtoupper($conf[$i]["nick"]);
if ($conf[$i]["type"] != "FTS" && array_key_exists($tag, $item['index']) && array_key_exists("value", $item['structure'][$item['index'][$tag][0]])) {
$value = '';
if ($conf[$i]["type"] == "DATE") {
$value = linkDate($item['structure'][$item['index'][$tag][0]]["value"], $alias, $conf[$i]["nick"]);
} else {
if ($conf[$i]["search"] == "1" && $conf[$i]["vocab"] == "1") {
$value = vocabLink(charReplace($item['structure'][$item['index'][$tag][0]]["value"]), $alias, $conf[$i]["nick"]);
} elseif ($conf[$i]["search"] == "1" && $conf[$i]["vocab"] == "0") {
$value = makeLinks(isHyperlink(charReplace($item['structure'][$item['index'][$tag][0]]["value"]), $conf[$i]["type"], $conf[$i]["nick"], $alias));
} else {
$value = makeLinks(charReplace($item['structure'][$item['index'][$tag][0]]["value"]));
}
}
$std_fields[] = array('field' => $conf[$i]["name"], 'value' => $value);
}
}
include 'meta_scr_template.php';
}
示例2: printEntry
function printEntry($id)
{
$query = "select entry,date_format(entrytime, '%b %e, %Y | %h:%i %p') as date from main where id = '{$id}'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
if (ereg(".*http.*", $row['entry'])) {
$text = makeLinks($row['entry']);
} else {
$text = $row['entry'];
}
echo "<p class=\"entry\">" . $text . " </p>";
echo "<p class=\"timedate\"><a href=\"entry.php?number=" . $id . "\">" . $row['date'] . "</a>";
if (checkCookie()) {
echo " | <a href=\"delete.php?number=" . $id . "\">delete</a> ";
}
echo "</p><hr />";
}
示例3: spellCheckForm
$content .= spellCheckForm();
break;
default:
$content .= spellCheckForm();
}
} else {
$content .= spellCheckForm();
}
$content = str_replace('[group]', $group, $content);
$topNav = $template->getSection('TopNav');
$leftNav = $template->getSection('LeftNav');
$main = $template->getSection('Main');
$topNavLinks = makeLinks('top', $topLinks, 12);
$navHeader = $template->getSection('NavHeader');
$rightNav = $template->getSection('RightNav');
$leftNavLinks = makeLinks('left', $leftLinks, 12);
$rightNavLinks = getMisspelledWords();
$FooterInfo = getFooter();
$errMsgClass = !empty($msg) ? "ShowError" : "HideError";
$errMsgStyle = $template->getSection($errMsgClass);
$noLeftNav = '';
$noTopNav = '';
$noRightNav = '';
$headerTitle = 'Actions:';
$pageTitle = 'My-Program O - Spellcheck Editor';
$mainContent = $content;
$mainTitle = 'Spellcheck Editor';
$mainContent = str_replace('[spellCheckForm]', spellCheckForm(), $mainContent);
$rightNav = str_replace('[rightNavLinks]', $rightNavLinks, $rightNav);
$rightNav = str_replace('[navHeader]', $navHeader, $rightNav);
$rightNav = str_replace('[headerTitle]', paginate(), $rightNav);
示例4: makeLinks
<div id="header">
<h1><?php
echo $config->banner;
?>
</h1>
<p>Small Park Theme</p>
</div>
<div id="navigation">
<ul id="navlist">
<?php
echo $config->sidebar1;
?>
<?php
echo makeLinks($config->nav1, '<li>', '</li>');
#link arrays are created in config_inc.php file
?>
<li
<p><strong>A tiny service announcement.</strong><br />
Put tidbits of information or pictures in this small yet useful area. This area is part of this theme!
</p>
</li>
</ul>
</div>
<div id="sidebar">
<?php
echo $config->sidebar2;
?>
</div>
示例5: lhcontent
function lhcontent()
{
makeLinks(links());
}
示例6: makeLinks
<head>
<title><?php
echo $title;
?>
</title>
<meta charset="utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header">
<div>
<a href="index.php"><img class="logo" src="images/logo.png" width="513" height="84" alt="" title=""></a>
<a href="index.php"><img src="images/waitress.png" width="332" height="205" alt="" title=""></a>
<ul class="navigation">
<?php
echo makeLinks($nav1, '<li>', '</li>', '<li class="active">');
?>
<!--
<li>
<a href="index.html">Home</a>
</li>
<li>
<a class="active" href="about.html">About</a>
</li>
<li>
<a href="burger.html">Menu</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
<li>
示例7: Query
<?php
if ($loguserid && isset($_GET['action']) && $_GET['action'] == "markallread") {
Query("REPLACE INTO {threadsread} (id,thread,date) SELECT {0}, {threads}.id, {1} FROM {threads}", $loguserid, time());
redirectAction("board");
}
$links = new PipeMenu();
if ($loguserid) {
$links->add(new PipeMenuLinkEntry(__("Mark all forums read"), "board", 0, "action=markallread", "ok"));
}
makeLinks($links);
makeBreadcrumbs(new PipeMenu());
if (!$mobileLayout) {
$statData = Fetch(Query("SELECT\n\t\t(SELECT COUNT(*) FROM {threads}) AS numThreads,\n\t\t(SELECT COUNT(*) FROM {posts}) AS numPosts,\n\t\t(SELECT COUNT(*) FROM {users}) AS numUsers,\n\t\t(select count(*) from {posts} where date > {0}) AS newToday,\n\t\t(select count(*) from {posts} where date > {1}) AS newLastHour,\n\t\t(select count(*) from {users} where lastposttime > {2}) AS numActive", time() - 86400, time() - 3600, time() - 2592000));
$stats = Format(__("{0} and {1} total"), Plural($statData["numThreads"], __("thread")), Plural($statData["numPosts"], __("post")));
$stats .= "<br />" . format(__("{0} today, {1} last hour"), Plural($statData["newToday"], __("new post")), $statData["newLastHour"]);
$percent = $statData["numUsers"] ? ceil(100 / $statData["numUsers"] * $statData["numActive"]) : 0;
$lastUser = Query("select u.(_userfields) from {users} u order by u.regdate desc limit 1");
if (numRows($lastUser)) {
$lastUser = getDataPrefix(Fetch($lastUser), "u_");
$last = format(__("{0}, {1} active ({2}%)"), Plural($statData["numUsers"], __("registered user")), $statData["numActive"], $percent) . "<br />" . format(__("Newest: {0}"), UserLink($lastUser));
} else {
$last = __("No registered users") . "<br /> ";
}
write("\n\t\t<table class=\"outline margin width100\" style=\"overflow: auto;\">\n\t\t\t<tr class=\"cell2 center\" style=\"overflow: auto;\">\n\t\t\t<td>\n\t\t\t\t<div style=\"float: left; width: 25%;\"> <br /> </div>\n\t\t\t\t<div style=\"float: right; width: 25%;\">{1}</div>\n\t\t\t\t<div class=\"center\">\n\t\t\t\t\t{0}\n\t\t\t\t</div>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n\t", $stats, $last);
}
printRefreshCode();
makeForumListing(0);
示例8: makeLinks
?>
</title>
<meta charset="utf-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="header">
<div>
<a href="index.html"><img class="logo" src="images/logo.png" width="513" height="84" alt="" title=""></a>
<a href="index.html"><img src="images/<?php
echo $headerPic;
?>
" width="332" height="205" alt="" title=""></a>
<ul class="navigation">
//<?php
echo makeLinks($nav1);
?>
<li>
<a href="index.html">Home</a>
</li>
<li>
<a class="active" href="about.html">About</a>
</li>
<li>
<a href="burger.html">Menu</a>
</li>
<li>
<a href="contact.html">Contact</a>
</li>
<li>
示例9: build_my_video_html
function build_my_video_html($mysinglefeed, $atts)
{
if (isset($mysinglefeed->story)) {
// if story exists then use the story in the post text
$my_post_text = $mysinglefeed->story;
}
if (isset($mysinglefeed->message)) {
// if story exists then use the story in the post text
$my_post_text = $mysinglefeed->message;
$my_post_text = makeLinks($my_post_text, $atts['link_target']);
if (!preg_match('/((http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?)#(\\w*[a-zA-Z_]+\\w*)/', $my_post_text)) {
$my_post_text = make_hash_link($my_post_text, $atts['link_target']);
}
}
// Build Post description
// first hyper link the name
$name_var = isset($mysinglefeed->name) ? $mysinglefeed->name : '';
$name_url = isset($mysinglefeed->link) ? $mysinglefeed->link : '';
$link_post_desc = isset($mysinglefeed->description) ? $mysinglefeed->description : '';
$link_post_desc = makeLinks($link_post_desc, $atts['link_target']);
if (!preg_match('/((http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?)#(\\w*[a-zA-Z_]+\\w*)/', $link_post_desc)) {
$link_post_desc = make_hash_link($link_post_desc, $atts['link_target']);
}
if (array_key_exists('message_tags', $mysinglefeed)) {
// now add the hyperlink to tags
foreach ($mysinglefeed->message_tags as $mymessagetag) {
$mymessagetagname = $mymessagetag[0]->name;
if ($atts['link_target'] == 1) {
$tag_link = '<a class="wff-link-tab" href="http://facebook.com/' . $mymessagetag[0]->id . '" style="color: red;" target="_blank">' . $mymessagetag[0]->name . '</a>';
} else {
$tag_link = '<a class="wff-link-tab" href="http://facebook.com/' . $mymessagetag[0]->id . '" style="color: red;" >' . $mymessagetag[0]->name . '</a>';
}
$my_post_text = str_replace($mymessagetagname, $tag_link, $my_post_text);
}
}
$the_resource_id_array = explode("_", $mysinglefeed->id);
$the_resource_id = $the_resource_id_array[1];
$post_resource_link = 'https://facebook.com/' . $atts['page_id'] . '/posts/' . $the_resource_id;
//call post text inline style
$limited_style_wrapper = limited_post_text_inline_style($atts);
$full_style_wrapper = full_post_text_inline_style($atts);
$line_height_style = feed_line_height($atts);
/*---------------------read more text---------------------------*/
$str_without_tag = strip_tags($my_post_text);
$char_count = strlen($str_without_tag);
if (!empty($atts['char_limit']) && $atts['char_limit'] < $char_count) {
$short_sentence = substr($str_without_tag, 0, $atts['char_limit']);
$short_sentence = makeLinks($short_sentence, $atts['link_target']);
// link the urls
if (!preg_match('/((http|https|ftp|ftps)\\:\\/\\/[a-zA-Z0-9\\-\\.]+\\.[a-zA-Z]{2,3}(\\/\\S*)?)#(\\w*[a-zA-Z_]+\\w*)/', $short_sentence)) {
$short_sentence = make_hash_link($short_sentence, $atts['link_target']);
}
if (array_key_exists('message_tags', $mysinglefeed)) {
foreach ($mysinglefeed->message_tags as $mymessagetag) {
$mymessagetagname = $mymessagetag[0]->name;
if ($atts['link_target'] == 1) {
$tag_link = '<a class="wff-link-tab" href="http://facebook.com/' . $mymessagetag[0]->id . '" style="color: red;" target="_blank">' . $mymessagetag[0]->name . '</a>';
} else {
$tag_link = '<a class="wff-link-tab" href="http://facebook.com/' . $mymessagetag[0]->id . '" style="color: red;" >' . $mymessagetag[0]->name . '</a>';
}
$short_sentence = str_replace($mymessagetagname, $tag_link, $short_sentence);
}
}
$mytext = '<p class = "wff-post-text" ' . $limited_style_wrapper . '>' . $short_sentence . '...<span><a class="wff-more-link">' . $atts['read_more'] . '</a></span></p>';
$mytext .= '<p class="more-content" ' . $full_style_wrapper . '>' . $my_post_text . '...<span><a class="wff-less-link" style="display:none">' . $atts['read_less'] . '</a></span></p>';
} else {
$mytext = '<p class = "wff-post-text" ' . $limited_style_wrapper . '>' . $my_post_text . '</p>';
}
/*------------------------------------------------*/
if (isset($mysinglefeed->description)) {
if ($atts['link_target'] == 1) {
$build_link_title = '<p class = "wff-link-title" ' . $line_height_style . '><a class="wff-link-tab" target="_blank" href =' . $name_url . '>' . $name_var . '</a></p>';
} else {
$build_link_title = '<p class = "wff-link-title" ' . $line_height_style . '><a class="wff-link-tab" href =' . $name_url . '>' . $name_var . '</a></p>';
}
$mytext .= '<div class = "wff-shared-link-wrapper">' . $build_link_title . '<p class = "wff-post-description" ' . $line_height_style . '>' . $link_post_desc . '</p></div>';
}
//$mytext .= $build_post_desc_html ;
if ($atts['link_target'] == 1) {
$mytext .= '<div class = "wff-view-on-facebook"><a class="wff-link-tab" href = ' . $post_resource_link . ' target = "_blank">' . $atts['page_link_text'] . '</a></div>';
} else {
$mytext .= '<div class = "wff-view-on-facebook"><a class="wff-link-tab" href = ' . $post_resource_link . ' >' . $atts['page_link_text'] . '</a></div>';
}
return $mytext;
}
示例10: overview
<body>
<div id="header">
<div class="logo"></div>
<h1>Swaledale Squeeze</h1>
</div>
<div id="bottomContent">
<div class="navColumn">
<div class="overview">
<?php
overview();
?>
</div>
<?php
makeLinks(links());
?>
<div id="navBottom"></div>
</div>
<div class="contentColumn">
<?php
rhcontent();
?>
<div height='200'/>
<!-- PLEASE LEAVE THIS AT THE END OF YOUR LAST BOX -->
<h4><a href="http://www.aszx.net">web development</a> by <a href="http://www.bryantsmith.com">bryant smith</a> | <a href="http://www.quackit.com">web tutorials</a> | <a href="http://www.htmlcodes.me">html codes</a> | <a href="http://www.free-templates.me">free templates</a></h4>
<!-- PLEASE LEAVE THIS AT THE END OF YOUR LAST BOX -->
示例11: confirmReq
$ctab .= "</div>";
$size = UNIT;
$ctab .= "<form action='Add_Comment.php' method='POST' onsubmit='return confirmReq()' enctype='multipart/form-data' >\n\t\t\t\t\t<input type='file' name='file' >\n\t\t\t\t\t<button type='submit' name='submit' value='{$Cid}' style='background-color:inherit; border:0; cursor:pointer;' >\n\t\t\t\t\t\t<img src='img/replace.png' width='{$size}' height='{$size}' />\n\t\t\t\t\t</button>\n\t\t\t\t </form>\n\t\t\t\t ";
$ctab .= "</td>";
$ctab .= "</tr>";
} else {
$ctab .= "<tr>";
$ctab .= "<td colspan=7 align='center' >";
$size = UNIT;
$ctab .= "<form action='Add_Comment.php' method='POST' onsubmit='return confirmReq()' enctype='multipart/form-data' >\n\t\t\t\t\t<input type='file' name='file' >\n\t\t\t\t\t<button type='submit' name='submit' value='{$Cid}' style='background-color:inherit; border:0; cursor:pointer;' >\n\t\t\t\t\t\t<img src='img/add-img.png' width='{$size}' height='{$size}' />\n\t\t\t\t\t</button>\n\t\t\t\t </form>\n\t\t\t\t ";
$ctab .= "</td>";
$ctab .= "</tr>";
}
//comment
$ctab .= "<tr>";
$comment = makeLinks($com[$i]->comment);
$ctab .= "<td colspan=7 style='border-top:1px dotted black;' ><div class='edit' id='c-{$Cid}-comment'> {$comment} </div></td>";
$ctab .= "</tr>";
/*Comment table setup Done*/
$ctab .= "</table>";
$ctab .= "</div>";
}
/*New Comment*/
$ntab = "<div class='cList' ><form action='Add_Comment.php' method='POST' enctype='multipart/form-data' onsubmit='return confirmReq()' >";
$ntab .= "<table>";
//image
$ntab .= "<tr><td> Image: </td><td> <input type='file' name='file' > </td></tr>";
//comment
$ntab .= "<tr><td valign='top' > Comment: </td><td> <textarea name='comment' cols='70' rows='4' ></textarea> </td></tr>";
//rating
$ntab .= "<tr><td> Rating: </td><td> <select name='rating'>\n\t\t\t\t\t\t\t\t\t\t<option value='1' >1</option>\n\t\t\t\t\t\t\t\t\t\t<option value='2' >2</option>\n\t\t\t\t\t\t\t\t\t\t<option value='3' >3</option>\n\t\t\t\t\t\t\t\t\t\t<option value='4' >4</option>\n\t\t\t\t\t\t\t\t\t\t<option value='5' >5</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t </td></tr>";
示例12: makeLinks
$titleSpan = $template->getSection('TitleSpan');
$main = $template->getSection('Main');
$divDecoration = '';
$mainContent = $template->getSection('LoginForm');
$noLeftNav = $template->getSection('NoLeftNav');
$noRightNav = $template->getSection('NoRightNav');
$navHeader = $template->getSection('NavHeader');
$footer = $template->getSection('Footer');
$topNav = '';
$leftNav = '';
$rightNav = '';
$rightNavLinks = '';
$lowerScripts = $template->getSection('LogoLinkScript');
$pageTitleInfo = '';
$topNavLinks = makeLinks('top', makeTopLinks());
$leftNavLinks = makeLinks('left', makeLeftLinks());
$mediaType = ' media="screen"';
$mainTitle = 'Program O Login';
$FooterInfo = '<p>© 2011-2014 My Program-O<br /><a href="http://www.program-o.com">www.program-o.com</a></p>';
$headerTitle = '';
$pageTitle = 'My-Program O - Login';
$upperScripts = '';
$extraCSS = '';
//if we get to the login page and we are still actually logged in
//just destroy the session to prevent weirdness
if ($curPage == 'login' && !empty($_SESSION['poadmin']['logged_in'])) {
$_SESSION = array();
}
$_SESSION['poadmin']['curPage'] = $curPage;
$curPage != 'logout' || $curPage == 'login' ? include "{$curPage}.php" : false;
$bot_format_link = !empty($bot_format) ? "&format={$bot_format}" : '';
示例13: makeLinks
</head>
<body>
<table width="100%" cellpadding="5" cellspacing="0" margin="0">
<!-- change header color here -->
<tr>
<td colspan="3">
<h1 align="center"><?php
echo $config->banner;
?>
</h1>
<p>This theme means you didn't choose one! (default)
</td>
</tr>
<tr>
<!-- change left panel color here -->
<td width="175" valign="top">
<p align="center"><?php
echo $config->sidebar1;
?>
</p>
<?php
echo makeLinks($config->nav1, '<p align="center">', '</p>');
#link arrays are created in config_inc.php file
?>
</td>
<!-- change guts/identity area color here -->
<td valign="top">
<?php
echo showFeedback();
?>
<!-- end of header include file -->
示例14: makeLinks
<div id="header">
<h1><?php
echo $config->banner;
?>
</h1>
<p>You are now in the About Us Custom Header!</p>
</div>
<div id="navigation">
<ul id="navlist">
<?php
echo $config->sidebar1;
?>
<?php
echo makeLinks($config->nav1, '<li class="myclass">', '</li>');
#link arrays are created in config_inc.php file
?>
<li
<p><strong>A tiny service announcement.</strong><br />
Put tidbits of information or pictures in this small yet useful area. This area is part of this theme!
</p>
</li>
</ul>
</div>
<div id="sidebar">
<?php
echo $config->sidebar2;
?>
</div>
示例15: getContent
function getContent()
{
if (!is_numeric($_SESSION['login'])) {
$this->result = array("result" => "error", "content" => "Bitte neu Anmelden");
return false;
}
$benutzer = new Benutzer_Table($_SESSION['login']);
$chat = new Chat_Table();
$content = "";
$data = $chat->getChat();
$data = array_reverse($data);
function getRTime($date)
{
$diff = time() - $date;
if ($diff <= 10) {
return _("Vor wenigen Sekunden");
} elseif ($diff < 60) {
return _("Vor weniger als einer Minute");
}
$diff = round($diff / 60);
if ($diff == 1) {
return _("Vor etwa einer Minute");
} elseif ($diff < 60) {
return sprintf(_("Vor etwa %s Minuten"), $diff);
}
$diff = round($diff / 60);
if ($diff == 1) {
return _("Vor etwa einer Stunde");
} elseif ($diff < 24) {
return sprintf(_("Vor etwa %s Stunden"), $diff);
}
$diff = round($diff / 24);
if ($diff == 1) {
return _("Vor etwa einem Tag");
} elseif ($diff < 7) {
return sprintf(_("Vor etwa %s Tagen"), $diff);
}
$diff = round($diff / 7);
if ($diff == 1) {
return _("Vor etwa einer Woche");
} elseif ($diff < 4) {
return sprintf(_("Vor etwa %s Wochen"), $diff);
}
return sprintf(_("Am %s um %s Uhr"), date("d.m.Y", $date), date("H:i", $date));
}
foreach ($data as $row) {
$content .= "<div class=\"chatcontainer\">\r\n <img class=\"chatimg\" src=\"/public/img/chatuser.png\" alt=\"\"/> \r\n <a href=\"/Benutzer/Profil?user=" . $row->nick . "\">" . $row->nick . "</a>\r\n <br/>\r\n <span class=\"chattime\">" . getRTime($row->datum) . "</span>\r\n <p class=\"bubble top\">" . $row->text . "<p/>\r\n </div>\n";
}
$users = "";
foreach ($benutzer->getActive() as $user) {
$users .= "<img class=\"chatimg\" src=\"/public/img/chatuser.png\" alt=\"\"/> <a href=\"/Benutzer/Profil?user=" . $user->nick . "\">" . $user->nick . "</a><br/>";
}
function makeLinks($content)
{
$content = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\\+.~#?&//=]+)', '<a href="\\1" target="_blank">\\1</a>', $content);
$content = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\\+.~#?&//=]+)', '\\1<a href="http://\\2" target="_blank">\\2</a>', $content);
$content = eregi_replace('([_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,3})', '<a href="mailto:\\1">\\1</a>', $content);
return $content;
}
$content = str_replace("[biggrin]", "<img alt=\"\" src=\"/public/img/smilies/icon_biggrin.png\" alt=\"biggrin\" title=\"biggrin\"/>", $content);
$content = str_replace("[confused]", "<img alt=\"\" src=\"/public/img/smilies/icon_confused.png\" alt=\"confused\" title=\"confused\"/>", $content);
$content = str_replace("[cool]", "<img alt=\"\" src=\"/public/img/smilies/icon_cool.png\" alt=\"cool\" title=\"cool\"/>", $content);
$content = str_replace("[huh]", "<img alt=\"\" src=\"/public/img/smilies/icon_huh.png\" alt=\"huh\" title=\"huh\"/>", $content);
$content = str_replace("[mad]", "<img alt=\"\" src=\"/public/img/smilies/icon_mad.png\" alt=\"mad\" title=\"mad\"/>", $content);
$content = str_replace("[neutral]", "<img alt=\"\" src=\"/public/img/smilies/icon_neutral.png\" alt=\"neutral\" title=\"neutral\"/>", $content);
$content = str_replace("[sad]", "<img alt=\"\" src=\"/public/img/smilies/icon_sad.png\" alt=\"sad\" title=\"sad\"/>", $content);
$content = str_replace("[smile]", "<img alt=\"\" src=\"/public/img/smilies/icon_smile.png\" alt=\"smile\" title=\"smile\"/>", $content);
$content = str_replace("[surprised]", "<img alt=\"\" src=\"/public/img/smilies/icon_money.png\" alt=\"money\" title=\"money\"/>", $content);
$content = str_replace("[wink]", "<img alt=\"\" src=\"/public/img/smilies/icon_wink.png\" alt=\"wink\" title=\"wink\"/>", $content);
$content = str_replace("[tongue]", "<img alt=\"\" src=\"/public/img/smilies/icon_tongue.png\" alt=\"tongue\" title=\"tongue\"/>", $content);
$content = str_replace("[kiss]", "<img alt=\"\" src=\"/public/img/smilies/icon_kiss.png\" alt=\"kiss\" title=\"kiss\"/>", $content);
$this->result = array("result" => "done", "content" => makeLinks($content), "user" => $users);
}