OSDN Git Service
(root)
/
embrj
/
master.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GeorgeValergas/embrr
[embrj/master.git]
/
ajax
/
reportSpam.php
1
<?php
2
include_once("../lib/twitese.php");
3
if(!isset($_POST['spammer'])){
4
echo 'error';
5
exit;
6
}
7
$spammer = trim($_POST['spammer']);
8
if($spammer == ''){
9
echo 'error';
10
exit;
11
}
12
$t = getTwitter();
13
$result = $t->reportSpam($spammer);
14
if(isset($result->screen_name)){
15
echo 'success';
16
}else{
17
echo 'error';
18
}
19
?>