-
Notifications
You must be signed in to change notification settings - Fork 27
/
ajax_68ecshop.php
67 lines (55 loc) · 2.04 KB
/
ajax_68ecshop.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* 鸿宇多用户商城 ajax
* ============================================================================
* 版权所有 2005-2010 鸿宇多用户商城科技有限公司,并保留所有权利。
* 网站地址: http://bbs.hongyuvip.com;
* ----------------------------------------------------------------------------
* 仅供学习交流使用,如需商用请购买正版版权。鸿宇不承担任何法律责任。
* 踏踏实实做事,堂堂正正做人。
* ============================================================================
* $Author: bbs.hongyuvip.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));
}
?>