本文整理汇总了PHP中new_addslashes函数的典型用法代码示例。如果您正苦于以下问题:PHP new_addslashes函数的具体用法?PHP new_addslashes怎么用?PHP new_addslashes使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了new_addslashes函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: add
function add()
{
if ($_POST['dosubmit']) {
$siteid = intval($_POST['siteid']) ? intval($_POST['siteid']) : showmessage(L('parameter_error'), HTTP_REFERER);
if ($this->db->get_one(array('siteid' => $siteid))) {
showmessage(L('wap_add_samesite_error'), HTTP_REFERER);
}
$sitename = trim(new_addslashes($_POST['sitename']));
$logo = trim($_POST['logo']);
$domain = trim($_POST['domain']);
$setting = array2string($_POST['setting']);
$return_id = $this->db->insert(array('siteid' => $siteid, 'sitename' => $sitename, 'logo' => $logo, 'domain' => $domain, 'setting' => $setting), '1');
$this->wap_site_cache();
showmessage(L('operation_success'), '', '', 'add');
} else {
$sitelists = array();
$current_siteid = get_siteid();
$sitelists = $this->sites->get_list();
if ($_SESSION['roleid'] == '1') {
foreach ($sitelists as $key => $v) {
$sitelist[$key] = $v['name'];
}
} else {
$sitelist[$current_siteid] = $sitelists[$current_siteid]['name'];
}
$show_header = true;
include $this->admin_tpl('m_add');
}
}
开发者ID:ahmatjan,项目名称:huluphp,代码行数:29,代码来源:wap_admin.php
示例2: __construct
public function __construct()
{
if (!get_magic_quotes_gpc()) {
$_POST = new_addslashes($_POST);
$_GET = new_addslashes($_GET);
$_REQUEST = new_addslashes($_REQUEST);
$_COOKIE = new_addslashes($_COOKIE);
}
$this->route_config = pc_base::load_config('route', SITE_URL) ? pc_base::load_config('route', SITE_URL) : pc_base::load_config('route', 'default');
if (isset($this->route_config['data']['POST']) && is_array($this->route_config['data']['POST'])) {
foreach ($this->route_config['data']['POST'] as $_key => $_value) {
if (!isset($_POST[$_key])) {
$_POST[$_key] = $_value;
}
}
}
if (isset($this->route_config['data']['GET']) && is_array($this->route_config['data']['GET'])) {
foreach ($this->route_config['data']['GET'] as $_key => $_value) {
if (!isset($_GET[$_key])) {
$_GET[$_key] = $_value;
}
}
}
if (isset($_GET['page'])) {
$_GET['page'] = max(intval($_GET['page']), 1);
}
return true;
}
开发者ID:zhouzhouxs,项目名称:Progect,代码行数:28,代码来源:param.class.php
示例3: EditConfig
function EditConfig($file = '', $name = '', $value = '', $daxiao = 'xiao')
{
static $content = array();
if (!isset($content[$file])) {
$content[$file] = file_get_contents(G_CONFIG . $file . '.inc.php');
if (!is_writable(G_CONFIG . $file . '.inc.php')) {
_message('Please chmod "' . $file . '" to 0777 !');
}
}
if (empty($name)) {
return false;
}
if ($daxiao == 'xiao') {
$value = strtolower(new_addslashes($value));
}
if ($daxiao == 'da') {
$value = strtoupper(new_addslashes($value));
}
if ($daxiao == 'no') {
$value = new_addslashes($value);
}
$pat = "/\\'{$name}\\'\\s*=>\\s*([']?)[^']*([']?)(\\s*),/is";
$content[$file] = preg_replace($pat, "'{$name}' => \${1}" . $value . "\${2}\${3},", $content[$file]);
file_put_contents(G_CONFIG . $file . '.inc.php', $content[$file]);
}
开发者ID:king3388,项目名称:king,代码行数:25,代码来源:global.fun.php
示例4: add
public function add()
{
if (isset($_POST['dosubmit'])) {
$_POST['link']['addtime'] = SYS_TIME;
$_POST['link']['siteid'] = $this->get_siteid();
if (empty($_POST['link']['name'])) {
showmessage(L('sitename_noempty'), HTTP_REFERER);
} else {
$_POST['link']['name'] = safe_replace($_POST['link']['name']);
}
if ($_POST['link']['logo']) {
$_POST['link']['logo'] = safe_replace($_POST['link']['logo']);
}
$data = new_addslashes($_POST['link']);
$linkid = $this->db->insert($data, true);
if (!$linkid) {
return FALSE;
}
$siteid = $this->get_siteid();
//更新附件状态
if (pc_base::load_config('system', 'attachment_stat') & $_POST['link']['logo']) {
$this->attachment_db = pc_base::load_model('attachment_model');
$this->attachment_db->api_update($_POST['link']['logo'], 'link-' . $linkid, 1);
}
showmessage(L('operation_success'), HTTP_REFERER, '', 'add');
} else {
$show_validator = $show_scroll = $show_header = true;
pc_base::load_sys_class('form', '', 0);
$siteid = $this->get_siteid();
$types = $this->db2->get_types($siteid);
//print_r($types);exit;
include $this->admin_tpl('link_add');
}
}
开发者ID:ahmatjan,项目名称:huluphp,代码行数:34,代码来源:link.php
示例5: _initialize
function _initialize()
{
//参数转义
new_addslashes($_POST);
new_addslashes($_GET);
//设置心情Action的数据处理层
$this->name = $this->my_name;
}
开发者ID:wangping1987,项目名称:dhfriendluck,代码行数:8,代码来源:IndexAction.class.php
示例6: _initialize
public function _initialize()
{
//参数转义
new_addslashes($_POST);
new_addslashes($_GET);
$_POST = $this->__filterLabel($_POST);
parent::_initialize();
}
开发者ID:wangping1987,项目名称:dhfriendluck,代码行数:8,代码来源:InfoAction.class.php
示例7: _initialize
/**
* __initialize
* 初始化
* @access public
* @return void
*/
public function _initialize()
{
//参数转义
new_addslashes($_POST);
new_addslashes($_GET);
//设置心情Action的数据处理层
$this->blog = D('Blog');
}
开发者ID:wangping1987,项目名称:dhfriendluck,代码行数:14,代码来源:ActiveAction.class.php
示例8: _initialize
/**
* __initialize
* 初始化
* @access public
* @return void
*/
public function _initialize()
{
//参数转义
new_addslashes($_POST);
new_addslashes($_GET);
//设置心情Action的数据处理层
$this->event = D('Event');
$this->event->setApi($this->api);
}
开发者ID:wangping1987,项目名称:dhfriendluck,代码行数:15,代码来源:IndexAction.class.php
示例9: new_addslashes
/**
* 返回经addslashes处理过的字符串或数组
* @param $string 需要处理的字符串或数组
* @return mixed
*/
function new_addslashes($string)
{
if (!is_array($string)) {
return addslashes($string);
}
foreach ($string as $key => $val) {
$string[$key] = new_addslashes($val);
}
return $string;
}
开发者ID:hw18708118867,项目名称:htmlmoban,代码行数:15,代码来源:global.func.php
示例10: new_addslashes
function new_addslashes($str)
{
if (!is_array($str)) {
return addslashes($str);
}
foreach ($str as $key => $val) {
$str[$key] = new_addslashes($val);
}
return $str;
}
开发者ID:iquanxin,项目名称:march,代码行数:10,代码来源:global.func.php
示例11: api_add
public function api_add($uploadedfile) {
$uploadfield = array();
$uploadfield = $uploadedfile;
unset($uploadfield['fn']);
$uploadfield = new_addslashes($uploadfield);
$this->insert($uploadfield);
$aid = $this->insert_id();
$uploadedfile['aid'] = $aid;
return $aid;
}
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:10,代码来源:attachment_model.class.php
示例12: __construct
public function __construct()
{
if (!get_magic_quotes_gpc()) {
$_GET = new_addslashes($_GET);
$_POST = new_addslashes($_POST);
$_REQUEST = new_addslashes($_REQUEST);
$_COOKIE = new_addslashes($_COOKIE);
}
$this->route = loadConfig('route', 'default');
if (isset($_GET['page'])) {
$_GET['page'] = max(intval($_GET['page']), 1);
$_GET['page'] = min($_GET['page'], 1000000);
}
}
开发者ID:iquanxin,项目名称:march,代码行数:14,代码来源:param.cls.php
示例13: new_addslashes
function new_addslashes($string)
{
if (!get_magic_quotes_gpc()) {
if (!is_array($string)) {
return addslashes(trim($string));
}
foreach ($string as $key => $val) {
$string[$key] = new_addslashes($val);
}
return $string;
} else {
return $string;
}
}
开发者ID:vangogogo,项目名称:justsns,代码行数:14,代码来源:Ts_common.php
示例14: __construct
/**
* 构造函数
*/
public function __construct()
{
$this->db = pc_base::load_model('member_model');
pc_base::load_app_func('global');
/*获取系统配置*/
$this->settings = getcache('settings', 'admin');
$this->applist = getcache('applist', 'admin');
if (isset($_GET) && is_array($_GET) && count($_GET) > 0) {
foreach ($_GET as $k => $v) {
if (!in_array($k, array('m', 'c', 'a'))) {
$_POST[$k] = $v;
}
}
}
if (isset($_POST['appid'])) {
$this->appid = intval($_POST['appid']);
} else {
exit('0');
}
if (isset($_POST['data'])) {
parse_str(sys_auth($_POST['data'], 'DECODE', $this->applist[$this->appid]['authkey']), $this->data);
if (empty($this->data) || !is_array($this->data)) {
exit('0');
}
if (!get_magic_quotes_gpc()) {
$this->data = new_addslashes($this->data);
}
if (isset($this->data['username']) && $this->data['username'] != '' && is_username($this->data['username']) == false) {
exit('-5');
}
if (isset($this->data['email']) && $this->data['username'] != '' && is_email($this->data['email']) == false) {
exit('-5');
}
if (isset($this->data['password']) && $this->data['password'] != '' && (is_password($this->data['password']) == false || is_badword($this->data['password']))) {
exit('-5');
}
if (isset($this->data['newpassword']) && $this->data['newpassword'] != '' && (is_password($this->data['newpassword']) == false || is_badword($this->data['newpassword']))) {
exit('-5');
}
} else {
exit('0');
}
if (isset($GLOBALS['HTTP_RAW_POST_DATA'])) {
$this->data['avatardata'] = $GLOBALS['HTTP_RAW_POST_DATA'];
//if($this->applist[$this->appid]['authkey'] != $this->data['ps_auth_key']) {
// exit('0');
//}
}
}
开发者ID:boylzj,项目名称:omguitar,代码行数:52,代码来源:phpsso.class.php
示例15: _initialize
/**
* 初始化函数
*
*/
function _initialize()
{
//参数转义
new_addslashes($_POST);
new_addslashes($_GET);
//整个应用的赋值
$this->gift = D('Gift');
$this->gift_category = D('GiftCategory');
$this->user_gift = D('UserGift');
$this->user_gift->setApi($this->api);
$this->user_gift->setGift($this->gift);
$this->user_gift->setCategory($this->gift_category);
$this->gift_category->setGift($this->gift);
$mid = $this->mid;
$config = D('AppConfig')->getConfig();
$this->assign('config', $config);
}
开发者ID:wangping1987,项目名称:dhfriendluck,代码行数:21,代码来源:IndexAction.class.php
示例16: set
/**
* 写入缓存
* @param string $name 缓存名称
* @param mixed $data 缓存数据
* @param array $setting 缓存配置
* @param string $type 缓存类型
* @param string $module 所属模型
* @return mixed 缓存路径/false
*/
public function set($name, $data, $setting = '', $type = 'data', $module = ROUTE_M)
{
$this->get_setting($setting);
if (empty($type)) {
$type = 'data';
}
if (empty($module)) {
$module = ROUTE_M;
}
$filepath = CACHE_PATH . 'caches_' . $module . '/caches_' . $type . '/';
$filename = $name . $this->_setting['suf'];
if (!is_dir($filepath)) {
mkdir($filepath, 0777, true);
}
if ($this->_setting['type'] == 'array') {
$data = "<?php\nreturn " . var_export($data, true) . ";\n?>";
} elseif ($this->_setting['type'] == 'serialize') {
$data = serialize($data);
}
if ($module == 'commons' || $module == 'commons' && substr($name, 0, 16) != 'category_content') {
$db = pc_base::load_model('cache_model');
$datas = new_addslashes($data);
if ($db->get_one(array('filename' => $filename, 'path' => 'caches_' . $module . '/caches_' . $type . '/'), '`filename`')) {
$db->update(array('data' => $datas), array('filename' => $filename, 'path' => 'caches_' . $module . '/caches_' . $type . '/'));
} else {
$db->insert(array('filename' => $filename, 'path' => 'caches_' . $module . '/caches_' . $type . '/', 'data' => $datas));
}
}
// print_r(pc_base::load_config('system', 'lock_ex'));
//exit();
//是否开启互斥锁
if (pc_base::load_config('system', 'lock_ex')) {
$file_size = file_put_contents($filepath . $filename, $data, LOCK_EX);
} else {
$file_size = file_put_contents($filepath . $filename, $data);
}
return $file_size ? $file_size : 'false';
}
开发者ID:baowzh,项目名称:renfang,代码行数:47,代码来源:cache_file.class.php
示例17: edit
/**
* 修改标签向导
*/
public function edit()
{
$id = isset($_GET['id']) && intval($_GET['id']) ? intval($_GET['id']) : showmessage(L('illegal_parameters'), HTTP_REFERER);
if (!($edit_data = $this->db->get_one(array('id' => $id)))) {
showmessage(L('notfound'));
}
pc_base::load_app_func('global', 'dbsource');
if (isset($_POST['dosubmit'])) {
$name = isset($_POST['name']) && trim($_POST['name']) ? trim($_POST['name']) : showmessage(L('name') . L('empty'));
$cache = isset($_POST['cache']) && intval($_POST['cache']) ? intval($_POST['cache']) : 0;
$num = isset($_POST['num']) && intval($_POST['num']) ? intval($_POST['num']) : 0;
$type = isset($_POST['type']) && intval($_POST['type']) ? intval($_POST['type']) : 0;
//检查名称是否已经存在
if ($edit_data['name'] != $name) {
if ($this->db->get_one(array('name' => $name), 'id')) {
showmessage(L('name') . L('exists'));
}
}
$siteid = $this->get_siteid();
if ($type == '1') {
//自定义SQL
$sql = isset($_POST['data']) && trim($_POST['data']) ? trim($_POST['data']) : showmessage(L('custom_sql') . L('empty'));
$data['sql'] = $sql;
$tag = '{pc:get sql="' . $sql . '" ';
if ($cache) {
$tag .= 'cache="' . $cache . '" ';
}
if ($_POST['page']) {
$tag .= 'page="' . $_POST['page'] . '" ';
}
if ($_POST['dbsource']) {
$data['dbsource'] = $_POST['dbsource'];
$tag .= 'dbsource= "' . $_POST['dbsource'] . '" ';
}
if ($_POST['return']) {
$tag .= 'return="' . $_POST['return'] . '"';
}
$tag .= '}';
} elseif ($type == 0) {
//模型配置
$module = isset($_POST['module']) && trim($_POST['module']) ? trim($_POST['module']) : showmessage(L('please_select_model'));
$action = isset($_POST['action']) && trim($_POST['action']) ? trim($_POST['action']) : showmessage(L('please_select_action'));
$html = pc_tag_class($module);
$data = array();
$tag = '{pc:' . $module . ' action="' . $action . '" ';
if (isset($html[$action]) && is_array($html[$action])) {
foreach ($html[$action] as $key => $val) {
$val['validator']['reg_msg'] = $val['validator']['reg_msg'] ? $val['validator']['reg_msg'] : $val['name'] . L('inputerror');
${$key} = isset($_POST[$key]) && trim($_POST[$key]) ? trim($_POST[$key]) : '';
if (!empty($val['validator'])) {
if (isset($val['validator']['min']) && strlen(${$key}) < $val['validator']['min']) {
showmessage($val['name'] . L('should') . L('is_greater_than') . $val['validator']['min'] . L('lambda'));
}
if (isset($val['validator']['max']) && strlen(${$key}) > $val['validator']['max']) {
showmessage($val['name'] . L('should') . L('less_than') . $val['validator']['max'] . L('lambda'));
}
if (!preg_match('/' . $val['validator']['reg'] . '/' . $val['validator']['reg_param'], ${$key})) {
showmessage($val['name'] . $val['validator']['reg_msg']);
}
}
$tag .= $key . '="' . ${$key} . '" ';
$data[$key] = ${$key};
}
}
if ($_POST['page']) {
$tag .= 'page="' . $_POST['page'] . '" ';
}
if ($num) {
$tag .= ' num="' . $num . '" ';
}
if ($_POST['return']) {
$tag .= ' return="' . $_POST['return'] . '" ';
}
if ($cache) {
$tag .= ' cache="' . $cache . '" ';
}
$tag .= '}';
} else {
//碎片
$data = isset($_POST['block']) && trim($_POST['block']) ? trim($_POST['block']) : showmessage(L('block_name_not_empty'));
$tag = '{pc:block pos="' . $data . '"}';
}
$tag .= "\n" . '{loop $data $n $r}' . "\n" . '<li><a href="{$r[\'url\']}" title="{$r[\'title\']}">{$r[\'title\']}</a></li>' . "\n" . '{/loop}' . "\n" . '{/pc}';
$tag = new_addslashes($tag);
$data = is_array($data) ? array2string($data) : $data;
$this->db->update(array('siteid' => $siteid, 'tag' => $tag, 'name' => $name, 'type' => $type, 'module' => $module, 'action' => $action, 'data' => $data, 'page' => $_POST['page'], 'return' => $_POST['return'], 'cache' => $cache, 'num' => $num), array('id' => $id));
showmessage('', '', '', 'edit');
} else {
pc_base::load_sys_class('form', '', 0);
$modules = array_merge(array('' => L('please_select')), pc_base::load_config('modules'));
$show_header = $show_validator = true;
$type = isset($_GET['type']) && intval($_GET['type']) ? intval($_GET['type']) : $edit_data['type'];
$siteid = $this->get_siteid();
$dbsource_data = $dbsource = array();
$dbsource[] = L('please_select');
$dbsource_data = $this->dbsource->select(array('siteid' => $siteid), 'name');
foreach ($dbsource_data as $dbs) {
//.........这里部分代码省略.........
开发者ID:ahmatjan,项目名称:huluphp,代码行数:101,代码来源:tag.php
示例18: new_addslashes
</tr>
<?php
if(is_array($infos)){
foreach($infos as $info){
?>
<tr>
<td align="center" width="35"><input type="checkbox"
name="typeid[]" value="<?php echo $info['typeid']?>"></td>
<td align="center"><input name='listorders[<?php echo $info['typeid']?>]' type='text' size='3' value='<?php echo $info['listorder']?>' class="input_center"></td>
<td><?php echo $info['name']?></td>
<td align="center" width="12%"> <?php echo $info['typeid'];?></td>
<td align="center" width="20%"><a href="###"
onclick="edit(<?php echo $info['typeid']?>, '<?php echo new_addslashes($info['name'])?>')"
title="<?php echo L('edit')?>"><?php echo L('edit')?></a> | <a
href='?m=link&c=link&a=delete_type&typeid=<?php echo $info['typeid']?>'
onClick="return confirm('<?php echo L('confirm', array('message' => new_addslashes($info['name'])))?>')"><?php echo L('delete')?></a>
</td>
</tr>
<?php
}
}
?>
</tbody>
</table>
<div class="btn"><a href="#"
onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('selected_all')?></a>/<a
href="#"
onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a>
<input name="submit" type="submit" class="button"
value="<?php echo L('remove_all_selected')?>"
onClick="return confirm('<?php echo L('confirm', array('message' => L('selected')))?>')"> </div>
开发者ID:panhongsheng,项目名称:zl_cms,代码行数:31,代码来源:link_list_type.tpl.php
示例19: new_addslashes
?>
</td>
<td align="center"><a href="javascript:edit('<?php
echo $r['id'];
?>
','<?php
echo new_addslashes($r['sitename']);
?>
')"><?php
echo L('edit');
?>
</a> | <a href="javascript:;" onclick="data_delete(this,'<?php
echo $r['id'];
?>
','<?php
echo L('confirm', array('message' => new_addslashes($r['sitename'])));
?>
')"><?php
echo L('delete');
?>
</a> </td>
</tr>
<?php
}
?>
</tbody>
</table>
<div class="btn"><input type="submit" class="button" name="dosubmit" value="<?php
echo L('listorder');
?>
" /></div> </div>
开发者ID:ahmatjan,项目名称:huluphp,代码行数:31,代码来源:copyfrom_list.tpl.php
示例20: show
/**
* 表单展示
*/
public function show()
{
if (!isset($_GET['formid']) || empty($_GET['formid'])) {
$_GET['action'] ? exit : showmessage(L('form_no_exist'), HTTP_REFERER);
}
$siteid = $_GET['siteid'] ? intval($_GET['siteid']) : 1;
$formid = intval($_GET['formid']);
$r = $this->db->get_one(array('modelid' => $formid, 'siteid' => $siteid, 'disabled' => 0), 'tablename, setting');
if (!$r) {
$_GET['action'] ? exit : showmessage(L('form_no_exist'), HTTP_REFERER);
}
$setting = string2array($r['setting']);
if ($setting['enabletime']) {
if ($setting['starttime'] > SYS_TIME || $setting['endtime'] + 3600 * 24 < SYS_TIME) {
$_GET['action'] ? exit : showmessage(L('form_expired'), APP_PATH . 'index.php?m=formguide&c=index&a=index');
}
}
$userid = param::get_cookie('_userid');
if ($setting['allowunreg'] == 0 && !$userid && $_GET['action'] != 'js') {
showmessage(L('please_login_in'), APP_PATH . 'index.php?m=member&c=index&a=login&forward=' . urlencode(HTTP_REFERER));
}
if (isset($_POST['dosubmit'])) {
$tablename = 'form_' . $r['tablename'];
$this->m_db->change_table($tablename);
$data = array();
require CACHE_MODEL_PATH . 'formguide_input.class.php';
$formguide_input = new formguide_input($formid);
$data = new_addslashes($_POST['info']);
$data = new_html_special_chars($data);
$data = $formguide_input->get($data);
$data['userid'] = $userid;
$data['username'] = param::get_cookie('_username');
$data['datetime'] = SYS_TIME;
$data['ip'] = ip();
$dataid = $this->m_db->insert($data, true);
if ($dataid) {
if ($setting['sendmail']) {
pc_base::load_sys_func('mail');
$mails = explode(',', $setting['mails']);
if (is_array($mails)) {
foreach ($mails as $m) {
sendmail($m, L('tips'), $this->M['mailmessage']);
}
}
}
$this->db->update(array('items' => '+=1'), array('modelid' => $formid, 'siteid' => $this->siteid));
}
showmessage(L('thanks'), APP_PATH);
} else {
if ($setting['allowunreg'] == 0 && !$userid && $_GET['action'] == 'js') {
$no_allowed = 1;
}
pc_base::load_sys_class('form', '', '');
$f_info = $this->db->get_one(array('modelid' => $formid, 'siteid' => $this->siteid));
extract($f_info);
$tablename = 'form_' . $r['tablename'];
$this->m_db->change_table($tablename);
$ip = ip();
$where = array();
if ($userid) {
$where = array('userid' => $userid);
} else {
$where = array('ip' => $ip);
}
$re = $this->m_db->get_one($where, 'datetime');
$setting = string2array($setting);
if ($setting['allowmultisubmit'] == 0 && $re['datetime'] || SYS_TIME - $re['datetime'] < $this->M['interval'] * 60) {
$_GET['action'] ? exit : showmessage(L('had_participate'), APP_PATH . 'index.php?m=formguide&c=index&a=index');
}
require CACHE_MODEL_PATH . 'formguide_form.class.php';
$formguide_form = new formguide_form($formid, $no_allowed);
$forminfos_data = $formguide_form->get();
$SEO = seo($this->siteid, L('formguide'), $name);
if (isset($_GET['action']) && $_GET['action'] == 'js') {
if (!function_exists('ob_gzhandler')) {
ob_clean();
}
ob_start();
}
$template = $_GET['action'] == 'js' ? $js_template : $show_template;
include template('formguide', $template, $default_style);
if (isset($_GET['action']) && $_GET['action'] == 'js') {
$data = ob_get_contents();
ob_clean();
exit(format_js($data));
}
}
}
开发者ID:klj123wan,项目名称:czsz,代码行数:91,代码来源:index.php
注:本文中的new_addslashes函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论