-
Notifications
You must be signed in to change notification settings - Fork 0
/
NTASAlerts.php
107 lines (99 loc) · 2.19 KB
/
NTASAlerts.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
<?php
// arpsc_tweets.php
//
// arpsc_tweets displays the mi_arpsc twitter timeline inside
// a normal mi-arpsc frame. The timeline is generated by some
// javascript provided by twitter.
//
include('includes/session.inc');
$title=_('Michigan Section ARES/RACES');
include('includes/functions.inc');
// Remember the launch time
$starttime = strftime("%A, %B %d %Y, %H:%M");
// Open the database
$db = mysql_connect($host , $dbuser, $dbpassword);
mysql_select_db($DatabaseName,$db);
ARESheader($title,"ARES RACES ARPSC Michigan Section Twitter");
ARESleftBar( $db );
?>
<div id="main">
<center>
<h1>NTAS Alerts</h1>
<p> </p>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 8,
interval: 6000,
title: 'Michigan State Police',
subject: 'EMHSD',
width: 400,
height: 50,
theme: {
shell: {
background: '#000077',
color: '#ffff00'
},
tweets: {
background: '#600000',
color: '#ffffff',
links: '#66ccff'
}
},
features: {
scrollbar: false,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setUser('MichEMHS').start();
</script>
<p> </p>
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'list',
rpp: 1,
interval: 6000,
title: 'NTASAlerts',
subject: 'Recent DHS Alerts',
width: 400,
height: 100,
theme: {
shell: {
background: '#000080',
color: '#ffffff'
},
tweets: {
background: '#600000',
color: '#ffffff',
links: '#ccccff'
}
},
features: {
scrollbar: true,
loop: false,
live: true,
hashtags: true,
timestamp: true,
avatars: true,
behavior: 'all'
}
}).render().setList('NTASAlerts', '').start();
</script>
</center>
</div>
<?php
sectLeaders($db);
footer($starttime,$maxdate,
"\$Revision: 1.2 $ - \$Date: 2011-01-03 09:37:14-05 $");
?>
</div>
</body>
</html>