From ea665c34d5aac4ea8e89dd10e5b0a86c1b0cd6c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:35:23 +0000 Subject: [PATCH 1/6] Initial plan From 7f19731158481d65aa3964e7097431587103b689 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Sep 2025 15:45:27 +0000 Subject: [PATCH 2/6] Phase 1: Update database configuration and schema (OGP to GSP) Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- db/mysql_template.sql | 586 +++++++++--------- home.php | 2 +- includes/config.inc.php | 2 +- includes/database.php | 4 +- includes/database_mysqli.php | 8 +- includes/helpers.php | 4 +- includes/view.php | 6 +- index.php | 24 +- modules/TS3Admin/TS3Admin.php | 4 +- modules/TS3Admin/module.php | 8 +- modules/TS3Admin/ts3webinterface.class.php | 10 +- modules/addonsmanager/addons_installer.php | 4 +- modules/addonsmanager/addons_manager.php | 16 +- modules/addonsmanager/module.php | 8 +- modules/addonsmanager/monitor_buttons.php | 2 +- modules/addonsmanager/user_addons.php | 12 +- modules/administration/banlist.php | 4 +- modules/administration/module.php | 8 +- modules/billing/add_to_cart.php | 4 +- modules/billing/bak/add_to_cart.php | 4 +- modules/billing/bak/bill.php | 8 +- modules/billing/bak/cart.php | 32 +- modules/billing/bak/coupon.php | 8 +- modules/billing/bak/coupons.php | 8 +- modules/billing/bak/create_servers.php | 22 +- modules/billing/bak/ipn.php | 2 +- modules/billing/bak/module.php | 42 +- modules/billing/bak/orders.php | 16 +- modules/billing/bak/paid.php | 2 +- modules/billing/bak/paypal.php | 4 +- modules/billing/bak/services.php | 20 +- modules/billing/bak/shop.php | 6 +- modules/billing/bill.php | 8 +- modules/billing/cart.php | 8 +- modules/billing/coupon.php | 8 +- modules/billing/coupons.php | 8 +- modules/billing/create_servers.php | 22 +- modules/billing/ipn.php | 2 +- modules/billing/module.php | 42 +- modules/billing/orders.php | 16 +- modules/billing/paid.php | 2 +- modules/billing/paypal.php | 4 +- modules/billing/services.php | 20 +- modules/billing/shop.php | 6 +- modules/circular/functions.php | 18 +- modules/circular/module.php | 8 +- modules/config_games/module.php | 8 +- modules/dashboard/dashboard.php | 10 +- modules/dashboard/module.php | 10 +- modules/dashboard/updateWidgets.php | 2 +- modules/extras/extras.php | 2 +- modules/faq/faq.php | 2 +- modules/fast_download/functions.php | 20 +- modules/fast_download/module.php | 10 +- modules/gamemanager/module.php | 44 +- modules/lgsl_with_img_mod/image.php | 4 +- .../lgsl_files/lgsl_admin.php | 10 +- .../lgsl_files/lgsl_class.php | 16 +- modules/lgsl_with_img_mod/module.php | 2 +- modules/modulemanager/module.php | 4 +- modules/mysql/module.php | 8 +- modules/mysql/monitor_buttons.php | 2 +- modules/mysql/mysql_database.php | 2 +- modules/mysql/mysqli_database.php | 2 +- modules/server/module.php | 26 +- modules/settings/module.php | 6 +- modules/tickets/include/Attachments.php | 2 +- modules/tickets/include/TicketSettings.php | 6 +- modules/tickets/include/ticket.php | 40 +- modules/tickets/module.php | 34 +- modules/tshock/module.php | 4 +- modules/update/blacklist.php | 8 +- modules/update/module.php | 10 +- modules/update/updating.php | 6 +- modules/user_admin/module.php | 40 +- modules/user_games/check_expire.php | 8 +- modules/user_games/edit_home.php | 2 +- modules/user_games/install_cmds.php | 8 +- modules/user_games/module.php | 22 +- ogp_api.php | 8 +- protocol/TeamSpeak3/functions.php | 8 +- server_status.php | 2 +- 82 files changed, 730 insertions(+), 730 deletions(-) diff --git a/db/mysql_template.sql b/db/mysql_template.sql index 9b860c42..b942fbbd 100644 --- a/db/mysql_template.sql +++ b/db/mysql_template.sql @@ -25,10 +25,10 @@ SET time_zone = "+00:00"; -- -------------------------------------------------------- -- --- Table structure for table `ogp_addons` +-- Table structure for table `gsp_addons` -- -CREATE TABLE `ogp_addons` ( +CREATE TABLE `gsp_addons` ( `addon_id` int(10) UNSIGNED NOT NULL, `name` varchar(80) NOT NULL, `url` varchar(200) NOT NULL, @@ -42,10 +42,10 @@ CREATE TABLE `ogp_addons` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_adminexternallinks` +-- Table structure for table `gsp_adminexternallinks` -- -CREATE TABLE `ogp_adminexternallinks` ( +CREATE TABLE `gsp_adminexternallinks` ( `link_id` int(10) UNSIGNED NOT NULL, `name` varchar(80) NOT NULL, `url` varchar(200) NOT NULL, @@ -55,10 +55,10 @@ CREATE TABLE `ogp_adminexternallinks` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_adminlte_serverstats` +-- Table structure for table `gsp_adminlte_serverstats` -- -CREATE TABLE `ogp_adminlte_serverstats` ( +CREATE TABLE `gsp_adminlte_serverstats` ( `home_id` int(4) NOT NULL, `users_online` int(4) NOT NULL, `current_stamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP @@ -67,10 +67,10 @@ CREATE TABLE `ogp_adminlte_serverstats` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_adminlte_settings` +-- Table structure for table `gsp_adminlte_settings` -- -CREATE TABLE `ogp_adminlte_settings` ( +CREATE TABLE `gsp_adminlte_settings` ( `id` int(20) NOT NULL, `user` int(4) NOT NULL, `name` varchar(255) NOT NULL, @@ -80,10 +80,10 @@ CREATE TABLE `ogp_adminlte_settings` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_api_tokens` +-- Table structure for table `gsp_api_tokens` -- -CREATE TABLE `ogp_api_tokens` ( +CREATE TABLE `gsp_api_tokens` ( `user_id` int(11) NOT NULL, `token` varchar(64) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; @@ -91,10 +91,10 @@ CREATE TABLE `ogp_api_tokens` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_arrange_ports` +-- Table structure for table `gsp_arrange_ports` -- -CREATE TABLE `ogp_arrange_ports` ( +CREATE TABLE `gsp_arrange_ports` ( `range_id` int(11) NOT NULL, `ip_id` int(11) NOT NULL, `home_cfg_id` int(11) NOT NULL, @@ -106,20 +106,20 @@ CREATE TABLE `ogp_arrange_ports` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_backup_restore` +-- Table structure for table `gsp_backup_restore` -- -CREATE TABLE `ogp_backup_restore` ( +CREATE TABLE `gsp_backup_restore` ( `id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- --- Table structure for table `ogp_ban_list` +-- Table structure for table `gsp_ban_list` -- -CREATE TABLE `ogp_ban_list` ( +CREATE TABLE `gsp_ban_list` ( `client_ip` varchar(255) NOT NULL, `logging_attempts` int(11) NOT NULL DEFAULT '0', `banned_until` varchar(16) NOT NULL DEFAULT '0' @@ -128,10 +128,10 @@ CREATE TABLE `ogp_ban_list` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_billing_carts` +-- Table structure for table `gsp_billing_carts` -- -CREATE TABLE `ogp_billing_carts` ( +CREATE TABLE `gsp_billing_carts` ( `cart_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `paid` int(11) DEFAULT '0', @@ -144,10 +144,10 @@ CREATE TABLE `ogp_billing_carts` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_billing_coupons` +-- Table structure for table `gsp_billing_coupons` -- -CREATE TABLE `ogp_billing_coupons` ( +CREATE TABLE `gsp_billing_coupons` ( `id` int(11) NOT NULL, `code` varchar(16) NOT NULL, `name` varchar(255) NOT NULL, @@ -160,10 +160,10 @@ CREATE TABLE `ogp_billing_coupons` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_billing_orders` +-- Table structure for table `gsp_billing_orders` -- -CREATE TABLE `ogp_billing_orders` ( +CREATE TABLE `gsp_billing_orders` ( `order_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, @@ -186,10 +186,10 @@ CREATE TABLE `ogp_billing_orders` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_billing_services` +-- Table structure for table `gsp_billing_services` -- -CREATE TABLE `ogp_billing_services` ( +CREATE TABLE `gsp_billing_services` ( `service_id` int(11) NOT NULL, `home_cfg_id` int(11) NOT NULL, `mod_cfg_id` int(11) NOT NULL, @@ -213,10 +213,10 @@ CREATE TABLE `ogp_billing_services` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_circular` +-- Table structure for table `gsp_circular` -- -CREATE TABLE `ogp_circular` ( +CREATE TABLE `gsp_circular` ( `circular_id` int(11) NOT NULL, `subject` text NOT NULL, `message` text NOT NULL, @@ -226,10 +226,10 @@ CREATE TABLE `ogp_circular` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_circular_recipients` +-- Table structure for table `gsp_circular_recipients` -- -CREATE TABLE `ogp_circular_recipients` ( +CREATE TABLE `gsp_circular_recipients` ( `user_id` int(11) NOT NULL, `circular_id` int(11) NOT NULL, `status` tinyint(4) NOT NULL @@ -238,10 +238,10 @@ CREATE TABLE `ogp_circular_recipients` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_config_homes` +-- Table structure for table `gsp_config_homes` -- -CREATE TABLE `ogp_config_homes` ( +CREATE TABLE `gsp_config_homes` ( `home_cfg_id` int(20) NOT NULL, `game_key` varchar(64) NOT NULL, `game_name` varchar(255) NOT NULL, @@ -251,10 +251,10 @@ CREATE TABLE `ogp_config_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_config_mods` +-- Table structure for table `gsp_config_mods` -- -CREATE TABLE `ogp_config_mods` ( +CREATE TABLE `gsp_config_mods` ( `mod_cfg_id` int(50) NOT NULL, `home_cfg_id` varchar(50) NOT NULL, `mod_key` varchar(100) NOT NULL COMMENT 'mod short name - used by the game server for startup commands - ex cstrike', @@ -266,10 +266,10 @@ CREATE TABLE `ogp_config_mods` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_game_mods` +-- Table structure for table `gsp_game_mods` -- -CREATE TABLE `ogp_game_mods` ( +CREATE TABLE `gsp_game_mods` ( `mod_id` int(50) NOT NULL, `home_id` int(255) NOT NULL, `mod_cfg_id` int(11) NOT NULL, @@ -284,10 +284,10 @@ CREATE TABLE `ogp_game_mods` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_home_ip_ports` +-- Table structure for table `gsp_home_ip_ports` -- -CREATE TABLE `ogp_home_ip_ports` ( +CREATE TABLE `gsp_home_ip_ports` ( `ip_id` int(11) NOT NULL, `port` int(11) NOT NULL, `home_id` int(11) NOT NULL, @@ -297,10 +297,10 @@ CREATE TABLE `ogp_home_ip_ports` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_lgsl` +-- Table structure for table `gsp_lgsl` -- -CREATE TABLE `ogp_lgsl` ( +CREATE TABLE `gsp_lgsl` ( `id` int(11) NOT NULL, `type` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', @@ -318,10 +318,10 @@ CREATE TABLE `ogp_lgsl` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_logger` +-- Table structure for table `gsp_logger` -- -CREATE TABLE `ogp_logger` ( +CREATE TABLE `gsp_logger` ( `log_id` int(10) UNSIGNED NOT NULL, `date` varchar(20) NOT NULL, `user_id` int(11) NOT NULL, @@ -332,10 +332,10 @@ CREATE TABLE `ogp_logger` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_master_server_homes` +-- Table structure for table `gsp_master_server_homes` -- -CREATE TABLE `ogp_master_server_homes` ( +CREATE TABLE `gsp_master_server_homes` ( `home_id` int(11) NOT NULL, `home_cfg_id` int(11) NOT NULL, `remote_server_id` int(11) NOT NULL @@ -344,10 +344,10 @@ CREATE TABLE `ogp_master_server_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_modules` +-- Table structure for table `gsp_modules` -- -CREATE TABLE `ogp_modules` ( +CREATE TABLE `gsp_modules` ( `id` smallint(5) UNSIGNED NOT NULL, `title` varchar(100) NOT NULL DEFAULT '', `folder` varchar(100) NOT NULL DEFAULT '', @@ -358,10 +358,10 @@ CREATE TABLE `ogp_modules` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_module_access_rights` +-- Table structure for table `gsp_module_access_rights` -- -CREATE TABLE `ogp_module_access_rights` ( +CREATE TABLE `gsp_module_access_rights` ( `module_id` int(11) NOT NULL COMMENT 'This references to modules.id', `flag` char(1) NOT NULL, `description` varchar(64) NOT NULL @@ -370,10 +370,10 @@ CREATE TABLE `ogp_module_access_rights` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_module_menus` +-- Table structure for table `gsp_module_menus` -- -CREATE TABLE `ogp_module_menus` ( +CREATE TABLE `gsp_module_menus` ( `module_id` int(11) NOT NULL COMMENT 'This references to modules.id', `subpage` varchar(64) NOT NULL DEFAULT '', `group` varchar(32) NOT NULL, @@ -384,10 +384,10 @@ CREATE TABLE `ogp_module_menus` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_mysql_databases` +-- Table structure for table `gsp_mysql_databases` -- -CREATE TABLE `ogp_mysql_databases` ( +CREATE TABLE `gsp_mysql_databases` ( `db_id` int(11) NOT NULL, `mysql_server_id` int(11) NOT NULL, `home_id` int(11) NOT NULL, @@ -400,10 +400,10 @@ CREATE TABLE `ogp_mysql_databases` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_mysql_servers` +-- Table structure for table `gsp_mysql_servers` -- -CREATE TABLE `ogp_mysql_servers` ( +CREATE TABLE `gsp_mysql_servers` ( `mysql_server_id` int(11) NOT NULL, `remote_server_id` int(11) NOT NULL, `mysql_name` varchar(100) NOT NULL, @@ -416,10 +416,10 @@ CREATE TABLE `ogp_mysql_servers` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_notification` +-- Table structure for table `gsp_notification` -- -CREATE TABLE `ogp_notification` ( +CREATE TABLE `gsp_notification` ( `notification_id` int(11) NOT NULL, `subject` text NOT NULL, `message` text NOT NULL, @@ -429,10 +429,10 @@ CREATE TABLE `ogp_notification` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_notification_recipients` +-- Table structure for table `gsp_notification_recipients` -- -CREATE TABLE `ogp_notification_recipients` ( +CREATE TABLE `gsp_notification_recipients` ( `user_id` int(11) NOT NULL, `notification_id` int(11) NOT NULL, `status` tinyint(4) NOT NULL @@ -441,10 +441,10 @@ CREATE TABLE `ogp_notification_recipients` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_rcon_presets` +-- Table structure for table `gsp_rcon_presets` -- -CREATE TABLE `ogp_rcon_presets` ( +CREATE TABLE `gsp_rcon_presets` ( `preset_id` int(50) NOT NULL, `name` varchar(20) NOT NULL, `command` varchar(100) NOT NULL, @@ -455,13 +455,13 @@ CREATE TABLE `ogp_rcon_presets` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_remote_servers` +-- Table structure for table `gsp_remote_servers` -- -CREATE TABLE `ogp_remote_servers` ( +CREATE TABLE `gsp_remote_servers` ( `remote_server_id` int(11) NOT NULL, `remote_server_name` varchar(100) NOT NULL, - `ogp_user` varchar(100) NOT NULL, + `gsp_user` varchar(100) NOT NULL, `agent_ip` varchar(255) NOT NULL, `agent_port` int(11) NOT NULL, `ftp_port` int(11) NOT NULL, @@ -477,10 +477,10 @@ CREATE TABLE `ogp_remote_servers` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_remote_server_ips` +-- Table structure for table `gsp_remote_server_ips` -- -CREATE TABLE `ogp_remote_server_ips` ( +CREATE TABLE `gsp_remote_server_ips` ( `ip_id` int(11) NOT NULL, `remote_server_id` int(11) NOT NULL, `ip` varchar(255) NOT NULL @@ -489,10 +489,10 @@ CREATE TABLE `ogp_remote_server_ips` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_reseller_accounts` +-- Table structure for table `gsp_reseller_accounts` -- -CREATE TABLE `ogp_reseller_accounts` ( +CREATE TABLE `gsp_reseller_accounts` ( `account_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, @@ -510,10 +510,10 @@ CREATE TABLE `ogp_reseller_accounts` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_reseller_carts` +-- Table structure for table `gsp_reseller_carts` -- -CREATE TABLE `ogp_reseller_carts` ( +CREATE TABLE `gsp_reseller_carts` ( `cart_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `paid` int(11) DEFAULT NULL, @@ -524,10 +524,10 @@ CREATE TABLE `ogp_reseller_carts` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_reseller_discount_codes` +-- Table structure for table `gsp_reseller_discount_codes` -- -CREATE TABLE `ogp_reseller_discount_codes` ( +CREATE TABLE `gsp_reseller_discount_codes` ( `discount_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, `percentage` int(11) NOT NULL, @@ -538,10 +538,10 @@ CREATE TABLE `ogp_reseller_discount_codes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_reseller_homes` +-- Table structure for table `gsp_reseller_homes` -- -CREATE TABLE `ogp_reseller_homes` ( +CREATE TABLE `gsp_reseller_homes` ( `home_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `account_id` int(11) NOT NULL, @@ -552,10 +552,10 @@ CREATE TABLE `ogp_reseller_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_reseller_services` +-- Table structure for table `gsp_reseller_services` -- -CREATE TABLE `ogp_reseller_services` ( +CREATE TABLE `gsp_reseller_services` ( `service_id` int(11) NOT NULL, `service_name` varchar(60) NOT NULL, `slot_max_qty` int(11) NOT NULL, @@ -571,10 +571,10 @@ CREATE TABLE `ogp_reseller_services` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_server_homes` +-- Table structure for table `gsp_server_homes` -- -CREATE TABLE `ogp_server_homes` ( +CREATE TABLE `gsp_server_homes` ( `home_id` int(50) NOT NULL, `remote_server_id` int(11) NOT NULL, `user_id_main` int(11) NOT NULL, @@ -594,10 +594,10 @@ CREATE TABLE `ogp_server_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_settings` +-- Table structure for table `gsp_settings` -- -CREATE TABLE `ogp_settings` ( +CREATE TABLE `gsp_settings` ( `setting` varchar(63) NOT NULL, `value` varchar(1024) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; @@ -605,10 +605,10 @@ CREATE TABLE `ogp_settings` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_status_cache` +-- Table structure for table `gsp_status_cache` -- -CREATE TABLE `ogp_status_cache` ( +CREATE TABLE `gsp_status_cache` ( `date_timestamp` char(16) NOT NULL, `ip_id` char(3) NOT NULL, `port` char(6) NOT NULL, @@ -618,10 +618,10 @@ CREATE TABLE `ogp_status_cache` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_tickets` +-- Table structure for table `gsp_tickets` -- -CREATE TABLE `ogp_tickets` ( +CREATE TABLE `gsp_tickets` ( `tid` int(11) NOT NULL, `uid` varchar(32) NOT NULL, `user_id` int(11) NOT NULL, @@ -638,10 +638,10 @@ CREATE TABLE `ogp_tickets` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_ticket_attachments` +-- Table structure for table `gsp_ticket_attachments` -- -CREATE TABLE `ogp_ticket_attachments` ( +CREATE TABLE `gsp_ticket_attachments` ( `attachment_id` int(11) NOT NULL, `ticket_id` int(11) NOT NULL, `reply_id` int(11) DEFAULT NULL, @@ -652,10 +652,10 @@ CREATE TABLE `ogp_ticket_attachments` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_ticket_messages` +-- Table structure for table `gsp_ticket_messages` -- -CREATE TABLE `ogp_ticket_messages` ( +CREATE TABLE `gsp_ticket_messages` ( `reply_id` int(11) NOT NULL, `ticket_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, @@ -669,10 +669,10 @@ CREATE TABLE `ogp_ticket_messages` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_ticket_settings` +-- Table structure for table `gsp_ticket_settings` -- -CREATE TABLE `ogp_ticket_settings` ( +CREATE TABLE `gsp_ticket_settings` ( `id` int(11) NOT NULL, `setting_name` varchar(32) NOT NULL, `setting_value` text NOT NULL @@ -681,10 +681,10 @@ CREATE TABLE `ogp_ticket_settings` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_ts3_homes` +-- Table structure for table `gsp_ts3_homes` -- -CREATE TABLE `ogp_ts3_homes` ( +CREATE TABLE `gsp_ts3_homes` ( `ts3_id` int(50) NOT NULL, `rserver_id` int(50) NOT NULL, `ip` varchar(20) NOT NULL, @@ -697,10 +697,10 @@ CREATE TABLE `ogp_ts3_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_tshock` +-- Table structure for table `gsp_tshock` -- -CREATE TABLE `ogp_tshock` ( +CREATE TABLE `gsp_tshock` ( `token_id` int(11) NOT NULL, `ip` varchar(255) NOT NULL, `port` int(11) NOT NULL, @@ -710,20 +710,20 @@ CREATE TABLE `ogp_tshock` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_update_blacklist` +-- Table structure for table `gsp_update_blacklist` -- -CREATE TABLE `ogp_update_blacklist` ( +CREATE TABLE `gsp_update_blacklist` ( `file_path` varchar(1000) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- --- Table structure for table `ogp_users` +-- Table structure for table `gsp_users` -- -CREATE TABLE `ogp_users` ( +CREATE TABLE `gsp_users` ( `user_id` int(11) NOT NULL, `users_login` varchar(255) NOT NULL, `users_passwd` varchar(255) NOT NULL, @@ -748,10 +748,10 @@ CREATE TABLE `ogp_users` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_user_groups` +-- Table structure for table `gsp_user_groups` -- -CREATE TABLE `ogp_user_groups` ( +CREATE TABLE `gsp_user_groups` ( `user_id` int(11) NOT NULL, `role_id` int(11) DEFAULT NULL, `group_id` int(11) NOT NULL @@ -760,10 +760,10 @@ CREATE TABLE `ogp_user_groups` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_user_group_homes` +-- Table structure for table `gsp_user_group_homes` -- -CREATE TABLE `ogp_user_group_homes` ( +CREATE TABLE `gsp_user_group_homes` ( `home_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, `access_rights` varchar(63) DEFAULT NULL, @@ -773,10 +773,10 @@ CREATE TABLE `ogp_user_group_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_user_group_info` +-- Table structure for table `gsp_user_group_info` -- -CREATE TABLE `ogp_user_group_info` ( +CREATE TABLE `gsp_user_group_info` ( `group_id` int(11) NOT NULL, `group_name` varchar(255) DEFAULT NULL, `main_user_id` int(11) DEFAULT NULL @@ -785,10 +785,10 @@ CREATE TABLE `ogp_user_group_info` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_user_group_remote_servers` +-- Table structure for table `gsp_user_group_remote_servers` -- -CREATE TABLE `ogp_user_group_remote_servers` ( +CREATE TABLE `gsp_user_group_remote_servers` ( `remote_server_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, `access_rights` varchar(63) DEFAULT NULL @@ -797,10 +797,10 @@ CREATE TABLE `ogp_user_group_remote_servers` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_user_homes` +-- Table structure for table `gsp_user_homes` -- -CREATE TABLE `ogp_user_homes` ( +CREATE TABLE `gsp_user_homes` ( `home_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `access_rights` varchar(63) DEFAULT NULL, @@ -810,10 +810,10 @@ CREATE TABLE `ogp_user_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_user_role_info` +-- Table structure for table `gsp_user_role_info` -- -CREATE TABLE `ogp_user_role_info` ( +CREATE TABLE `gsp_user_role_info` ( `role_id` int(11) NOT NULL, `role_name` varchar(100) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; @@ -821,10 +821,10 @@ CREATE TABLE `ogp_user_role_info` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_widgets` +-- Table structure for table `gsp_widgets` -- -CREATE TABLE `ogp_widgets` ( +CREATE TABLE `gsp_widgets` ( `id` int(11) NOT NULL, `column_id` int(11) NOT NULL, `sort_no` int(11) NOT NULL, @@ -835,10 +835,10 @@ CREATE TABLE `ogp_widgets` ( -- -------------------------------------------------------- -- --- Table structure for table `ogp_widgets_users` +-- Table structure for table `gsp_widgets_users` -- -CREATE TABLE `ogp_widgets_users` ( +CREATE TABLE `gsp_widgets_users` ( `user_id` int(11) NOT NULL, `widget_id` int(11) NOT NULL, `column_id` int(11) NOT NULL, @@ -852,335 +852,335 @@ CREATE TABLE `ogp_widgets_users` ( -- -- --- Indexes for table `ogp_addons` +-- Indexes for table `gsp_addons` -- -ALTER TABLE `ogp_addons` +ALTER TABLE `gsp_addons` ADD PRIMARY KEY (`addon_id`); -- --- Indexes for table `ogp_adminexternallinks` +-- Indexes for table `gsp_adminexternallinks` -- -ALTER TABLE `ogp_adminexternallinks` +ALTER TABLE `gsp_adminexternallinks` ADD PRIMARY KEY (`link_id`); -- --- Indexes for table `ogp_adminlte_settings` +-- Indexes for table `gsp_adminlte_settings` -- -ALTER TABLE `ogp_adminlte_settings` +ALTER TABLE `gsp_adminlte_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `UniqueSetting` (`user`,`name`); -- --- Indexes for table `ogp_api_tokens` +-- Indexes for table `gsp_api_tokens` -- -ALTER TABLE `ogp_api_tokens` +ALTER TABLE `gsp_api_tokens` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `user_id` (`user_id`); -- --- Indexes for table `ogp_arrange_ports` +-- Indexes for table `gsp_arrange_ports` -- -ALTER TABLE `ogp_arrange_ports` +ALTER TABLE `gsp_arrange_ports` ADD PRIMARY KEY (`range_id`), ADD UNIQUE KEY `ip_id` (`ip_id`,`home_cfg_id`); -- --- Indexes for table `ogp_backup_restore` +-- Indexes for table `gsp_backup_restore` -- -ALTER TABLE `ogp_backup_restore` +ALTER TABLE `gsp_backup_restore` ADD PRIMARY KEY (`id`); -- --- Indexes for table `ogp_ban_list` +-- Indexes for table `gsp_ban_list` -- -ALTER TABLE `ogp_ban_list` +ALTER TABLE `gsp_ban_list` ADD PRIMARY KEY (`client_ip`); -- --- Indexes for table `ogp_billing_carts` +-- Indexes for table `gsp_billing_carts` -- -ALTER TABLE `ogp_billing_carts` +ALTER TABLE `gsp_billing_carts` ADD PRIMARY KEY (`cart_id`); -- --- Indexes for table `ogp_billing_coupons` +-- Indexes for table `gsp_billing_coupons` -- -ALTER TABLE `ogp_billing_coupons` +ALTER TABLE `gsp_billing_coupons` ADD PRIMARY KEY (`id`); -- --- Indexes for table `ogp_billing_orders` +-- Indexes for table `gsp_billing_orders` -- -ALTER TABLE `ogp_billing_orders` +ALTER TABLE `gsp_billing_orders` ADD PRIMARY KEY (`order_id`); -- --- Indexes for table `ogp_billing_services` +-- Indexes for table `gsp_billing_services` -- -ALTER TABLE `ogp_billing_services` +ALTER TABLE `gsp_billing_services` ADD PRIMARY KEY (`service_id`); -- --- Indexes for table `ogp_circular` +-- Indexes for table `gsp_circular` -- -ALTER TABLE `ogp_circular` +ALTER TABLE `gsp_circular` ADD PRIMARY KEY (`circular_id`); -- --- Indexes for table `ogp_circular_recipients` +-- Indexes for table `gsp_circular_recipients` -- -ALTER TABLE `ogp_circular_recipients` +ALTER TABLE `gsp_circular_recipients` ADD PRIMARY KEY (`user_id`,`circular_id`); -- --- Indexes for table `ogp_config_homes` +-- Indexes for table `gsp_config_homes` -- -ALTER TABLE `ogp_config_homes` +ALTER TABLE `gsp_config_homes` ADD PRIMARY KEY (`home_cfg_id`), ADD UNIQUE KEY `game_key` (`game_key`); -- --- Indexes for table `ogp_config_mods` +-- Indexes for table `gsp_config_mods` -- -ALTER TABLE `ogp_config_mods` +ALTER TABLE `gsp_config_mods` ADD PRIMARY KEY (`mod_cfg_id`), ADD UNIQUE KEY `home_cfg_id` (`home_cfg_id`,`mod_key`); -- --- Indexes for table `ogp_game_mods` +-- Indexes for table `gsp_game_mods` -- -ALTER TABLE `ogp_game_mods` +ALTER TABLE `gsp_game_mods` ADD PRIMARY KEY (`mod_id`), ADD UNIQUE KEY `home_id` (`home_id`,`mod_cfg_id`); -- --- Indexes for table `ogp_home_ip_ports` +-- Indexes for table `gsp_home_ip_ports` -- -ALTER TABLE `ogp_home_ip_ports` +ALTER TABLE `gsp_home_ip_ports` ADD PRIMARY KEY (`ip_id`,`port`); -- --- Indexes for table `ogp_lgsl` +-- Indexes for table `gsp_lgsl` -- -ALTER TABLE `ogp_lgsl` +ALTER TABLE `gsp_lgsl` ADD PRIMARY KEY (`id`); -- --- Indexes for table `ogp_logger` +-- Indexes for table `gsp_logger` -- -ALTER TABLE `ogp_logger` +ALTER TABLE `gsp_logger` ADD PRIMARY KEY (`log_id`); -- --- Indexes for table `ogp_master_server_homes` +-- Indexes for table `gsp_master_server_homes` -- -ALTER TABLE `ogp_master_server_homes` +ALTER TABLE `gsp_master_server_homes` ADD PRIMARY KEY (`remote_server_id`,`home_cfg_id`); -- --- Indexes for table `ogp_modules` +-- Indexes for table `gsp_modules` -- -ALTER TABLE `ogp_modules` +ALTER TABLE `gsp_modules` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `folder` (`folder`); -- --- Indexes for table `ogp_module_access_rights` +-- Indexes for table `gsp_module_access_rights` -- -ALTER TABLE `ogp_module_access_rights` +ALTER TABLE `gsp_module_access_rights` ADD UNIQUE KEY `flag` (`flag`); -- --- Indexes for table `ogp_module_menus` +-- Indexes for table `gsp_module_menus` -- -ALTER TABLE `ogp_module_menus` +ALTER TABLE `gsp_module_menus` ADD PRIMARY KEY (`module_id`,`subpage`,`group`); -- --- Indexes for table `ogp_mysql_databases` +-- Indexes for table `gsp_mysql_databases` -- -ALTER TABLE `ogp_mysql_databases` +ALTER TABLE `gsp_mysql_databases` ADD PRIMARY KEY (`db_id`), ADD UNIQUE KEY `mysql_server_id` (`mysql_server_id`,`db_name`), ADD UNIQUE KEY `mysql_server_id_2` (`mysql_server_id`,`db_user`); -- --- Indexes for table `ogp_mysql_servers` +-- Indexes for table `gsp_mysql_servers` -- -ALTER TABLE `ogp_mysql_servers` +ALTER TABLE `gsp_mysql_servers` ADD PRIMARY KEY (`mysql_server_id`); -- --- Indexes for table `ogp_notification` +-- Indexes for table `gsp_notification` -- -ALTER TABLE `ogp_notification` +ALTER TABLE `gsp_notification` ADD PRIMARY KEY (`notification_id`); -- --- Indexes for table `ogp_notification_recipients` +-- Indexes for table `gsp_notification_recipients` -- -ALTER TABLE `ogp_notification_recipients` +ALTER TABLE `gsp_notification_recipients` ADD PRIMARY KEY (`user_id`,`notification_id`); -- --- Indexes for table `ogp_rcon_presets` +-- Indexes for table `gsp_rcon_presets` -- -ALTER TABLE `ogp_rcon_presets` +ALTER TABLE `gsp_rcon_presets` ADD PRIMARY KEY (`preset_id`); -- --- Indexes for table `ogp_remote_servers` +-- Indexes for table `gsp_remote_servers` -- -ALTER TABLE `ogp_remote_servers` +ALTER TABLE `gsp_remote_servers` ADD PRIMARY KEY (`remote_server_id`), ADD UNIQUE KEY `agent_ip` (`agent_ip`,`agent_port`); -- --- Indexes for table `ogp_remote_server_ips` +-- Indexes for table `gsp_remote_server_ips` -- -ALTER TABLE `ogp_remote_server_ips` +ALTER TABLE `gsp_remote_server_ips` ADD PRIMARY KEY (`ip_id`); -- --- Indexes for table `ogp_reseller_accounts` +-- Indexes for table `gsp_reseller_accounts` -- -ALTER TABLE `ogp_reseller_accounts` +ALTER TABLE `gsp_reseller_accounts` ADD PRIMARY KEY (`account_id`); -- --- Indexes for table `ogp_reseller_carts` +-- Indexes for table `gsp_reseller_carts` -- -ALTER TABLE `ogp_reseller_carts` +ALTER TABLE `gsp_reseller_carts` ADD PRIMARY KEY (`cart_id`); -- --- Indexes for table `ogp_reseller_discount_codes` +-- Indexes for table `gsp_reseller_discount_codes` -- -ALTER TABLE `ogp_reseller_discount_codes` +ALTER TABLE `gsp_reseller_discount_codes` ADD PRIMARY KEY (`discount_id`); -- --- Indexes for table `ogp_reseller_homes` +-- Indexes for table `gsp_reseller_homes` -- -ALTER TABLE `ogp_reseller_homes` +ALTER TABLE `gsp_reseller_homes` ADD PRIMARY KEY (`home_id`); -- --- Indexes for table `ogp_reseller_services` +-- Indexes for table `gsp_reseller_services` -- -ALTER TABLE `ogp_reseller_services` +ALTER TABLE `gsp_reseller_services` ADD PRIMARY KEY (`service_id`); -- --- Indexes for table `ogp_server_homes` +-- Indexes for table `gsp_server_homes` -- -ALTER TABLE `ogp_server_homes` +ALTER TABLE `gsp_server_homes` ADD PRIMARY KEY (`home_id`); -- --- Indexes for table `ogp_settings` +-- Indexes for table `gsp_settings` -- -ALTER TABLE `ogp_settings` +ALTER TABLE `gsp_settings` ADD PRIMARY KEY (`setting`); -- --- Indexes for table `ogp_tickets` +-- Indexes for table `gsp_tickets` -- -ALTER TABLE `ogp_tickets` +ALTER TABLE `gsp_tickets` ADD PRIMARY KEY (`tid`), ADD UNIQUE KEY `uid` (`uid`); -- --- Indexes for table `ogp_ticket_attachments` +-- Indexes for table `gsp_ticket_attachments` -- -ALTER TABLE `ogp_ticket_attachments` +ALTER TABLE `gsp_ticket_attachments` ADD PRIMARY KEY (`attachment_id`), ADD UNIQUE KEY `unique_name` (`unique_name`); -- --- Indexes for table `ogp_ticket_messages` +-- Indexes for table `gsp_ticket_messages` -- -ALTER TABLE `ogp_ticket_messages` +ALTER TABLE `gsp_ticket_messages` ADD PRIMARY KEY (`reply_id`), - ADD KEY `ogp_ticket_messages_fk0` (`ticket_id`); + ADD KEY `gsp_ticket_messages_fk0` (`ticket_id`); -- --- Indexes for table `ogp_ticket_settings` +-- Indexes for table `gsp_ticket_settings` -- -ALTER TABLE `ogp_ticket_settings` +ALTER TABLE `gsp_ticket_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `setting_name` (`setting_name`); -- --- Indexes for table `ogp_ts3_homes` +-- Indexes for table `gsp_ts3_homes` -- -ALTER TABLE `ogp_ts3_homes` +ALTER TABLE `gsp_ts3_homes` ADD PRIMARY KEY (`ts3_id`), ADD UNIQUE KEY `rserver_id` (`rserver_id`,`vserver_id`,`user_id`); -- --- Indexes for table `ogp_tshock` +-- Indexes for table `gsp_tshock` -- -ALTER TABLE `ogp_tshock` +ALTER TABLE `gsp_tshock` ADD PRIMARY KEY (`token_id`); -- --- Indexes for table `ogp_update_blacklist` +-- Indexes for table `gsp_update_blacklist` -- -ALTER TABLE `ogp_update_blacklist` +ALTER TABLE `gsp_update_blacklist` ADD UNIQUE KEY `file_path` (`file_path`), ADD UNIQUE KEY `file_path_2` (`file_path`); -- --- Indexes for table `ogp_users` +-- Indexes for table `gsp_users` -- -ALTER TABLE `ogp_users` +ALTER TABLE `gsp_users` ADD PRIMARY KEY (`users_login`), ADD UNIQUE KEY `id` (`user_id`), ADD UNIQUE KEY `email` (`users_email`); -- --- Indexes for table `ogp_user_groups` +-- Indexes for table `gsp_user_groups` -- -ALTER TABLE `ogp_user_groups` +ALTER TABLE `gsp_user_groups` ADD PRIMARY KEY (`user_id`,`group_id`); -- --- Indexes for table `ogp_user_group_homes` +-- Indexes for table `gsp_user_group_homes` -- -ALTER TABLE `ogp_user_group_homes` +ALTER TABLE `gsp_user_group_homes` ADD PRIMARY KEY (`home_id`,`group_id`); -- --- Indexes for table `ogp_user_group_info` +-- Indexes for table `gsp_user_group_info` -- -ALTER TABLE `ogp_user_group_info` +ALTER TABLE `gsp_user_group_info` ADD PRIMARY KEY (`group_id`), ADD UNIQUE KEY `group_name` (`group_name`); -- --- Indexes for table `ogp_user_group_remote_servers` +-- Indexes for table `gsp_user_group_remote_servers` -- -ALTER TABLE `ogp_user_group_remote_servers` +ALTER TABLE `gsp_user_group_remote_servers` ADD PRIMARY KEY (`remote_server_id`,`group_id`); -- --- Indexes for table `ogp_user_homes` +-- Indexes for table `gsp_user_homes` -- -ALTER TABLE `ogp_user_homes` +ALTER TABLE `gsp_user_homes` ADD PRIMARY KEY (`user_id`,`home_id`); -- --- Indexes for table `ogp_user_role_info` +-- Indexes for table `gsp_user_role_info` -- -ALTER TABLE `ogp_user_role_info` +ALTER TABLE `gsp_user_role_info` ADD PRIMARY KEY (`role_id`), ADD UNIQUE KEY `role_name` (`role_name`); -- --- Indexes for table `ogp_widgets` +-- Indexes for table `gsp_widgets` -- -ALTER TABLE `ogp_widgets` +ALTER TABLE `gsp_widgets` ADD PRIMARY KEY (`id`); -- @@ -1188,225 +1188,225 @@ ALTER TABLE `ogp_widgets` -- -- --- AUTO_INCREMENT for table `ogp_addons` +-- AUTO_INCREMENT for table `gsp_addons` -- -ALTER TABLE `ogp_addons` +ALTER TABLE `gsp_addons` MODIFY `addon_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134; -- --- AUTO_INCREMENT for table `ogp_adminexternallinks` +-- AUTO_INCREMENT for table `gsp_adminexternallinks` -- -ALTER TABLE `ogp_adminexternallinks` +ALTER TABLE `gsp_adminexternallinks` MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `ogp_adminlte_settings` +-- AUTO_INCREMENT for table `gsp_adminlte_settings` -- -ALTER TABLE `ogp_adminlte_settings` +ALTER TABLE `gsp_adminlte_settings` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- --- AUTO_INCREMENT for table `ogp_arrange_ports` +-- AUTO_INCREMENT for table `gsp_arrange_ports` -- -ALTER TABLE `ogp_arrange_ports` +ALTER TABLE `gsp_arrange_ports` MODIFY `range_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=259; -- --- AUTO_INCREMENT for table `ogp_backup_restore` +-- AUTO_INCREMENT for table `gsp_backup_restore` -- -ALTER TABLE `ogp_backup_restore` +ALTER TABLE `gsp_backup_restore` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_billing_carts` +-- AUTO_INCREMENT for table `gsp_billing_carts` -- -ALTER TABLE `ogp_billing_carts` +ALTER TABLE `gsp_billing_carts` MODIFY `cart_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=556; -- --- AUTO_INCREMENT for table `ogp_billing_coupons` +-- AUTO_INCREMENT for table `gsp_billing_coupons` -- -ALTER TABLE `ogp_billing_coupons` +ALTER TABLE `gsp_billing_coupons` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- --- AUTO_INCREMENT for table `ogp_billing_orders` +-- AUTO_INCREMENT for table `gsp_billing_orders` -- -ALTER TABLE `ogp_billing_orders` +ALTER TABLE `gsp_billing_orders` MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=540; -- --- AUTO_INCREMENT for table `ogp_billing_services` +-- AUTO_INCREMENT for table `gsp_billing_services` -- -ALTER TABLE `ogp_billing_services` +ALTER TABLE `gsp_billing_services` MODIFY `service_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=124; -- --- AUTO_INCREMENT for table `ogp_circular` +-- AUTO_INCREMENT for table `gsp_circular` -- -ALTER TABLE `ogp_circular` +ALTER TABLE `gsp_circular` MODIFY `circular_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- --- AUTO_INCREMENT for table `ogp_config_homes` +-- AUTO_INCREMENT for table `gsp_config_homes` -- -ALTER TABLE `ogp_config_homes` +ALTER TABLE `gsp_config_homes` MODIFY `home_cfg_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=280; -- --- AUTO_INCREMENT for table `ogp_config_mods` +-- AUTO_INCREMENT for table `gsp_config_mods` -- -ALTER TABLE `ogp_config_mods` +ALTER TABLE `gsp_config_mods` MODIFY `mod_cfg_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=874; -- --- AUTO_INCREMENT for table `ogp_game_mods` +-- AUTO_INCREMENT for table `gsp_game_mods` -- -ALTER TABLE `ogp_game_mods` +ALTER TABLE `gsp_game_mods` MODIFY `mod_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1666; -- --- AUTO_INCREMENT for table `ogp_lgsl` +-- AUTO_INCREMENT for table `gsp_lgsl` -- -ALTER TABLE `ogp_lgsl` +ALTER TABLE `gsp_lgsl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_logger` +-- AUTO_INCREMENT for table `gsp_logger` -- -ALTER TABLE `ogp_logger` +ALTER TABLE `gsp_logger` MODIFY `log_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63213; -- --- AUTO_INCREMENT for table `ogp_modules` +-- AUTO_INCREMENT for table `gsp_modules` -- -ALTER TABLE `ogp_modules` +ALTER TABLE `gsp_modules` MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=197; -- --- AUTO_INCREMENT for table `ogp_mysql_databases` +-- AUTO_INCREMENT for table `gsp_mysql_databases` -- -ALTER TABLE `ogp_mysql_databases` +ALTER TABLE `gsp_mysql_databases` MODIFY `db_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=348; -- --- AUTO_INCREMENT for table `ogp_mysql_servers` +-- AUTO_INCREMENT for table `gsp_mysql_servers` -- -ALTER TABLE `ogp_mysql_servers` +ALTER TABLE `gsp_mysql_servers` MODIFY `mysql_server_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `ogp_notification` +-- AUTO_INCREMENT for table `gsp_notification` -- -ALTER TABLE `ogp_notification` +ALTER TABLE `gsp_notification` MODIFY `notification_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_rcon_presets` +-- AUTO_INCREMENT for table `gsp_rcon_presets` -- -ALTER TABLE `ogp_rcon_presets` +ALTER TABLE `gsp_rcon_presets` MODIFY `preset_id` int(50) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_remote_servers` +-- AUTO_INCREMENT for table `gsp_remote_servers` -- -ALTER TABLE `ogp_remote_servers` +ALTER TABLE `gsp_remote_servers` MODIFY `remote_server_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54; -- --- AUTO_INCREMENT for table `ogp_remote_server_ips` +-- AUTO_INCREMENT for table `gsp_remote_server_ips` -- -ALTER TABLE `ogp_remote_server_ips` +ALTER TABLE `gsp_remote_server_ips` MODIFY `ip_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- --- AUTO_INCREMENT for table `ogp_reseller_accounts` +-- AUTO_INCREMENT for table `gsp_reseller_accounts` -- -ALTER TABLE `ogp_reseller_accounts` +ALTER TABLE `gsp_reseller_accounts` MODIFY `account_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `ogp_reseller_carts` +-- AUTO_INCREMENT for table `gsp_reseller_carts` -- -ALTER TABLE `ogp_reseller_carts` +ALTER TABLE `gsp_reseller_carts` MODIFY `cart_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `ogp_reseller_discount_codes` +-- AUTO_INCREMENT for table `gsp_reseller_discount_codes` -- -ALTER TABLE `ogp_reseller_discount_codes` +ALTER TABLE `gsp_reseller_discount_codes` MODIFY `discount_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_reseller_services` +-- AUTO_INCREMENT for table `gsp_reseller_services` -- -ALTER TABLE `ogp_reseller_services` +ALTER TABLE `gsp_reseller_services` MODIFY `service_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `ogp_server_homes` +-- AUTO_INCREMENT for table `gsp_server_homes` -- -ALTER TABLE `ogp_server_homes` +ALTER TABLE `gsp_server_homes` MODIFY `home_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1516; -- --- AUTO_INCREMENT for table `ogp_tickets` +-- AUTO_INCREMENT for table `gsp_tickets` -- -ALTER TABLE `ogp_tickets` +ALTER TABLE `gsp_tickets` MODIFY `tid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- --- AUTO_INCREMENT for table `ogp_ticket_attachments` +-- AUTO_INCREMENT for table `gsp_ticket_attachments` -- -ALTER TABLE `ogp_ticket_attachments` +ALTER TABLE `gsp_ticket_attachments` MODIFY `attachment_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- --- AUTO_INCREMENT for table `ogp_ticket_messages` +-- AUTO_INCREMENT for table `gsp_ticket_messages` -- -ALTER TABLE `ogp_ticket_messages` +ALTER TABLE `gsp_ticket_messages` MODIFY `reply_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- --- AUTO_INCREMENT for table `ogp_ticket_settings` +-- AUTO_INCREMENT for table `gsp_ticket_settings` -- -ALTER TABLE `ogp_ticket_settings` +ALTER TABLE `gsp_ticket_settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- --- AUTO_INCREMENT for table `ogp_ts3_homes` +-- AUTO_INCREMENT for table `gsp_ts3_homes` -- -ALTER TABLE `ogp_ts3_homes` +ALTER TABLE `gsp_ts3_homes` MODIFY `ts3_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `ogp_tshock` +-- AUTO_INCREMENT for table `gsp_tshock` -- -ALTER TABLE `ogp_tshock` +ALTER TABLE `gsp_tshock` MODIFY `token_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_users` +-- AUTO_INCREMENT for table `gsp_users` -- -ALTER TABLE `ogp_users` +ALTER TABLE `gsp_users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=636; -- --- AUTO_INCREMENT for table `ogp_user_group_info` +-- AUTO_INCREMENT for table `gsp_user_group_info` -- -ALTER TABLE `ogp_user_group_info` +ALTER TABLE `gsp_user_group_info` MODIFY `group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- --- AUTO_INCREMENT for table `ogp_user_role_info` +-- AUTO_INCREMENT for table `gsp_user_role_info` -- -ALTER TABLE `ogp_user_role_info` +ALTER TABLE `gsp_user_role_info` MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `ogp_widgets` +-- AUTO_INCREMENT for table `gsp_widgets` -- -ALTER TABLE `ogp_widgets` +ALTER TABLE `gsp_widgets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- @@ -1414,10 +1414,10 @@ ALTER TABLE `ogp_widgets` -- -- --- Constraints for table `ogp_ticket_messages` +-- Constraints for table `gsp_ticket_messages` -- -ALTER TABLE `ogp_ticket_messages` - ADD CONSTRAINT `ogp_ticket_messages_fk0` FOREIGN KEY (`ticket_id`) REFERENCES `ogp_tickets` (`tid`); +ALTER TABLE `gsp_ticket_messages` + ADD CONSTRAINT `gsp_ticket_messages_fk0` FOREIGN KEY (`ticket_id`) REFERENCES `gsp_tickets` (`tid`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/home.php b/home.php index 23f9f69d..1fade329 100644 --- a/home.php +++ b/home.php @@ -25,7 +25,7 @@ $db = createDatabaseConnection($db_type, $db_host, $db_user, $db_pass, $db_name, // Load languages. include_once("includes/lang.php"); -if (!$db instanceof OGPDatabase) { +if (!$db instanceof GSPDatabase) { ogpLang(); die(get_lang('no_db_connection')); } diff --git a/includes/config.inc.php b/includes/config.inc.php index 7d04a9f3..1abb9f1a 100644 --- a/includes/config.inc.php +++ b/includes/config.inc.php @@ -6,6 +6,6 @@ $db_host="localhost"; $db_user="localuser"; $db_pass="Pkloyn7yvpht!"; $db_name="panel"; -$table_prefix="ogp_"; +$table_prefix="gsp_"; $db_type="mysql"; ?> diff --git a/includes/database.php b/includes/database.php index 4c1b8f56..ffe4b36d 100644 --- a/includes/database.php +++ b/includes/database.php @@ -3,9 +3,9 @@ * Database connection and query functions */ -define("OGP_DB_PREFIX", "OGP_DB_PREFIX"); +define("GSP_DB_PREFIX", "GSP_DB_PREFIX"); -abstract class OGPDatabase { +abstract class GSPDatabase { protected $queries_ = 0; diff --git a/includes/database_mysqli.php b/includes/database_mysqli.php index 5089cada..0631a244 100644 --- a/includes/database_mysqli.php +++ b/includes/database_mysqli.php @@ -12,7 +12,7 @@ function real_escape_string_recursive(&$item, $key, $link){ $item = $this->realEscapeSingle($item); } -class OGPDatabaseMySQL extends OGPDatabase +class GSPDatabaseMySQL extends GSPDatabase { protected $link; @@ -1144,7 +1144,7 @@ class OGPDatabaseMySQL extends OGPDatabase { if ( !$this->link ) return FALSE; - $query = str_replace( "OGP_DB_PREFIX", $this->table_prefix, $query ); + $query = str_replace( "GSP_DB_PREFIX", $this->table_prefix, $query ); ++$this->queries_; mysqli_query($this->link,$query); @@ -1159,7 +1159,7 @@ class OGPDatabaseMySQL extends OGPDatabase /// \brief This query return array of values or false on failure. public function resultQuery( $query ) { - $query = str_replace( "OGP_DB_PREFIX", $this->table_prefix, $query ); + $query = str_replace( "GSP_DB_PREFIX", $this->table_prefix, $query ); return $this->listQuery($query); } @@ -3370,7 +3370,7 @@ class OGPDatabaseMySQL extends OGPDatabase $user_id = isset($_SESSION['user_id']) ? $_SESSION['user_id'] : 0; $client_ip = getClientIPAddress(); $message = $this->realEscapeSingle($message); - $this->query("INSERT INTO OGP_DB_PREFIXlogger (date, user_id, ip, message) VALUE (FROM_UNIXTIME(UNIX_TIMESTAMP(), '%d-%m-%Y %H:%i:%s'), $user_id, '$client_ip', '$message');"); + $this->query("INSERT INTO GSP_DB_PREFIXlogger (date, user_id, ip, message) VALUE (FROM_UNIXTIME(UNIX_TIMESTAMP(), '%d-%m-%Y %H:%i:%s'), $user_id, '$client_ip', '$message');"); } public function get_logger_count($search_field) { diff --git a/includes/helpers.php b/includes/helpers.php index f5e2cbe1..463a9fe0 100644 --- a/includes/helpers.php +++ b/includes/helpers.php @@ -34,7 +34,7 @@ function createDatabaseConnection($db_type,$db_host,$db_user,$db_pass,$db_name,$ require_once("includes/database_mysqli.php"); else die("

OGP requires the mysqli PHP extension. Please install it, and then try again.

"); - $database = new OGPDatabaseMysql(); + $database = new GSPDatabaseMysql(); $connect_value = $database->connect($db_host,$db_user,$db_pass,$db_name,$table_prefix); if ($connect_value === TRUE) @@ -51,7 +51,7 @@ function createDatabaseConnection($db_type,$db_host,$db_user,$db_pass,$db_name,$ function get_db_error_text ($db_retval, &$error_text) { - if (is_a($db_retval,"OGPDatabase")) + if (is_a($db_retval,"GSPDatabase")) return FALSE; switch ($db_retval) { diff --git a/includes/view.php b/includes/view.php index 1e697391..e5834bb5 100644 --- a/includes/view.php +++ b/includes/view.php @@ -31,7 +31,7 @@ class OGPView { function printView($cleared = false, $dataType = "html") { global $db, $OGPLangPre; - if ( is_object($db) && array_key_exists( "OGPDatabase", class_parents($db) ) ) { + if ( is_object($db) && array_key_exists( "GSPDatabase", class_parents($db) ) ) { $panel_settings = $db->getSettings(); } @@ -110,7 +110,7 @@ class OGPView { $javascript .= '' . "\n"; // Include global JS for modules - if(is_object($db) && array_key_exists("OGPDatabase", class_parents($db))){ + if(is_object($db) && array_key_exists("GSPDatabase", class_parents($db))){ foreach($db->getInstalledModules() as $m) { $global_js_file = 'js/' . MODULES . "{$m['folder']}_global.js"; @@ -194,7 +194,7 @@ class OGPView { $footer = ""; - if ( is_object($db) && array_key_exists( "OGPDatabase", class_parents($db) ) ) { + if ( is_object($db) && array_key_exists( "GSPDatabase", class_parents($db) ) ) { $footer .= "
"; $footer .= get_lang_f('cur_theme', !empty($_SESSION['users_theme']) ? $_SESSION['users_theme'] : @$panel_settings['theme']) . " - " . $db->getNbOfQueries()." ".get_lang('queries_executed'); $footer .= "
".get_lang('copyright')." © Open Game Panel " . date("Y") . " - ".get_lang('all_rights_reserved')." - ".get_lang('show_version')."
" . get_lang('version') . ":  ".@$panel_settings['ogp_version']."
"; diff --git a/index.php b/index.php index 41a11a0d..034b53d9 100644 --- a/index.php +++ b/index.php @@ -42,7 +42,7 @@ $db = createDatabaseConnection($db_type, $db_host, $db_user, $db_pass, $db_name, // Load languages. include_once("includes/lang.php"); -if (!$db instanceof OGPDatabase) { +if (!$db instanceof GSPDatabase) { ogpLang(); die(get_lang('no_db_connection')); } @@ -216,10 +216,10 @@ function ogpHome() { $client_ip = getClientIPAddress(); - $ban_list = $db->resultQuery("SHOW TABLES LIKE 'OGP_DB_PREFIXban_list';"); + $ban_list = $db->resultQuery("SHOW TABLES LIKE 'GSP_DB_PREFIXban_list';"); if ( empty( $ban_list ) ) { - $db->query("CREATE TABLE IF NOT EXISTS `OGP_DB_PREFIXban_list` ( + $db->query("CREATE TABLE IF NOT EXISTS `GSP_DB_PREFIXban_list` ( `client_ip` varchar(255) NOT NULL, `logging_attempts` int(11) NOT NULL DEFAULT '0', `banned_until` varchar(16) NOT NULL DEFAULT '0', @@ -227,12 +227,12 @@ function ogpHome() ) ENGINE=MyISAM DEFAULT CHARSET=latin1;"); } - $banlist_info = $db->resultQuery("SELECT logging_attempts, banned_until FROM `OGP_DB_PREFIXban_list` WHERE client_ip='".$client_ip."';"); + $banlist_info = $db->resultQuery("SELECT logging_attempts, banned_until FROM `GSP_DB_PREFIXban_list` WHERE client_ip='".$client_ip."';"); $login_attempts = !$banlist_info ? 0 : $banlist_info['0']['logging_attempts']; if( $banlist_info AND $banlist_info['0']['banned_until'] > 0 AND $banlist_info['0']['banned_until'] <= time() ) { - $db->query("DELETE FROM `OGP_DB_PREFIXban_list` WHERE client_ip='$client_ip';"); + $db->query("DELETE FROM `GSP_DB_PREFIXban_list` WHERE client_ip='$client_ip';"); $login_attempts = 0; } @@ -308,9 +308,9 @@ function ogpHome() $_SESSION['users_api_key'] = $db->getApiToken($userInfo['user_id']); print_success( get_lang("logging_in") ."..."); $db->logger( get_lang("logging_in") ."..."); - $db->query("DELETE FROM `OGP_DB_PREFIXban_list` WHERE client_ip='$client_ip';"); + $db->query("DELETE FROM `GSP_DB_PREFIXban_list` WHERE client_ip='$client_ip';"); //find number of servers user has. if zero, then redirect to the shop page. - $result = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status < 1 "); + $result = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status < 1 "); $servercount = 0; foreach($result as $servers) { @@ -341,26 +341,26 @@ function ogpHome() $banned_until = time() + (array_key_exists("login_ban_time" , $settings) && !empty($settings["login_ban_time"]) && is_numeric($settings["login_ban_time"]) ? $settings["login_ban_time"] : 300); // Five minutes or user defined setting. if( !$banlist_info ) - $db->query("INSERT INTO `OGP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); + $db->query("INSERT INTO `GSP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); $db->logger( get_lang("bad_login") . " ( Banned until " . date("r", $banned_until) . " ) [ " . login . ": $_POST[ulogin], " . password . ": ******** ]" ); - $db->query("UPDATE `OGP_DB_PREFIXban_list` SET logging_attempts='$login_attempts', banned_until='$banned_until' WHERE client_ip='$client_ip';"); + $db->query("UPDATE `GSP_DB_PREFIXban_list` SET logging_attempts='$login_attempts', banned_until='$banned_until' WHERE client_ip='$client_ip';"); print_failure("Banned until " . date("r",$banned_until)); } else { if( !$banlist_info ) - $db->query("INSERT INTO `OGP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); + $db->query("INSERT INTO `GSP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); $db->logger( get_lang("bad_login") . " ( $login_attempts ) [ " . login . ": $_POST[ulogin], " . password . ": ******** ]" ); - $db->query("UPDATE `OGP_DB_PREFIXban_list` SET logging_attempts='$login_attempts' WHERE client_ip='$client_ip';"); + $db->query("UPDATE `GSP_DB_PREFIXban_list` SET logging_attempts='$login_attempts' WHERE client_ip='$client_ip';"); $view->refresh("index.php",2); } } //ADD USERS IN BANNED GROUP TO BAN TABLE if($userInfo['users_role'] == "banned") { - $db->query("INSERT INTO `OGP_DB_PREFIXban_list` (`client_ip`,`logging_attempts`) VALUES('$client_ip','-1');"); + $db->query("INSERT INTO `GSP_DB_PREFIXban_list` (`client_ip`,`logging_attempts`) VALUES('$client_ip','-1');"); $db->logger("BANNED: Added IP ".$client_ip." to ban table of banned user " . $_POST[ulogin]); } diff --git a/modules/TS3Admin/TS3Admin.php b/modules/TS3Admin/TS3Admin.php index 53e72869..61e78876 100644 --- a/modules/TS3Admin/TS3Admin.php +++ b/modules/TS3Admin/TS3Admin.php @@ -50,11 +50,11 @@ function exec_ogp_module() $_SESSION['rserver_id'] = $_GET['rserver_id']; if( $isAdmin ) { - $TS3_list = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXts3_homes WHERE rserver_id='".$_SESSION['rserver_id']."'"); + $TS3_list = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXts3_homes WHERE rserver_id='".$_SESSION['rserver_id']."'"); } else { - $sql = "SELECT * FROM OGP_DB_PREFIXts3_homes WHERE"; + $sql = "SELECT * FROM GSP_DB_PREFIXts3_homes WHERE"; if(!$isAdmin){ $sql .= " user_id='".$_SESSION['user_id']."' AND"; } diff --git a/modules/TS3Admin/module.php b/modules/TS3Admin/module.php index 840d6636..06c085e1 100644 --- a/modules/TS3Admin/module.php +++ b/modules/TS3Admin/module.php @@ -11,8 +11,8 @@ $module_required = TRUE; $module_menus = array( array( 'subpage' => '', 'name'=>'ts3admin', 'group'=>'user' ) ); $install_queries = array(); $install_queries[0] = array( -"DROP TABLE IF EXISTS `".OGP_DB_PREFIX."ts3_homes`;", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."ts3_homes` +"DROP TABLE IF EXISTS `".GSP_DB_PREFIX."ts3_homes`;", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."ts3_homes` (`ts3_id` int(50) NOT NULL auto_increment, `rserver_id` int(50) NOT NULL, `ip` varchar(20) NOT NULL, @@ -22,9 +22,9 @@ $install_queries[0] = array( PRIMARY KEY (`ts3_id`), UNIQUE KEY user_id (user_id,vserver_id)) ENGINE=MyISAM DEFAULT CHARSET=latin1;"); $install_queries[1] = array( -"ALTER TABLE `".OGP_DB_PREFIX."ts3_homes` DROP INDEX `user_id` , +"ALTER TABLE `".GSP_DB_PREFIX."ts3_homes` DROP INDEX `user_id` , ADD UNIQUE `rserver_id` ( `rserver_id` , `vserver_id` , `user_id` );"); $install_queries[2] = array( -"ALTER TABLE `".OGP_DB_PREFIX."ts3_homes` ADD `port` int(11) DEFAULT '10011'" +"ALTER TABLE `".GSP_DB_PREFIX."ts3_homes` ADD `port` int(11) DEFAULT '10011'" ); ?> diff --git a/modules/TS3Admin/ts3webinterface.class.php b/modules/TS3Admin/ts3webinterface.class.php index 20242122..c83455af 100644 --- a/modules/TS3Admin/ts3webinterface.class.php +++ b/modules/TS3Admin/ts3webinterface.class.php @@ -26,7 +26,7 @@ require_once('ts3remote.class.php'); function getAssignedServerUsers() { global $db; - $ts3vservers = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXts3_homes + $ts3vservers = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXts3_homes WHERE vserver_id='". TS3WEBINTERFACE_VSERVER_ID."' AND rserver_id=". $_SESSION['rserver_id'] ); @@ -637,7 +637,7 @@ class TS3webinterface $vServerList = $tmp; } - $getPublicIp = $db->resultQuery("SELECT display_public_ip FROM OGP_DB_PREFIXremote_servers WHERE remote_server_id=".$_SESSION['rserver_id']); + $getPublicIp = $db->resultQuery("SELECT display_public_ip FROM GSP_DB_PREFIXremote_servers WHERE remote_server_id=".$_SESSION['rserver_id']); $display_ip = checkDisplayPublicIP($getPublicIp[0]['display_public_ip'],$this->serverIP); $this->template->assign('IP', $this->serverIP); @@ -799,7 +799,7 @@ class TS3webinterface if( isset($_POST['assign_subuser']) and in_array($_POST['user_id'],$assigned_info['subusers']) ) { - $db->query("INSERT INTO OGP_DB_PREFIXts3_homes + $db->query("INSERT INTO GSP_DB_PREFIXts3_homes (`rserver_id`, `ip`, `pwd`, `vserver_id`, `user_id`) VALUES ('".$_SESSION['rserver_id']."', '". TS3WEBINTERFACE_IP."', '". @@ -814,7 +814,7 @@ class TS3webinterface in_array($_POST['user_id'],$assigned_info['users_assigned']) and in_array($_POST['user_id'],$assigned_info['subusers']) ) { - $db->query( "DELETE FROM OGP_DB_PREFIXts3_homes WHERE vserver_id='". + $db->query( "DELETE FROM GSP_DB_PREFIXts3_homes WHERE vserver_id='". TS3WEBINTERFACE_VSERVER_ID."' AND user_id='". $_POST['user_id']."' AND rserver_id='". $_SESSION['rserver_id']. @@ -831,7 +831,7 @@ class TS3webinterface $this->template->assign('is_parent_user', $is_parent_user); $this->template->assign('subusers_installed', $subusers_installed); - $getPublicIp = $db->resultQuery("SELECT display_public_ip FROM OGP_DB_PREFIXremote_servers WHERE remote_server_id=".$_SESSION['rserver_id']); + $getPublicIp = $db->resultQuery("SELECT display_public_ip FROM GSP_DB_PREFIXremote_servers WHERE remote_server_id=".$_SESSION['rserver_id']); $display_ip = checkDisplayPublicIP($getPublicIp[0]['display_public_ip'],$this->serverIP); $this->template->assign('display_public_ip', $display_ip); diff --git a/modules/addonsmanager/addons_installer.php b/modules/addonsmanager/addons_installer.php index 90bd3a93..7950a860 100644 --- a/modules/addonsmanager/addons_installer.php +++ b/modules/addonsmanager/addons_installer.php @@ -66,7 +66,7 @@ function exec_ogp_module() { { $addon_id = (int)$_REQUEST['addon_id']; - $addons_rows = $db->resultQuery("SELECT url, path, post_script FROM OGP_DB_PREFIXaddons WHERE addon_id=".$addon_id.$query_groups); + $addons_rows = $db->resultQuery("SELECT url, path, post_script FROM GSP_DB_PREFIXaddons WHERE addon_id=".$addon_id.$query_groups); if (!$addons_rows) { print_failure(get_lang('invalid_addon')); @@ -241,7 +241,7 @@ function exec_ogp_module() { resultQuery("SELECT DISTINCT mod_cfg_id, mod_name, game_name FROM OGP_DB_PREFIXconfig_mods NATURAL JOIN OGP_DB_PREFIXconfig_homes WHERE home_cfg_id=" . $db->realEscapeSingle($_POST['home_cfg_id'])); + $mod_qry = $db->resultQuery("SELECT DISTINCT mod_cfg_id, mod_name, game_name FROM GSP_DB_PREFIXconfig_mods NATURAL JOIN GSP_DB_PREFIXconfig_homes WHERE home_cfg_id=" . $db->realEscapeSingle($_POST['home_cfg_id'])); foreach($mod_qry as $array_mods) { if($array_mods['mod_name'] == "none")$array_mods['mod_name']=$array_mods['game_name']; @@ -128,7 +128,7 @@ function exec_ogp_module() resultQuery("SELECT DISTINCT remote_server_id, remote_server_name, agent_ip, ogp_user FROM OGP_DB_PREFIXremote_servers"); + $result3 = $db->resultQuery("SELECT DISTINCT remote_server_id, remote_server_name, agent_ip, ogp_user FROM GSP_DB_PREFIXremote_servers"); ?> @@ -146,7 +146,7 @@ function exec_ogp_module() resultQuery("SELECT DISTINCT mod_cfg_id, mod_name, game_name FROM OGP_DB_PREFIXconfig_mods NATURAL JOIN OGP_DB_PREFIXconfig_homes WHERE mod_cfg_id=" . $db->realEscapeSingle($_POST['modcfgid'])); + $mods = $db->resultQuery("SELECT DISTINCT mod_cfg_id, mod_name, game_name FROM GSP_DB_PREFIXconfig_mods NATURAL JOIN GSP_DB_PREFIXconfig_homes WHERE mod_cfg_id=" . $db->realEscapeSingle($_POST['modcfgid'])); foreach($mods as $mod) { ?> @@ -257,7 +257,7 @@ function exec_ogp_module()

Enable/Disable Server Locations

resultQuery("SELECT * FROM OGP_DB_PREFIXremote_servers"); + $result = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXremote_servers"); echo "
"; echo ""; foreach($result as $rs) @@ -278,7 +278,7 @@ function exec_ogp_module()

"; //end ENABLE REMOTE SERVERS - $services = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_services ORDER BY service_name"); + $services = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_services ORDER BY service_name"); if ($services > 0) { ?> diff --git a/modules/billing/bak/shop.php b/modules/billing/bak/shop.php index 6b095650..d85c6207 100644 --- a/modules/billing/bak/shop.php +++ b/modules/billing/bak/shop.php @@ -33,7 +33,7 @@ function exec_ogp_module() $new_description = str_replace("\\r\\n", "
", $_POST['description']); $service = $_POST['service_id']; - $change_description = "UPDATE OGP_DB_PREFIXbilling_services + $change_description = "UPDATE GSP_DB_PREFIXbilling_services SET description ='".$db->realEscapeSingle($new_description)."' WHERE service_id=".$db->realEscapeSingle($service); $save = $db->query($change_description); @@ -63,7 +63,7 @@ THIS IS WHAT WE DISPLAY ON THE SHOP PAGE AT THE TOP // Shop Form if(intval($_REQUEST['service_id']) !==0) $where_service_id = " WHERE enabled = 1 and service_id=".intval($_REQUEST['service_id']); else $where_service_id = " where enabled = 1"; - $qry_services = "SELECT * FROM OGP_DB_PREFIXbilling_services".$where_service_id; + $qry_services = "SELECT * FROM GSP_DB_PREFIXbilling_services".$where_service_id; $services = $db->resultQuery($qry_services); if (isset($_REQUEST['service_id']) && $services === false) { @@ -208,7 +208,7 @@ if ($row['price_monthly'] == 0.0) { //loop through each of the assigned servers and see if its disabled foreach($rsiArray as $rsi) { - $query = "SELECT * FROM OGP_DB_PREFIXremote_servers WHERE remote_server_id = ".$rsi; + $query = "SELECT * FROM GSP_DB_PREFIXremote_servers WHERE remote_server_id = ".$rsi; $result = $db->resultQuery($query); foreach($result as $rs) { diff --git a/modules/billing/bill.php b/modules/billing/bill.php index 6a545ed4..2667fcf4 100644 --- a/modules/billing/bill.php +++ b/modules/billing/bill.php @@ -16,11 +16,11 @@ function exec_ogp_module() $cart_id = $db->realEscapeSingle($cart_id); $isAdmin = $db->isAdmin( $_SESSION['user_id'] ); if ( $isAdmin ) - $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id) ); + $orders = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id) ); else - $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)." AND user_id=".$db->realEscapeSingle($user_id) ); + $orders = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)." AND user_id=".$db->realEscapeSingle($user_id) ); - $cart = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id) ); + $cart = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id) ); $tempdate = date_create( $cart[0]['date']); $paid_date = date_format($tempdate,"d M Y H:m"); @@ -110,7 +110,7 @@ function exec_ogp_module() $coupon_savings = 0; if($cart[0]['coupon_id']>0) { - $result = $db->resultquery("SELECT discount from OGP_DB_PREFIXbilling_coupons WHERE id = '". $cart[0]['coupon_id'] . "'"); + $result = $db->resultquery("SELECT discount from GSP_DB_PREFIXbilling_coupons WHERE id = '". $cart[0]['coupon_id'] . "'"); foreach($result as $coupon){ $coupon_savings = $subtotal2 * ($coupon['discount'] / 100); } diff --git a/modules/billing/cart.php b/modules/billing/cart.php index 18f426c8..f35aaead 100644 --- a/modules/billing/cart.php +++ b/modules/billing/cart.php @@ -36,7 +36,7 @@ function assignOrdersToCart($user_id,$tax_amount,$currency,$coupon_id){ //discount coupon if (!isset($coupon_id)) $coupon_id = "0"; $fields['coupon_id'] = $coupon_id; - $check_expired = $db->resultquery("SELECT id from OGP_DB_PREFIXbilling_coupons WHERE id = $fields[coupon_id] AND count > 0 AND expires >= NOW()"); + $check_expired = $db->resultquery("SELECT id from GSP_DB_PREFIXbilling_coupons WHERE id = $fields[coupon_id] AND count > 0 AND expires >= NOW()"); if ($check_expired <= 0) $fields['coupon_id'] = 0; return $db->resultInsertId( 'billing_carts', $fields ); } @@ -101,7 +101,7 @@ function exec_ogp_module() $carts[0] = $_SESSION['CART']; } - $user_carts = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE user_id=".$db->realEscapeSingle($user_id) ." order by cart_id desc" ); + $user_carts = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE user_id=".$db->realEscapeSingle($user_id) ." order by cart_id desc" ); if( $user_carts >=1 ) @@ -112,8 +112,8 @@ function exec_ogp_module() { $cart_id = $user_cart['cart_id']; - $carts[$cart_id] = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_carts AS cart JOIN - OGP_DB_PREFIXbilling_orders AS orders + $carts[$cart_id] = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_carts AS cart JOIN + GSP_DB_PREFIXbilling_orders AS orders ON orders.cart_id=cart.cart_id WHERE orders.status IN (0, -1 , -2) AND (cart.cart_id=".$db->realEscapeSingle($cart_id). ") order by order_id asc"); } diff --git a/modules/billing/coupon.php b/modules/billing/coupon.php index 5fcdf439..8f8a553b 100644 --- a/modules/billing/coupon.php +++ b/modules/billing/coupon.php @@ -14,7 +14,7 @@ function exec_ogp_module() $id = $db->realEscapeSingle($_POST['id']); //Create INSERT query - $qry_change_url = "UPDATE OGP_DB_PREFIXbilling_coupons + $qry_change_url = "UPDATE GSP_DB_PREFIXbilling_coupons SET code ='".$new_code."', name = '".$new_name."', discount ='".$new_discount."', @@ -35,14 +35,14 @@ function exec_ogp_module() $expires = $_POST['expires']; - $query = "INSERT INTO OGP_DB_PREFIXbilling_coupons(code, name, discount, count, expires) VALUES('".$code."', '".$name."', '".$discount."', '".$count."', '".$expires."')"; + $query = "INSERT INTO GSP_DB_PREFIXbilling_coupons(code, name, discount, count, expires) VALUES('".$code."', '".$name."', '".$discount."', '".$count."', '".$expires."')"; $db->query($query); } //Querying REMOVE coupon FROM DB if (isset($_POST['del_coupon'])) { - $db->query( "DELETE FROM OGP_DB_PREFIXbilling_coupons WHERE id=" . $db->realEscapeSingle($_POST['id']) ); + $db->query( "DELETE FROM GSP_DB_PREFIXbilling_coupons WHERE id=" . $db->realEscapeSingle($_POST['id']) ); } ?> @@ -51,7 +51,7 @@ function exec_ogp_module()
resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_coupons"); + $result = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_coupons"); if ($result > 0) { ?> diff --git a/modules/billing/coupons.php b/modules/billing/coupons.php index 5fcdf439..8f8a553b 100644 --- a/modules/billing/coupons.php +++ b/modules/billing/coupons.php @@ -14,7 +14,7 @@ function exec_ogp_module() $id = $db->realEscapeSingle($_POST['id']); //Create INSERT query - $qry_change_url = "UPDATE OGP_DB_PREFIXbilling_coupons + $qry_change_url = "UPDATE GSP_DB_PREFIXbilling_coupons SET code ='".$new_code."', name = '".$new_name."', discount ='".$new_discount."', @@ -35,14 +35,14 @@ function exec_ogp_module() $expires = $_POST['expires']; - $query = "INSERT INTO OGP_DB_PREFIXbilling_coupons(code, name, discount, count, expires) VALUES('".$code."', '".$name."', '".$discount."', '".$count."', '".$expires."')"; + $query = "INSERT INTO GSP_DB_PREFIXbilling_coupons(code, name, discount, count, expires) VALUES('".$code."', '".$name."', '".$discount."', '".$count."', '".$expires."')"; $db->query($query); } //Querying REMOVE coupon FROM DB if (isset($_POST['del_coupon'])) { - $db->query( "DELETE FROM OGP_DB_PREFIXbilling_coupons WHERE id=" . $db->realEscapeSingle($_POST['id']) ); + $db->query( "DELETE FROM GSP_DB_PREFIXbilling_coupons WHERE id=" . $db->realEscapeSingle($_POST['id']) ); } ?> @@ -51,7 +51,7 @@ function exec_ogp_module()
resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_coupons"); + $result = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_coupons"); if ($result > 0) { ?> diff --git a/modules/billing/create_servers.php b/modules/billing/create_servers.php index c7723aa7..3f995f12 100644 --- a/modules/billing/create_servers.php +++ b/modules/billing/create_servers.php @@ -12,12 +12,12 @@ function exec_ogp_module() if(isset($_GET['cart_id'])){ $cart_id = $_GET['cart_id']; } - $cart_paid = $db->resultQuery( "SELECT paid FROM OGP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id) ); + $cart_paid = $db->resultQuery( "SELECT paid FROM GSP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id) ); $isAdmin = $db->isAdmin( $_SESSION['user_id'] ); if ( $isAdmin ){ - $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id) ); + $orders = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id) ); } else { - $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)." AND user_id=".$db->realEscapeSingle($user_id) ); + $orders = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)." AND user_id=".$db->realEscapeSingle($user_id) ); } if( !empty($orders) and !empty($cart_paid) ) { @@ -35,7 +35,7 @@ function exec_ogp_module() $extended = $order['extended'] == "1" ? TRUE : FALSE; //Query service info $service = $db->resultQuery( "SELECT * - FROM OGP_DB_PREFIXbilling_services + FROM GSP_DB_PREFIXbilling_services WHERE service_id=".$db->realEscapeSingle($service_id) ); if( !empty( $service[0] ) ) @@ -131,7 +131,7 @@ function exec_ogp_module() //Add IP:Port Pair to the Game Home //need to get the IP_ID for this remote server. - $result = $db->resultQuery("SELECT ip_id FROM OGP_DB_PREFIXremote_server_ips WHERE remote_server_id=".$ip); + $result = $db->resultQuery("SELECT ip_id FROM GSP_DB_PREFIXremote_server_ips WHERE remote_server_id=".$ip); foreach ($result as $rs) { $ip_id = $rs['ip_id']; @@ -336,33 +336,33 @@ function exec_ogp_module() } // set order status - $db->query("UPDATE OGP_DB_PREFIXbilling_orders + $db->query("UPDATE GSP_DB_PREFIXbilling_orders SET status='" . $db->realEscapeSingle($status) . "' WHERE order_id=".$db->realEscapeSingle($order_id)); // set the order expiration - $db->query("UPDATE OGP_DB_PREFIXbilling_orders + $db->query("UPDATE GSP_DB_PREFIXbilling_orders SET finish_date='" . $db->realEscapeSingle($finish_date) . "' WHERE order_id=".$db->realEscapeSingle($order_id)); // Save home id created by this order - $db->query("UPDATE OGP_DB_PREFIXbilling_orders + $db->query("UPDATE GSP_DB_PREFIXbilling_orders SET home_id='" . $db->realEscapeSingle($home_id) . "' WHERE order_id=".$db->realEscapeSingle($order_id)); } //Update Cart Payment Status as 3(paid and installed) - $db->query("UPDATE OGP_DB_PREFIXbilling_carts + $db->query("UPDATE GSP_DB_PREFIXbilling_carts SET paid=3 WHERE cart_id=".$db->realEscapeSingle($cart_id)); // Set payment/creation date $date = date('d M Y'); - $db->query("UPDATE OGP_DB_PREFIXbilling_carts + $db->query("UPDATE GSP_DB_PREFIXbilling_carts SET date='" . $db->realEscapeSingle($date) . "' WHERE cart_id=".$db->realEscapeSingle($cart_id)); - $db->query( "UPDATE OGP_DB_PREFIXgame_mods SET max_players= ".$order['max_players']." WHERE home_id=".$db->realEscapeSingle($home_id)); + $db->query( "UPDATE GSP_DB_PREFIXgame_mods SET max_players= ".$order['max_players']." WHERE home_id=".$db->realEscapeSingle($home_id)); //Refresh to Game Monitor. diff --git a/modules/billing/ipn.php b/modules/billing/ipn.php index a0854559..b14048e1 100644 --- a/modules/billing/ipn.php +++ b/modules/billing/ipn.php @@ -91,7 +91,7 @@ if (strcmp ($res, "VERIFIED") == 0) { $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; - $db->query("UPDATE OGP_DB_PREFIXbilling_carts + $db->query("UPDATE GSP_DB_PREFIXbilling_carts SET paid=1 WHERE cart_id=".$db->realEscapeSingle($cart_id)); fwrite($fpx, "IPN Processed\n"); diff --git a/modules/billing/module.php b/modules/billing/module.php index fd1fe7bc..5567ee7f 100644 --- a/modules/billing/module.php +++ b/modules/billing/module.php @@ -36,8 +36,8 @@ $module_menus = array( $install_queries = array(); $install_queries[0] = array( - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."billing_services`;", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."billing_services` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."billing_services`;", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."billing_services` ( `service_id` int(11) NOT NULL auto_increment, `home_cfg_id` int(11) NOT NULL, `mod_cfg_id` int(11) NOT NULL, @@ -57,8 +57,8 @@ $install_queries[0] = array( PRIMARY KEY (`service_id`) ) ENGINE=MyISAM DEFAULT CHARSET=UTF8;", - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."billing_orders`;", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."billing_orders` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."billing_orders`;", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."billing_orders` ( `order_id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, @@ -80,16 +80,16 @@ $install_queries[0] = array( ); $install_queries[1] = array( - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."billing_carts`;", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."billing_carts` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."billing_carts`;", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."billing_carts` ( `cart_id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL, `paid` int(11) NULL, PRIMARY KEY (`cart_id`) ) ENGINE=MyISAM DEFAULT CHARSET=UTF8;", - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."billing_orders`;", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."billing_orders` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."billing_orders`;", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."billing_orders` ( `order_id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL, `service_id` int(11) NOT NULL, @@ -110,25 +110,25 @@ $install_queries[1] = array( ); $install_queries[2] = array( - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` DROP `date`;", - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` DROP `home_path`;", - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` DROP `paid`;", - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `home_id` varchar(255) NOT NULL DEFAULT '0';", - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `status` varchar(16) NOT NULL DEFAULT '0';", - "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `date` varchar(16) NOT NULL DEFAULT '0';", - "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `tax_amount` varchar(16) NOT NULL DEFAULT '0';", - "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `currency` varchar(3) NOT NULL DEFAULT '0';" + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` DROP `date`;", + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` DROP `home_path`;", + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` DROP `paid`;", + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` ADD `home_id` varchar(255) NOT NULL DEFAULT '0';", + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` ADD `status` varchar(16) NOT NULL DEFAULT '0';", + "ALTER TABLE `".GSP_DB_PREFIX."billing_carts` ADD `date` varchar(16) NOT NULL DEFAULT '0';", + "ALTER TABLE `".GSP_DB_PREFIX."billing_carts` ADD `tax_amount` varchar(16) NOT NULL DEFAULT '0';", + "ALTER TABLE `".GSP_DB_PREFIX."billing_carts` ADD `currency` varchar(3) NOT NULL DEFAULT '0';" ); $install_queries[3] = array( - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `finish_date` varchar(16) NOT NULL DEFAULT '0';" + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` ADD `finish_date` varchar(16) NOT NULL DEFAULT '0';" ); $install_queries[4] = array( - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `extended` tinyint(1) NOT NULL;", - "ALTER TABLE `".OGP_DB_PREFIX."billing_services` ADD `enabled` int(11) NOT NULL;" - "ALTER TABLE `".OGP_DB_PREFIX."billing_carts` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';" - "ALTER TABLE `".OGP_DB_PREFIX."billing_orders` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';" + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` ADD `extended` tinyint(1) NOT NULL;", + "ALTER TABLE `".GSP_DB_PREFIX."billing_services` ADD `enabled` int(11) NOT NULL;" + "ALTER TABLE `".GSP_DB_PREFIX."billing_carts` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';" + "ALTER TABLE `".GSP_DB_PREFIX."billing_orders` ADD `coupon_id` varchar(3) NOT NULL DEFAULT '0';" ); diff --git a/modules/billing/orders.php b/modules/billing/orders.php index 6ae7cf0e..c12bf7e2 100644 --- a/modules/billing/orders.php +++ b/modules/billing/orders.php @@ -7,12 +7,12 @@ function exec_ogp_module() if(isset($_POST['remove'])) { - $query_delete_order = $db->query("DELETE FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($_POST['cart_id'])); - $query_delete_order = $db->query("DELETE FROM OGP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($_POST['cart_id'])); + $query_delete_order = $db->query("DELETE FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($_POST['cart_id'])); + $query_delete_order = $db->query("DELETE FROM GSP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($_POST['cart_id'])); } if(isset($_POST['paid'])) { - $query_set_as_paid = $db->query("UPDATE OGP_DB_PREFIXbilling_carts + $query_set_as_paid = $db->query("UPDATE GSP_DB_PREFIXbilling_carts SET paid=1 WHERE cart_id=".$db->realEscapeSingle($_POST['cart_id'])); } @@ -49,7 +49,7 @@ function exec_ogp_module() echo "

Accounting

"; $servercount = 0; $income = 0; - $paidOrders = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE status > 0"); + $paidOrders = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE status > 0"); foreach($paidOrders as $inc) { $servercount = $servercount +1; @@ -65,9 +65,9 @@ function exec_ogp_module() if($isAdmin or $status > "not_paid") { if ($isAdmin){ - $carts = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE paid =" . $db->realEscapeSingle($paid_value) ." order by cart_id DESC"); + $carts = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE paid =" . $db->realEscapeSingle($paid_value) ." order by cart_id DESC"); }else{ - $carts = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE paid =" . $db->realEscapeSingle($paid_value) ." AND user_id = " . $user_id ." order by cart_id DESC"); + $carts = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE paid =" . $db->realEscapeSingle($paid_value) ." AND user_id = " . $user_id ." order by cart_id DESC"); } if( $carts > 0 ) { @@ -103,7 +103,7 @@ function exec_ogp_module() }?> resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart['cart_id'])." order by order_id DESC" ); + $orders = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart['cart_id'])." order by order_id DESC" ); $subtotal = 0; foreach($orders as $order) { @@ -221,7 +221,7 @@ function exec_ogp_module() //obter as informações de cupom usadas neste pedido $coupon_savings = 0; if($cart['coupon_id']>0) { - $result = $db->resultquery("SELECT * from OGP_DB_PREFIXbilling_coupons WHERE id = '". $cart['coupon_id'] . "'"); + $result = $db->resultquery("SELECT * from GSP_DB_PREFIXbilling_coupons WHERE id = '". $cart['coupon_id'] . "'"); foreach($result as $coupon){ $coupon_savings = $subtotal * ($coupon['discount']/ 100); echo "Sub-total c/discount $" .number_format( ($subtotal - $coupon_savings) , 2 ).$cart['currency']."
"; diff --git a/modules/billing/paid.php b/modules/billing/paid.php index a3ef0ba0..c9731d78 100644 --- a/modules/billing/paid.php +++ b/modules/billing/paid.php @@ -5,7 +5,7 @@ global $db,$view,$settings; $loadpage = "?m=billing&p=paid"; $count = $_POST['count'] + 1; -$result = $db->resultquery("SELECT * from OGP_DB_PREFIXbilling_carts WHERE cart_id= '". $_POST['cart_id'] . "'"); +$result = $db->resultquery("SELECT * from GSP_DB_PREFIXbilling_carts WHERE cart_id= '". $_POST['cart_id'] . "'"); foreach($result as $cartID){ $paid = $cartID['paid']; } diff --git a/modules/billing/paypal.php b/modules/billing/paypal.php index ab399f7a..fb9ec855 100644 --- a/modules/billing/paypal.php +++ b/modules/billing/paypal.php @@ -28,9 +28,9 @@ $debug = $settings['debug']; if(!empty($cart_id)) { - $orders = $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)); + $orders = $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE cart_id=".$db->realEscapeSingle($cart_id)); //get couponID then discount for this cart - $result= $db->resultQuery( "SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id)); + $result= $db->resultQuery( "SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE cart_id=".$db->realEscapeSingle($cart_id)); foreach ($result as $cartDB){ $coupon_id = $cartDB['id']; } diff --git a/modules/billing/services.php b/modules/billing/services.php index aa5617f3..e8b7484d 100644 --- a/modules/billing/services.php +++ b/modules/billing/services.php @@ -14,7 +14,7 @@ function exec_ogp_module() $service = $db->realEscapeSingle($_POST['service']); //Create UPDATE query - $qry_change_url = "UPDATE OGP_DB_PREFIXbilling_services + $qry_change_url = "UPDATE GSP_DB_PREFIXbilling_services SET remote_server_id = '".$new_remote_server_id."', price_monthly ='".$new_price_monthly."', remote_server_id = '".$new_remote_server_id."', @@ -28,7 +28,7 @@ function exec_ogp_module() //Querying UPDATE enabled/disabled remote servers DB if (isset($_POST['update_remote_servers'])) { - $result = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXremote_servers"); + $result = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXremote_servers"); foreach($result as $rs) { $server_enabled = 0; @@ -40,7 +40,7 @@ function exec_ogp_module() } //update the table with current value - $query = "UPDATE OGP_DB_PREFIXremote_servers SET enabled = '".$server_enabled."' WHERE remote_server_id=".$rs['remote_server_id']; + $query = "UPDATE GSP_DB_PREFIXremote_servers SET enabled = '".$server_enabled."' WHERE remote_server_id=".$rs['remote_server_id']; $db->query($query); } @@ -83,14 +83,14 @@ function exec_ogp_module() if(isset($_POST['allow_ftp_usage']))$access_rights .= $db->realEscapeSingle($_POST['allow_ftp_usage']); if(isset($_POST['allow_custom_fields']))$access_rights .= $db->realEscapeSingle($_POST['allow_custom_fields']); - $qry_add_service = "INSERT INTO OGP_DB_PREFIXbilling_services(service_id, home_cfg_id, mod_cfg_id, service_name, remote_server_id, out_of_stock, slot_max_qty , slot_min_qty, price_daily, price_monthly, price_year, description, img_url, ftp, install_method, manual_url, access_rights,enabled) VALUES(NULL, '".$home_cfg_id."', '".$mod_cfg_id."', '".$service_name."', '".$remote_server_id."', 0,'".$slot_max_qty."', '".$slot_min_qty."', '".$price_daily."', '".$price_monthly."', '".$price_year."', '".$description."', '".$img_url."', '".$ftp."', '".$install_method."', '".$manual_url."', '".$access_rights."', '" . $enabled . "')"; + $qry_add_service = "INSERT INTO GSP_DB_PREFIXbilling_services(service_id, home_cfg_id, mod_cfg_id, service_name, remote_server_id, out_of_stock, slot_max_qty , slot_min_qty, price_daily, price_monthly, price_year, description, img_url, ftp, install_method, manual_url, access_rights,enabled) VALUES(NULL, '".$home_cfg_id."', '".$mod_cfg_id."', '".$service_name."', '".$remote_server_id."', 0,'".$slot_max_qty."', '".$slot_min_qty."', '".$price_daily."', '".$price_monthly."', '".$price_year."', '".$description."', '".$img_url."', '".$ftp."', '".$install_method."', '".$manual_url."', '".$access_rights."', '" . $enabled . "')"; $db->query($qry_add_service); } //Querying REMOVE service FROM DB if (isset($_POST['service_id'])) { - $db->query( "DELETE FROM OGP_DB_PREFIXbilling_services WHERE service_id=" . $db->realEscapeSingle($_POST['service_id']) ); + $db->query( "DELETE FROM GSP_DB_PREFIXbilling_services WHERE service_id=" . $db->realEscapeSingle($_POST['service_id']) ); } ?> @@ -106,7 +106,7 @@ function exec_ogp_module() "; foreach($result as $rs) @@ -278,7 +278,7 @@ function exec_ogp_module()

"; //end ENABLE REMOTE SERVERS - $services = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_services ORDER BY service_name"); + $services = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_services ORDER BY service_name"); if ($services > 0) { ?> diff --git a/modules/billing/shop.php b/modules/billing/shop.php index 6b095650..d85c6207 100644 --- a/modules/billing/shop.php +++ b/modules/billing/shop.php @@ -33,7 +33,7 @@ function exec_ogp_module() $new_description = str_replace("\\r\\n", "
", $_POST['description']); $service = $_POST['service_id']; - $change_description = "UPDATE OGP_DB_PREFIXbilling_services + $change_description = "UPDATE GSP_DB_PREFIXbilling_services SET description ='".$db->realEscapeSingle($new_description)."' WHERE service_id=".$db->realEscapeSingle($service); $save = $db->query($change_description); @@ -63,7 +63,7 @@ THIS IS WHAT WE DISPLAY ON THE SHOP PAGE AT THE TOP // Shop Form if(intval($_REQUEST['service_id']) !==0) $where_service_id = " WHERE enabled = 1 and service_id=".intval($_REQUEST['service_id']); else $where_service_id = " where enabled = 1"; - $qry_services = "SELECT * FROM OGP_DB_PREFIXbilling_services".$where_service_id; + $qry_services = "SELECT * FROM GSP_DB_PREFIXbilling_services".$where_service_id; $services = $db->resultQuery($qry_services); if (isset($_REQUEST['service_id']) && $services === false) { @@ -208,7 +208,7 @@ if ($row['price_monthly'] == 0.0) { //loop through each of the assigned servers and see if its disabled foreach($rsiArray as $rsi) { - $query = "SELECT * FROM OGP_DB_PREFIXremote_servers WHERE remote_server_id = ".$rsi; + $query = "SELECT * FROM GSP_DB_PREFIXremote_servers WHERE remote_server_id = ".$rsi; $result = $db->resultQuery($query); foreach($result as $rs) { diff --git a/modules/circular/functions.php b/modules/circular/functions.php index 76470295..1022c9ce 100644 --- a/modules/circular/functions.php +++ b/modules/circular/functions.php @@ -7,7 +7,7 @@ function get_usernames_not_read_circular($circular_id) global $db; $circular_id = $db->real_escape_string($circular_id); $query = "SELECT user_id ". - "FROM `OGP_DB_PREFIXcircular_recipients` ". + "FROM `GSP_DB_PREFIXcircular_recipients` ". "WHERE `circular_id` = '$circular_id' ". "AND `status` = '0'"; $users = $db->resultQuery($query); @@ -31,14 +31,14 @@ function remove_circular($circular_id, $admin = false) if($admin) { - $db->query("DELETE FROM `OGP_DB_PREFIXcircular_recipients` ". + $db->query("DELETE FROM `GSP_DB_PREFIXcircular_recipients` ". "WHERE `circular_id` = '$circular_id'"); - $db->query("DELETE FROM `OGP_DB_PREFIXcircular` ". + $db->query("DELETE FROM `GSP_DB_PREFIXcircular` ". "WHERE `circular_id` = '$circular_id'"); } else { - $db->query("DELETE FROM `OGP_DB_PREFIXcircular_recipients` ". + $db->query("DELETE FROM `GSP_DB_PREFIXcircular_recipients` ". "WHERE `circular_id` = '$circular_id' ". "AND `user_id` = '$_SESSION[user_id]'"); } @@ -48,7 +48,7 @@ function set_circular_readed($circular_id) { global $db; $circular_id = $db->real_escape_string($circular_id); - $db->query("UPDATE `OGP_DB_PREFIXcircular_recipients` ". + $db->query("UPDATE `GSP_DB_PREFIXcircular_recipients` ". "SET `status` = '1' ". "WHERE `circular_id` = '$circular_id' ". "AND `user_id` = '$_SESSION[user_id]'"); @@ -58,11 +58,11 @@ function get_circulars($all = false) { global $db; if($all) - $query = "SELECT * FROM `OGP_DB_PREFIXcircular`"; + $query = "SELECT * FROM `GSP_DB_PREFIXcircular`"; else $query = "SELECT * ". - "FROM `OGP_DB_PREFIXcircular_recipients` ". - "NATURAL JOIN `OGP_DB_PREFIXcircular` ". + "FROM `GSP_DB_PREFIXcircular_recipients` ". + "NATURAL JOIN `GSP_DB_PREFIXcircular` ". "WHERE user_id = $_SESSION[user_id]"; return $db->resultQuery($query); @@ -73,7 +73,7 @@ function send_to_user($user_id, $circular_id) global $db; $user_id = $db->real_escape_string($user_id); $circular_id = $db->real_escape_string($circular_id); - return $db->query("INSERT INTO `OGP_DB_PREFIXcircular_recipients` VALUES('$user_id','$circular_id','0');"); + return $db->query("INSERT INTO `GSP_DB_PREFIXcircular_recipients` VALUES('$user_id','$circular_id','0');"); } function get_user_ids($type, $ids, &$user_ids) diff --git a/modules/circular/module.php b/modules/circular/module.php index a6bd6f3d..2352c402 100644 --- a/modules/circular/module.php +++ b/modules/circular/module.php @@ -35,16 +35,16 @@ $module_menus = array( ); $install_queries[0] = array( - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."circular`", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."circular` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."circular`", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."circular` ( `circular_id` int NOT NULL AUTO_INCREMENT, `subject` TEXT NOT NULL, `message` TEXT NOT NULL, `timestamp` TIMESTAMP, PRIMARY KEY (`circular_id`) );", - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."circular_recipients`", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."circular_recipients` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."circular_recipients`", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."circular_recipients` ( `user_id` int NOT NULL, `circular_id` int NOT NULL, `status` tinyint NOT NULL, diff --git a/modules/config_games/module.php b/modules/config_games/module.php index e258c438..d45c12a1 100644 --- a/modules/config_games/module.php +++ b/modules/config_games/module.php @@ -18,8 +18,8 @@ $module_menus = array( $install_queries = array(); $install_queries[0] = array( -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."config_homes;", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."config_homes` ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."config_homes;", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."config_homes` ( `home_cfg_id` int(20) NOT NULL auto_increment, `game_key` varchar(64) NOT NULL, `game_name` varchar(255) NOT NULL, @@ -28,8 +28,8 @@ $install_queries[0] = array( UNIQUE KEY `game_key` (`game_key`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;", -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."config_mods;", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."config_mods` ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."config_mods;", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."config_mods` ( `mod_cfg_id` int(50) NOT NULL auto_increment, `home_cfg_id` varchar(50) NOT NULL, `mod_key` varchar(100) NOT NULL COMMENT 'mod short name - used by the game server for startup commands - ex cstrike', diff --git a/modules/dashboard/dashboard.php b/modules/dashboard/dashboard.php index 574a42fd..05f3dfa9 100644 --- a/modules/dashboard/dashboard.php +++ b/modules/dashboard/dashboard.php @@ -28,7 +28,7 @@ function exec_ogp_module() //show if new server created - $cartresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_carts WHERE user_id='".$_SESSION['user_id']."' AND paid='1' "); + $cartresult = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_carts WHERE user_id='".$_SESSION['user_id']."' AND paid='1' "); $newServices=0; foreach($cartresult as $res){ $newServices=$newServices + 1; @@ -50,7 +50,7 @@ function exec_ogp_module() '; } //Invoice is due. - $orderresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -1"); + $orderresult = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -1"); $invoicesDue=0; foreach($orderresult as $res){ $invoicesDue=$invoicesDue + 1; @@ -69,7 +69,7 @@ function exec_ogp_module() '; } //Server is suspended DANGER - $orderresult = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -2"); + $orderresult = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status = -2"); $invoicesDue=0; foreach($orderresult as $res){ $invoicesDue=$invoicesDue + 1; @@ -138,12 +138,12 @@ function exec_ogp_module() - $widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no"); + $widgets = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no"); if(!$widgets) { if($db->createUserWidgets($_SESSION['user_id'])) - $widgets = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no"); + $widgets = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXwidgets_users WHERE user_id='".$_SESSION['user_id']."' ORDER BY sort_no"); } if($widgets) diff --git a/modules/dashboard/module.php b/modules/dashboard/module.php index 89c9cc39..ec2f2da4 100644 --- a/modules/dashboard/module.php +++ b/modules/dashboard/module.php @@ -11,8 +11,8 @@ $module_required = TRUE; $module_menus = array( array( 'subpage' => 'dashboard', 'name'=>'Dashboard', 'group'=>'user' ) ); $install_queries = array(); $install_queries[0] = array( -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."widgets;", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."widgets` ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."widgets;", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."widgets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `column_id` int(11) NOT NULL, `sort_no` int(11) NOT NULL, @@ -21,8 +21,8 @@ $install_queries[0] = array( PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;", -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."widgets_users", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."widgets_users` ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."widgets_users", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."widgets_users` ( `user_id` int(11) NOT NULL, `widget_id` int(11) NOT NULL, `column_id` int(11) NOT NULL, @@ -31,7 +31,7 @@ $install_queries[0] = array( `title` varchar(100) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;", -"INSERT INTO `".OGP_DB_PREFIX."widgets` (`id`, `column_id`, `sort_no`, `collapsed`, `title`) VALUES +"INSERT INTO `".GSP_DB_PREFIX."widgets` (`id`, `column_id`, `sort_no`, `collapsed`, `title`) VALUES (1, 1, 1, 0, 'Game Monitor'), (2, 2, 0, 0, 'Online Server'), (3, 2, 1, 0, 'Currently Online'), diff --git a/modules/dashboard/updateWidgets.php b/modules/dashboard/updateWidgets.php index c439d5b9..86420d4a 100644 --- a/modules/dashboard/updateWidgets.php +++ b/modules/dashboard/updateWidgets.php @@ -25,7 +25,7 @@ function exec_ogp_module() $widget_id = preg_replace('/[^\d\s]/', '', $item->id); if (is_numeric($col_id) && is_numeric($widget_id)) { - $db->query("UPDATE ".OGP_DB_PREFIX."widgets_users SET column_id='$col_id', sort_no='".(int)$item->order."', collapsed='".(int)$item->collapsed."' WHERE widget_id='".$widget_id."' AND user_id='".$_SESSION['user_id']."'"); + $db->query("UPDATE ".GSP_DB_PREFIX."widgets_users SET column_id='$col_id', sort_no='".(int)$item->order."', collapsed='".(int)$item->collapsed."' WHERE widget_id='".$widget_id."' AND user_id='".$_SESSION['user_id']."'"); } } diff --git a/modules/extras/extras.php b/modules/extras/extras.php index 1a8515af..c76f4e5f 100644 --- a/modules/extras/extras.php +++ b/modules/extras/extras.php @@ -213,7 +213,7 @@ function exec_ogp_module() // Get blacklisted files $current_blacklist = array(); - $blacklisted_files = $db->resultQuery('SELECT file_path FROM `OGP_DB_PREFIXupdate_blacklist`;'); + $blacklisted_files = $db->resultQuery('SELECT file_path FROM `GSP_DB_PREFIXupdate_blacklist`;'); if($blacklisted_files !== FALSE) { $current_blacklist = array(); diff --git a/modules/faq/faq.php b/modules/faq/faq.php index 9ef1be46..7ad304ff 100644 --- a/modules/faq/faq.php +++ b/modules/faq/faq.php @@ -123,7 +123,7 @@ function exec_ogp_module() // Check if user is admin global $db; $isAdmin = false; - if(isset($_SESSION['user_id']) && $db && $db instanceof OGPDatabase) { + if(isset($_SESSION['user_id']) && $db && $db instanceof GSPDatabase) { $isAdmin = $db->isAdmin($_SESSION['user_id']); } diff --git a/modules/fast_download/functions.php b/modules/fast_download/functions.php index c80f2d49..cb8d9bfe 100644 --- a/modules/fast_download/functions.php +++ b/modules/fast_download/functions.php @@ -52,15 +52,15 @@ function get_access_rules($home_cfg_id = "") global $db; if($home_cfg_id == "") { - return $db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules`;"); + return $db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules`;"); } else { - $result = $db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules` + $result = $db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='".$db->realEscapeSingle($home_cfg_id)."'"); if($result === FALSE) { - $result = $db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules` + $result = $db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='0'"); if($result === FALSE) return array('match_file_extension' => NULL,'match_client_ip', NULL); @@ -72,12 +72,12 @@ function get_access_rules($home_cfg_id = "") function set_access_rule($home_cfg_id, $match_file_extension, $match_client_ip) { global $db; - if (!$db->resultQuery("SELECT * FROM `".OGP_DB_PREFIX."fastdl_access_rules` + if (!$db->resultQuery("SELECT * FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='".$db->realEscapeSingle($home_cfg_id)."'")) { if($match_file_extension == "" and $match_client_ip == "") return TRUE; - return $db->query("INSERT INTO `".OGP_DB_PREFIX."fastdl_access_rules` + return $db->query("INSERT INTO `".GSP_DB_PREFIX."fastdl_access_rules` (`home_cfg_id`,`match_file_extension`,`match_client_ip`) VALUES('" . $db->realEscapeSingle($home_cfg_id) . "','" . $db->realEscapeSingle($match_file_extension) . "','" . $db->realEscapeSingle($match_client_ip) . "');"); } @@ -85,11 +85,11 @@ function set_access_rule($home_cfg_id, $match_file_extension, $match_client_ip) { if($match_file_extension == "" and $match_client_ip == "") { - return $db->query("DELETE FROM `".OGP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';"); + return $db->query("DELETE FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';"); } else { - return $db->query("UPDATE `".OGP_DB_PREFIX."fastdl_access_rules` + return $db->query("UPDATE `".GSP_DB_PREFIX."fastdl_access_rules` SET `match_file_extension`='" . $db->realEscapeSingle($match_file_extension) . "', `match_client_ip`='" . $db->realEscapeSingle($match_client_ip) . "' WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';"); @@ -100,7 +100,7 @@ function set_access_rule($home_cfg_id, $match_file_extension, $match_client_ip) function del_access_rule($home_cfg_id) { global $db; - return $db->query("DELETE FROM `".OGP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';"); + return $db->query("DELETE FROM `".GSP_DB_PREFIX."fastdl_access_rules` WHERE `home_cfg_id`='" . $db->realEscapeSingle($home_cfg_id) . "';"); } function check_access_rules_entries() @@ -165,7 +165,7 @@ function get_fastdl_settings($remote_server_id) { global $db; if( !is_numeric($remote_server_id) ) return FALSE; - $result = $db->resultQuery("SELECT `setting`,`value` FROM `".OGP_DB_PREFIX."fastdl_settings` + $result = $db->resultQuery("SELECT `setting`,`value` FROM `".GSP_DB_PREFIX."fastdl_settings` WHERE `remote_server_id`='".$db->realEscapeSingle($remote_server_id)."'"); if(!$result) return FALSE; $results = array(); @@ -184,7 +184,7 @@ function set_fastdl_settings($remote_server_id, $settings) if( !is_array($settings) ) return FALSE; foreach ( $settings as $s_key => $s_value ) { - $query = 'INSERT INTO `'.OGP_DB_PREFIX.'fastdl_settings` (`remote_server_id`,`setting`,`value`) + $query = 'INSERT INTO `'.GSP_DB_PREFIX.'fastdl_settings` (`remote_server_id`,`setting`,`value`) VALUES(\''.$db->realEscapeSingle($remote_server_id).'\', \''.$db->realEscapeSingle($s_key).'\', \''.$db->realEscapeSingle($s_value).'\') ON DUPLICATE KEY UPDATE value=\''.$db->realEscapeSingle($s_value).'\''; $db->query($query); diff --git a/modules/fast_download/module.php b/modules/fast_download/module.php index b2f589b2..0fe41f7a 100644 --- a/modules/fast_download/module.php +++ b/modules/fast_download/module.php @@ -12,22 +12,22 @@ $module_menus = array( array( 'subpage' => '', 'name'=>'Fast Download', 'group'= $module_access_rights = array('d' => 'allow_fast_download'); $install_queries[0] = array("SELECT NOW();"); -$install_queries[1] = array("DROP TABLE IF EXISTS `".OGP_DB_PREFIX."fastdl`;"); +$install_queries[1] = array("DROP TABLE IF EXISTS `".GSP_DB_PREFIX."fastdl`;"); $install_queries[2] = array("SELECT NOW();"); $install_queries[3] = array( - "CREATE TABLE ".OGP_DB_PREFIX."fastdl_access_rules ( + "CREATE TABLE ".GSP_DB_PREFIX."fastdl_access_rules ( `home_cfg_id` varchar(32) NOT NULL, `match_file_extension` TEXT, `match_client_ip` TEXT, UNIQUE KEY (`home_cfg_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;"); $install_queries[4] = array( - "CREATE TABLE ".OGP_DB_PREFIX."fastdl_settings ( + "CREATE TABLE ".GSP_DB_PREFIX."fastdl_settings ( `remote_server_id` int(11) NOT NULL, `setting` varchar(63) NOT NULL, `value` varchar(255) NOT NULL, UNIQUE KEY remote_server_id (remote_server_id,setting) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;"); -$uninstall_queries = array("DROP TABLE IF EXISTS `".OGP_DB_PREFIX."fastdl_access_rules`;", - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."fastdl_settings`;"); +$uninstall_queries = array("DROP TABLE IF EXISTS `".GSP_DB_PREFIX."fastdl_access_rules`;", + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."fastdl_settings`;"); ?> diff --git a/modules/gamemanager/module.php b/modules/gamemanager/module.php index 8d31ec9b..884b304b 100644 --- a/modules/gamemanager/module.php +++ b/modules/gamemanager/module.php @@ -12,16 +12,16 @@ $module_menus = array( array( 'subpage' => 'game_monitor', 'name'=>'Game Monitor $module_access_rights = array('u' => 'allow_updates', 'p' => 'allow_parameter_usage', 'e' => 'allow_extra_params', 'c' => 'allow_custom_fields'); $install_queries[0] = array( - "DROP TABLE IF EXISTS `".OGP_DB_PREFIX."home_ip_ports`;", - "CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."home_ip_ports` ( + "DROP TABLE IF EXISTS `".GSP_DB_PREFIX."home_ip_ports`;", + "CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."home_ip_ports` ( `ip_id` int(11) NOT NULL, `port` int(11) NOT NULL, `home_id` int(11) NOT NULL, PRIMARY KEY (`ip_id`,`port`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;", -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."server_homes", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."server_homes` ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."server_homes", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."server_homes` ( `home_id` int(50) NOT NULL auto_increment, `remote_server_id` int(11) NOT NULL, `user_id_main` int(11) NOT NULL, @@ -35,8 +35,8 @@ $install_queries[0] = array( UNIQUE KEY remote_server_id (remote_server_id,home_path) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;", -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."rcon_presets;", -"CREATE TABLE ".OGP_DB_PREFIX."rcon_presets ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."rcon_presets;", +"CREATE TABLE ".GSP_DB_PREFIX."rcon_presets ( `preset_id` int(50) NOT NULL auto_increment, `name` varchar(20) NOT NULL, `command` varchar(100) NOT NULL, @@ -45,8 +45,8 @@ UNIQUE KEY remote_server_id (remote_server_id,home_path) PRIMARY KEY (`preset_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;", -"DROP TABLE IF EXISTS ".OGP_DB_PREFIX."game_mods", -"CREATE TABLE IF NOT EXISTS ".OGP_DB_PREFIX."game_mods ( +"DROP TABLE IF EXISTS ".GSP_DB_PREFIX."game_mods", +"CREATE TABLE IF NOT EXISTS ".GSP_DB_PREFIX."game_mods ( `mod_id` int(50) NOT NULL auto_increment, `home_id` int(255) NOT NULL, `mod_cfg_id` int(11) NOT NULL, @@ -61,12 +61,12 @@ UNIQUE KEY home_id (home_id,mod_cfg_id) ) ENGINE=MyISAM;"); $install_queries[1] = array( - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` ADD `ftp_login` varchar(32) NULL;", - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` ADD `ftp_status` int(11) NOT NULL DEFAULT '0';"); + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` ADD `ftp_login` varchar(32) NULL;", + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` ADD `ftp_status` int(11) NOT NULL DEFAULT '0';"); $install_queries[2] = array( -"DROP TABLE IF EXISTS `".OGP_DB_PREFIX."status_cache`", -"CREATE TABLE IF NOT EXISTS `".OGP_DB_PREFIX."status_cache` ( +"DROP TABLE IF EXISTS `".GSP_DB_PREFIX."status_cache`", +"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."status_cache` ( `date_timestamp` char(16) NOT NULL, `ip_id` char(3) NOT NULL, `port` char(6) NOT NULL, @@ -74,28 +74,28 @@ $install_queries[2] = array( ) ENGINE=MyISAM DEFAULT CHARSET=latin1;"); $install_queries[3] = array( - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` ADD `custom_fields` LONGTEXT NULL;"); + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` ADD `custom_fields` LONGTEXT NULL;"); $install_queries[4] = array( - "ALTER TABLE `".OGP_DB_PREFIX."home_ip_ports` ADD `force_mod_id` int(11) NOT NULL DEFAULT '0';"); + "ALTER TABLE `".GSP_DB_PREFIX."home_ip_ports` ADD `force_mod_id` int(11) NOT NULL DEFAULT '0';"); $install_queries[5] = array( - "TRUNCATE `".OGP_DB_PREFIX."status_cache`;"); + "TRUNCATE `".GSP_DB_PREFIX."status_cache`;"); $install_queries[6] = array( - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` ADD `server_expiration_date` VARCHAR(21) NOT NULL default 'X';"); + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` ADD `server_expiration_date` VARCHAR(21) NOT NULL default 'X';"); $install_queries[7] = array( - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` drop index `remote_server_id`;" + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` drop index `remote_server_id`;" ); $install_queries[8] = array( - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` ADD `home_user_order` INT NOT NULL default 99999;"); + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` ADD `home_user_order` INT NOT NULL default 99999;"); // Increase default column sizes $install_queries[9] = array( - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` MODIFY COLUMN `home_path` VARCHAR(500);", - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` MODIFY COLUMN `home_name` VARCHAR(500);", - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` MODIFY COLUMN `control_password` VARCHAR(128);", - "ALTER TABLE `".OGP_DB_PREFIX."server_homes` MODIFY COLUMN `ftp_password` VARCHAR(128);"); + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` MODIFY COLUMN `home_path` VARCHAR(500);", + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` MODIFY COLUMN `home_name` VARCHAR(500);", + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` MODIFY COLUMN `control_password` VARCHAR(128);", + "ALTER TABLE `".GSP_DB_PREFIX."server_homes` MODIFY COLUMN `ftp_password` VARCHAR(128);"); ?> diff --git a/modules/lgsl_with_img_mod/image.php b/modules/lgsl_with_img_mod/image.php index d32acae1..87ed6b52 100644 --- a/modules/lgsl_with_img_mod/image.php +++ b/modules/lgsl_with_img_mod/image.php @@ -82,7 +82,7 @@ function lgsl_lookup_ip($ip, $port) $ip = $db->realEscapeSingle($ip); $port = $db->realEscapeSingle($port); - $result = $db->resultQuery("SELECT `id` FROM `OGP_DB_PREFIXlgsl` WHERE `ip`='{$ip}' AND c_port='{$port}' LIMIT 1"); + $result = $db->resultQuery("SELECT `id` FROM `GSP_DB_PREFIXlgsl` WHERE `ip`='{$ip}' AND c_port='{$port}' LIMIT 1"); return $result[0]; } @@ -149,7 +149,7 @@ function lgsl_cache_info($id) { global $db; $id = $db->realEscapeSingle($id); - $result = $db->resultQuery("SELECT `cache_time` FROM `OGP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1"); + $result = $db->resultQuery("SELECT `cache_time` FROM `GSP_DB_PREFIXlgsl` WHERE `id`='{$id}' LIMIT 1"); return empty($result[0]['cache_time']) ? array(0,0,0) : explode("_", $result[0]['cache_time']); } diff --git a/modules/lgsl_with_img_mod/lgsl_files/lgsl_admin.php b/modules/lgsl_with_img_mod/lgsl_files/lgsl_admin.php index 5bb6c354..967233b8 100644 --- a/modules/lgsl_with_img_mod/lgsl_files/lgsl_admin.php +++ b/modules/lgsl_with_img_mod/lgsl_files/lgsl_admin.php @@ -48,7 +48,7 @@ if (!empty($_POST['lgsl_save_1'])) { // LOAD SERVER CACHE INTO MEMORY - $results = $db->resultQuery("SELECT * FROM `OGP_DB_PREFIXlgsl`"); + $results = $db->resultQuery("SELECT * FROM `GSP_DB_PREFIXlgsl`"); foreach($results as $row) { $servers["{$row['type']}:{$row['ip']}:{$row['q_port']}"] = array($row['status'], $row['cache'], $row['cache_time']); @@ -56,7 +56,7 @@ } // EMPTY SQL TABLE - $db->query("TRUNCATE `OGP_DB_PREFIXlgsl`"); + $db->query("TRUNCATE `GSP_DB_PREFIXlgsl`"); // CONVERT ADVANCED TO NORMAL DATA FORMAT if (!empty($_POST['lgsl_management'])) @@ -109,7 +109,7 @@ elseif ($q_port < 1 || $q_port > 99999) { $disabled = 1; $q_port = 0; } elseif (!isset($lgsl_protocol_list[$type])) { $disabled = 1; } - $db->query("INSERT INTO `OGP_DB_PREFIXlgsl` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`zone`,`disabled`,`comment`,`status`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','{$zone}','{$disabled}','{$comment}','{$status}','{$cache}','{$cache_time}')"); + $db->query("INSERT INTO `GSP_DB_PREFIXlgsl` (`type`,`ip`,`c_port`,`q_port`,`s_port`,`zone`,`disabled`,`comment`,`status`,`cache`,`cache_time`) VALUES ('{$type}','{$ip}','{$c_port}','{$q_port}','{$s_port}','{$zone}','{$disabled}','{$comment}','{$status}','{$cache}','{$cache_time}')"); } } @@ -161,7 +161,7 @@
\n"+ + "
\n"+ "
\n"+ "
\n"); diff --git a/modules/billing/add_to_cart.php b/modules/billing/add_to_cart.php index 1f59dedc..57b5ff05 100644 --- a/modules/billing/add_to_cart.php +++ b/modules/billing/add_to_cart.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/bak/add_to_cart.php b/modules/billing/bak/add_to_cart.php index 1f59dedc..57b5ff05 100644 --- a/modules/billing/bak/add_to_cart.php +++ b/modules/billing/bak/add_to_cart.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/bak/cron-shop.php b/modules/billing/bak/cron-shop.php index 48b3d64b..92529690 100644 --- a/modules/billing/bak/cron-shop.php +++ b/modules/billing/bak/cron-shop.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/bak/module.php b/modules/billing/bak/module.php index 65531886..0a15ac7d 100644 --- a/modules/billing/bak/module.php +++ b/modules/billing/bak/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/bak/shop.php b/modules/billing/bak/shop.php index 4503f8fa..b9f47231 100644 --- a/modules/billing/bak/shop.php +++ b/modules/billing/bak/shop.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/bak/test-email.php b/modules/billing/bak/test-email.php index 9d42c3a1..2b8a6734 100644 --- a/modules/billing/bak/test-email.php +++ b/modules/billing/bak/test-email.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/cron-shop.php b/modules/billing/cron-shop.php index d4e4ccfe..e0f3aa87 100644 --- a/modules/billing/cron-shop.php +++ b/modules/billing/cron-shop.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/module.php b/modules/billing/module.php index 5567ee7f..c78ef411 100644 --- a/modules/billing/module.php +++ b/modules/billing/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/shop.php b/modules/billing/shop.php index d85c6207..4218b776 100644 --- a/modules/billing/shop.php +++ b/modules/billing/shop.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/billing/test-email.php b/modules/billing/test-email.php index 9d42c3a1..2b8a6734 100644 --- a/modules/billing/test-email.php +++ b/modules/billing/test-email.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/circular/module.php b/modules/circular/module.php index 2352c402..6f6a50b0 100644 --- a/modules/circular/module.php +++ b/modules/circular/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/editconfigfiles/configFileList.php b/modules/editconfigfiles/configFileList.php index a5abc2b6..79b2eb9e 100644 --- a/modules/editconfigfiles/configFileList.php +++ b/modules/editconfigfiles/configFileList.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/editconfigfiles/modify.php b/modules/editconfigfiles/modify.php index 5c6981df..172462c5 100644 --- a/modules/editconfigfiles/modify.php +++ b/modules/editconfigfiles/modify.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/editconfigfiles/module.php b/modules/editconfigfiles/module.php index 89f6f1fa..39665fd3 100644 --- a/modules/editconfigfiles/module.php +++ b/modules/editconfigfiles/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/extras/extras.php b/modules/extras/extras.php index c76f4e5f..8f53267d 100644 --- a/modules/extras/extras.php +++ b/modules/extras/extras.php @@ -224,9 +224,9 @@ function exec_ogp_module() } // GitHub URL - if(function_exists("getOGPGitHubURLUnstrict") && function_exists("getGitHubOrganization")){ + if(function_exists("getGSPGitHubURLUnstrict") && function_exists("getGitHubOrganization")){ $gitHubUsername = $settings["custom_github_update_username"]; - $gitHubURL = getOGPGitHubURLUnstrict($gitHubUsername); + $gitHubURL = getGSPGitHubURLUnstrict($gitHubUsername); $gitHubOrganization = getGitHubOrganization($gitHubURL); }else{ $gitHubURL = "https://github.com/OpenGamePanel/"; diff --git a/modules/faq/faq.php b/modules/faq/faq.php index 8dda0b73..b1bf27ef 100644 --- a/modules/faq/faq.php +++ b/modules/faq/faq.php @@ -35,7 +35,7 @@ function exec_gsp_module() '
'; require 'modules/faq/rss_php.php'; - $url = 'https://opengamepanel.org/faq/rss.php'; + $url = 'https://gameserver-panel.org/faq/rss.php'; $local_copy = 'modules/faq/faq.rss'; ## Relative path $save_as = realpath('modules' . DIRECTORY_SEPARATOR . 'faq') . DIRECTORY_SEPARATOR . 'faq.rss'; ## Full path (adding the filename to realpath would fail if the file does not exists yet) diff --git a/modules/ftp/includes/registerglobals.inc.php b/modules/ftp/includes/registerglobals.inc.php index d883d700..5cdbed81 100644 --- a/modules/ftp/includes/registerglobals.inc.php +++ b/modules/ftp/includes/registerglobals.inc.php @@ -107,7 +107,7 @@ if(function_exists("getClientIPAddress")){ if(function_exists("startSession")){ startSession(); }else{ - session_name("opengamepanel_web"); + session_name("gameserver-panel_web"); session_start(); } diff --git a/modules/ftp/index.php b/modules/ftp/index.php index 14245399..334339fd 100644 --- a/modules/ftp/index.php +++ b/modules/ftp/index.php @@ -31,7 +31,7 @@ if(file_exists("includes/helpers.php")){ if(function_exists("startSession")){ startSession(); }else{ - session_name("opengamepanel_web"); + session_name("gameserver-panel_web"); session_start(); } diff --git a/modules/ftp/settings.inc.php b/modules/ftp/settings.inc.php index 2e51a8a8..7ca6be52 100644 --- a/modules/ftp/settings.inc.php +++ b/modules/ftp/settings.inc.php @@ -66,7 +66,7 @@ if(file_exists("includes/helpers.php")){ if(function_exists("startSession")){ startSession(); }else{ - session_name("opengamepanel_web"); + session_name("gameserver-panel_web"); session_start(); } diff --git a/modules/gamemanager/log.php b/modules/gamemanager/log.php index 6f6b3844..0b622f53 100644 --- a/modules/gamemanager/log.php +++ b/modules/gamemanager/log.php @@ -68,7 +68,7 @@ require_once("modules/config_games/server_config_parser.php"); } elseif ($log_retval == 1 || $log_retval == 2) { - // Force log file contents to be UTF-8 (fixes http://www.opengamepanel.org/forum/viewthread.php?thread_id=5379) + // Force log file contents to be UTF-8 (fixes http://www.gameserver-panel.org/forum/viewthread.php?thread_id=5379) if(hasValue($home_log)){ $home_log = utf8_encode($home_log); } diff --git a/modules/gamemanager/rsync_install.php b/modules/gamemanager/rsync_install.php index 1509adec..9600234d 100644 --- a/modules/gamemanager/rsync_install.php +++ b/modules/gamemanager/rsync_install.php @@ -51,7 +51,7 @@ function update_local_copies() } echo "Updating local cache of rsync meta data files
"; $update_files = array('sizes.list', 'rsync.list', 'rsync_sites.list'); - $update_urls = array('rsync.opengamepanel.org', 'dls.atl.webehostin.com'); + $update_urls = array('rsync.gameserver-panel.org', 'dls.atl.webehostin.com'); $context = array( 'ssl' => array( @@ -331,9 +331,9 @@ function exec_gsp_module() { { if(!is_file("modules/gamemanager/rsync.list")) { - print_failure("Trouble accessing http://www.opengamepanel.org/rsync.list
". - "Make sure allow_fopen_url is set to \"On\" in your php.ini and opengamepanel.org is online
". - "In the mean time, you can get a local copy of the file by running wget http://www.opengamepanel.org/sync_data/rsync.list -O /path/to/ogpweb/modules/gamemanager/rsync.list"); + print_failure("Trouble accessing http://www.gameserver-panel.org/rsync.list
". + "Make sure allow_fopen_url is set to \"On\" in your php.ini and gameserver-panel.org is online
". + "In the mean time, you can get a local copy of the file by running wget http://www.gameserver-panel.org/sync_data/rsync.list -O /path/to/ogpweb/modules/gamemanager/rsync.list"); return; } # print_failure("Error loading rsync.list"); diff --git a/modules/gamemanager/view_server_log.php b/modules/gamemanager/view_server_log.php index 37bf09ee..41c470cd 100644 --- a/modules/gamemanager/view_server_log.php +++ b/modules/gamemanager/view_server_log.php @@ -72,7 +72,7 @@ function exec_gsp_module() } elseif ($log_retval == 1 || $log_retval == 2) { - // Force log file contents to be UTF-8 (fixes http://www.opengamepanel.org/forum/viewthread.php?thread_id=5379) + // Force log file contents to be UTF-8 (fixes http://www.gameserver-panel.org/forum/viewthread.php?thread_id=5379) if(hasValue($home_log)){ $home_log = utf8_encode($home_log); } diff --git a/modules/lgsl_with_img_mod/image.php b/modules/lgsl_with_img_mod/image.php index 43f79c97..56e9a7a9 100644 --- a/modules/lgsl_with_img_mod/image.php +++ b/modules/lgsl_with_img_mod/image.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/lgsl_with_img_mod/lgsl.php b/modules/lgsl_with_img_mod/lgsl.php index c2e9f410..18294150 100644 --- a/modules/lgsl_with_img_mod/lgsl.php +++ b/modules/lgsl_with_img_mod/lgsl.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/lgsl_with_img_mod/lgsl_admin.php b/modules/lgsl_with_img_mod/lgsl_admin.php index 7f1bc772..8319293c 100644 --- a/modules/lgsl_with_img_mod/lgsl_admin.php +++ b/modules/lgsl_with_img_mod/lgsl_admin.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/lgsl_with_img_mod/module.php b/modules/lgsl_with_img_mod/module.php index 1ab3aa21..b5e480dd 100644 --- a/modules/lgsl_with_img_mod/module.php +++ b/modules/lgsl_with_img_mod/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/litefm/SessionCheck.php b/modules/litefm/SessionCheck.php index 793d114d..55918b96 100644 --- a/modules/litefm/SessionCheck.php +++ b/modules/litefm/SessionCheck.php @@ -14,7 +14,7 @@ if(file_exists("includes/helpers.php")){ if(function_exists("startSession")){ startSession(); }else{ - session_name("opengamepanel_web"); + session_name("gameserver-panel_web"); session_start(); } diff --git a/modules/news/README.md b/modules/news/README.md index 5e6e62ca..ea78d057 100644 --- a/modules/news/README.md +++ b/modules/news/README.md @@ -1,5 +1,5 @@ # Module-News -Simple news module for OGP +Simple news module for GSP Based on News Lister from www.netartmedia.net/ diff --git a/modules/news/module.php b/modules/news/module.php index a2de5e1c..50609faf 100644 --- a/modules/news/module.php +++ b/modules/news/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/news/upload.php b/modules/news/upload.php index d59e5d6d..b12e31da 100644 --- a/modules/news/upload.php +++ b/modules/news/upload.php @@ -4,7 +4,7 @@ // Check http://www.netartmedia.net/newslister for demos and information // Released under the MIT license -session_name('opengamepanel_web'); +session_name('gameserver-panel_web'); session_start(); $output_dir = "uploads/"; diff --git a/modules/rcon/module.php b/modules/rcon/module.php index e3bb9a14..39d2dbdb 100644 --- a/modules/rcon/module.php +++ b/modules/rcon/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/rcon/rcon.php b/modules/rcon/rcon.php index 0389f475..1cd2e71f 100644 --- a/modules/rcon/rcon.php +++ b/modules/rcon/rcon.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/support/module.php b/modules/support/module.php index 9b4d4bfc..35194435 100644 --- a/modules/support/module.php +++ b/modules/support/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/support/support.php b/modules/support/support.php index eea27bff..442b7510 100644 --- a/modules/support/support.php +++ b/modules/support/support.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/tickets/module.php b/modules/tickets/module.php index a91e42b3..2ceb992b 100644 --- a/modules/tickets/module.php +++ b/modules/tickets/module.php @@ -4,7 +4,7 @@ * OGP - Open Game Panel * Copyright (C) 2008 - 2017 The OGP Development Team * - * http://www.opengamepanel.org/ + * http://www.gameserver-panel.org/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License diff --git a/modules/update/updating.php b/modules/update/updating.php index ed8f39a1..02c92d8b 100644 --- a/modules/update/updating.php +++ b/modules/update/updating.php @@ -29,9 +29,9 @@ function exec_gsp_module() global $view; // GitHub URL - if(function_exists("getOGPGitHubURL") && function_exists("getOGPGitHubURLUnstrict")){ + if(function_exists("getGSPGitHubURL") && function_exists("getGSPGitHubURLUnstrict")){ $gitHubUsername = $settings["custom_github_update_username"]; - $gitHubURL = getOGPGitHubURL($gitHubUsername, REPONAME); + $gitHubURL = getGSPGitHubURL($gitHubUsername, REPONAME); }else{ $gitHubURL = "https://github.com/OpenGamePanel/"; } diff --git a/themes/MasterControlProgram/README.md b/themes/MasterControlProgram/README.md index d47059f5..5133ae43 100644 --- a/themes/MasterControlProgram/README.md +++ b/themes/MasterControlProgram/README.md @@ -5,7 +5,7 @@ Part of the ZPE-Online Master Control Program (MCP) Project. ![image](https://user-images.githubusercontent.com/80121347/115991244-90b43d80-a5bf-11eb-8d98-f0236e80d207.png) -NOTE!!! The Master Control Program (MCP) will be under constant changes as it evolves over time, there will be no "VERSIONS" as there is no "End Goal", So please make sure to regularly update to get latest version until we are able to implement an automatc update feature. Always keep checking this repository. Please make sure to report any problems in this github projects issues. Alternatively you can also join our discord server to talk more about this or for giving us feedback! also you can visit our Master Control Program Theme thread on the following two forums For Open Game Panel Related feedback or issues: https://www.opengamepanel.org/forum/viewthread.php?thread_id=7620 For Non Open Game Panel related feedback or issues: https://www.zpeonline.co.uk/forum +NOTE!!! The Master Control Program (MCP) will be under constant changes as it evolves over time, there will be no "VERSIONS" as there is no "End Goal", So please make sure to regularly update to get latest version until we are able to implement an automatc update feature. Always keep checking this repository. Please make sure to report any problems in this github projects issues. Alternatively you can also join our discord server to talk more about this or for giving us feedback! also you can visit our Master Control Program Theme thread on the following two forums For GameServer Panel Related feedback or issues: https://www.opengamepanel.org/forum/viewthread.php?thread_id=7620 For Non GameServer Panel related feedback or issues: https://www.zpeonline.co.uk/forum Enjoy!!. @@ -19,7 +19,7 @@ Currently this theme is and the project is still in early development, so please ZPE-Online discord server github repository issues -theme thread of the Open Game Panel forum +theme thread of the GameServer Panel forum Master Control Program section of the ZPE-Online Forum Your feedback is essential so the MCP theme and other developments we make can further be improved and help this project evolve. diff --git a/themes/MasterControlProgram/js/main.js b/themes/MasterControlProgram/js/main.js index 29dc3f88..767886ee 100644 --- a/themes/MasterControlProgram/js/main.js +++ b/themes/MasterControlProgram/js/main.js @@ -38,7 +38,7 @@ $(document).ready(function() { }); $('.magnificContentsDiv').bind("DOMSubtreeModified",function(){ - $('.updateLink, .ogpAPIActions').addClass('form-control').css('display','inline-block'); + $('.updateLink, .gspAPIActions').addClass('form-control').css('display','inline-block'); $('.copyButton').addClass('btn').addClass('btn-sm').addClass('btn-primary'); }); diff --git a/themes/Revolution-Light/bottom.html b/themes/Revolution-Light/bottom.html index 85ea5865..6bba06e7 100644 --- a/themes/Revolution-Light/bottom.html +++ b/themes/Revolution-Light/bottom.html @@ -18,16 +18,16 @@ Open Game Panel