Skip to content

Commit

Permalink
Added group syncing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Mar 9, 2014
1 parent 3a4ed24 commit 507cf3d
Show file tree
Hide file tree
Showing 20 changed files with 794 additions and 600 deletions.
3 changes: 2 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
$_GET['key'] = isset($opts['key'])?$opts['key']:(isset($opts['k'])?$opts['k']:false);
$_GET['server'] = isset($opts['server'])?$opts['server']:(isset($opts['s'])?$opts['s']:false);
if(!$_GET['user'] || !$_GET['key'] || !$_GET['server']){
die('# Please provide a user, api key and a server name.');
header('Location: site/');
die();
}
}
$user = get_current_user_obj('netadmin') or $user = get_current_user_obj('servermanager') or $user = get_current_user_obj('globaladmin') or die('# Invalid user/key pair.');
Expand Down
10 changes: 10 additions & 0 deletions ircd.sql
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,16 @@ INSERT INTO `user_role_types` (`id`, `name`, `description`, `flags`) VALUES
(3, 'netadmin', 'Network Admin', 'on'),
(4, 'globaladmin', 'Global Admin', 'nao');


DROP TABLE IF EXISTS `smf_groups`;
CREATE TABLE IF NOT EXISTS `smf_groups` (
`irc_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`id_group` smallint(5) NOT NULL,
PRIMARY KEY (`irc_name`),
UNIQUE KEY `irc_name` (`irc_name`,`id_group`),
KEY `id_group` (`id_group`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

-- --------------------------------------------------------

--
Expand Down
Binary file modified lang/en/LC_MESSAGES/omninet.mo
Binary file not shown.
Loading

0 comments on commit 507cf3d

Please sign in to comment.