本文整理汇总了PHP中base::insert_links方法的典型用法代码示例。如果您正苦于以下问题:PHP base::insert_links方法的具体用法?PHP base::insert_links怎么用?PHP base::insert_links使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base
的用法示例。
在下文中一共展示了base::insert_links方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: trim
} else {
$color = '#f1f1f1';
}
$username = $base_instance->get_username($userid_message);
$text = trim($text);
$text = nl2br($text);
if ($userid == _ADMIN_USERID && $followup != 0) {
$delete_link = ' <a href="' . $_SERVER['PHP_SELF'] . '?del_message=' . $ID . '&id=' . $id . '"><font color="#ff0000">Del</font></a>';
} else {
if ($userid == _ADMIN_USERID && $followup == 0) {
$delete_link = ' <a href="show-forum.php?del_thread=' . $ID . '"><font color="#ff0000">Del</font></a>';
} else {
$delete_link = '';
}
}
$text = $base_instance->insert_links($text);
$all_text .= '<table bgcolor="' . $color . '" width="100%" cellspacing=0><tr><td>from <a href="show-user.php?username=' . $username . '">' . $username . '</a> <font size=1>' . $datetime_converted . '</font>' . $delete_link . '<br>' . $text . '</font></td></tr><tr bgcolor="#ffffff"><td height=3></td></tr></table>';
if ($index == 1) {
$all_text .= _BANNER_AD_FORUM;
}
}
$datetime = date('Y-m-d H:i:s');
$all_text .= '<center><a href="javascript:history.go(-1)">[Go Back]</a></center><br>
<strong>Add Message:</strong>
<form action="add-forum-message.php" method="POST">
<input type="Hidden" name="datetime" value="' . $datetime . '">
<input type="Hidden" name="followup" value="' . $id . '">
<textarea rows=3 cols=90 name="text" wrap></textarea><br>
<input type="SUBMIT" value="Submit Reply" name="save"></form>';
$content_array[1] = array('MAIN' => "{$all_text}", 'NO_EDIT_AND_DELETE' => 1);
示例2:
if (_SHORT_URLS == 1) {
$url_blog = _HOMEPAGE . '/blog-' . $username;
} else {
$url_blog = _HOMEPAGE . '/show-blog-public.php?username=' . $username;
}
$categories .= '<li><a href="' . $url_blog . '">Show all</a></li>';
#
$search_form = '<form action="show-blog-public.php" method="post">
<input type="hidden" name="username" value="' . $username . '">
<font size="1">Blog Search:</font><br>
<input type="text" name="text_search" size="10" onFocus="this.select()">
<input type="submit" value="Go"></form><br><br>';
$rss_feed = '<a href="show-blog-public-rss.php?user=' . $userid . '"><img src="' . _HOMEPAGE . '/pics/rss.jpg" border="0" alt="RSS Feed"> RSS Feed</a><p>';
#
$about_me = convert_square_bracket($about_me);
$about_me = nl2br($about_me);
if (!empty($text_search)) {
$text = preg_replace("/({$text_search})/i", "<b>\\1</b>", $text);
}
$about_me = $base_instance->insert_links($about_me);
$main = '<p>' . $about_me;
if (_SHORT_URLS == 1) {
$about_me_link = _HOMEPAGE . '/user-' . $username;
} else {
$about_me_link = _HOMEPAGE . '/show-about-me.php?username=' . $username;
}
$head = '<meta name="robots" content="index,follow">
<link rel="alternate" type="application/rss+xml" title="Blog of ' . $username . '" href="show-blog-public-rss.php?user=' . $userid . '">';
$scrollbar = '';
$title = 'About me - Blog of ' . $username;
require 'template-blog.html';