Shell ~ Bypass
[+] Kelelawar Cyber Team [+]
:
216.73.216.123
:
104.131.203.165 / webuikits.com
:
Linux Webuikits 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64
:
/
Users
/
wp-content
/
plugins
/
xml-maps
/
Upload File:
files >> //Users/wp-content/plugins/xml-maps/sitemap.class.php
<?php class sitemap { function __construct() { global $wpdb; $this->db_prefix = $wpdb->prefix; $this->starttime = $this->get_microtime(); } function build() { $mem_start = $this->memory_usage(); $priority = get_option('priority'); $output = '<?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"> <url> <loc>'.get_settings('home').'</loc> <lastmod>'.date('c').'</lastmod> <changefreq>daily</changefreq> <priority>'.$priority['Homepage'].'</priority> </url>'; $sql = mysql_query("select ID,post_modified from ".$this->db_prefix."posts where post_status = 'publish' and post_type = 'post' or post_type = 'page' order by post_date desc"); while($array = mysql_fetch_assoc($sql)){ $output .= '<url> <loc>'.get_permalink($array['ID']).'</loc> <lastmod>'.date('c',strtotime($array['post_modified'])).'</lastmod> <changefreq>monthly</changefreq>'; switch($array['post_type']){ case 'post';$output .= '<priority>'.$priority['Posts'].'</priority>';break; case 'page';$output .= '<priority>'.$priority['Pages'].'</priority>';break; } $output .= '</url>'; } $categories = get_categories(array()); foreach($categories as $category){ $output .= '<url> <loc>'.get_category_link($category->term_id).'</loc> <lastmod>'.date('c').'</lastmod> <changefreq>daily</changefreq> <priority>'.$priority['Homepage'].'</priority> </url>'; } $tags = get_tags(array()); foreach($tags as $tag){ $output .= '<url> <loc>'.get_tag_link($tag->term_id).'</loc> <lastmod>'.date('c').'</lastmod> <changefreq>daily</changefreq> <priority>'.$priority['Tags'].'</priority> </url>'; } $output .= '</urlset>'; $mem_end = $this->memory_usage(); settings_fields( 'sitemap-settings-group' ); $filename = get_option('filename'); file_put_contents(ABSPATH.'/'.$filename.'.xml',$output); if(get_option('zip')){ $this->gzip_sitemap($filename,$output); $filename = $filename.'.xml.gz'; }else $filename = $filename.'.xml'; $filename = get_option('siteurl').'/'.$filename; if(get_option('google'))$this->ping_google($filename); if(get_option('ask'))$this->ping_ask($filename); if(get_option('bing'))$this->ping_bing($filename); return '<p>Memory usage:'.($mem_end - $mem_start).' Mbyte<br /> Build time:'.($this->get_microtime()-$this->starttime).' sec </p>'; } function gzip_sitemap($filename,$data) { file_put_contents(ABSPATH.'/'.$filename.'.xml.gz',gzdeflate($data)); } function ping_google($url) { $url = 'http://www.google.com/webmasters/sitemaps/ping?sitemap='.urlencode($url); $this->open_url($url); } function ping_ask($url) { $url = 'http://submissions.ask.com/ping?sitemap='.urlencode($url); $this->open_url($url); } function ping_bing($url) { $url = 'http://www.bing.com/webmaster/ping.aspx?siteMap='.urlencode($url); $this->open_url($url); } function open_url($url) { if(!function_exists('curl_init')){ file_get_contents($url); return; } #elinditjuk a cURL sessiont $ch = curl_init(); #megadjuk a beallitasokat #az megnyitni kivant url curl_setopt($ch, CURLOPT_URL, $utl); #a valaszt nem akarjuk kozvetlenul output-olni curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); #vegrehajtjuk a kerest $result= curl_exec($ch); #lezarjuk a session-t hogy felszabaditsuk a rendszer-eroforrasokat. curl_close($ch); } function memory_usage() { if(function_exists("memory_get_peak_usage")) { return round(memory_get_peak_usage(true) / 1024 / 1024,2); } else if(function_exists("memory_get_usage")) { return round(memory_get_usage(true) / 1024 / 1024,2); } } function get_microtime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } /**/ } ?>
Copyright ©2021 || Defacer Indonesia