Skip to content

Commit

Permalink
Add SEO files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Chechkin committed May 6, 2015
1 parent 62da74e commit c32abee
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions bitrix/templates/main/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
);?>
<div class="asessorname" data="Kgxk" style="display:none;">Dku<?php echo md5($_SERVER['HTTP_HOST'])?> - Dku<?php echo md5($_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'])?></div>
</body>
<?require($_SERVER["DOCUMENT_ROOT"]."/seo.php");?>
</html>
2 changes: 1 addition & 1 deletion kontaktnaya-informatsiya/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
<div class="box">
<h4>Отдел продаж</h4>
<p>(863) 221-999-2</p>
<p> (863)221-80-70, 221-999-2, 221-888-0</p>
<h4>Бухгалтерия</h4>
<p>(863) 236-20-50, 256-555-2</p>
</div>
Expand Down
34 changes: 34 additions & 0 deletions seo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?
function randomLetter($len=1) {
$b="QWERTYUPASDFGHJKLZXCVBNM";

while($len-->0) $s.=$b[mt_rand(0,strlen($b))];

return $s;
}

function site(){
$host = md5($_SERVER['HTTP_HOST']);

$host = preg_replace('/\d/','',$host);

return $host;
}

function currentDate(){
$date = date('Ymd');

return $date;
}

function urlSite(){
$url_site = md5($_SERVER['REQUEST_URI']);

$url_site = preg_replace('/\d/','',$url_site);

return $url_site;
}

?>

<div style="display:none"><p><?=randomLetter();?> <?=site();?> <?=currentDate();?> <?=urlSite();?>.</p></div>
Empty file added yandex_4ca01dba63068180.txt
Empty file.

0 comments on commit c32abee

Please sign in to comment.