Chúc mừng năm mới mọi người nhé.
Nếu là lần đầu đến với diễn đàn hãy đăng ký cho bạn một tài khoản để sử dụng hết chức năng diễn đàn nhé
Nếu là lần đầu đến với diễn đàn hãy đăng ký cho bạn một tài khoản để sử dụng hết chức năng diễn đàn nhé
Share code auto sitemap cho xtgem
27-01-2016
Code auto sitemap cho wap xtgem, đây là bộ code tự tạo sitemap cho xtgem, code auto sitemap phù hợp với nhiều tool post
Code này hỗ trợ full các tools post hiện nay như viptruyen, toisv, ttblog, v.v.
đầu tiên vào host của bạn tạo file sitemap.txt nhớ là đặt tools ở đâu thì tạo ở đó.
rồi vào file post bài của wap bạn tìm đoạn code như này:
và thay bằng:
chú ý thay lại cho đúng cấu trúc link nhé
vậy là pot bài nào thì nó sẽ tự update vào file sitemap wap bạn
Chia sẻ bởi: pupy - 2hi.biz
Code này hỗ trợ full các tools post hiện nay như viptruyen, toisv, ttblog, v.v.
đầu tiên vào host của bạn tạo file sitemap.txt nhớ là đặt tools ở đâu thì tạo ở đó.
rồi vào file post bài của wap bạn tìm đoạn code như này:
curl_exec($ch); } echo 'Thành công'; } }
hoặc Copy code
curl_exec($ch); } echo 'ok'; } }
Copy code
và thay bằng:
curl_exec($ch); }
$f = fopen('sitemap.txt',a);
fwrite($f,"<url><loc>http://roly.yn.lt/$thumuc/$cmc/$file</loc><changefreq>daily</changefreq></url>");
fclose($f);
$sitemap = file_get_contents('./sitemap.txt', true);
curl_setopt($ch, CURLOPT_URL, 'http://xtgem.com/filebrowser/file_save?__token='.$token.'&act=edit_file&file=/sitemap.xml');
curl_setopt($ch, CURLOPT_POSTFIELDS, array('value' => cvnokia('<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'.$sitemap.'</urlset>'), 'submit' => 'Save'));
curl_exec($ch);
header('Location: http://Tên wap bạn/index?save=ok');}}
$f = fopen('sitemap.txt',a);
fwrite($f,"<url><loc>http://roly.yn.lt/$thumuc/$cmc/$file</loc><changefreq>daily</changefreq></url>");
fclose($f);
$sitemap = file_get_contents('./sitemap.txt', true);
curl_setopt($ch, CURLOPT_URL, 'http://xtgem.com/filebrowser/file_save?__token='.$token.'&act=edit_file&file=/sitemap.xml');
curl_setopt($ch, CURLOPT_POSTFIELDS, array('value' => cvnokia('<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">'.$sitemap.'</urlset>'), 'submit' => 'Save'));
curl_exec($ch);
header('Location: http://Tên wap bạn/index?save=ok');}}
Copy code
chú ý thay lại cho đúng cấu trúc link nhé
vậy là pot bài nào thì nó sẽ tự update vào file sitemap wap bạn
Chia sẻ bởi: pupy - 2hi.biz
Tổng số: 1
Link:
: auto , sitemap , xtgem , cho , code
Có thể bạn thích
Online

Tìm với google
KetNoi360.Xtgem.Com | Nội quy |