failed'); } if (!Auth::check()) { die('
please log in
'); } if (!ClickZans::canClickZan($_POST['id'], $_POST['type'], Auth::user())) { die('
no permission
'); } die(ClickZans::click($_POST['id'], $_POST['type'], Auth::user(), $_POST['delta'], $_POST['show-text']));