博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
php请求页面将返回的页面发送email
阅读量:7219 次
发布时间:2019-06-29

本文共 2260 字,大约阅读时间需要 7 分钟。

 

 

= 0 ? 'http://dev-mcc.planetart.com' : SiteSettings::getDomain(SITE_MCC);$htmlOverview = file_get_contents($domain.'/planetart_dashboard.php?overview_from_email_tablename=overview'); //请求页面返回html$htmlOP = file_get_contents($domain.'/planetart_dashboard.php?overview_from_email_tablename=op'); $startStr = '
"开始位置$htmlOP = substr($htmlOP, $startDivIndex, $endDivIndex + strlen($endStr) - $startDivIndex); //截取整个div//OP is the first , overview is the second$html = stristr($htmlOverview, $startStr, TRUE) . $htmlOP . '

' . stristr($htmlOverview, $startStr);$html = str_ireplace('
div[id!="tab1"]\').hide(); $(\'.tabs:eq(0)>ul>li:lt(5)\').hide(); $(\'.tabs:eq(1)>ul>li:gt(0)\').hide(); $(\'span[id*="refresh"]\').parent().remove(); $(\'form[id="form_overview"]:eq(0)>br:eq(0)\').remove();', $html);$html = str_ireplace('$("tr[name=\'department\'] span:contains(\'Order Processing\')").parent().find(\'a:gt(0)\').click();', '$(\'.data_table:eq(0) tr[name="department"]:eq(0) a:eq(2)\').click(); $(\'.data_table:eq(1) tr[name="department"]:eq(0) a:eq(0)\').click(); ', $html);$html = str_ireplace('planetart_dashboard_listorders.php', 'http://www.mycustomcase.com/planetart_dashboard_listorders.php', $html);//for debug use query string '?debug=t'if('t' == getIfSet($_GET, 'debug', '')){ echo $html; exit;}else{ $mail = new MailService(); $from_name = 'dashboard'; $from = SiteSettings::$NOREPLY_EMAIL[0]; $to = array('erik@planetart.com','jim.xue@avanquest.cn','Tyler@avanquest.cn'); $subject = 'dashboard email'; $text = ''; $site_id = 0; $ret_email = $mail->sendMail($from_name, $from, $to, $subject,stripslashes($text), $site_id, array(), true, '', array());}?>

 

作者:

出处:
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,如有问题,可以通过以下邮箱地址 联系我,非常感谢。

你可能感兴趣的文章
终极解决方案:windows10资源管理器假死
查看>>
【java】一维数组循环位移方阵
查看>>
Essential Studio for mobile MVC中创建Razor应用程序平台教程
查看>>
java主函数的含义
查看>>
中国大学MOOC —— 学习笔记(四)
查看>>
访问,ringbtn,
查看>>
致橡树
查看>>
一段测试代码,哦哦哦,
查看>>
uiimagepickercontroller,中文,--》摘
查看>>
第四次作业
查看>>
在python中调用js或者nodejs
查看>>
【年终总结】2年计划还是要有的,万一实现了呢?(转自叶小钗)
查看>>
数字图像处理学习笔记(1.1)---位图的读写、几何变换、傅里叶变换、直方图均衡...
查看>>
javascript数组顺序-----1冒泡的另一种比较好理解的写法
查看>>
数据结构-栈的实现之行编译器核心实现
查看>>
C++ Project 积累(2)
查看>>
(1)用VisualSvn Server,Tortoise Svn,AnkhSvn搭建Svn版本控制
查看>>
Mysql索引
查看>>
格式化输出
查看>>
hdu 3804 Query on a tree (树链剖分+线段树)
查看>>