当前位置: 首页>>代码示例>>PHP>>正文


PHP base::addSpecials方法代码示例

本文整理汇总了PHP中base::addSpecials方法的典型用法代码示例。如果您正苦于以下问题:PHP base::addSpecials方法的具体用法?PHP base::addSpecials怎么用?PHP base::addSpecials使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在base的用法示例。


在下文中一共展示了base::addSpecials方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

                                
                        <?php 
}
?>
            
		<img class="widescroll-top" src="../../img/scroll/backdrop_765_top.gif" alt="" width="765" height="50" />
		<div class="widescroll">
                    
			<div class="widescroll-bgimg">
				<div class="widescroll-content">
                                    <div style="text-align: justify;color: #402706">
                                        <h1><?php 
echo $story[0]['title'];
?>
</h1>
                                        <?php 
echo $base->addSpecials(stripslashes($story[0]['content']), '../../img/varrock/lores/');
?>
                                    </div>
				</div>
			</div>
		</div>
		<img class="widescroll-bottom" src="../../img/scroll/backdrop_765_bottom.gif" alt="" width="765" height="50" />	

		<div class="tandc"><?php 
echo $data['wb_foot'];
?>
</div>
</body>
</html>
开发者ID:Vubot,项目名称:RuneScapeCommunityScript,代码行数:29,代码来源:story.php

示例2: brackets

$rank = $user->getRank($username);
if ($rank < 4) {
    $base->redirect('../index.php');
}
if (!isset($_POST['title']) || !isset($_POST['content'])) {
    $content = '
        <form action="addstory.php" method="POST">
        <table>
        <tr><td>Notice</td><td>Put square brackets ([]) around a letter to make a fancy letter icon. E.G: [s]</td></tr>
        <tr><td>Title</td><td><input type="text" class="button" name="title" maxlength="50"></td></tr>
        <tr><td>Content</td><td><textarea name="content" class="button" cols="60" rows="35"></textarea></td></tr>
        <tr><td>Done?</td><td><input type="submit" class="button" value="Add"> <input type="submit" name="preview" class="button" value="Preview"></td></tr>
        </table>
        </form>';
} elseif (isset($_POST['preview'])) {
    $content = '<center><input type="button" class="button" value="Back" onclick="goBack()" /></center><br/>' . $base->addSpecials(stripslashes(nl2br($_POST['content'])), '../img/varrock/lores/');
} else {
    //insert the new story
    $database->processQuery("INSERT INTO `stories` VALUES (null, ?, ?)", array($_POST['title'], nl2br($_POST['content'])), false);
    //log it
    $base->appendToFile('../forums/logs.txt', array($username . ' added a new story called ' . $_POST['title']));
    $base->redirect('../stories/lores/story.php?id=' . $database->getInsertId());
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:IE>
<head>
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
开发者ID:Vubot,项目名称:RuneScapeCommunityScript,代码行数:31,代码来源:addstory.php


注:本文中的base::addSpecials方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。