mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-10 04:02:28 +01:00
22 lines
340 B
PHP
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();
|
|
}
|