ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/thietkewebvumi.com/getsp/ |
<?php function curl_func($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $head[] = "Accept-Language: en-us,en;q=0.5"; curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36 x-client-data: CJW2yQEIpbbJAQjBtskBCKmdygEYu7rKARiavsoB'); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); //curl_setopt($ch, CURLOPT_REFERER, 'http://www.phimmoi.net'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); //curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $page = curl_exec($ch); curl_close($ch); return $page; } require 'simple_html_dom.php'; //$url = 'https://chefsgroup.vn/collections/all?q=&page=1&view=grid'; set_time_limit(0); if(isset($_POST['submitbt'])) { //$body = $_POST['body']; $url = trim($_POST['body']); $parse = parse_url($url); $domain = 'https://' . $parse['host']; $content = curl_func($url); $html = str_get_html($content); $show = '<table border="1" cellpadding="2" cellspacing="2"><tr> <td>Url</td> <td>Tên</td> <td style="height: 50px; overflow: hidden;">Mô tả</td> <td>TrÃch dẫn</td> <td>Hãng</td> <td>Loại sản phẩm</td> <td>Tag</td> <td>Hiển thị</td> <td>Thuá»™c tÃnh 1</td> <td>Giá trị thuá»™c tÃnh 1</td> <td>Thuá»™c tÃnh 2</td> <td>Giá trị thuá»™c tÃnh 2</td> <td>Thuá»™c tÃnh 3</td> <td>Giá trị thuá»™c tÃnh 3</td> <td>Mã phiên bản sản phẩm</td> <td>Khối lượng</td> <td>Quản lý tồn kho</td> <td>Số lượng tồn kho</td> <td>Äặt hà ng khi hết hà ng</td> <td>Variant Fulfillment Service</td> <td>Giá</td> <td>Giá so sánh</td> <td>Có giao hà ng không?</td> <td>Variant Taxable</td> <td>Barcode</td> <td>Link hình</td> <td>Mô tả hình</td> <td>Gift Card</td> <td>SEO Title</td> <td>SEO Description</td> <td>Google Shopping / Google Product Category</td> <td>Google Shopping / Gender</td> <td>Google Shopping / MPN</td> <td>Google Shopping / AdWords Grouping</td> <td>Google Shopping / AdWords Labels </td> <td>Google Shopping / Condition </td> <td>Google Shopping / Custom Product </td> <td>Danh mục </td> <td>Danh mục EN</td> <td>Ảnh biến thể </td> <td>Ngà y tạo </td> <td>Ngà y cáºp nháºt </td> <td>Hiển thị kênh bán hà ng Lazada </td> <td>Hiển thị kênh bán hà ng Zalo </td> <td>Hiển thị kênh bán hà ng Zalora </td> <td>Hiển thị kênh bán hà ng Sendo </td> <td>Hiển thị kênh bán hà ng Adayroi </td> <td>Hiển thị kênh bán hà ng FacebookShop </td> <td>Hiển thị kênh bán hà ng Tiki</td> <td>Hiển thị kênh bán hà ng Google </td> <td>Hiển thị kênh bán hà ng Shopee </td> <td>Không áp dụng khuyến mãi</td> </tr>'; foreach ($html->find('section.products-view div.col-item') as $val) { $arr['title'] = $val->find('h3.product-name a', 0)->plaintext; $url2 = $domain . '' . $val->find('h3.product-name a', 0)->href; $content2 = curl_func($url2); $arr = explode('var productJson =', $content2); $arr2 = explode('};', $arr[1]); $a = json_decode($arr2[0] . '}', true); $html2 = str_get_html($content2); $show .= '<tr>'; $show .= '<td>' . basename($url2) . '</td>'; $show .= '<td>' . $a['name'] . '</td>'; $show .= '<td>' . $a['content'] . '</td>'; $show .= '<td>' . $url2 . '</td>'; $show .= '<td>' . $a['vendor'] . '</td>'; $show .= '<td>' . $a['type'] . '</td>'; $show .= '<td>' . $a['tags'][0] . '</td>'; $show .= '<td>Yes</td>'; $show .= '<td>Title</td>'; $show .= '<td>Default Title</td>'; $show .= '<td>Title</td>'; $show .= '<td>Default Title</td>'; $show .= '<td>Title</td>'; $show .= '<td>Default Title</td>'; $show .= '<td></td>'; $show .= '<td>0</td>'; $show .= '<td>haravan</td>'; $show .= '<td>99</td>'; $show .= '<td>deny</td>'; $show .= '<td>deny</td>'; $show .= '<td>' . $a['price'] . '</td>'; $show .= '<td>' . $a['compare_at_price_max'] . '</td>'; $show .= '<td>Yes</td>'; $show .= '<td>Yes</td>'; $show .= '<td></td>'; $show .= '<td>' . $a['featured_image']['src'] . '</td>'; $show .= '<td>' . $a['name'] . '</td>'; $show .= '<td>No</td>'; $show .= '<td>' . $a['name'] . '</td>'; $show .= '<td>' . $a['meta_description'] . '</td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td></td>'; $show .= '<td>' . $a['created_on'] . '</td>'; $show .= '<td>' . $a['published_on'] . '</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '<td>No</td>'; $show .= '</tr>'; } $show .= '</table>'; require('HtmlExcel.php'); $name = 'excel.xls'; $xls = new HtmlExcel(); //$xls->setCss($css); $xls->addSheet('Sheet1', $show); $xls->headers($name); echo $xls->buildFile(); exit(); echo $show; exit(); print_r($list); exit(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Doom document</title> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js"></script> </head> <body> <div class="boxnhac6"> <span style="color:#FFFFFF"> <h2> Phim19.Com</h2></span> <span>Những ô có dấu <span>*</span> là yêu cầu nháºp</span> </div> <div class="boxnhac6"> <form action="getsp.php" method="post" id="create" name="create"> <table width="100%" border="0" cellspacing="4" cellpadding="4"> <tr> <td width="20%"><span class="WhiteText">body :</span></td> <td align="left" width="80%"> <textarea style="width: 500px; height: 100px;" name="body"></textarea> </td> </tr> <tr> <td> </td> <td align="center" id="txt_error" style="color:#FF0000;"> </td> </tr> <tr> <td> </td> <td align="right"> <input type="hidden" name="submitbt" id="submitbt" value="1" /> <input type="submit" name="submit2" id="submit2" value="Cáºp nháºt" class="button" /> </td> </tr> </table> </form> </div> </body> </html>