-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
test3.php
70 lines (47 loc) · 1.92 KB
/
test3.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
<html>
<head>
<style>
* { font-family:monospace }
a,a:visited { color:#bbb!important;}
body,html {background:#222; color:#aaa}
body { font-family:arial; font-size:12px;line-height:15px;padding:10px}
hr { border-top:1px dotted #777;height:1px;margin:15px 0;}
h2 { padding:10px 0 5px 0;margin:0;}
b { background-color:#ffffcc; color:#222;font-weight:normal;padding:0 3px;}
</style>
</head>
<body>
<?
include("minibots.class.php");
$mb = new Minibots();
echo "| <a href='test.php'>Page 1</a> | <a href='test2.php'>Page 2</a> | <a href='test3.php'><b>Page 3</b></a> | <a href='test4.php'>Page 4</a> |<hr>";
echo "<h2>getGravatar method</h2>";
echo "<p>Get avatar pic from gravatar, test with <b>[email protected]</b>:</p>";
echo "<img src='".$mb->getGravatar("[email protected]")."'>";
echo "<hr>";
echo "<h2>getLinkedinCounter method</h2>";
echo "<p>Shares on linkedin for <b>http://www.barattalo.it/mini-bots-php-class/</b>:</p>";
echo $mb->getLinkedinCounter("http://www.barattalo.it/mini-bots-php-class/");
echo "<hr>";
echo "<h2>getPinterestCounter method</h2>";
echo "<p>Shares on getPinterestCounter for <b>https://www.dailybest.it/art/shines-a-light-e-uninstallazione-che-descrive-la-nostra-ossessione-per-la-tecnologia/</b>:</p>";
echo $mb->getPinterestCounter("https://www.dailybest.it/art/shines-a-light-e-uninstallazione-che-descrive-la-nostra-ossessione-per-la-tecnologia/");
echo "<hr>";
/*
No longer works
echo "<h2>getGoogleBackLinks method</h2>";
echo "<p>Google back links for <b>www.rockit.it</b>:</p>";
echo $mb->getGoogleBackLinks("www.rockit.it");
echo "<hr>";
echo "<h2>getGoogleIndexedPages method</h2>";
echo "<p>Google indexed pages for <b>www.barattalo.it</b>:</p>";
echo $mb->getGoogleIndexedPages("www.barattalo.it");
echo "<hr>";
*/
echo "<h2>getImageGoogle method</h2>";
echo "<p>Get Google images for keyword <b>funny face</b>:</p>";
echo "<pre>";
print_r( $mb->getImageGoogle("funny face") );
echo "</pre>";
echo "<hr>";
?>