-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtwtimeline.php
More file actions
48 lines (45 loc) · 1.15 KB
/
Copy pathtwtimeline.php
File metadata and controls
48 lines (45 loc) · 1.15 KB
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
<?php
error_reporting(0);
//error_reporting(E_ALL);
//ini_set('display_errors', 1);
$user = $_GET['user'];
?>
<html data-layout-mode="dark">
<head>
<title>
<?php
if ($_GET['user']) {
echo 'Tweets de @'.$user;
}
else
{
echo 'Buscar timeline de Twitter';
}
?>
</title>
<link rel="icon" type="image/x-icon" href="/img/Bokehlicia-Captiva-Web-twitter-2.32.png">
<style>
body {
padding: 25px;
font-size: 25px;
background-color: black;
color: white;
}
</style>
<meta name="twitter:widgets:theme" content="dark" /><meta name="twitter:widgets:link-color" content="#80ffff" /><meta name="twitter:widgets:border-color" content="#000000" />
</head>
<body>
<?php
if ($_GET['user']) {
echo '<a class="twitter-timeline" data-lang="es" href="https://twitter.com/'.$user.'?ref_src=twsrc%5Etfw">Tweets de @'.$user.'</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>';
}
else
{
echo '<form action="twtimeline.php" method="get">';
echo 'Usuario de Twitter: <input name="user" value="" />';
echo '<button>Ver timeline</button>';
echo '</form>';
}
?>
</body>
</html>