1 Star 0 Fork 1

maltYumi/cake

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ajax_68ecshop.php 2.05 KB
一键复制 编辑 原始数据 按行查看 历史
maltYumi 提交于 2018-12-19 14:58 . Signed-off-by: malt 423498555@qq.com
<?php
/**
* ECSHOP ajax
* ============================================================================
* 版权所有 2005-2010 上海商派网络科技有限公司,并保留所有权利。
* 网站地址: http://www.68ecshop.com;
* ----------------------------------------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
* 使用;不允许对程序代码以任何形式任何目的的再发布。
* ============================================================================
* $Author: www.dijoncake.com $
* $Id: ajax.php 17063 2010-03-25 06:35:46Z $
*/
define('IN_ECS', true);
require(dirname(__FILE__) . '/includes/init.php');
if ($_REQUEST['act'] == 'tipemail')
{
require(ROOT_PATH . 'includes/cls_json.php');
$word_www_68ecshop_com = json_str_iconv($_REQUEST['word']);
$json_www_68ecshop_com = new JSON;
$result_www_68ecshop_com = array('error' => 0, 'message' => '', 'content' => '');
if(!$word_www_68ecshop_com || strlen($word_www_68ecshop_com) > 30)
{
$result_www_68ecshop_com['error'] = 1;
die($json_www_68ecshop_com->encode($result_www_68ecshop_com));
}
$word_www_68ecshop_com = str_replace(array(' ','*', "\'"), array('', '', ''), $word_www_68ecshop_com);
$email_name_arr = explode("@", $word_www_68ecshop_com);
$email_name = $email_name_arr[0];
$_CFG['email_domain'] =str_replace(" ", "",$_CFG['email_domain']);
$email_domain_arr = explode(",", str_replace(",",",",$_CFG['email_domain']));
$logdb=array();
foreach($email_domain_arr AS $key=>$edomain)
{
$email_domain_arr[$key] = $email_name.'@'.$edomain;
}
foreach($email_domain_arr AS $email_domain)
{
if (stristr($email_domain, $word_www_68ecshop_com))
{
$logdb[] = $email_domain;
}
}
$smarty->assign('logdb', $logdb);
if(count($logdb)==0)
{
$result_www_68ecshop_com['content'] = '';
}
else
{
$result_www_68ecshop_com['content'] = $smarty->fetch('library/email_tip.lbi');
}
die($json_www_68ecshop_com->encode($result_www_68ecshop_com));
}
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/maltYumi/cake.git
git@gitee.com:maltYumi/cake.git
maltYumi
cake
cake
master

搜索帮助