Permalink
Browse files

Added a gui installer, well tried it looks crapy..

  • Loading branch information...
1 parent 4f9d458 commit 1a5624d846e22378702ba642f1c01ed5b28a4316 @riemers committed Feb 13, 2012
Showing with 1 addition and 349 deletions.
  1. +0 −144 admin-tracker.php
  2. +1 −1 boxcar-init.php
  3. +0 −14 config.php.example
  4. +0 −190 install/ssms.sql
View
@@ -1,144 +0,0 @@
-<?
- include("../lib/functions.php");
- include("config.php");
-
- head();
-
- $connectsourcebans = mysql_connect($host_sourcebans, $user_sourcebans, $pass_sourcebans) or die(mysql_error());
- mysql_select_db($table_sourcebans) or die(mysql_error());
-
- $sbAdmins = "SELECT user,authid,srv_group from `sb_admins` ORDER BY `sb_admins`.`srv_group` DESC";
- $query_sbAdmins = mysql_query($sbAdmins);
- $total = 0;
-
- echo time();
-
- echo "<table class=\"listtable\" align=\"left\">";
- echo " <tr class=\"headers\">
- <td>User</td><td>Steam ID</td><td>Group</td><td>Forum User ID</td><td>Forum Name</td><td>Email</td><td>Lastest Post</td><td>Last Forum Visit</td><td>Last Server Connect</td><td>Tools</td>
- </tr>";
-
-
-
- while ($row = mysql_fetch_assoc($query_sbAdmins)) {
-
- $user = $row["user"];
- $authid = $row["authid"];
- $srv_group = $row["srv_group"];
-
- if($srv_group == '') {
-
- } else {
-
- $total++;
-
- echo "<tr class=\"elements\"><td>$user</td><td>$authid</td><td>$srv_group</td>";
-
- mysql_close($connectsourcebans);
-
- $connectslethalsite = mysql_connect($host_lz, $user_lz, $pass_lz) or die(mysql_error());
- mysql_select_db($table_lz) or die(mysql_error());
-
- $forumId = "SELECT user_id from `phpbb_profile_fields_data` where pf_steam_id = '$authid'";
- $query_forumId = mysql_query($forumId);
-
- $row = mysql_fetch_assoc($query_forumId);
-
- $user_id = $row["user_id"];
-
- echo "<td>$user_id</td>";
-
- $forumInfo = "SELECT username,user_email,user_lastpost_time,user_lastvisit from phpbb_users where user_id = '$user_id'";
- $query_forumInfo = mysql_query($forumInfo);
-
- $row = mysql_fetch_assoc($query_forumInfo);
-
- $username = $row["username"];
- $useremail = $row["user_email"];
- $userLastPost = $row["user_lastpost_time"];
- $userLastVisit = $row["user_lastvisit"];
-
- echo "<td>$username</td><td>$useremail</td><td>$userLastPost</td><td>$userLastVisit</td>";
-
- mysql_close($connectslethalsite);
-
- $connectshlstats = mysql_connect($host_hlstats, $user_hlstats, $pass_hlstats) or die(mysql_error());
- mysql_select_db($table_hlstats) or die(mysql_error());
-
- // steeam id used in hlstats db
- $uniqueId = substr($authid, 8);
-
- $hlplayerid = "SELECT playerId from hlstats_PlayerUniqueIds where uniqueId = '$uniqueId'";
- $query_hlplayerid = mysql_query($hlplayerid);
-
- $total = 0;
-
- while($row = mysql_fetch_array($query_hlplayerid)) {
-
- $hlPlayerId = $row["playerId"];
- $connect = "SELECT last_event FROM `hlstats_Players` where playerId = '$hlPlayerId'";
- $query_connect = mysql_query($connect);
-
- $row = mysql_fetch_assoc($query_connect);
-
- $connectTime = $row["last_event"];
-
- if($connectTime > $total) {
-
- $total = $connectTime;
-
- }
-
-
- }
-
-
-
- // More than 30 days formula for unix time:
- // if, current - playertime > 26294744
- // then more than 30 days
-
- $current = time();
- //$time = $current - $connectTime;
-
-
- $theTime = $current - $total;
-
-
- if ($theTime > 2592000) {
-
- $uConnectTime = date('M j y', $connectTime);
-
- echo "<td style='background-color:red;'>$uConnectTime</td><td></td></tr>";
-
-
- } else {
-
- $uConnectTime = date('M j y', $connectTime);
-
- echo "<td>$uConnectTime</td><td></td></tr>";
-
-
-
- }
-
-
-
- mysql_close($connectshlstats);
-
-
-
- }
- mysql_close($connectslethalsite);
- }
-
- echo "</table>";
-
- echo $total;
-
-
-
-
- bottom();
-
-?>
View
@@ -21,7 +21,7 @@
$b = new boxcar_api(API_KEY, API_SEC);
try {
- $b->notify(YOUR_EMAIL, 'SUCCES', 'Your first notification for SSMS, your a champ!');
+ $b->notify(YOUR_EMAIL, 'SUCCES', 'Your first notification for SSMS, you are a champ!');
} catch(Exception $e) {
echo "Seems that something went wrong, did you type in the correct email? And did you also subscribed to the SSMS feed in boxcar?";
echo "Double check that, you will be send back to the config page in 10 seconds. Otherwise just press the back button.";
View
@@ -5,24 +5,10 @@
$pass = "changeme";
$table = "changeme";
- // default prefix to cut down on long names
- $server_prefix = "[EU] Lethal-Zone.eu";
-
// hlstats database (optional)
$host_hlstats = "changeme";
$user_hlstats = "changeme";
$pass_hlstats = "changeme";
$table_hlstats = "changeme";
- // sourcebans database (not used for now)
- $host_sourcebans = "changeme";
- $user_sourcebans = "changeme";
- $pass_sourcebans = "changeme";
- $table_sourcebans = "changeme";
-
- // phpbb database (not used for now)
- $host_lz = "changeme";
- $user_lz = "changeme";
- $pass_lz = "changeme";
- $table_lz = "changeme";
?>
View
@@ -1,190 +0,0 @@
-SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
-
-/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
-/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
-/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
-/*!40101 SET NAMES utf8 */;
-
-
-DROP TABLE IF EXISTS `calendar`;
-CREATE TABLE IF NOT EXISTS `calendar` (
- `datefield` date DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `config`;
-CREATE TABLE IF NOT EXISTS `config` (
- `setting` varchar(30) NOT NULL,
- `config` varchar(512) NOT NULL,
- `shortname` varchar(512) NOT NULL,
- `description` varchar(512) NOT NULL,
- UNIQUE KEY `setting` (`setting`,`config`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-INSERT INTO `config` (`setting`, `config`, `shortname`, `description`) VALUES
-('showrestarts', 'no', 'Show Restarts', 'Weither or not to show the extra tab for restarts, if you dont use the restarts plugin you cannot see any restarts from servers. If you dont use the plugin this is pretty much useless. This option will remove that tab, same as the rules option.'),
-('defaultmotd', 'no', 'Default motd', 'If you add a new server, should it by default have the motd flag on? This means that if you use the motd page that comes with SSMS it will show in there, handy if you dont want your warservers or test servers in the motd.'),
-('defaultautoupdate', 'yes', 'Auto update', 'Default set to yes, will mean that if a update comes out for this type of game, it will initiate a quit to the server in order for it to automaticly update (assuming you have -autoupdate or some other form that tries to update when you restart your server)'),
-('defaultgametypeinplugins', 'all', 'Default Gametype (NOT IN USE YET)', 'For the plugin tab, if you have 30 counter strike servers and only 1 tf2 server i can imagine that you want to have counter strike as default. Set this to the gametype value of that game. (if uncertain, leave it to all)'),
-('announceupdate', 'no', 'Announce Updates', 'announce it to the messagers that are turned on'),
-('usegrowl', 'no', 'Use Growl', 'If you want to use growl or not'),
-('usetwitter', 'no', 'Use Twitter', 'If you want to use twitter or not'),
-('useemail', 'no', 'Use E-Mail', 'If you want to use mail or not'),
-('consumerkey', '', 'Consumer Key', 'Your consumer key found on the dev twitter site when you create a new app for it.'),
-('emailalert', '', 'Email', 'The primary email address it will send a notification too if it needs to send out a email.'),
-('retrycount', '5', 'Retry Count', 'Number of retry''s the server can have before it sends out a notification that the server is down. Dont change this lower then 3 since a server could be changing maps and wont respond (and that will increase the retry count) thats also why in the server tab it will show as amber. '),
-('announceserverdown', 'yes', 'Announce down Server', 'If a server goes down, should we announce this to the steamgroup, email or both? (Valid values are, ''both'',''email'',''steam'',''none'')'),
-('defaultannounce', 'sm_msay Server is going down for update;sm_hsay Server is going down for restart', 'Client info update', 'if a server is allowed to do a update, this is the default string a new server will get. It will send out this string to the server if a update is starting. After the defined number of seconds it will issue the quit. This is the be more userfriendly and inform the users of what is happening.'),
-('server_prefix', '', 'Prefix', 'Server prefix (to cut down the name in plugin overview)'),
-('growlip', 'home.binkey.nl', 'Growl IP', 'IP address/hostname where to send the growl message towards (port 9887 udp needs to be open)'),
-('growlpass', 'lethal', 'Growl Password', 'Password used in growl to authenticate, can be a new one ofcourse in growl itself.'),
-('consumersecret', '', 'Consumer Secret', 'Your consumer secret found on the dev twitter site when you create a new app for it.'),
-('OAuthToken', '', 'OAuthToken', 'OAuthToken found within your account by access tokens.'),
-('OAuthTokenSecret', '', 'OAuthTokenSecret', 'OAuthTokenSecret found within your account by access tokens.'),
-('netconrestart', 'shutdown', 'Netcon Restart', 'The command that is send towards servers that use netcon (forks for l4d/l4d2 have this) preffered is ''shutdown'' since it will wait for the last players to go. Ofcourse ''quit'' can also be used.'),
-('adminactivity', 'no', 'Admin Logs', 'Show the tab for Admin activity (only works in combination with the dbadmin.smx loaded)'),
-('usestats', 'no', 'Use Stats', 'Use statistics pages like hlstats (only hlstats for now)'),
-('statsprogram', 'hlxce', '', ''),
-('statsurl', '', 'Stats URL', 'Link to the webpage for the stats');
-
-DROP TABLE IF EXISTS `extensions`;
-CREATE TABLE IF NOT EXISTS `extensions` (
- `extid` int(10) unsigned NOT NULL AUTO_INCREMENT,
- `name` varchar(512) NOT NULL,
- `author` varchar(255) NOT NULL,
- `file` varchar(255) NOT NULL,
- `version` varchar(255) NOT NULL,
- `url` varchar(255) NOT NULL,
- `details` varchar(255) NOT NULL,
- PRIMARY KEY (`extid`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `games`;
-CREATE TABLE IF NOT EXISTS `games` (
- `shortname` varchar(20) NOT NULL,
- `longname` varchar(200) NOT NULL,
- `appID` int(4) NOT NULL,
- `version` varchar(16) NOT NULL,
- `expired` set('yes','no') NOT NULL DEFAULT 'no',
- `minplayers` int(2) DEFAULT NULL
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-INSERT INTO `games` (`shortname`, `longname`, `appID`, `version`, `expired`, `minplayers`) VALUES
-('tf', 'Team Fortress 2', 440, '1.1.9.2', 'no', 4),
-('left4dead', 'Left 4 Dead', 500, '1.0.2.6', 'no', NULL),
-('left4dead2', 'Left for Dead 2', 550, '2.0.9.4', 'no', NULL),
-('cstrike', 'Counter-Strike: Source', 240, '1.0.0.69', 'no', 4),
-('all', 'All Games', 0, '', '', NULL),
-('dod', 'Day of Defeat: Source', 300, '1.0.0.30', 'no', NULL),
-('nucleardawn', 'Nuclear Dawn', 17710, '11.12.15', 'no', NULL);
-
-DROP TABLE IF EXISTS `metamods`;
-CREATE TABLE IF NOT EXISTS `metamods` (
- `metaid` int(11) NOT NULL AUTO_INCREMENT,
- `name` varchar(255) NOT NULL,
- `version` varchar(255) NOT NULL,
- `description` varchar(512) NOT NULL,
- `url` varchar(255) NOT NULL,
- `details` varchar(255) NOT NULL,
- `file` varchar(255) NOT NULL,
- PRIMARY KEY (`metaid`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `mods`;
-CREATE TABLE IF NOT EXISTS `mods` (
- `modid` int(5) NOT NULL AUTO_INCREMENT,
- `filename` varchar(255) NOT NULL,
- `title` varchar(255) NOT NULL,
- `author` varchar(255) NOT NULL,
- `version` varchar(255) NOT NULL,
- `url` varchar(255) NOT NULL,
- `status` varchar(255) NOT NULL,
- `reloads` varchar(255) NOT NULL,
- `timestamp` varchar(255) NOT NULL,
- `threadid` mediumint(11) DEFAULT NULL,
- PRIMARY KEY (`modid`),
- UNIQUE KEY `filename` (`filename`,`version`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `plugindb`;
-CREATE TABLE IF NOT EXISTS `plugindb` (
- `pluginid` int(11) NOT NULL,
- `threadid` int(11) NOT NULL,
- `author` varchar(255) NOT NULL,
- `filename` varchar(1000) NOT NULL,
- `altwebsite` varchar(255) NOT NULL,
- `description` varchar(1000) NOT NULL,
- `info` varchar(5000) NOT NULL,
- `version` varchar(20) NOT NULL,
- `send` set('yes','no') NOT NULL DEFAULT 'yes',
- `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`threadid`),
- UNIQUE KEY `filename` (`filename`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `restarts`;
-CREATE TABLE IF NOT EXISTS `restarts` (
- `indexnum` int(11) NOT NULL AUTO_INCREMENT,
- `timedate` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
- `serverid` int(11) DEFAULT NULL,
- PRIMARY KEY (`indexnum`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `servers`;
-CREATE TABLE IF NOT EXISTS `servers` (
- `serverid` int(5) NOT NULL AUTO_INCREMENT,
- `servername` varchar(255) NOT NULL,
- `ip` varchar(255) NOT NULL,
- `port` varchar(255) NOT NULL,
- `netconport` int(7) DEFAULT NULL,
- `netconpasswd` varchar(255) DEFAULT NULL,
- `rconpass` varchar(255) NOT NULL,
- `type` varchar(50) NOT NULL,
- `os` varchar(255) NOT NULL,
- `version` varchar(50) NOT NULL,
- `network` varchar(50) NOT NULL,
- `lastupdate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- `currentmap` varchar(50) NOT NULL,
- `currentplayers` int(2) NOT NULL,
- `currentbots` int(2) NOT NULL,
- `maxplayers` int(2) NOT NULL,
- `rulesadd` varchar(1024) NOT NULL,
- `autoupdate` set('yes','no') NOT NULL DEFAULT 'yes',
- `showmotd` set('yes','no') NOT NULL DEFAULT 'yes',
- `retries` int(5) NOT NULL DEFAULT '0',
- `restartsend` set('yes','no','update','restart','optional','emptyserver','emptyserver') NOT NULL DEFAULT 'no',
- `updatemessage` varchar(255) NOT NULL,
- `dlyrestart` set('yes','no') NOT NULL DEFAULT 'no',
- `dlytime` time DEFAULT '00:00:00',
- `dlycmd` varchar(255) NOT NULL DEFAULT '_restart',
- `dlyusers` int(2) DEFAULT '0',
- `cmdtosend` set('normal','daily','optional') NOT NULL DEFAULT 'normal',
- `goingdown` set('yes','no') NOT NULL DEFAULT 'no',
- `protected` set('1','0') NOT NULL DEFAULT '0',
- PRIMARY KEY (`serverid`),
- UNIQUE KEY `ip` (`ip`,`port`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `sm_logging`;
-CREATE TABLE IF NOT EXISTS `sm_logging` (
- `serverid` int(5) NOT NULL,
- `steamid` varchar(100) NOT NULL,
- `logtag` varchar(100) NOT NULL,
- `message` varchar(255) NOT NULL,
- `name` varchar(32) NOT NULL,
- `time_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- KEY `steamid` (`steamid`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-
-DROP TABLE IF EXISTS `srv_mods`;
-CREATE TABLE IF NOT EXISTS `srv_mods` (
- `id` int(5) NOT NULL AUTO_INCREMENT,
- `modid` int(5) NOT NULL,
- `metaid` int(5) NOT NULL,
- `extid` int(11) NOT NULL DEFAULT '0',
- `serverid` int(5) NOT NULL,
- `pluginnr` int(5) NOT NULL,
- `status` set('active','inactive') NOT NULL,
- `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-

0 comments on commit 1a5624d

Please sign in to comment.