forked from sinkaroid/antk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get.php
127 lines (99 loc) · 2.49 KB
/
get.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<title>Antifansub | Download</title>
<link href="http://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet" type="text/css">
<style>
.memek {
margin: auto;
background-color: #f7f3f3;
width: 50%;
padding: 10px;
-moz-border-radius: 5px;
-webkit-border-radius: 30px;
}
.bokong {
margin: auto;
text-align: center;
width: 100%;
padding: 1px;
}
.koceng {
display: inline-block;
text-align: left;
}
div.rounded {
border: 3px dotted gray;
margin: auto;
width: 70%;
color: #000000;
font-weight: bold;
padding: 1px;
-moz-border-radius: 5px;
-webkit-border-radius: 10px; }
div.kotak {
background-color: silver;
margin: auto;
width: 30%;
color: #000000;
padding: 1px;
-moz-border-radius: 5px;
-webkit-border-radius: 20px; }
body {
background: black url("inc/a.png") no-repeat fixed center;
}
.intro {
margin: auto;
background-color: #f7f3f3;
width: 30%;
padding: 10px;
-moz-border-radius: 5px;
-webkit-border-radius: 20px;
}
</style>
<?php
require 'inc/str.php';
print $form;
if(isset($_GET['anti'])){
$anti = $_GET['anti'];
$curl = curl_init($anti);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$page = curl_exec($curl);
if(curl_errno($curl))
{
echo 'Scraper error: ' . curl_error($curl);
exit;
}
curl_close($curl);
print '<div class="memek"><br>';
//anime info
function wordFilter3($text)
{
$ambilkata = $text;
$ambilkata = str_replace('<p><span>', '<br>', $ambilkata);
$ambilkata = str_replace('</span></p>', '', $ambilkata);
$ambilkata = str_replace('Producers', '</p>Producers', $ambilkata);
$ambilkata = str_replace('Genre', '<p hidden>', $ambilkata);
return $ambilkata;
}
$regex = '/<div class="info">(.*?)<\/div>/s';
if ( preg_match($regex, $page, $list) )
echo '<div class="kotak"><center>',wordFilter3($list[0]),'</div>';
//sinopsis
$regex = '/<div class="cover">(.*?)<\/div>/s';
if ( preg_match($regex, $page, $list) )
echo '<center>',$list[0],'</div>';
//link
$regex = '/<div class="smokeddl">(.*?)<div class="anito-shortlink" id=(.*?)">/s';
if ( preg_match($regex, $page, $list) )
echo '<center><div class="rounded">',$list[0],'</div></div><br>';
else
print "Not found";
}
?>
</div></div></div>
<p><center>
<div class="intro">
<font color=crimson face=consolas size=3>
<b>© Sin,</b>
<br><font size="3" color="gray">
feel free to pull,issues,or stealing at:<br><font color=blue> https://github.com/sinkaroid/antifansub</font>
</font>
</div>