本文整理汇总了PHP中mswSpecialChars函数的典型用法代码示例。如果您正苦于以下问题:PHP mswSpecialChars函数的具体用法?PHP mswSpecialChars怎么用?PHP mswSpecialChars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mswSpecialChars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
public function display()
{
global $page;
$html = '';
// How many pages?
$this->num_pages = ceil($this->total / PER_PAGE);
// If pages less than or equal to 1, display nothing..
if ($this->num_pages <= 1) {
return $html;
}
// Build pages..
$current_page = $page;
$begin = $current_page - $this->split;
$end = $current_page + $this->split;
if ($begin < 1) {
$begin = 1;
$end = $this->split * 2;
}
if ($end > $this->num_pages) {
$end = $this->num_pages;
$begin = $end - $this->split * 2;
$begin++;
if ($begin < 1) {
$begin = 1;
}
}
if ($current_page != 1) {
$html .= '<li><a title="' . mswSpecialChars($this->text[0]) . '" href="' . $this->query . '1" rel="nofollow">' . $this->text[0] . '</a></li>' . mswDefineNewline();
$html .= '<li><a title="' . mswSpecialChars($this->text[1]) . '" href="' . $this->query . ($current_page - 1) . '" rel="nofollow">' . $this->text[1] . '</a></li>' . mswDefineNewline();
} else {
$html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[0] . '</a></li>' . mswDefineNewline();
$html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[1] . '</a></li>' . mswDefineNewline();
}
for ($i = $begin; $i <= $end; $i++) {
if ($i != $current_page) {
$html .= '<li><a title="' . $i . '" href="' . $this->query . $i . '" rel="nofollow">' . $i . '</a></li>' . mswDefineNewline();
} else {
$html .= '<li class="active"><a href="#" rel="nofollow">' . $i . '</a></li>' . mswDefineNewline();
}
}
if ($current_page != $this->num_pages) {
$html .= '<li><a title="' . mswSpecialChars($this->text[2]) . '" href="' . $this->query . ($current_page + 1) . '" rel="nofollow">' . $this->text[2] . '</a></li>' . mswDefineNewline();
$html .= '<li><a title="' . mswSpecialChars($this->text[3]) . '" href="' . $this->query . $this->num_pages . '" rel="nofollow">' . $this->text[3] . '</a></li>' . mswDefineNewline();
} else {
$html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[2] . '</a></li>' . mswDefineNewline();
$html .= '<li class="disabled"><a href="#" rel="nofollow">' . $this->text[3] . '</a></li>' . mswDefineNewline();
}
return '<ul>' . mswDefineNewline() . trim($html) . mswDefineNewline() . '</ul>';
}
示例2: array
if ($_POST['newpass'] != $_POST['newpass2']) {
$json = array('status' => 'err', 'field' => 'newpass', 'tab' => 'three', 'msg' => $msg_public_profile12);
} else {
if (strlen($_POST['newpass']) < $SETTINGS->minPassValue) {
$json = array('status' => 'err', 'field' => 'newpass', 'tab' => 'three', 'msg' => str_replace('{min}', $SETTINGS->minPassValue, $msg_public_profile13));
} else {
$newPassConfirmed = md5(SECRET_KEY . $_POST['newpass']);
}
}
}
}
}
// If ok, update..
if (!isset($json['status'])) {
// Update profile..
$rows = $MSACC->ms_update(array('id' => $LI_ACC->id, 'name' => isset($_POST['name']) && $_POST['name'] ? substr($_POST['name'], 0, 200) : mswSpecialChars($LI_ACC->name), 'email' => isset($newEmailConfirmed) ? $newEmailConfirmed : $LI_ACC->email, 'pass' => isset($newPassConfirmed) ? $newPassConfirmed : $LI_ACC->userPass, 'timezone' => isset($_POST['timezone']) && $_POST['timezone'] != '0' ? $_POST['timezone'] : $LI_ACC->timezone, 'language' => isset($_POST['language']) ? $_POST['language'] : $LI_ACC->language));
// Send email notification if something got updated..
if ($rows > 0 && $SETTINGS->accProfNotify == 'yes') {
// Send mail..
$MSMAIL->addTag('{NAME}', $LI_ACC->name);
// Check template..
if ($LI_ACC->language && file_exists(PATH . 'content/language/' . $LI_ACC->language . '/mail-templates/profile-updated.txt')) {
$mailT = PATH . 'content/language/' . $LI_ACC->language . '/mail-templates/profile-updated.txt';
$pLang = $LI_ACC->language;
} else {
$mailT = PATH . 'content/language/' . $SETTINGS->language . '/mail-templates/profile-updated.txt';
}
$MSMAIL->sendMSMail(array('from_email' => $SETTINGS->email, 'from_name' => $SETTINGS->website, 'to_email' => $LI_ACC->email, 'to_name' => $LI_ACC->name, 'subject' => str_replace(array('{website}'), array($SETTINGS->website), $emailSubjects['profile-update']), 'replyto' => array('name' => $SETTINGS->website, 'email' => $SETTINGS->replyto ? $SETTINGS->replyto : $SETTINGS->email), 'template' => $mailT, 'language' => isset($pLang) ? $pLang : $SETTINGS->language));
}
// We are done..
$json = array('status' => 'ok', 'field' => 'msg', 'msg' => mswActionMessage($msg_public_profile2));
示例3: mswCleanData
?>
"><img src="http://localhost/maian_support/helpdesk/admin/templates/images/ost-logo.png" width="232" height="66"><span class="first">qweqwe<?php
echo mswCleanData($msg_script . " - " . $msg_adheader);
?>
(v<?php
echo $SETTINGS->softwareVersion;
?>
- Beta <?php
echo mswGetBetaVersion();
?>
)</span></a>
<?php
} else {
?>
<a class="brand" href="index.php" title="<?php
echo mswSpecialChars($msg_script . " - " . $msg_adheader);
?>
"><img src="http://localhost/maian_support/helpdesk/admin/templates/images/ost-logo.png" width="232" height="66"><span class="first"><?php
echo mswCleanData($msg_script . " - " . $msg_adheader);
?>
</span></a>
<?php
}
?>
</div>
</div>
<div class="sidebar-nav">
<?php
// Navigation menu..
示例4: mswSpecialChars
"><i class="icon-pencil"></i></a> <a href="?p=view-ticket&id=<?php
echo $TICKETS->ticketID;
?>
&editNotes=yes" title="<?php
echo mswSpecialChars($msg_viewticket72);
?>
" class="nyroModal"><i class="icon-file-text"></i></a></span> <i class="icon-file-alt"></i> <?php
echo $MSYS->department($TICKETS->department, $msg_script30);
?>
</span>
<?php
}
?>
</td>
<td><?php
echo mswSpecialChars($TICKETS->ticketName);
?>
<span class="ticketDate"><?php
echo $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->dateformat);
?>
@ <?php
echo $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->timeformat);
?>
</span>
</td>
<td>
<?php
if ($last[0] != '0') {
echo mswCleanData($last[0]);
?>
<span class="ticketDate"><?php
示例5: mysql_query
<div id="cb">
<?php
// If global log in no filter necessary..
$q_dept = mysql_query("SELECT * FROM `" . DB_PREFIX . "departments` " . mswSQLDepartmentFilter($mswDeptFilterAccess, 'WHERE') . " ORDER BY `name`") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
while ($DEPT = mysql_fetch_object($q_dept)) {
?>
<label class="checkbox">
<input type="checkbox" name="dept[]"<?php
echo isset($deptArr) && in_array($DEPT->id, $deptArr) ? ' checked="checked" ' : ' ';
?>
value="<?php
echo $DEPT->id;
?>
"> <?php
echo mswSpecialChars($DEPT->name);
?>
</label>
<input type="hidden" name="deptall[]" value="<?php
echo $DEPT->id;
?>
">
<?php
}
?>
</div>
</div>
</div>
</div>
<div class="btn-toolbar" style="margin-top:0;padding-top:0">
示例6: htmlWrap
public function htmlWrap($tmp)
{
global $MSPARSER;
$msg = $this->convertTags($this->template($tmp['template']));
$parse = explode('<-{separater}->', $msg);
// Check for 3 slots, ie: 2 separators..
if (count($parse) == 3) {
$head = trim($parse[0]);
$cont = trim($parse[1]);
$foot = trim($parse[2]);
} else {
$head = mswCleanData($this->config['website']);
$cont = str_replace('<-{separater}->', '', trim($msg));
$foot = mswCleanData($this->config['scriptpath']);
}
// Auto parse hyperlinks..
$head = $this->convertChar($MSPARSER->mswAutoLinkParser($head));
$cont = $this->convertChar($MSPARSER->mswAutoLinkParser($cont));
$foot = $this->convertChar($MSPARSER->mswAutoLinkParser($foot));
// Auto parse line breaks..
$head = mswNL2BR($head);
$cont = mswNL2BR($cont);
$foot = mswNL2BR($foot);
// Parse html message with wrapper..
$find = array('{CHARSET}', '{TITLE}', '{HEADER}', '{CONTENT}', '{FOOTER}');
$repl = array($this->charset, mswSpecialChars($this->config['website']), $head, $cont, $foot . $this->appendFooterToEmails());
// Language override..
if (isset($tmp['language'])) {
$this->config['language'] = $tmp['language'];
}
$html = str_replace($find, $repl, file_get_contents(SYS_ROOT_PATH . 'content/language/' . $this->config['language'] . '/mail-templates/html-wrapper.html'));
return $html;
}
示例7: Savant3
Script: Maian Support
Written by: David Ian Bennett
E-Mail: support@maianscriptworld.co.uk
Software Website: http://www.maiansupport.com
Script Portal: http://www.maianscriptworld.co.uk
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This File: header.php
Description: Header Parsing File
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
if (!defined('PARENT') || !defined('MS_PERMISSIONS')) {
$HEADERS->err404();
}
$tpl = new Savant3();
$tpl->assign('CHARSET', $msg_charset);
$tpl->assign('LANG', $html_lang);
$tpl->assign('DIR', $lang_dir);
$tpl->assign('TITLE', ($title ? mswSpecialChars($title) . ': ' : '') . str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header) . (LICENCE_VER != 'unlocked' ? ' (' . $msg_script18 . ' ' . $msg_script . ')' : '') . (LICENCE_VER != 'unlocked' ? ' - Free Version' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : ''));
$tpl->assign('TOP_BAR_TITLE', str_replace('{website}', mswSpecialChars($SETTINGS->website), $msg_header));
$tpl->assign('SCRIPTPATH', $SETTINGS->scriptpath);
$tpl->assign('LOGGED_IN', MS_PERMISSIONS != 'guest' ? 'yes' : 'no');
$tpl->assign('TXT', array($msg_header8, $msg_main2, $msg_header3, $msg_header11, $msg_header12, $msg_header2, MS_PERMISSIONS != 'guest' && isset($LI_ACC->name) ? str_replace('{name}', mswSpecialChars($LI_ACC->name), $msg_header6) : '', $msg_header13, $msg_header14, $msg_header15, $msg_header16, $msg_header4));
$tpl->assign('JS_CSS_BLOCK', $MSYS->jsCSSBlockLoader($ms_js_css_loader, $SETTINGS->scriptpath));
$tpl->assign('FAQ_LINKS', $SETTINGS->kbase == 'yes' ? $FAQ->menu() : '');
// Global vars..
include PATH . 'control/lib/global.php';
// Load template..
$tpl->display('content/' . MS_TEMPLATE_SET . '/header.tpl.php');
示例8: in_array
?>
>
<input type="checkbox" name="assigned[]" <?php
echo $checked;
?>
<?php
echo $class;
?>
value="<?php
echo $USERS->id;
?>
"<?php
echo in_array($USERS->id, $boomUsers) ? ' checked="checked"' : '';
?>
> <?php
echo mswCleanData(mswSpecialChars($USERS->name) . ' <span class="email">(' . $USERS->email . ')</span> ' . (in_array('users', $userAccess) || $MSTEAM->id == '1' ? '<a href="?p=team&edit=' . $USERS->id . '" title="' . mswSpecialChars($msg_user14) . '"><i class="icon-pencil"></i></a>' : ''));
?>
</label>
<?php
}
?>
</div>
</div>
<div class="btn-toolbar" style="margin-top:0;padding-top:0;text-align:center">
<button class="btn btn-primary" type="button" onclick="ms_updateAssignedUsers('<?php
echo $_GET['id'];
?>
')"><i class="icon-ok"></i> <?php
echo $msg_viewticket121;
?>
</button>
示例9: isset
?>
<!DOCTYPE html>
<html lang="<?php
echo isset($html_lang) ? $html_lang : 'en';
?>
" dir="<?php
echo $lang_dir;
?>
">
<head>
<meta charset="<?php
echo $msg_charset;
?>
">
<title><?php
echo ($title ? mswSpecialChars($title) . ': ' : '') . $msg_script . ' - ' . mswCleanData($msg_adheader) . (LICENCE_VER != 'unlocked' ? ' (Free Version)' : '') . (mswCheckBetaVersion() == 'yes' ? ' - BETA VERSION' : '');
?>
</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Global CSS -->
<link rel="stylesheet" href="templates/css/bootstrap.css" type="text/css">
<link rel="stylesheet" href="templates/css/bootstrap-responsive.css" type="text/css">
<link rel="stylesheet" href="templates/css/theme.css" type="text/css">
<link rel="stylesheet" href="templates/css/font-awesome.css">
<script src="templates/js/jquery.js" type="text/javascript"></script>
<link rel="stylesheet" href="templates/css/ms.css" type="text/css">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="templates/js/html5.js"></script>
示例10: strlen
?>
<div class="row-fluid homeTicketWrapper<?php
echo ++$lp == $T4Rows ? ' nobottomborder' : '';
?>
">
<a href="?p=view-dispute&id=<?php
echo $TICKETS->ticketID;
?>
">
<?php
echo $cutOff > 0 && strlen($TICKETS->subject) > $cutOff ? substr(mswSpecialChars($TICKETS->subject), 0, $cutOff - 2) . '..' : mswSpecialChars($TICKETS->subject);
?>
</a>
<span class="bar">
<?php
echo str_replace(array('{name}', '{priority}', '{date}', '{ticket}', '{count}'), array(mswSpecialChars($TICKETS->ticketName), mswCleanData($TICKETS->levelName), $MSDT->mswDateTimeDisplay($TICKETS->ticketStamp, $SETTINGS->dateformat), mswTicketNumber($TICKETS->ticketID), $TICKETS->disputeCount + 1), $msg_home45);
?>
</span>
</div>
<?php
}
} else {
?>
<p class="nothing_to_see smalltxt"><?php
echo $msg_home41;
?>
</p>
<?php
}
?>
</div>
示例11: mswSpecialChars
<div>
<span class="attachBox"><input type="file" class="input-small" name="attachment[]"></span>
</div>
<?php
if (LICENCE_VER == 'unlocked') {
?>
<p class="attachlinks">
<button class="btn" type="button" title="<?php
echo mswSpecialChars($msg_newticket37);
?>
" onclick="ms_attachBox('add','<?php
echo ADMIN_ATTACH_BOX_OVERRIDE;
?>
')">+</button>
<button class="btn" type="button" title="<?php
echo mswSpecialChars($msg_newticket38);
?>
" onclick="ms_attachBox('remove')">-</button>
</p>
<?php
}
?>
</div>
</div>
<?php
}
if ($countOfOtherUsers > 0) {
?>
<div class="tab-pane fade" id="five">
<div class="well">
示例12: echo
<?php
if (isset($_GET['msg'])) {
?>
<li class="active"><a href="?p=mailbox&msg=<?php
echo (int) $_GET['msg'];
?>
" class="mailBoxMsg"><i class="icon-search"></i> <?php
echo $msg_mailbox7;
?>
</a></li>
<?php
}
if ($keys) {
?>
<li class="active"><a href="?p=mailbox&keys=<?php
echo urlencode(mswSpecialChars($keys));
?>
" class="mailBoxMsg"><i class="icon-search"></i> <?php
echo $msg_mailbox32;
?>
</a></li>
<?php
}
?>
<li<?php
echo !isset($_GET['f']) && !isset($_GET['msg']) && !isset($_GET['new']) && $keys == '' ? ' class="active"' : '';
?>
><a href="?p=mailbox"><i class="icon-inbox"></i> <?php
echo $msg_mailbox;
?>
</a></li>
示例13: str_replace
$atID = $MSTICKET->addAttachment(array('temp' => $a_temp, 'name' => $a_name, 'size' => $a_size, 'mime' => $a_mime, 'tID' => $T->id, 'rID' => $replyID, 'dept' => $T->department, 'incr' => $i));
$attString[] = $SETTINGS->scriptpath . '/?attachment=' . $atID;
}
}
}
// History log..
$MSTICKET->historyLog($T->id, str_replace(array('{visitor}', '{id}'), array(mswSpecialChars($LI_ACC->name), $replyID), $msg_ticket_history['vis-reply-add']));
// Dispute ticket or standard operations..
switch ($T->isDisputed) {
case 'no':
// Was ticket closed..
if (isset($_POST['close'])) {
$closeRrows = $MSTICKET->openclose($T->id, 'close');
// History if affected rows..
if ($closeRrows > 0) {
$MSTICKET->historyLog($T->id, str_replace('{user}', mswSpecialChars($LI_ACC->name), $msg_ticket_history['vis-ticket-close']));
// Should we switch emails off?
if ($SETTINGS->closenotify == 'yes') {
define('EMAILS_OFF', 1);
}
}
}
break;
default:
break;
}
// Mail tags..
if (!defined('EMAILS_OFF')) {
$MSMAIL->addTag('{ACC_NAME}', $LI_ACC->name);
$MSMAIL->addTag('{TICKET}', mswTicketNumber($T->id));
$MSMAIL->addTag('{SUBJECT}', $T->subject);
示例14: mswSpecialChars
</label>
<input type="password" id="pass" name="pass" class="span12" value="" onkeyup="jQuery('#e_pass').hide('slow')" onkeypress="if(getKeyCode(event)==13){sysLoginEvent()}">
<?php
// Show password error if applicable..
if (isset($P_ERROR)) {
?>
<div class="alert alert-error" style="margin-top:0" id="e_pass">
<a class="close" data-dismiss="alert">×</a> <?php
echo $msg_login4;
?>
</div>
<?php
}
?>
<a href="#" onclick="sysLoginEvent();return false" class="btn btn-primary pull-right" title="<?php
echo mswSpecialChars($msg_login5);
?>
"><?php
echo mswCleanData($msg_login5);
?>
</a>
<?php
// Is cookie set?
if (COOKIE_NAME) {
?>
<label class="remember-me"><input type="checkbox" name="cookie" value="1"> <?php
echo $msg_login3;
?>
</label>
<?php
}
示例15: mswSpecialChars
<button class="btn" type="button" title="<?php
echo mswSpecialChars($this->TXT[19][2]);
?>
" onclick="ms_addTags('-','url','<?php
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][6]));
?>
','comments')"><i class="icon-link"></i></button>
<button class="btn" type="button" title="<?php
echo mswSpecialChars($this->TXT[19][1]);
?>
" onclick="ms_addTags('-','email','<?php
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][5]));
?>
','comments')"><i class="icon-envelope-alt"></i></button>
<button class="btn" type="button" title="<?php
echo mswSpecialChars($this->TXT[19][0]);
?>
" onclick="ms_addTags('-','img','<?php
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][4]));
?>
','comments')"><i class="icon-picture"></i></button>
<button class="btn" type="button" title="YouTube" onclick="ms_addTags('-','youtube','<?php
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][7]));
?>
','comments')"><i class="icon-youtube"></i></button>
<button class="btn" type="button" title="Vimeo" onclick="ms_addTags('-','vimeo','<?php
echo mswSpecialChars(str_replace("'", "\\'", $this->TXT[19][8]));
?>
','comments')"><i class="icon-play"></i></button>
<button class="btn" type="button" title="?" onclick="window.open('index.php?bbcode=show','_blank')"><i class="icon-question"></i></button>
</div>