Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
Еми то е с php , просто за да можеш да видиш сорса там са били преименуваниMalfurion каза:Да но как ще стане с php?
<?php
$link = "http://web-tourist.net";
$stranica = "http://web-tourist.net/";
$source = file_get_contents($stranica);
if ( eregi("<a(.*)href=\"".$link."\"(.*)>(.*)</a>", $source) )
echo "IMA LINK";
else
echo "NQMA LINK";
?>
+1StormBreaker каза:Код:<?php $link = "http://web-tourist.net"; $stranica = "http://web-tourist.net/"; $source = file_get_contents($stranica); if ( eregi("<a(.*)href="".$link.""(.*)>(.*)</a>", $source) ) echo "IMA LINK"; else echo "NQMA LINK"; ?>
$link - линка към твоя сайт
$stranica - линка към сайта, в който да гледа
ДЕМО - в случая засича хедъра и начало в менюто. :?: :?:
<style type="text/css">
input.check {
font-family: verdana, arial, helvetica, sans-serif;
font-size: 11px;
color: #666666;
background: #F9FBFF;
border: 1px solid #B7D8FF;
}
</style>
<div style="font-family: verdana; font-size: 11px; color: #555555;">
<?php
if($_POST[proverka]) {
$link1 = $_POST[link1];
$link1 = str_replace("http://", "", $link1);
$link1 = str_replace("www.", "", $link1);
$link2 = $_POST[link2];
$link2 = str_replace("http://", "", $link2);
$link2 = str_replace("www.", "", $link2);
$source = file_get_contents("http://$link1");
if (eregi("<a(.*)href=(.*)".$link2."(.*)>(.*)</a>", $source)) {
echo "Да, има линк! :)";
}
else {
echo "НЕ БЕШЕ ОТКРИТ ЛИНК!";
}
}
?>
<br /><br />
<form method="POST" action="" style="padding: 0; margin: 0;">
Проверете дали в http://<input type="text" name="link1" value="domain.com" class="check" />
има линк към http://<input type="text" name="link2" value="tvoqdomain.com" class="check" />
<input type="submit" name="proverka" value="Check!" class="check" style="cursor: pointer;" />
</form>
</div>