1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-13 21:52:29 +01:00
polr/helper-linkcheck.php
2014-12-28 14:52:06 -05:00

22 lines
340 B
PHP

<?php
require_once('lib-core.php');
require_once('helper-ajax.php');
$ajaxhandler = new ajaxhandler();
$link = $mysqli->real_escape_string($_POST['link']);
$checked = $ajaxhandler->linkcheck($link,$mysqli);
if ($checked==1) {
echo "1";
die();
}
elseif ($checked==0) {
echo '0';
die();
}
else {
echo '2';
die();
}