-
Notifications
You must be signed in to change notification settings - Fork 6
/
growl-init.php
27 lines (20 loc) · 718 Bytes
/
growl-init.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
<?php
require_once 'lib/growl/class.growl.php';
include("config.php");
include("lib/functions.php");
mysql_connect($host, $user, $pass) or die(mysql_error());
mysql_select_db($table) or die(mysql_error());
$config = getsettings();
$gametypes = gametypes();
$growlip = $config['growlip']['config'];
$growlpass = $config['growlpass']['config'];
$growl = new Growl();
$growl->setAddress($growlip, $growlpass);
foreach (array_keys($gametypes) as $shortname) {
$growl->addNotification("$shortname");
}
// Register with the remote machine.
// You only need to do this once.
$growl->register();
?>
<meta http-equiv="refresh" content="0; URL=ssmsconfig.php">