Skip to content

Commit

Permalink
Update installer.php (#62)
Browse files Browse the repository at this point in the history
* Update installer.php

* Update installer.php
  • Loading branch information
cammygames authored and MightySCollins committed Apr 4, 2018
1 parent 6ecb93a commit 820ea06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ function get_gravatar( $email, $s = 80, $d = 'mm', $r = 'g', $img = false, $atts
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;');

$connection->query('INSERT INTO `cw_permissions` (`id`, `group_name`, `group_id`, `is_superUser`, `can_view_players`, `can_view_player`, `can_view_vehicles`, `can_view_vehicle`, `can_view_logs`, `can_view_player_civ_lic`, `can_view_player_cop_lic`, `can_view_player_ems_lic`, `can_view_player_notes`, `can_view_player_edit_log`, `can_view_player_vehicles`, `can_view_gangs`, `can_view_containers`, `can_view_houses`, `can_edit_container`, `can_edit_house`, `can_compensate`, `can_blacklist`, `can_add_note`, `can_delete_note`, `can_edit_cash`, `can_edit_bank`, `can_edit_donator`, `can_edit_jailed`, `can_edit_cop_rank`, `can_edit_cop_lic`, `can_edit_ems_rank`, `can_edit_ems_lic`, `can_edit_civ_lic`, `can_edit_admin_rank`, `can_edit_vehicle`, `can_edit_gang`, `can_edit_group_name`, `can_edit_group_perms_player`, `can_edit_group_perms_vehicle`, `can_edit_group_perms_settings`, `can_edit_group_perms_gang`, `can_edit_group_perms`, `can_edit_group_ips_id`, `can_make_groups`, `can_edit_users`, `can_add_user`, `can_del_user`, `can_edit_group_perms_container`, `can_edit_group_perms_house`) VALUES
(1, \'Root Admin\', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1);');
$connection->query('INSERT INTO `cw_permissions` (`id`, `group_name`, `group_id`, `is_superUser`, `can_view_players`, `can_view_player`, `can_view_vehicles`, `can_view_vehicle`, `can_view_logs`, `can_view_player_civ_lic`, `can_view_player_cop_lic`, `can_view_player_ems_lic`, `can_view_player_notes`, `can_view_player_edit_log`, `can_view_player_vehicles`, `can_view_gangs`, `can_view_containers`, `can_view_houses`, `can_edit_container`, `can_edit_house`, `can_compensate`, `can_blacklist`, `can_add_note`, `can_delete_note`, `can_edit_cash`, `can_edit_bank`, `can_edit_donator`, `can_edit_jailed`, `can_edit_cop_rank`, `can_edit_cop_lic`, `can_edit_ems_rank`, `can_edit_ems_lic`, `can_edit_civ_lic`, `can_edit_admin_rank`, `can_edit_vehicle`, `can_edit_gang`, `can_edit_group_name`, `can_edit_group_perms_player`, `can_edit_group_perms_vehicle`, `can_edit_group_perms_settings`, `can_edit_group_perms_gang`, `can_edit_group_perms`, `can_edit_group_ips_id`, `can_make_groups`, `can_edit_users`, `can_add_user`, `can_del_user`, `can_edit_group_perms_container`, `can_edit_group_perms_house`, `can_del_group`) VALUES
(1, \'Root Admin\', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);');

$query = $connection->prepare("INSERT INTO `cw_users` (`name`, `password`, `email`, `profilePicture`, `primaryGroup`, `created_at`) VALUES (:username, :password, :email, :profilePicture, '{\"id\":\"1\"}', NOW())");
$query->bindParam(':username', $_POST['admin_user']);
Expand Down

0 comments on commit 820ea06

Please sign in to comment.