1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-14 14:12:29 +01:00
polr/linkcheck.php

22 lines
335 B
PHP
Raw Normal View History

<?php
require_once('req.php');
require_once('ajaxhandler.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();
}