diff --git a/AGENT_INTEGRATION.md b/AGENT_INTEGRATION.md index 48c6b35e..0e8743d5 100644 --- a/AGENT_INTEGRATION.md +++ b/AGENT_INTEGRATION.md @@ -2,7 +2,7 @@ ## Should Remote Agent Code Be Included? -Based on my analysis of the GameServer Panel architecture, **I recommend including both the Linux and Windows agent code in this repository**. Here's why: +Based on my analysis of the Open Game Panel architecture, **I recommend including both the Linux and Windows agent code in this repository**. Here's why: ## Benefits of Including Agent Code @@ -83,7 +83,7 @@ panel/ ### Phase 1: Repository Restructuring 1. **Move Current Files**: Reorganize current web panel code into `/web` directory -2. **Add Agent Code**: Clone and integrate GSP-Agent-Linux and GSP-Agent-Windows +2. **Add Agent Code**: Clone and integrate OGP-Agent-Linux and OGP-Agent-Windows 3. **Create Shared Libraries**: Extract common code into `/shared` 4. **Update Paths**: Adjust all file references and includes diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 9124a974..8a97d4f1 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -1,8 +1,8 @@ -# GameServer Panel (GSP) Architecture Documentation +# Open Game Panel (OGP) Architecture Documentation ## Overview -GameServer Panel is a distributed game server management system consisting of three main components: +Open Game Panel is a distributed game server management system consisting of three main components: 1. **Web Panel** (this repository) - PHP-based web interface for management 2. **Linux Agent** - Remote agent for Linux game servers diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8be8937c..daa8884e 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -1,8 +1,8 @@ -# GameServer Panel Development Guide +# Open Game Panel Development Guide ## Understanding the Codebase -This guide helps developers understand and work with the GameServer Panel codebase effectively. +This guide helps developers understand and work with the Open Game Panel codebase effectively. ## Component Integration @@ -128,7 +128,7 @@ $encrypted_data = $enc->encrypt($command_json); // modules/mymodule/mymodule.php // Security check - if (!defined('GSP_LANG')) { + if (!defined('OGP_LANG')) { exit('Direct access not allowed'); } @@ -145,8 +145,8 @@ $encrypted_data = $enc->encrypt($command_json); ```php ``` diff --git a/PROJECT_STATS.md b/PROJECT_STATS.md index 54b1c0a9..d846644c 100644 --- a/PROJECT_STATS.md +++ b/PROJECT_STATS.md @@ -1,4 +1,4 @@ -# GameServer Panel - Project Statistics +# Open Game Panel - Project Statistics ## Codebase Analysis diff --git a/README.md b/README.md index c707de73..538f743e 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# GameServer Panel - Enhanced Fork +# Open Game Panel - Enhanced Fork -This repository contains an enhanced version of GameServer Panel (GSP) with AdminLTE theme integration and additional features. GameServer Panel is a comprehensive game server management system that allows hosting providers and users to easily manage game servers across multiple platforms. +This repository contains an enhanced version of Open Game Panel (OGP) with AdminLTE theme integration and additional features. Open Game Panel is a comprehensive game server management system that allows hosting providers and users to easily manage game servers across multiple platforms. -## What is GameServer Panel? +## What is Open Game Panel? -GameServer Panel is a distributed system consisting of: +Open Game Panel is a distributed system consisting of: - **Web Panel** (this repository) - PHP-based web interface for server management - **Remote Agents** - Lightweight applications that run on game servers (Linux/Windows) - **Game Server Integration** - Support for 100+ games with automated installation and management @@ -81,10 +81,10 @@ GameServer Panel is a distributed system consisting of: ## Related Repositories -This project is based on the original GameServer Panel: -- [OpenGamePanel/GSP-Website](https://github.com/OpenGamePanel/GSP-Website) - Original web panel -- [OpenGamePanel/GSP-Agent-Linux](https://github.com/OpenGamePanel/GSP-Agent-Linux) - Linux agent -- [OpenGamePanel/GSP-Agent-Windows](https://github.com/OpenGamePanel/GSP-Agent-Windows) - Windows agent +This project is based on the original Open Game Panel: +- [OpenGamePanel/OGP-Website](https://github.com/OpenGamePanel/OGP-Website) - Original web panel +- [OpenGamePanel/OGP-Agent-Linux](https://github.com/OpenGamePanel/OGP-Agent-Linux) - Linux agent +- [OpenGamePanel/OGP-Agent-Windows](https://github.com/OpenGamePanel/OGP-Agent-Windows) - Windows agent ## Contributing @@ -96,7 +96,7 @@ This project is licensed under the GNU General Public License v2.0 - see the [LI ## Support -- GameServer Panel Community: https://gameservers-world.com +- Original OGP Community: https://opengamepanel.org - Issues and bug reports: Use GitHub Issues - Development discussions: See GitHub Discussions diff --git a/README_ANALYSIS.md b/README_ANALYSIS.md index 9da68427..01d58a2e 100644 --- a/README_ANALYSIS.md +++ b/README_ANALYSIS.md @@ -1,20 +1,20 @@ -# GameServer Panel - System Analysis Report +# Open Game Panel - System Analysis Report ## Executive Summary -This repository contains a fork of the GameServer Panel (GSP) project, which is a comprehensive game server management system. After thorough analysis, I've documented the complete architecture and provide recommendations for integrating the remote agent code to create a unified development environment. +This repository contains a fork of the Open Game Panel (OGP) project, which is a comprehensive game server management system. After thorough analysis, I've documented the complete architecture and provide recommendations for integrating the remote agent code to create a unified development environment. ## Original Project Context -The original GameServer Panel project is maintained by the OpenGamePanel organization on GitHub: -- **Main Web Panel**: [OpenGamePanel/GSP-Website](https://github.com/OpenGamePanel/GSP-Website) -- **Linux Agent**: [OpenGamePanel/GSP-Agent-Linux](https://github.com/OpenGamePanel/GSP-Agent-Linux) -- **Windows Agent**: [OpenGamePanel/GSP-Agent-Windows](https://github.com/OpenGamePanel/GSP-Agent-Windows) +The original Open Game Panel project is maintained by the OpenGamePanel organization on GitHub: +- **Main Web Panel**: [OpenGamePanel/OGP-Website](https://github.com/OpenGamePanel/OGP-Website) +- **Linux Agent**: [OpenGamePanel/OGP-Agent-Linux](https://github.com/OpenGamePanel/OGP-Agent-Linux) +- **Windows Agent**: [OpenGamePanel/OGP-Agent-Windows](https://github.com/OpenGamePanel/OGP-Agent-Windows) - **Official Website**: opengamepanel.org (blocked in this environment) ## Current Repository State -This repository appears to be a customized version of the GSP web panel with: +This repository appears to be a customized version of the OGP web panel with: - AdminLTE theme integration - Custom modules and functionality - Modified database configurations @@ -109,4 +109,4 @@ The documentation includes detailed setup instructions for: - Testing procedures - Debugging techniques -This analysis provides you with a solid foundation for understanding the complex GSP codebase and making informed decisions about improvements and architectural changes. \ No newline at end of file +This analysis provides you with a solid foundation for understanding the complex OGP codebase and making informed decisions about improvements and architectural changes. \ No newline at end of file diff --git a/TODO.md b/TODO.md index 35b3cee5..e6b4fc3a 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,6 @@ # Gameservers World – Development & Operations TODO -This document tracks development tasks, infrastructure setup, and business steps for building our commercial game server community around the **GS Panel** (fork of GSP), aka **GSP**. +This document tracks development tasks, infrastructure setup, and business steps for building our commercial game server community around the **GS Panel** (fork of OGP), aka **GSP**. The software is developed and maintained by **World Domination Software (WDS)**. --- @@ -9,7 +9,7 @@ The software is developed and maintained by **World Domination Software (WDS)**. - [ ] Repo for GSW website - [ ] Repo for WDS website - [ ] Create organization for WDS -- [ ] Create GSP-like section and forum/docs on WDS website +- [ ] Create OGP-like section and forum/docs on WDS website - [ ] Repo for game post-install config scripts and files - [ ] Compare agent files — can we use the same files? - [ ] Add scripts for setting up servers with required files, DLL, settings @@ -17,12 +17,12 @@ The software is developed and maintained by **World Domination Software (WDS)**. --- -## 1. Core Panel (GSP → GS Fork) +## 1. Core Panel (OGP → GS Fork) - [ ] GSW is a host provider. GSP is a product of WDS. Brand as such. The WDS site needs to keep the forum and documentation. -- [ ] Replace all references from **GSP** → **GS / Gameservers World** +- [ ] Replace all references from **OGP** → **GS / Gameservers World** - [ ] Update UI text, branding, and logos - [ ] Create new default theme (dark/light mode support) -- [ ] Review and clean up legacy GSP code no longer needed +- [ ] Review and clean up legacy OGP code no longer needed - [ ] Update README.md with GS branding + installation instructions - [ ] Ensure GPL license text is preserved and updated with attribution - [ ] Remove `print` language as there is probably a better option now — which one? @@ -130,6 +130,6 @@ The software is developed and maintained by **World Domination Software (WDS)**. --- # ✅ Notes -- **GPL Compliance**: Keep GSP attribution in LICENSE, but rebrand UI and docs to GS. +- **GPL Compliance**: Keep OGP attribution in LICENSE, but rebrand UI and docs to GS. - **Secrets**: Never commit live passwords or IPs to public repos — use `.env` or secrets repo. - **Testing**: Always stage DB changes, backup scripts, and automation before production. \ No newline at end of file diff --git a/_agent-linux/EHCP/config.php b/_agent-linux/EHCP/config.php index 726616dc..b4519a21 100644 --- a/_agent-linux/EHCP/config.php +++ b/_agent-linux/EHCP/config.php @@ -1,7 +1,7 @@ $Cfg::Preferences{screen_log_local}; use constant DELETE_LOGS_AFTER => $Cfg::Preferences{delete_logs_after}; use constant LINUX_USER_PER_GAME_SERVER => $Cfg::Preferences{linux_user_per_game_server}; use constant AGENT_PID_FILE => - Path::Class::File->new(AGENT_RUN_DIR, 'gsp_agent.pid'); + Path::Class::File->new(AGENT_RUN_DIR, 'ogp_agent.pid'); use constant AGENT_RSYNC_GENERIC_LOG => Path::Class::File->new(AGENT_RUN_DIR, 'rsync_update_generic.log'); use constant STEAM_LICENSE_OK => "Accept"; @@ -864,7 +864,7 @@ sub universal_start_without_decrypt } } - # Fix perms on gsp_agent user's homedir so that other users can access their owned files within this dir + # Fix perms on ogp_agent user's homedir so that other users can access their owned files within this dir my $fixOGPHomeDirCommand = 'chmod -R ug+rwx $( getent passwd "' . $ogpAgentGroup . '" | cut -d: -f6 )'; sudo_exec_without_decrypt($fixOGPHomeDirCommand); @@ -3800,19 +3800,19 @@ sub agent_restart if ($dec_check eq 'restart') { chdir AGENT_RUN_DIR; - if(-e "gsp_agent_run.pid") + if(-e "ogp_agent_run.pid") { - my $init_pid = `cat gsp_agent_run.pid`; + my $init_pid = `cat ogp_agent_run.pid`; chomp($init_pid); if(kill 0, $init_pid) { my $or_exist = ""; my $rm_pid_file = ""; - if(-e "gsp_agent.pid") + if(-e "ogp_agent.pid") { - $rm_pid_file = " gsp_agent.pid"; - my $agent_pid = `cat gsp_agent.pid`; + $rm_pid_file = " ogp_agent.pid"; + my $agent_pid = `cat ogp_agent.pid`; chomp($agent_pid); if( kill 0, $agent_pid ) { @@ -3824,10 +3824,10 @@ sub agent_restart my $restart = "echo -n \"Stopping OGP Agent...\"\n". "kill $init_pid\n". "while [ -e /proc/$init_pid $or_exist ];do echo -n .;sleep 1;done\n". - "rm -f gsp_agent_run.pid $rm_pid_file\necho \" [OK]\"\n". + "rm -f ogp_agent_run.pid $rm_pid_file\necho \" [OK]\"\n". "echo -n \"Starting OGP Agent...\"\n". - "screen -d -m -t \"gsp_agent\" -c \"" . SCREENRC_FILE . "\" -S gsp_agent bash gsp_agent_run -pidfile gsp_agent_run.pid\n". - "while [ ! -e gsp_agent_run.pid -o ! -e gsp_agent.pid ];do echo -n .;sleep 1;done\n". + "screen -d -m -t \"ogp_agent\" -c \"" . SCREENRC_FILE . "\" -S ogp_agent bash ogp_agent_run -pidfile ogp_agent_run.pid\n". + "while [ ! -e ogp_agent_run.pid -o ! -e ogp_agent.pid ];do echo -n .;sleep 1;done\n". "echo \" [OK]\"\n". "rm -f tmp_restart.sh\n". "exit 0\n"; @@ -4648,7 +4648,7 @@ sub generate_post_install_scripts ' fi'."\n". ' fi'."\n". ' if [ ! -d "${mods_info_path}" ];then mkdir -p "${mods_info_path}";fi'."\n". - ' echo "${mod_name[$i]}" > "${mods_info_path}${mod_string[$i]}.gspmod"'."\n". + ' echo "${mod_name[$i]}" > "${mods_info_path}${mod_string[$i]}.ogpmod"'."\n". ' i=$(expr $i + 1)'."\n". 'done'."\n"; return "$post_install_scripts"; @@ -4666,7 +4666,7 @@ sub get_workshop_mods_info() my @mods_info; while(my $mod_info_file = readdir(MODS_INFO_DIR)) { - if($mod_info_file =~ /\.gspmod$/) + if($mod_info_file =~ /\.ogpmod$/) { my $mod_info_file_path = Path::Class::File->new($mods_info_dir_path, $mod_info_file); if(open(my $fh, '<:encoding(UTF-8)', $mod_info_file_path)) diff --git a/_agent-linux/gsp_agent_run b/_agent-linux/ogp_agent_run similarity index 99% rename from _agent-linux/gsp_agent_run rename to _agent-linux/ogp_agent_run index 577fb3a4..371e3296 100644 --- a/_agent-linux/gsp_agent_run +++ b/_agent-linux/ogp_agent_run @@ -121,7 +121,7 @@ detectSystemD(){ echo -e "Updating OGP agent systemd service init script." echo -e "Copying ogp_agent systemd service file to $SystemDDir" echo "$sudoPass" | sudo -S -p "" cp "${AGENTDIR}/systemd/ogp_agent.service" "$SystemDDir" - echo "$sudoPass" | sudo -S -p "" sed -i "s#{GSP_AGENT_PATH}#$AGENTDIR#g" "${SystemDDir}/ogp_agent.service" + echo "$sudoPass" | sudo -S -p "" sed -i "s#{OGP_AGENT_PATH}#$AGENTDIR#g" "${SystemDDir}/ogp_agent.service" echo "$sudoPass" | sudo -S -p "" systemctl daemon-reload echo "$sudoPass" | sudo -S -p "" systemctl enable ogp_agent.service echo "$sudoPass" | sudo -S -p "" service ogp_agent restart diff --git a/_agent-linux/gsp_screenrc b/_agent-linux/ogp_screenrc similarity index 100% rename from _agent-linux/gsp_screenrc rename to _agent-linux/ogp_screenrc diff --git a/_agent-linux/gsp_screenrc_bk b/_agent-linux/ogp_screenrc_bk similarity index 100% rename from _agent-linux/gsp_screenrc_bk rename to _agent-linux/ogp_screenrc_bk diff --git a/_agent-linux/systemd/gsp_agent.service b/_agent-linux/systemd/ogp_agent.service similarity index 58% rename from _agent-linux/systemd/gsp_agent.service rename to _agent-linux/systemd/ogp_agent.service index be136b7a..949ea11d 100644 --- a/_agent-linux/systemd/gsp_agent.service +++ b/_agent-linux/systemd/ogp_agent.service @@ -6,10 +6,10 @@ After=network.target [Service] Type=oneshot -ExecStart=/bin/sh -c "{GSP_AGENT_PATH}/agent_init start" -ExecStop=/bin/sh -c "{GSP_AGENT_PATH}/agent_init stop" +ExecStart=/bin/sh -c "{OGP_AGENT_PATH}/agent_init start" +ExecStop=/bin/sh -c "{OGP_AGENT_PATH}/agent_init stop" RemainAfterExit=yes -PIDFile="{GSP_AGENT_PATH}/agent_run.pid" +PIDFile="{OGP_AGENT_PATH}/agent_run.pid" [Install] WantedBy=multi-user.target diff --git a/_agent-windows/EHCP/config.php b/_agent-windows/EHCP/config.php index 726616dc..b4519a21 100644 --- a/_agent-windows/EHCP/config.php +++ b/_agent-windows/EHCP/config.php @@ -1,7 +1,7 @@ $Cfg::Config{version}; use constant SCREEN_LOG_LOCAL => $Cfg::Preferences{screen_log_local}; use constant DELETE_LOGS_AFTER => $Cfg::Preferences{delete_logs_after}; use constant AGENT_PID_FILE => - Path::Class::File->new(AGENT_RUN_DIR, 'gsp_agent.pid'); + Path::Class::File->new(AGENT_RUN_DIR, 'ogp_agent.pid'); use constant AGENT_RSYNC_GENERIC_LOG => Path::Class::File->new(AGENT_RUN_DIR, 'rsync_update_generic.log'); use constant STEAM_LICENSE_OK => "Accept"; @@ -3367,9 +3367,9 @@ sub agent_restart if ($dec_check eq 'restart') { chdir AGENT_RUN_DIR; - if(-e "gsp_agent_run.pid") + if(-e "ogp_agent_run.pid") { - my $init_pid = `cat gsp_agent_run.pid`; + my $init_pid = `cat ogp_agent_run.pid`; chomp($init_pid); if(kill 0, $init_pid) @@ -3378,7 +3378,7 @@ sub agent_restart my $rm_pid_file = ""; my $agent_pid = ""; my $restart_scr_log = Path::Class::File->new(SCREEN_LOGS_DIR, 'screenlog.agent_restart'); - my $agent_scr_log = Path::Class::File->new(SCREEN_LOGS_DIR, 'screenlog.gsp_agent'); + my $agent_scr_log = Path::Class::File->new(SCREEN_LOGS_DIR, 'screenlog.ogp_agent'); if(-e $restart_scr_log) { @@ -3390,10 +3390,10 @@ sub agent_restart unlink $agent_scr_log; } - if(-e "gsp_agent.pid") + if(-e "ogp_agent.pid") { - $rm_pid_file .= " gsp_agent.pid"; - $agent_pid = `cat gsp_agent.pid`; + $rm_pid_file .= " ogp_agent.pid"; + $agent_pid = `cat ogp_agent.pid`; chomp($agent_pid); if( kill 0, $agent_pid ) { @@ -3419,8 +3419,8 @@ sub agent_restart "while [ -e /proc/$init_pid $or_exist ];do echo -n .;sleep 1;done\n". "rm -f $rm_pid_file\necho \" [OK]\"\n". "echo -n \"Starting OGP Agent...\"\n". - "screen -d -m -t \"gsp_agent\" -c \"" . SCREENRC_FILE . "\" -S gsp_agent bash gsp_agent -pidfile /OGP/gsp_agent_run.pid\n". - "while [ ! -e 'gsp_agent.pid' ];do echo -n .;sleep 1;done\n". + "screen -d -m -t \"ogp_agent\" -c \"" . SCREENRC_FILE . "\" -S ogp_agent bash ogp_agent -pidfile /OGP/ogp_agent_run.pid\n". + "while [ ! -e 'ogp_agent.pid' ];do echo -n .;sleep 1;done\n". "echo \" [OK]\"\n". "rm -f tmp_restart.sh\n". "exit 0\n"; @@ -4219,7 +4219,7 @@ sub generate_post_install_scripts ' fi'."\n". ' fi'."\n". ' if [ ! -d "${mods_info_path}" ];then mkdir -p "${mods_info_path}";fi'."\n". - ' echo "${mod_name[$i]}" > "${mods_info_path}${mod_string[$i]}.gspmod"'."\n". + ' echo "${mod_name[$i]}" > "${mods_info_path}${mod_string[$i]}.ogpmod"'."\n". ' i=$(expr $i + 1)'."\n". 'done'."\n"; return "$post_install_scripts"; @@ -4237,7 +4237,7 @@ sub get_workshop_mods_info() my @mods_info; while(my $mod_info_file = readdir(MODS_INFO_DIR)) { - if($mod_info_file =~ /\.gspmod$/) + if($mod_info_file =~ /\.ogpmod$/) { my $mod_info_file_path = Path::Class::File->new($mods_info_dir_path, $mod_info_file); if(open(my $fh, '<:encoding(UTF-8)', $mod_info_file_path)) diff --git a/_agent-windows/gsp_screenrc b/_agent-windows/ogp_screenrc similarity index 100% rename from _agent-windows/gsp_screenrc rename to _agent-windows/ogp_screenrc diff --git a/_agent-windows/gsp_screenrc_bk b/_agent-windows/ogp_screenrc_bk similarity index 100% rename from _agent-windows/gsp_screenrc_bk rename to _agent-windows/ogp_screenrc_bk diff --git a/css/global.css b/css/global.css index 469f6a23..023c8f35 100644 --- a/css/global.css +++ b/css/global.css @@ -23,7 +23,7 @@ span.versionInfo{ display: inline-block; } -div.GSPVersionArea{ +div.OGPVersionArea{ width: 100%; position: relative; } diff --git a/db/mysql_template.sql b/db/mysql_template.sql index b942fbbd..9b860c42 100644 --- a/db/mysql_template.sql +++ b/db/mysql_template.sql @@ -25,10 +25,10 @@ SET time_zone = "+00:00"; -- -------------------------------------------------------- -- --- Table structure for table `gsp_addons` +-- Table structure for table `ogp_addons` -- -CREATE TABLE `gsp_addons` ( +CREATE TABLE `ogp_addons` ( `addon_id` int(10) UNSIGNED NOT NULL, `name` varchar(80) NOT NULL, `url` varchar(200) NOT NULL, @@ -42,10 +42,10 @@ CREATE TABLE `gsp_addons` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_adminexternallinks` +-- Table structure for table `ogp_adminexternallinks` -- -CREATE TABLE `gsp_adminexternallinks` ( +CREATE TABLE `ogp_adminexternallinks` ( `link_id` int(10) UNSIGNED NOT NULL, `name` varchar(80) NOT NULL, `url` varchar(200) NOT NULL, @@ -55,10 +55,10 @@ CREATE TABLE `gsp_adminexternallinks` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_adminlte_serverstats` +-- Table structure for table `ogp_adminlte_serverstats` -- -CREATE TABLE `gsp_adminlte_serverstats` ( +CREATE TABLE `ogp_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 `gsp_adminlte_serverstats` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_adminlte_settings` +-- Table structure for table `ogp_adminlte_settings` -- -CREATE TABLE `gsp_adminlte_settings` ( +CREATE TABLE `ogp_adminlte_settings` ( `id` int(20) NOT NULL, `user` int(4) NOT NULL, `name` varchar(255) NOT NULL, @@ -80,10 +80,10 @@ CREATE TABLE `gsp_adminlte_settings` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_api_tokens` +-- Table structure for table `ogp_api_tokens` -- -CREATE TABLE `gsp_api_tokens` ( +CREATE TABLE `ogp_api_tokens` ( `user_id` int(11) NOT NULL, `token` varchar(64) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; @@ -91,10 +91,10 @@ CREATE TABLE `gsp_api_tokens` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_arrange_ports` +-- Table structure for table `ogp_arrange_ports` -- -CREATE TABLE `gsp_arrange_ports` ( +CREATE TABLE `ogp_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 `gsp_arrange_ports` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_backup_restore` +-- Table structure for table `ogp_backup_restore` -- -CREATE TABLE `gsp_backup_restore` ( +CREATE TABLE `ogp_backup_restore` ( `id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- --- Table structure for table `gsp_ban_list` +-- Table structure for table `ogp_ban_list` -- -CREATE TABLE `gsp_ban_list` ( +CREATE TABLE `ogp_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 `gsp_ban_list` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_billing_carts` +-- Table structure for table `ogp_billing_carts` -- -CREATE TABLE `gsp_billing_carts` ( +CREATE TABLE `ogp_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 `gsp_billing_carts` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_billing_coupons` +-- Table structure for table `ogp_billing_coupons` -- -CREATE TABLE `gsp_billing_coupons` ( +CREATE TABLE `ogp_billing_coupons` ( `id` int(11) NOT NULL, `code` varchar(16) NOT NULL, `name` varchar(255) NOT NULL, @@ -160,10 +160,10 @@ CREATE TABLE `gsp_billing_coupons` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_billing_orders` +-- Table structure for table `ogp_billing_orders` -- -CREATE TABLE `gsp_billing_orders` ( +CREATE TABLE `ogp_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 `gsp_billing_orders` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_billing_services` +-- Table structure for table `ogp_billing_services` -- -CREATE TABLE `gsp_billing_services` ( +CREATE TABLE `ogp_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 `gsp_billing_services` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_circular` +-- Table structure for table `ogp_circular` -- -CREATE TABLE `gsp_circular` ( +CREATE TABLE `ogp_circular` ( `circular_id` int(11) NOT NULL, `subject` text NOT NULL, `message` text NOT NULL, @@ -226,10 +226,10 @@ CREATE TABLE `gsp_circular` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_circular_recipients` +-- Table structure for table `ogp_circular_recipients` -- -CREATE TABLE `gsp_circular_recipients` ( +CREATE TABLE `ogp_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 `gsp_circular_recipients` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_config_homes` +-- Table structure for table `ogp_config_homes` -- -CREATE TABLE `gsp_config_homes` ( +CREATE TABLE `ogp_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 `gsp_config_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_config_mods` +-- Table structure for table `ogp_config_mods` -- -CREATE TABLE `gsp_config_mods` ( +CREATE TABLE `ogp_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 `gsp_config_mods` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_game_mods` +-- Table structure for table `ogp_game_mods` -- -CREATE TABLE `gsp_game_mods` ( +CREATE TABLE `ogp_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 `gsp_game_mods` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_home_ip_ports` +-- Table structure for table `ogp_home_ip_ports` -- -CREATE TABLE `gsp_home_ip_ports` ( +CREATE TABLE `ogp_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 `gsp_home_ip_ports` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_lgsl` +-- Table structure for table `ogp_lgsl` -- -CREATE TABLE `gsp_lgsl` ( +CREATE TABLE `ogp_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 `gsp_lgsl` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_logger` +-- Table structure for table `ogp_logger` -- -CREATE TABLE `gsp_logger` ( +CREATE TABLE `ogp_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 `gsp_logger` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_master_server_homes` +-- Table structure for table `ogp_master_server_homes` -- -CREATE TABLE `gsp_master_server_homes` ( +CREATE TABLE `ogp_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 `gsp_master_server_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_modules` +-- Table structure for table `ogp_modules` -- -CREATE TABLE `gsp_modules` ( +CREATE TABLE `ogp_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 `gsp_modules` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_module_access_rights` +-- Table structure for table `ogp_module_access_rights` -- -CREATE TABLE `gsp_module_access_rights` ( +CREATE TABLE `ogp_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 `gsp_module_access_rights` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_module_menus` +-- Table structure for table `ogp_module_menus` -- -CREATE TABLE `gsp_module_menus` ( +CREATE TABLE `ogp_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 `gsp_module_menus` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_mysql_databases` +-- Table structure for table `ogp_mysql_databases` -- -CREATE TABLE `gsp_mysql_databases` ( +CREATE TABLE `ogp_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 `gsp_mysql_databases` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_mysql_servers` +-- Table structure for table `ogp_mysql_servers` -- -CREATE TABLE `gsp_mysql_servers` ( +CREATE TABLE `ogp_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 `gsp_mysql_servers` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_notification` +-- Table structure for table `ogp_notification` -- -CREATE TABLE `gsp_notification` ( +CREATE TABLE `ogp_notification` ( `notification_id` int(11) NOT NULL, `subject` text NOT NULL, `message` text NOT NULL, @@ -429,10 +429,10 @@ CREATE TABLE `gsp_notification` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_notification_recipients` +-- Table structure for table `ogp_notification_recipients` -- -CREATE TABLE `gsp_notification_recipients` ( +CREATE TABLE `ogp_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 `gsp_notification_recipients` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_rcon_presets` +-- Table structure for table `ogp_rcon_presets` -- -CREATE TABLE `gsp_rcon_presets` ( +CREATE TABLE `ogp_rcon_presets` ( `preset_id` int(50) NOT NULL, `name` varchar(20) NOT NULL, `command` varchar(100) NOT NULL, @@ -455,13 +455,13 @@ CREATE TABLE `gsp_rcon_presets` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_remote_servers` +-- Table structure for table `ogp_remote_servers` -- -CREATE TABLE `gsp_remote_servers` ( +CREATE TABLE `ogp_remote_servers` ( `remote_server_id` int(11) NOT NULL, `remote_server_name` varchar(100) NOT NULL, - `gsp_user` varchar(100) NOT NULL, + `ogp_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 `gsp_remote_servers` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_remote_server_ips` +-- Table structure for table `ogp_remote_server_ips` -- -CREATE TABLE `gsp_remote_server_ips` ( +CREATE TABLE `ogp_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 `gsp_remote_server_ips` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_reseller_accounts` +-- Table structure for table `ogp_reseller_accounts` -- -CREATE TABLE `gsp_reseller_accounts` ( +CREATE TABLE `ogp_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 `gsp_reseller_accounts` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_reseller_carts` +-- Table structure for table `ogp_reseller_carts` -- -CREATE TABLE `gsp_reseller_carts` ( +CREATE TABLE `ogp_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 `gsp_reseller_carts` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_reseller_discount_codes` +-- Table structure for table `ogp_reseller_discount_codes` -- -CREATE TABLE `gsp_reseller_discount_codes` ( +CREATE TABLE `ogp_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 `gsp_reseller_discount_codes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_reseller_homes` +-- Table structure for table `ogp_reseller_homes` -- -CREATE TABLE `gsp_reseller_homes` ( +CREATE TABLE `ogp_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 `gsp_reseller_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_reseller_services` +-- Table structure for table `ogp_reseller_services` -- -CREATE TABLE `gsp_reseller_services` ( +CREATE TABLE `ogp_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 `gsp_reseller_services` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_server_homes` +-- Table structure for table `ogp_server_homes` -- -CREATE TABLE `gsp_server_homes` ( +CREATE TABLE `ogp_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 `gsp_server_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_settings` +-- Table structure for table `ogp_settings` -- -CREATE TABLE `gsp_settings` ( +CREATE TABLE `ogp_settings` ( `setting` varchar(63) NOT NULL, `value` varchar(1024) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; @@ -605,10 +605,10 @@ CREATE TABLE `gsp_settings` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_status_cache` +-- Table structure for table `ogp_status_cache` -- -CREATE TABLE `gsp_status_cache` ( +CREATE TABLE `ogp_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 `gsp_status_cache` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_tickets` +-- Table structure for table `ogp_tickets` -- -CREATE TABLE `gsp_tickets` ( +CREATE TABLE `ogp_tickets` ( `tid` int(11) NOT NULL, `uid` varchar(32) NOT NULL, `user_id` int(11) NOT NULL, @@ -638,10 +638,10 @@ CREATE TABLE `gsp_tickets` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_ticket_attachments` +-- Table structure for table `ogp_ticket_attachments` -- -CREATE TABLE `gsp_ticket_attachments` ( +CREATE TABLE `ogp_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 `gsp_ticket_attachments` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_ticket_messages` +-- Table structure for table `ogp_ticket_messages` -- -CREATE TABLE `gsp_ticket_messages` ( +CREATE TABLE `ogp_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 `gsp_ticket_messages` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_ticket_settings` +-- Table structure for table `ogp_ticket_settings` -- -CREATE TABLE `gsp_ticket_settings` ( +CREATE TABLE `ogp_ticket_settings` ( `id` int(11) NOT NULL, `setting_name` varchar(32) NOT NULL, `setting_value` text NOT NULL @@ -681,10 +681,10 @@ CREATE TABLE `gsp_ticket_settings` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_ts3_homes` +-- Table structure for table `ogp_ts3_homes` -- -CREATE TABLE `gsp_ts3_homes` ( +CREATE TABLE `ogp_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 `gsp_ts3_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_tshock` +-- Table structure for table `ogp_tshock` -- -CREATE TABLE `gsp_tshock` ( +CREATE TABLE `ogp_tshock` ( `token_id` int(11) NOT NULL, `ip` varchar(255) NOT NULL, `port` int(11) NOT NULL, @@ -710,20 +710,20 @@ CREATE TABLE `gsp_tshock` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_update_blacklist` +-- Table structure for table `ogp_update_blacklist` -- -CREATE TABLE `gsp_update_blacklist` ( +CREATE TABLE `ogp_update_blacklist` ( `file_path` varchar(1000) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- --- Table structure for table `gsp_users` +-- Table structure for table `ogp_users` -- -CREATE TABLE `gsp_users` ( +CREATE TABLE `ogp_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 `gsp_users` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_user_groups` +-- Table structure for table `ogp_user_groups` -- -CREATE TABLE `gsp_user_groups` ( +CREATE TABLE `ogp_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 `gsp_user_groups` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_user_group_homes` +-- Table structure for table `ogp_user_group_homes` -- -CREATE TABLE `gsp_user_group_homes` ( +CREATE TABLE `ogp_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 `gsp_user_group_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_user_group_info` +-- Table structure for table `ogp_user_group_info` -- -CREATE TABLE `gsp_user_group_info` ( +CREATE TABLE `ogp_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 `gsp_user_group_info` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_user_group_remote_servers` +-- Table structure for table `ogp_user_group_remote_servers` -- -CREATE TABLE `gsp_user_group_remote_servers` ( +CREATE TABLE `ogp_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 `gsp_user_group_remote_servers` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_user_homes` +-- Table structure for table `ogp_user_homes` -- -CREATE TABLE `gsp_user_homes` ( +CREATE TABLE `ogp_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 `gsp_user_homes` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_user_role_info` +-- Table structure for table `ogp_user_role_info` -- -CREATE TABLE `gsp_user_role_info` ( +CREATE TABLE `ogp_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 `gsp_user_role_info` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_widgets` +-- Table structure for table `ogp_widgets` -- -CREATE TABLE `gsp_widgets` ( +CREATE TABLE `ogp_widgets` ( `id` int(11) NOT NULL, `column_id` int(11) NOT NULL, `sort_no` int(11) NOT NULL, @@ -835,10 +835,10 @@ CREATE TABLE `gsp_widgets` ( -- -------------------------------------------------------- -- --- Table structure for table `gsp_widgets_users` +-- Table structure for table `ogp_widgets_users` -- -CREATE TABLE `gsp_widgets_users` ( +CREATE TABLE `ogp_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 `gsp_widgets_users` ( -- -- --- Indexes for table `gsp_addons` +-- Indexes for table `ogp_addons` -- -ALTER TABLE `gsp_addons` +ALTER TABLE `ogp_addons` ADD PRIMARY KEY (`addon_id`); -- --- Indexes for table `gsp_adminexternallinks` +-- Indexes for table `ogp_adminexternallinks` -- -ALTER TABLE `gsp_adminexternallinks` +ALTER TABLE `ogp_adminexternallinks` ADD PRIMARY KEY (`link_id`); -- --- Indexes for table `gsp_adminlte_settings` +-- Indexes for table `ogp_adminlte_settings` -- -ALTER TABLE `gsp_adminlte_settings` +ALTER TABLE `ogp_adminlte_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `UniqueSetting` (`user`,`name`); -- --- Indexes for table `gsp_api_tokens` +-- Indexes for table `ogp_api_tokens` -- -ALTER TABLE `gsp_api_tokens` +ALTER TABLE `ogp_api_tokens` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `user_id` (`user_id`); -- --- Indexes for table `gsp_arrange_ports` +-- Indexes for table `ogp_arrange_ports` -- -ALTER TABLE `gsp_arrange_ports` +ALTER TABLE `ogp_arrange_ports` ADD PRIMARY KEY (`range_id`), ADD UNIQUE KEY `ip_id` (`ip_id`,`home_cfg_id`); -- --- Indexes for table `gsp_backup_restore` +-- Indexes for table `ogp_backup_restore` -- -ALTER TABLE `gsp_backup_restore` +ALTER TABLE `ogp_backup_restore` ADD PRIMARY KEY (`id`); -- --- Indexes for table `gsp_ban_list` +-- Indexes for table `ogp_ban_list` -- -ALTER TABLE `gsp_ban_list` +ALTER TABLE `ogp_ban_list` ADD PRIMARY KEY (`client_ip`); -- --- Indexes for table `gsp_billing_carts` +-- Indexes for table `ogp_billing_carts` -- -ALTER TABLE `gsp_billing_carts` +ALTER TABLE `ogp_billing_carts` ADD PRIMARY KEY (`cart_id`); -- --- Indexes for table `gsp_billing_coupons` +-- Indexes for table `ogp_billing_coupons` -- -ALTER TABLE `gsp_billing_coupons` +ALTER TABLE `ogp_billing_coupons` ADD PRIMARY KEY (`id`); -- --- Indexes for table `gsp_billing_orders` +-- Indexes for table `ogp_billing_orders` -- -ALTER TABLE `gsp_billing_orders` +ALTER TABLE `ogp_billing_orders` ADD PRIMARY KEY (`order_id`); -- --- Indexes for table `gsp_billing_services` +-- Indexes for table `ogp_billing_services` -- -ALTER TABLE `gsp_billing_services` +ALTER TABLE `ogp_billing_services` ADD PRIMARY KEY (`service_id`); -- --- Indexes for table `gsp_circular` +-- Indexes for table `ogp_circular` -- -ALTER TABLE `gsp_circular` +ALTER TABLE `ogp_circular` ADD PRIMARY KEY (`circular_id`); -- --- Indexes for table `gsp_circular_recipients` +-- Indexes for table `ogp_circular_recipients` -- -ALTER TABLE `gsp_circular_recipients` +ALTER TABLE `ogp_circular_recipients` ADD PRIMARY KEY (`user_id`,`circular_id`); -- --- Indexes for table `gsp_config_homes` +-- Indexes for table `ogp_config_homes` -- -ALTER TABLE `gsp_config_homes` +ALTER TABLE `ogp_config_homes` ADD PRIMARY KEY (`home_cfg_id`), ADD UNIQUE KEY `game_key` (`game_key`); -- --- Indexes for table `gsp_config_mods` +-- Indexes for table `ogp_config_mods` -- -ALTER TABLE `gsp_config_mods` +ALTER TABLE `ogp_config_mods` ADD PRIMARY KEY (`mod_cfg_id`), ADD UNIQUE KEY `home_cfg_id` (`home_cfg_id`,`mod_key`); -- --- Indexes for table `gsp_game_mods` +-- Indexes for table `ogp_game_mods` -- -ALTER TABLE `gsp_game_mods` +ALTER TABLE `ogp_game_mods` ADD PRIMARY KEY (`mod_id`), ADD UNIQUE KEY `home_id` (`home_id`,`mod_cfg_id`); -- --- Indexes for table `gsp_home_ip_ports` +-- Indexes for table `ogp_home_ip_ports` -- -ALTER TABLE `gsp_home_ip_ports` +ALTER TABLE `ogp_home_ip_ports` ADD PRIMARY KEY (`ip_id`,`port`); -- --- Indexes for table `gsp_lgsl` +-- Indexes for table `ogp_lgsl` -- -ALTER TABLE `gsp_lgsl` +ALTER TABLE `ogp_lgsl` ADD PRIMARY KEY (`id`); -- --- Indexes for table `gsp_logger` +-- Indexes for table `ogp_logger` -- -ALTER TABLE `gsp_logger` +ALTER TABLE `ogp_logger` ADD PRIMARY KEY (`log_id`); -- --- Indexes for table `gsp_master_server_homes` +-- Indexes for table `ogp_master_server_homes` -- -ALTER TABLE `gsp_master_server_homes` +ALTER TABLE `ogp_master_server_homes` ADD PRIMARY KEY (`remote_server_id`,`home_cfg_id`); -- --- Indexes for table `gsp_modules` +-- Indexes for table `ogp_modules` -- -ALTER TABLE `gsp_modules` +ALTER TABLE `ogp_modules` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `folder` (`folder`); -- --- Indexes for table `gsp_module_access_rights` +-- Indexes for table `ogp_module_access_rights` -- -ALTER TABLE `gsp_module_access_rights` +ALTER TABLE `ogp_module_access_rights` ADD UNIQUE KEY `flag` (`flag`); -- --- Indexes for table `gsp_module_menus` +-- Indexes for table `ogp_module_menus` -- -ALTER TABLE `gsp_module_menus` +ALTER TABLE `ogp_module_menus` ADD PRIMARY KEY (`module_id`,`subpage`,`group`); -- --- Indexes for table `gsp_mysql_databases` +-- Indexes for table `ogp_mysql_databases` -- -ALTER TABLE `gsp_mysql_databases` +ALTER TABLE `ogp_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 `gsp_mysql_servers` +-- Indexes for table `ogp_mysql_servers` -- -ALTER TABLE `gsp_mysql_servers` +ALTER TABLE `ogp_mysql_servers` ADD PRIMARY KEY (`mysql_server_id`); -- --- Indexes for table `gsp_notification` +-- Indexes for table `ogp_notification` -- -ALTER TABLE `gsp_notification` +ALTER TABLE `ogp_notification` ADD PRIMARY KEY (`notification_id`); -- --- Indexes for table `gsp_notification_recipients` +-- Indexes for table `ogp_notification_recipients` -- -ALTER TABLE `gsp_notification_recipients` +ALTER TABLE `ogp_notification_recipients` ADD PRIMARY KEY (`user_id`,`notification_id`); -- --- Indexes for table `gsp_rcon_presets` +-- Indexes for table `ogp_rcon_presets` -- -ALTER TABLE `gsp_rcon_presets` +ALTER TABLE `ogp_rcon_presets` ADD PRIMARY KEY (`preset_id`); -- --- Indexes for table `gsp_remote_servers` +-- Indexes for table `ogp_remote_servers` -- -ALTER TABLE `gsp_remote_servers` +ALTER TABLE `ogp_remote_servers` ADD PRIMARY KEY (`remote_server_id`), ADD UNIQUE KEY `agent_ip` (`agent_ip`,`agent_port`); -- --- Indexes for table `gsp_remote_server_ips` +-- Indexes for table `ogp_remote_server_ips` -- -ALTER TABLE `gsp_remote_server_ips` +ALTER TABLE `ogp_remote_server_ips` ADD PRIMARY KEY (`ip_id`); -- --- Indexes for table `gsp_reseller_accounts` +-- Indexes for table `ogp_reseller_accounts` -- -ALTER TABLE `gsp_reseller_accounts` +ALTER TABLE `ogp_reseller_accounts` ADD PRIMARY KEY (`account_id`); -- --- Indexes for table `gsp_reseller_carts` +-- Indexes for table `ogp_reseller_carts` -- -ALTER TABLE `gsp_reseller_carts` +ALTER TABLE `ogp_reseller_carts` ADD PRIMARY KEY (`cart_id`); -- --- Indexes for table `gsp_reseller_discount_codes` +-- Indexes for table `ogp_reseller_discount_codes` -- -ALTER TABLE `gsp_reseller_discount_codes` +ALTER TABLE `ogp_reseller_discount_codes` ADD PRIMARY KEY (`discount_id`); -- --- Indexes for table `gsp_reseller_homes` +-- Indexes for table `ogp_reseller_homes` -- -ALTER TABLE `gsp_reseller_homes` +ALTER TABLE `ogp_reseller_homes` ADD PRIMARY KEY (`home_id`); -- --- Indexes for table `gsp_reseller_services` +-- Indexes for table `ogp_reseller_services` -- -ALTER TABLE `gsp_reseller_services` +ALTER TABLE `ogp_reseller_services` ADD PRIMARY KEY (`service_id`); -- --- Indexes for table `gsp_server_homes` +-- Indexes for table `ogp_server_homes` -- -ALTER TABLE `gsp_server_homes` +ALTER TABLE `ogp_server_homes` ADD PRIMARY KEY (`home_id`); -- --- Indexes for table `gsp_settings` +-- Indexes for table `ogp_settings` -- -ALTER TABLE `gsp_settings` +ALTER TABLE `ogp_settings` ADD PRIMARY KEY (`setting`); -- --- Indexes for table `gsp_tickets` +-- Indexes for table `ogp_tickets` -- -ALTER TABLE `gsp_tickets` +ALTER TABLE `ogp_tickets` ADD PRIMARY KEY (`tid`), ADD UNIQUE KEY `uid` (`uid`); -- --- Indexes for table `gsp_ticket_attachments` +-- Indexes for table `ogp_ticket_attachments` -- -ALTER TABLE `gsp_ticket_attachments` +ALTER TABLE `ogp_ticket_attachments` ADD PRIMARY KEY (`attachment_id`), ADD UNIQUE KEY `unique_name` (`unique_name`); -- --- Indexes for table `gsp_ticket_messages` +-- Indexes for table `ogp_ticket_messages` -- -ALTER TABLE `gsp_ticket_messages` +ALTER TABLE `ogp_ticket_messages` ADD PRIMARY KEY (`reply_id`), - ADD KEY `gsp_ticket_messages_fk0` (`ticket_id`); + ADD KEY `ogp_ticket_messages_fk0` (`ticket_id`); -- --- Indexes for table `gsp_ticket_settings` +-- Indexes for table `ogp_ticket_settings` -- -ALTER TABLE `gsp_ticket_settings` +ALTER TABLE `ogp_ticket_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `setting_name` (`setting_name`); -- --- Indexes for table `gsp_ts3_homes` +-- Indexes for table `ogp_ts3_homes` -- -ALTER TABLE `gsp_ts3_homes` +ALTER TABLE `ogp_ts3_homes` ADD PRIMARY KEY (`ts3_id`), ADD UNIQUE KEY `rserver_id` (`rserver_id`,`vserver_id`,`user_id`); -- --- Indexes for table `gsp_tshock` +-- Indexes for table `ogp_tshock` -- -ALTER TABLE `gsp_tshock` +ALTER TABLE `ogp_tshock` ADD PRIMARY KEY (`token_id`); -- --- Indexes for table `gsp_update_blacklist` +-- Indexes for table `ogp_update_blacklist` -- -ALTER TABLE `gsp_update_blacklist` +ALTER TABLE `ogp_update_blacklist` ADD UNIQUE KEY `file_path` (`file_path`), ADD UNIQUE KEY `file_path_2` (`file_path`); -- --- Indexes for table `gsp_users` +-- Indexes for table `ogp_users` -- -ALTER TABLE `gsp_users` +ALTER TABLE `ogp_users` ADD PRIMARY KEY (`users_login`), ADD UNIQUE KEY `id` (`user_id`), ADD UNIQUE KEY `email` (`users_email`); -- --- Indexes for table `gsp_user_groups` +-- Indexes for table `ogp_user_groups` -- -ALTER TABLE `gsp_user_groups` +ALTER TABLE `ogp_user_groups` ADD PRIMARY KEY (`user_id`,`group_id`); -- --- Indexes for table `gsp_user_group_homes` +-- Indexes for table `ogp_user_group_homes` -- -ALTER TABLE `gsp_user_group_homes` +ALTER TABLE `ogp_user_group_homes` ADD PRIMARY KEY (`home_id`,`group_id`); -- --- Indexes for table `gsp_user_group_info` +-- Indexes for table `ogp_user_group_info` -- -ALTER TABLE `gsp_user_group_info` +ALTER TABLE `ogp_user_group_info` ADD PRIMARY KEY (`group_id`), ADD UNIQUE KEY `group_name` (`group_name`); -- --- Indexes for table `gsp_user_group_remote_servers` +-- Indexes for table `ogp_user_group_remote_servers` -- -ALTER TABLE `gsp_user_group_remote_servers` +ALTER TABLE `ogp_user_group_remote_servers` ADD PRIMARY KEY (`remote_server_id`,`group_id`); -- --- Indexes for table `gsp_user_homes` +-- Indexes for table `ogp_user_homes` -- -ALTER TABLE `gsp_user_homes` +ALTER TABLE `ogp_user_homes` ADD PRIMARY KEY (`user_id`,`home_id`); -- --- Indexes for table `gsp_user_role_info` +-- Indexes for table `ogp_user_role_info` -- -ALTER TABLE `gsp_user_role_info` +ALTER TABLE `ogp_user_role_info` ADD PRIMARY KEY (`role_id`), ADD UNIQUE KEY `role_name` (`role_name`); -- --- Indexes for table `gsp_widgets` +-- Indexes for table `ogp_widgets` -- -ALTER TABLE `gsp_widgets` +ALTER TABLE `ogp_widgets` ADD PRIMARY KEY (`id`); -- @@ -1188,225 +1188,225 @@ ALTER TABLE `gsp_widgets` -- -- --- AUTO_INCREMENT for table `gsp_addons` +-- AUTO_INCREMENT for table `ogp_addons` -- -ALTER TABLE `gsp_addons` +ALTER TABLE `ogp_addons` MODIFY `addon_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134; -- --- AUTO_INCREMENT for table `gsp_adminexternallinks` +-- AUTO_INCREMENT for table `ogp_adminexternallinks` -- -ALTER TABLE `gsp_adminexternallinks` +ALTER TABLE `ogp_adminexternallinks` MODIFY `link_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `gsp_adminlte_settings` +-- AUTO_INCREMENT for table `ogp_adminlte_settings` -- -ALTER TABLE `gsp_adminlte_settings` +ALTER TABLE `ogp_adminlte_settings` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- --- AUTO_INCREMENT for table `gsp_arrange_ports` +-- AUTO_INCREMENT for table `ogp_arrange_ports` -- -ALTER TABLE `gsp_arrange_ports` +ALTER TABLE `ogp_arrange_ports` MODIFY `range_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=259; -- --- AUTO_INCREMENT for table `gsp_backup_restore` +-- AUTO_INCREMENT for table `ogp_backup_restore` -- -ALTER TABLE `gsp_backup_restore` +ALTER TABLE `ogp_backup_restore` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_billing_carts` +-- AUTO_INCREMENT for table `ogp_billing_carts` -- -ALTER TABLE `gsp_billing_carts` +ALTER TABLE `ogp_billing_carts` MODIFY `cart_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=556; -- --- AUTO_INCREMENT for table `gsp_billing_coupons` +-- AUTO_INCREMENT for table `ogp_billing_coupons` -- -ALTER TABLE `gsp_billing_coupons` +ALTER TABLE `ogp_billing_coupons` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- --- AUTO_INCREMENT for table `gsp_billing_orders` +-- AUTO_INCREMENT for table `ogp_billing_orders` -- -ALTER TABLE `gsp_billing_orders` +ALTER TABLE `ogp_billing_orders` MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=540; -- --- AUTO_INCREMENT for table `gsp_billing_services` +-- AUTO_INCREMENT for table `ogp_billing_services` -- -ALTER TABLE `gsp_billing_services` +ALTER TABLE `ogp_billing_services` MODIFY `service_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=124; -- --- AUTO_INCREMENT for table `gsp_circular` +-- AUTO_INCREMENT for table `ogp_circular` -- -ALTER TABLE `gsp_circular` +ALTER TABLE `ogp_circular` MODIFY `circular_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- --- AUTO_INCREMENT for table `gsp_config_homes` +-- AUTO_INCREMENT for table `ogp_config_homes` -- -ALTER TABLE `gsp_config_homes` +ALTER TABLE `ogp_config_homes` MODIFY `home_cfg_id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=280; -- --- AUTO_INCREMENT for table `gsp_config_mods` +-- AUTO_INCREMENT for table `ogp_config_mods` -- -ALTER TABLE `gsp_config_mods` +ALTER TABLE `ogp_config_mods` MODIFY `mod_cfg_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=874; -- --- AUTO_INCREMENT for table `gsp_game_mods` +-- AUTO_INCREMENT for table `ogp_game_mods` -- -ALTER TABLE `gsp_game_mods` +ALTER TABLE `ogp_game_mods` MODIFY `mod_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1666; -- --- AUTO_INCREMENT for table `gsp_lgsl` +-- AUTO_INCREMENT for table `ogp_lgsl` -- -ALTER TABLE `gsp_lgsl` +ALTER TABLE `ogp_lgsl` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_logger` +-- AUTO_INCREMENT for table `ogp_logger` -- -ALTER TABLE `gsp_logger` +ALTER TABLE `ogp_logger` MODIFY `log_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=63213; -- --- AUTO_INCREMENT for table `gsp_modules` +-- AUTO_INCREMENT for table `ogp_modules` -- -ALTER TABLE `gsp_modules` +ALTER TABLE `ogp_modules` MODIFY `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=197; -- --- AUTO_INCREMENT for table `gsp_mysql_databases` +-- AUTO_INCREMENT for table `ogp_mysql_databases` -- -ALTER TABLE `gsp_mysql_databases` +ALTER TABLE `ogp_mysql_databases` MODIFY `db_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=348; -- --- AUTO_INCREMENT for table `gsp_mysql_servers` +-- AUTO_INCREMENT for table `ogp_mysql_servers` -- -ALTER TABLE `gsp_mysql_servers` +ALTER TABLE `ogp_mysql_servers` MODIFY `mysql_server_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `gsp_notification` +-- AUTO_INCREMENT for table `ogp_notification` -- -ALTER TABLE `gsp_notification` +ALTER TABLE `ogp_notification` MODIFY `notification_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_rcon_presets` +-- AUTO_INCREMENT for table `ogp_rcon_presets` -- -ALTER TABLE `gsp_rcon_presets` +ALTER TABLE `ogp_rcon_presets` MODIFY `preset_id` int(50) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_remote_servers` +-- AUTO_INCREMENT for table `ogp_remote_servers` -- -ALTER TABLE `gsp_remote_servers` +ALTER TABLE `ogp_remote_servers` MODIFY `remote_server_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54; -- --- AUTO_INCREMENT for table `gsp_remote_server_ips` +-- AUTO_INCREMENT for table `ogp_remote_server_ips` -- -ALTER TABLE `gsp_remote_server_ips` +ALTER TABLE `ogp_remote_server_ips` MODIFY `ip_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- --- AUTO_INCREMENT for table `gsp_reseller_accounts` +-- AUTO_INCREMENT for table `ogp_reseller_accounts` -- -ALTER TABLE `gsp_reseller_accounts` +ALTER TABLE `ogp_reseller_accounts` MODIFY `account_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `gsp_reseller_carts` +-- AUTO_INCREMENT for table `ogp_reseller_carts` -- -ALTER TABLE `gsp_reseller_carts` +ALTER TABLE `ogp_reseller_carts` MODIFY `cart_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `gsp_reseller_discount_codes` +-- AUTO_INCREMENT for table `ogp_reseller_discount_codes` -- -ALTER TABLE `gsp_reseller_discount_codes` +ALTER TABLE `ogp_reseller_discount_codes` MODIFY `discount_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_reseller_services` +-- AUTO_INCREMENT for table `ogp_reseller_services` -- -ALTER TABLE `gsp_reseller_services` +ALTER TABLE `ogp_reseller_services` MODIFY `service_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `gsp_server_homes` +-- AUTO_INCREMENT for table `ogp_server_homes` -- -ALTER TABLE `gsp_server_homes` +ALTER TABLE `ogp_server_homes` MODIFY `home_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1516; -- --- AUTO_INCREMENT for table `gsp_tickets` +-- AUTO_INCREMENT for table `ogp_tickets` -- -ALTER TABLE `gsp_tickets` +ALTER TABLE `ogp_tickets` MODIFY `tid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- --- AUTO_INCREMENT for table `gsp_ticket_attachments` +-- AUTO_INCREMENT for table `ogp_ticket_attachments` -- -ALTER TABLE `gsp_ticket_attachments` +ALTER TABLE `ogp_ticket_attachments` MODIFY `attachment_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- --- AUTO_INCREMENT for table `gsp_ticket_messages` +-- AUTO_INCREMENT for table `ogp_ticket_messages` -- -ALTER TABLE `gsp_ticket_messages` +ALTER TABLE `ogp_ticket_messages` MODIFY `reply_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- --- AUTO_INCREMENT for table `gsp_ticket_settings` +-- AUTO_INCREMENT for table `ogp_ticket_settings` -- -ALTER TABLE `gsp_ticket_settings` +ALTER TABLE `ogp_ticket_settings` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- --- AUTO_INCREMENT for table `gsp_ts3_homes` +-- AUTO_INCREMENT for table `ogp_ts3_homes` -- -ALTER TABLE `gsp_ts3_homes` +ALTER TABLE `ogp_ts3_homes` MODIFY `ts3_id` int(50) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- --- AUTO_INCREMENT for table `gsp_tshock` +-- AUTO_INCREMENT for table `ogp_tshock` -- -ALTER TABLE `gsp_tshock` +ALTER TABLE `ogp_tshock` MODIFY `token_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_users` +-- AUTO_INCREMENT for table `ogp_users` -- -ALTER TABLE `gsp_users` +ALTER TABLE `ogp_users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=636; -- --- AUTO_INCREMENT for table `gsp_user_group_info` +-- AUTO_INCREMENT for table `ogp_user_group_info` -- -ALTER TABLE `gsp_user_group_info` +ALTER TABLE `ogp_user_group_info` MODIFY `group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- --- AUTO_INCREMENT for table `gsp_user_role_info` +-- AUTO_INCREMENT for table `ogp_user_role_info` -- -ALTER TABLE `gsp_user_role_info` +ALTER TABLE `ogp_user_role_info` MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT; -- --- AUTO_INCREMENT for table `gsp_widgets` +-- AUTO_INCREMENT for table `ogp_widgets` -- -ALTER TABLE `gsp_widgets` +ALTER TABLE `ogp_widgets` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- @@ -1414,10 +1414,10 @@ ALTER TABLE `gsp_widgets` -- -- --- Constraints for table `gsp_ticket_messages` +-- Constraints for table `ogp_ticket_messages` -- -ALTER TABLE `gsp_ticket_messages` - ADD CONSTRAINT `gsp_ticket_messages_fk0` FOREIGN KEY (`ticket_id`) REFERENCES `gsp_tickets` (`tid`); +ALTER TABLE `ogp_ticket_messages` + ADD CONSTRAINT `ogp_ticket_messages_fk0` FOREIGN KEY (`ticket_id`) REFERENCES `ogp_tickets` (`tid`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/home.php b/home.php index c763429c..23f9f69d 100644 --- a/home.php +++ b/home.php @@ -25,8 +25,8 @@ $db = createDatabaseConnection($db_type, $db_host, $db_user, $db_pass, $db_name, // Load languages. include_once("includes/lang.php"); -if (!$db instanceof GSPDatabase) { - gspLang(); +if (!$db instanceof OGPDatabase) { + ogpLang(); die(get_lang('no_db_connection')); } @@ -37,10 +37,10 @@ if(hasValue($_SESSION['user_id'])){ $settings = $db->getSettings(); @$GLOBALS['panel_language'] = $settings['panel_language']; -gspLang(); +ogpLang(); require_once("includes/view.php"); -$view = new GSPView(); +$view = new OGPView(); $view->setCharset(get_lang('lang_charset')); $view->setTimeZone($settings['time_zone']); if(isset($_GET['type']) && $_GET['type'] == 'cleared') diff --git a/includes/api_functions.php b/includes/api_functions.php index 17bb6297..496e5b41 100644 --- a/includes/api_functions.php +++ b/includes/api_functions.php @@ -91,7 +91,7 @@ function get_start_cmd($user_info,$remote,$server_xml,$home_info,$mod_id,$ip,$po $cli_param_data['IP'] = $ip; $cli_param_data['PORT'] = $port; $cli_param_data['HOSTNAME'] = $home_info['home_name']; - $cli_param_data['PID_FILE'] = "gsp_game_startup.pid"; + $cli_param_data['PID_FILE'] = "ogp_game_startup.pid"; // Linux if( preg_match("/Linux/", $os) ) @@ -342,7 +342,7 @@ function get_faster_rsync($rsync_sites) } if($faster == "NONE") - $faster = "rsync.gameservers-world.com"; + $faster = "rsync.opengamepanel.org"; return $faster; } diff --git a/includes/config.inc.php b/includes/config.inc.php index 1abb9f1a..7d04a9f3 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="gsp_"; +$table_prefix="ogp_"; $db_type="mysql"; ?> diff --git a/includes/database.php b/includes/database.php index 034f8660..4c1b8f56 100644 --- a/includes/database.php +++ b/includes/database.php @@ -3,9 +3,9 @@ * Database connection and query functions */ -define("GSP_DB_PREFIX", "GSP_DB_PREFIX"); +define("OGP_DB_PREFIX", "OGP_DB_PREFIX"); -abstract class GSPDatabase { +abstract class OGPDatabase { protected $queries_ = 0; @@ -134,7 +134,7 @@ abstract class GSPDatabase { abstract public function getCurrentHomeConfigMods($clear_all); - abstract public function updateGSPGameModsWithNewIDs($oldModStructure); + abstract public function updateOGPGameModsWithNewIDs($oldModStructure); abstract public function clearGameCfgs($clear_all); diff --git a/includes/database_mysqli.php b/includes/database_mysqli.php index 6d380ba5..5089cada 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 GSPDatabaseMySQL extends GSPDatabase +class OGPDatabaseMySQL extends OGPDatabase { protected $link; @@ -938,7 +938,7 @@ class GSPDatabaseMySQL extends GSPDatabase return false; } - public function updateGSPGameModsWithNewIDs($oldModStructure){ + public function updateOGPGameModsWithNewIDs($oldModStructure){ $currentStructure = $this->getCurrentHomeConfigMods(false); if(isset($oldModStructure) && is_array($oldModStructure) && isset($currentStructure) && is_array($currentStructure)){ @@ -1144,7 +1144,7 @@ class GSPDatabaseMySQL extends GSPDatabase { if ( !$this->link ) return FALSE; - $query = str_replace( "GSP_DB_PREFIX", $this->table_prefix, $query ); + $query = str_replace( "OGP_DB_PREFIX", $this->table_prefix, $query ); ++$this->queries_; mysqli_query($this->link,$query); @@ -1159,7 +1159,7 @@ class GSPDatabaseMySQL extends GSPDatabase /// \brief This query return array of values or false on failure. public function resultQuery( $query ) { - $query = str_replace( "GSP_DB_PREFIX", $this->table_prefix, $query ); + $query = str_replace( "OGP_DB_PREFIX", $this->table_prefix, $query ); return $this->listQuery($query); } @@ -1217,7 +1217,7 @@ class GSPDatabaseMySQL extends GSPDatabase return false; $rhost_name = trim($rhost_name); - $query = sprintf("INSERT INTO `%sremote_servers` (`agent_ip`,remote_server_name,gsp_user,agent_port,ftp_ip,ftp_port,`encryption_key`,timeout,use_nat,display_public_ip) + $query = sprintf("INSERT INTO `%sremote_servers` (`agent_ip`,remote_server_name,ogp_user,agent_port,ftp_ip,ftp_port,`encryption_key`,timeout,use_nat,display_public_ip) VALUES('%s','%s','%s','%d','%s','%s','%s','%s','%s','%s');", $this->table_prefix, $this->realEscapeSingle($rhost_ip), @@ -1379,7 +1379,7 @@ class GSPDatabaseMySQL extends GSPDatabase $query = sprintf("UPDATE %sremote_servers SET agent_ip='%s', agent_port='%s', encryption_key='%s', remote_server_name='%s', - gsp_user='%s', + ogp_user='%s', ftp_ip='%s', ftp_port='%s', timeout='%s', @@ -3370,7 +3370,7 @@ class GSPDatabaseMySQL extends GSPDatabase $user_id = isset($_SESSION['user_id']) ? $_SESSION['user_id'] : 0; $client_ip = getClientIPAddress(); $message = $this->realEscapeSingle($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');"); + $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');"); } public function get_logger_count($search_field) { @@ -3762,7 +3762,7 @@ class GSPDatabaseMySQL extends GSPDatabase case 'server': require_once('includes/lib_remote.php'); $home_info = $this->getGameHomeWithoutMods($home_id); - $remote = new GSPRemoteLibrary($home_info['agent_ip'], $home_info['agent_port'], $home_info['encryption_key'], $home_info['timeout']); + $remote = new OGPRemoteLibrary($home_info['agent_ip'], $home_info['agent_port'], $home_info['encryption_key'], $home_info['timeout']); $agent_online = $remote->status_chk() === 1; if( $agent_online ) { diff --git a/includes/form_table_class.php b/includes/form_table_class.php index dc0c59b7..f9ef27a4 100644 --- a/includes/form_table_class.php +++ b/includes/form_table_class.php @@ -112,7 +112,7 @@ class FormTable { print_failure(get_lang_f('invalid_setting_type',$type)); } - if ( defined("GSP_LANG_".$name."_info") ) + if ( defined("OGP_LANG_".$name."_info") ) { echo "
".str_replace("'",'"',get_lang($name."_info"))."
"; $this->i++; @@ -128,7 +128,7 @@ class FormTable { echo ""; echo "".$data."\n"; - if ( defined("GSP_LANG_".$name."_info") ) + if ( defined("OGP_LANG_".$name."_info") ) { echo "
".str_replace("'",'"',get_lang($name."_info"))."
\n\n"; $this->i++; diff --git a/includes/functions.php b/includes/functions.php index ae2c1036..5cf4cbd1 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -150,7 +150,7 @@ function get_map_path($query_name,$mod,$map) { return get_first_existing_file($map_paths, 'http://gametracker.com', 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0'); } -// Thanks adjo (http://gameserver-panel.org/forum/viewthread.php?thread_id=5209#post_25073) +// Thanks adjo (http://opengamepanel.org/forum/viewthread.php?thread_id=5209#post_25073) function curlCacheImage($cachePath, $resource){ if(preg_match('/^(https?:\/\/)/', $resource)){ $map = explode('/', $resource); @@ -365,7 +365,7 @@ function mymail($email_address, $subject, $message, $panel_settings, $user_to_pa } if(empty($panel_settings['panel_email_address'])){ - $panel_email = "noreply@gameserver-panel.org"; + $panel_email = "noreply@opengamepanel.org"; }else{ $panel_email = $panel_settings['panel_email_address']; } @@ -626,7 +626,7 @@ function getClientIPAddress(){ return $_SERVER['REMOTE_ADDR']; } -function getGSPSiteURL(){ +function getOGPSiteURL(){ $url = ''; $scheme = ( isset($_SERVER['HTTPS']) and get_true_boolean($_SERVER['HTTPS']) ) ? "https://" : "http://"; $url .= $scheme; @@ -1047,7 +1047,7 @@ function deleteMysqlAddonDatabasesForGameServerHome($home_id){ if($mysql_db['remote_server_id'] != "0") { $remote_server = $db->getRemoteServer($mysql_db['remote_server_id']); - $remote = new GSPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); + $remote = new OGPRemoteLibrary($remote_server['agent_ip'],$remote_server['agent_port'],$remote_server['encryption_key'],$remote_server['timeout']); $host_stat = $remote->status_chk(); if($host_stat === 1 ) { diff --git a/includes/helpers.php b/includes/helpers.php index 5695c319..f5e2cbe1 100644 --- a/includes/helpers.php +++ b/includes/helpers.php @@ -4,7 +4,7 @@ */ // Globals -$GSPLangPre = "GSP_LANG_"; +$OGPLangPre = "OGP_LANG_"; // Ignore any request with unwanted values at 'm' or 'p' if( isset($_REQUEST['m']) and !preg_match("/^([a-z]|[0-9]|_|-)+$/i", $_REQUEST['m']) ) @@ -33,8 +33,8 @@ function createDatabaseConnection($db_type,$db_host,$db_user,$db_pass,$db_name,$ if ( function_exists('mysqli_connect') ) require_once("includes/database_mysqli.php"); else - die("

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

"); - $database = new GSPDatabaseMysql(); + die("

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

"); + $database = new OGPDatabaseMysql(); $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,"GSPDatabase")) + if (is_a($db_retval,"OGPDatabase")) return FALSE; switch ($db_retval) { @@ -229,7 +229,7 @@ function sanitizeInputStr($strToProcess, $removeHTML = true, $trim = true, $remo function startSession(){ if(!isset($_SESSION)){ - session_name("gameserver-panel_web"); + session_name("opengamepanel_web"); session_start(); } } @@ -410,9 +410,9 @@ function runPostUpdateOperations(){ } } -function getGSPGitHubURL($gitHubUsername, $repo){ - $GSPGitHub = "https://github.com/Gameservers-World/"; - $gitHubURL = $GSPGitHub; +function getOGPGitHubURL($gitHubUsername, $repo){ + $OGPGitHub = "https://github.com/OpenGamePanel/"; + $gitHubURL = $OGPGitHub; if(isset($gitHubUsername) && !empty($gitHubUsername)){ $gitHubURL = "https://github.com/" . $gitHubUsername . "/"; } @@ -423,12 +423,12 @@ function getGSPGitHubURL($gitHubUsername, $repo){ return $gitHubURL; } - return $GSPGitHub; + return $OGPGitHub; } -function getGSPGitHubURLUnstrict($gitHubUsername){ - $GSPGitHub = "https://github.com/Gameservers-World/"; - $gitHubURL = $GSPGitHub; +function getOGPGitHubURLUnstrict($gitHubUsername){ + $OGPGitHub = "https://github.com/OpenGamePanel/"; + $gitHubURL = $OGPGitHub; if(isset($gitHubUsername) && !empty($gitHubUsername)){ $gitHubURL = "https://github.com/" . $gitHubUsername . "/"; } @@ -440,7 +440,7 @@ function getGSPGitHubURLUnstrict($gitHubUsername){ return $gitHubURL; } - return $GSPGitHub; + return $OGPGitHub; } function getGitHubOrganization($gitHubURL){ @@ -456,13 +456,13 @@ function getGitHubOrganization($gitHubURL){ return $gitHubOrg; } -function getGSPLangConstantsJSON(){ - global $GSPLangPre; +function getOGPLangConstantsJSON(){ + global $OGPLangPre; $finalConsts = array(); $consts = get_defined_constants(true); foreach($consts["user"] as $key => $value){ - if(startsWith($key, $GSPLangPre)){ + if(startsWith($key, $OGPLangPre)){ $finalConsts[$key] = $value; } } diff --git a/includes/lang.php b/includes/lang.php index 1e96e1c4..219e10ae 100644 --- a/includes/lang.php +++ b/includes/lang.php @@ -17,11 +17,11 @@ function add_lang_module($lang_module) { global $lang_modules; array_push($lang_modules,$lang_module); - // Need to reload langs if module is added after the first gspLang call. - gspLang(); + // Need to reload langs if module is added after the first ogpLang call. + ogpLang(); } -function gspLang() +function ogpLang() { global $lang_modules; $locale_files = makefilelist("lang/", ".|..|.svn", true, "folders"); @@ -68,15 +68,15 @@ function gspLang() function get_lang($lang_index) { - global $GSPLangPre; + global $OGPLangPre; if (defined($lang_index)) { return constant($lang_index); } - if(!startsWith($lang_index, $GSPLangPre)){ - $newLangIndex = $GSPLangPre . $lang_index; + if(!startsWith($lang_index, $OGPLangPre)){ + $newLangIndex = $OGPLangPre . $lang_index; if (defined($newLangIndex)) { return constant($newLangIndex); @@ -89,7 +89,7 @@ function get_lang($lang_index) function get_lang_f() { - global $GSPLangPre; + global $OGPLangPre; $args = func_get_args(); $lang_index = array_shift($args); @@ -98,8 +98,8 @@ function get_lang_f() return vsprintf(constant($lang_index),$args); } - if(!startsWith($lang_index, $GSPLangPre)){ - $newLangIndex = $GSPLangPre . $lang_index; + if(!startsWith($lang_index, $OGPLangPre)){ + $newLangIndex = $OGPLangPre . $lang_index; if (defined($newLangIndex)) { return vsprintf(constant($newLangIndex),$args); diff --git a/includes/lib_remote.php b/includes/lib_remote.php index 3f9a7acc..9c438e2e 100644 --- a/includes/lib_remote.php +++ b/includes/lib_remote.php @@ -6,12 +6,12 @@ require_once("Crypt/XXTEA.php"); // Screen type for servers -define("GSP_SCREEN_TYPE_HOME","HOME"); -define("GSP_SCREEN_TYPE_UPDATE","UPDATE"); +define("OGP_SCREEN_TYPE_HOME","HOME"); +define("OGP_SCREEN_TYPE_UPDATE","UPDATE"); define("AGENT_ERROR_NOT_EXECUTABLE",-13); -class GSPRemoteLibrary +class OGPRemoteLibrary { private $port; private $host; diff --git a/includes/navig.php b/includes/navig.php index 83c0ecfa..5ad8425c 100644 --- a/includes/navig.php +++ b/includes/navig.php @@ -78,13 +78,13 @@ function navigation() { include_once( $include_file ); - if ( !function_exists( 'exec_gsp_module' ) ) + if ( !function_exists( 'exec_ogp_module' ) ) { print_failure("Missing module execute function."); return; } - exec_gsp_module(); + exec_ogp_module(); return; } print_failure("Invalid subpage given."); @@ -94,12 +94,12 @@ function navigation() { else if ( is_file( MODULES.$_REQUEST['m'].'/'.$_REQUEST['m'].'.php') ) { include( MODULES.$_REQUEST['m'].'/'.$_REQUEST['m'].'.php'); - if ( !function_exists( 'exec_gsp_module' ) ) + if ( !function_exists( 'exec_ogp_module' ) ) { print_failure("Missing module execute function."); return; } - exec_gsp_module(); + exec_ogp_module(); } // If files above are not found then we print an error. else diff --git a/includes/view.php b/includes/view.php index 1b43d08f..1e697391 100644 --- a/includes/view.php +++ b/includes/view.php @@ -5,7 +5,7 @@ define("DEFAULT_REFRESH_TIME","2"); -class GSPView { +class OGPView { private $meta; private $title; @@ -29,9 +29,9 @@ class GSPView { function menu(){} function printView($cleared = false, $dataType = "html") { - global $db, $GSPLangPre; + global $db, $OGPLangPre; - if ( is_object($db) && array_key_exists( "GSPDatabase", class_parents($db) ) ) { + if ( is_object($db) && array_key_exists( "OGPDatabase", class_parents($db) ) ) { $panel_settings = $db->getSettings(); } @@ -80,9 +80,9 @@ class GSPView { $this->title = $title == "" ? $this->title : $this->title . " [$title]"; // Dump defined constants to json (for language javascript) - $jsonStrConsts = getGSPLangConstantsJSON(); + $jsonStrConsts = getOGPLangConstantsJSON(); if($jsonStrConsts !== false){ - $this->header_code .= '' . "\n"; + $this->header_code .= '' . "\n"; } // Include jQuery, jQuery UI, and our global CSS file in the header code @@ -110,7 +110,7 @@ class GSPView { $javascript .= '' . "\n"; // Include global JS for modules - if(is_object($db) && array_key_exists("GSPDatabase", class_parents($db))){ + if(is_object($db) && array_key_exists("OGPDatabase", class_parents($db))){ foreach($db->getInstalledModules() as $m) { $global_js_file = 'js/' . MODULES . "{$m['folder']}_global.js"; @@ -194,14 +194,14 @@ class GSPView { $footer = ""; - if ( is_object($db) && array_key_exists( "GSPDatabase", class_parents($db) ) ) { + if ( is_object($db) && array_key_exists( "OGPDatabase", 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')." © GameServer Panel " . date("Y") . " - ".get_lang('all_rights_reserved')." - ".get_lang('show_version')."
" . get_lang('version') . ":  ".@$panel_settings['gsp_version']."
"; + $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']."
"; } else { - $footer .= ""; + $footer .= ""; } // Add our magnific popup holder to the page (hidden element): diff --git a/index.php b/index.php index 409d5d89..41a11a0d 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,7 @@ require_once("includes/functions.php"); require_once("includes/helpers.php"); require_once("includes/html_functions.php"); -// Start the session valid for gameserver-panel_web only +// Start the session valid for opengamepanel_web only startSession(); // Useful for debugging :) @@ -42,8 +42,8 @@ $db = createDatabaseConnection($db_type, $db_host, $db_user, $db_pass, $db_name, // Load languages. include_once("includes/lang.php"); -if (!$db instanceof GSPDatabase) { - gspLang(); +if (!$db instanceof OGPDatabase) { + ogpLang(); die(get_lang('no_db_connection')); } @@ -54,10 +54,10 @@ if(hasValue($_SESSION['user_id'])){ $settings = $db->getSettings(); @$GLOBALS['panel_language'] = $settings['panel_language']; -gspLang(); +ogpLang(); require_once("includes/view.php"); -$view = new GSPView(); +$view = new OGPView(); $view->setCharset( get_lang('lang_charset') ); if(isset($_GET['type']) && $_GET['type'] == 'cleared') { @@ -216,10 +216,10 @@ function ogpHome() { $client_ip = getClientIPAddress(); - $ban_list = $db->resultQuery("SHOW TABLES LIKE 'GSP_DB_PREFIXban_list';"); + $ban_list = $db->resultQuery("SHOW TABLES LIKE 'OGP_DB_PREFIXban_list';"); if ( empty( $ban_list ) ) { - $db->query("CREATE TABLE IF NOT EXISTS `GSP_DB_PREFIXban_list` ( + $db->query("CREATE TABLE IF NOT EXISTS `OGP_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 `GSP_DB_PREFIXban_list` WHERE client_ip='".$client_ip."';"); + $banlist_info = $db->resultQuery("SELECT logging_attempts, banned_until FROM `OGP_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 `GSP_DB_PREFIXban_list` WHERE client_ip='$client_ip';"); + $db->query("DELETE FROM `OGP_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 `GSP_DB_PREFIXban_list` WHERE client_ip='$client_ip';"); + $db->query("DELETE FROM `OGP_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 GSP_DB_PREFIXbilling_orders WHERE user_id='".$_SESSION['user_id']."' AND status < 1 "); + $result = $db->resultQuery("SELECT * FROM OGP_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 `GSP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); + $db->query("INSERT INTO `OGP_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 `GSP_DB_PREFIXban_list` SET logging_attempts='$login_attempts', banned_until='$banned_until' WHERE client_ip='$client_ip';"); + $db->query("UPDATE `OGP_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 `GSP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); + $db->query("INSERT INTO `OGP_DB_PREFIXban_list` (`client_ip`) VALUES('$client_ip');"); $db->logger( get_lang("bad_login") . " ( $login_attempts ) [ " . login . ": $_POST[ulogin], " . password . ": ******** ]" ); - $db->query("UPDATE `GSP_DB_PREFIXban_list` SET logging_attempts='$login_attempts' WHERE client_ip='$client_ip';"); + $db->query("UPDATE `OGP_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 `GSP_DB_PREFIXban_list` (`client_ip`,`logging_attempts`) VALUES('$client_ip','-1');"); + $db->query("INSERT INTO `OGP_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/js/global.js b/js/global.js index 52a041e1..ee76e5eb 100644 --- a/js/global.js +++ b/js/global.js @@ -58,23 +58,23 @@ function showAPILinks(elem){ if(apiToken && ipAddr && port && modKey && panelURL){ var actions = new Array( - {url: 'gsp_api.php?gamemanager/start', lang: 'start_server'}, - {url: 'gsp_api.php?gamemanager/stop', lang: 'stop_server'}, - {url: 'gsp_api.php?gamemanager/restart', lang: 'restart_server'} + {url: 'ogp_api.php?gamemanager/start', lang: 'start_server'}, + {url: 'ogp_api.php?gamemanager/stop', lang: 'stop_server'}, + {url: 'ogp_api.php?gamemanager/restart', lang: 'restart_server'} ); var hasRcon = elem.attr('hasrcon'); if(hasRcon && hasRcon === 'true'){ - actions.push({url: 'gsp_api.php?gamemanager/rcon', lang: 'rcon_command_title', additional: '&command={YOUR_RCON_COMMAND}'}); + actions.push({url: 'ogp_api.php?gamemanager/rcon', lang: 'rcon_command_title', additional: '&command={YOUR_RCON_COMMAND}'}); } var isSteam = elem.attr('hassteam'); if(isSteam && isSteam === 'true'){ - actions.push({url: 'gsp_api.php?gamemanager/update', lang: 'get_steam_autoupdate_api_link', additional: '&type=steam', selected: true}); + actions.push({url: 'ogp_api.php?gamemanager/update', lang: 'get_steam_autoupdate_api_link', additional: '&type=steam', selected: true}); } - var selectListHTML = ''; for(var i = 0; i < actions.length; i++){ selectListHTML += ''; } @@ -83,7 +83,7 @@ function showAPILinks(elem){ $("div.mangificWrapper .magnificContentsDiv").html(decodeEntities(getLang('api_links_popup_html')) + '

' + getLang('actions') +':  ' + selectListHTML + '

 

'); showPopup(function(){ - $(".gspAPIActions").change(function(e){ + $(".ogpAPIActions").change(function(e){ var newActionValue = $(this).val(); var apiURL = panelURL + '/' + newActionValue + '&token=' + apiToken + '&ip=' + ipAddr + '&port=' + port + '&mod_key=' + modKey; var additionalParamsToAdd = $('option:selected', $(this)).attr('additional'); @@ -103,7 +103,7 @@ function showAPILinks(elem){ copyInput($("input.updateLink"), $("span.copyStatus"), elem); - $(".gspAPIActions").trigger('change'); + $(".ogpAPIActions").trigger('change'); }); } } diff --git a/js/modules/gamemanager.js b/js/modules/gamemanager.js index 8dc1e56b..fd37058e 100644 --- a/js/modules/gamemanager.js +++ b/js/modules/gamemanager.js @@ -214,7 +214,7 @@ function saveGameServerOrder(){ // Make the call $.ajax({ type: "POST", - url: "gsp_api.php?gamemanager_admin/reorder&token=" + userAPIKey, + url: "ogp_api.php?gamemanager_admin/reorder&token=" + userAPIKey, data: JSON.stringify(postData), success: function(e){ logToConsole("Game server order successfully saved!"); diff --git a/js/modules/litefm.js b/js/modules/litefm.js index 7f6cfe0c..32f10bec 100644 --- a/js/modules/litefm.js +++ b/js/modules/litefm.js @@ -1038,7 +1038,7 @@ $(document).ready(function(){ "
\n"+ "
\n"+ "
\n"+ - "
\n"+ + "
\n"+ "
\n"+ "
\n"); diff --git a/js/modules/user_games-assign.js b/js/modules/user_games-assign.js index dfc99324..19793df2 100644 --- a/js/modules/user_games-assign.js +++ b/js/modules/user_games-assign.js @@ -30,9 +30,9 @@ function change_access_rights(id_type, assign_id) { return true; } - check_access_rights += "" + + check_access_rights += "" + "" + - "" + langConsts['GSP_LANG_' + value + '_info'] + ""; + "" + langConsts['OGP_LANG_' + value + '_info'] + ""; }); check_access_rights += ''; diff --git a/modules/TS3Admin/TS3Admin.php b/modules/TS3Admin/TS3Admin.php index 2ea516f3..53e72869 100644 --- a/modules/TS3Admin/TS3Admin.php +++ b/modules/TS3Admin/TS3Admin.php @@ -3,7 +3,7 @@ * Administrative interface for the ts3admin module */ -function exec_gsp_module() +function exec_ogp_module() { $templates_folder = 'modules/TS3Admin/templates_c'; if( is_writable( $templates_folder ) ) @@ -50,11 +50,11 @@ function exec_gsp_module() $_SESSION['rserver_id'] = $_GET['rserver_id']; if( $isAdmin ) { - $TS3_list = $db->resultQuery("SELECT * FROM GSP_DB_PREFIXts3_homes WHERE rserver_id='".$_SESSION['rserver_id']."'"); + $TS3_list = $db->resultQuery("SELECT * FROM OGP_DB_PREFIXts3_homes WHERE rserver_id='".$_SESSION['rserver_id']."'"); } else { - $sql = "SELECT * FROM GSP_DB_PREFIXts3_homes WHERE"; + $sql = "SELECT * FROM OGP_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 06c085e1..840d6636 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 `".GSP_DB_PREFIX."ts3_homes`;", -"CREATE TABLE IF NOT EXISTS `".GSP_DB_PREFIX."ts3_homes` +"DROP TABLE IF EXISTS `".OGP_DB_PREFIX."ts3_homes`;", +"CREATE TABLE IF NOT EXISTS `".OGP_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 `".GSP_DB_PREFIX."ts3_homes` DROP INDEX `user_id` , +"ALTER TABLE `".OGP_DB_PREFIX."ts3_homes` DROP INDEX `user_id` , ADD UNIQUE `rserver_id` ( `rserver_id` , `vserver_id` , `user_id` );"); $install_queries[2] = array( -"ALTER TABLE `".GSP_DB_PREFIX."ts3_homes` ADD `port` int(11) DEFAULT '10011'" +"ALTER TABLE `".OGP_DB_PREFIX."ts3_homes` ADD `port` int(11) DEFAULT '10011'" ); ?> diff --git a/modules/TS3Admin/templates_c/%%F7^F7F^F7F34188%%header.tpl.php b/modules/TS3Admin/templates_c/%%F7^F7F^F7F34188%%header.tpl.php index ccc499e9..f01433f0 100644 --- a/modules/TS3Admin/templates_c/%%F7^F7F^F7F34188%%header.tpl.php +++ b/modules/TS3Admin/templates_c/%%F7^F7F^F7F34188%%header.tpl.php @@ -3,25 +3,25 @@ \ - \ + \ '; if(new_form !== undefined) @@ -931,12 +931,12 @@ $(document).ready(function() /* *** Footer Mod *** */ - $('.main-footer .GSPVersionArea').addClass('d-none'); + $('.main-footer .OGPVersionArea').addClass('d-none'); $('.main-footer a').attr('target', '_blank').addClass('text-dark'); $('.main-footer .footer').html($('.main-footer .footer').html().replace("Theme - ", "Theme for OGP by oNdsen - ")) $('.main-footer .footer.center').removeClass('center'); - $('.main-footer .GSPVersionArea .version').remove() - $('.main-footer .GSPVersionArea').removeClass('inline-block').addClass('d-inline-block'); + $('.main-footer .OGPVersionArea .version').remove() + $('.main-footer .OGPVersionArea').removeClass('inline-block').addClass('d-inline-block'); $('.main-footer .footer > br').last().remove() } @@ -1173,17 +1173,17 @@ $(window).load(function() $('.main-footer .versionInfo').click(function() { - $('.GSPVersionArea, .GSPVersionArea .version, .GSPVersionArea .versionNumber').removeClass('d-none').removeClass('hide'); + $('.OGPVersionArea, .OGPVersionArea .version, .OGPVersionArea .versionNumber').removeClass('d-none').removeClass('hide'); // add blink class to versionNumber - $('.GSPVersionArea .versionNumber').addClass('shortblink'); + $('.OGPVersionArea .versionNumber').addClass('shortblink'); // remove after 4 seconds setTimeout(function(){ - $('.GSPVersionArea .versionNumber').removeClass('shortblink'); + $('.OGPVersionArea .versionNumber').removeClass('shortblink'); }, 4000); - var copy = copyToClipboard($('.GSPVersionArea .versionNumber')); - toastr.info('"' + copy + '" ' + $('.GSPVersionArea .copyVersionResult').attr('lang')); + var copy = copyToClipboard($('.OGPVersionArea .versionNumber')); + toastr.info('"' + copy + '" ' + $('.OGPVersionArea .copyVersionResult').attr('lang')); }); // circular notifications if($('body > #notification').length > 0) @@ -1287,7 +1287,7 @@ function themeChanger(changeTo, save = false) if(!localStorage.getItem('themeLogo')) { - $('img.brand-image').attr('src', 'themes/AdminLTE/dist/img/gsp_logo_dark.svg'); + $('img.brand-image').attr('src', 'themes/AdminLTE/dist/img/ogp_logo_dark.svg'); } $('link[href*="jquery-ui.min"]').attr('href', 'themes/AdminLTE/plugins/jquery-ui/jquery-ui.min.dark.css'); @@ -1318,7 +1318,7 @@ function themeChanger(changeTo, save = false) if(!localStorage.getItem('themeLogo')) { - $('img.brand-image').attr('src', 'themes/AdminLTE/dist/img/gsp_logo_light.svg'); + $('img.brand-image').attr('src', 'themes/AdminLTE/dist/img/ogp_logo_light.svg'); } $('link[href*="jquery-ui.min"]').attr('href', 'themes/AdminLTE/plugins/jquery-ui/jquery-ui.min.light.css'); @@ -1349,7 +1349,7 @@ function themeChanger(changeTo, save = false) if(!localStorage.getItem('themeLogo')) { - $('img.brand-image').attr('src', 'themes/AdminLTE/dist/img/gsp_logo_dark.svg'); + $('img.brand-image').attr('src', 'themes/AdminLTE/dist/img/ogp_logo_dark.svg'); } $('link[href*="jquery-ui.min"]').attr('href', 'themes/AdminLTE/plugins/jquery-ui/jquery-ui.min.light.css'); diff --git a/themes/AdminLTE/dist/php/theme.class.php b/themes/AdminLTE/dist/php/theme.class.php index 37ef328f..a0f1978f 100644 --- a/themes/AdminLTE/dist/php/theme.class.php +++ b/themes/AdminLTE/dist/php/theme.class.php @@ -84,7 +84,7 @@ class Theme $firstRemoteServer = $this->getOGPServers(); if($firstRemoteServer) { - $remote = new GSPRemoteLibrary($firstRemoteServer[0]['agent_ip'], $firstRemoteServer[0]['agent_port'], $firstRemoteServer[0]['encryption_key'], $firstRemoteServer[0]['timeout']); + $remote = new OGPRemoteLibrary($firstRemoteServer[0]['agent_ip'], $firstRemoteServer[0]['agent_port'], $firstRemoteServer[0]['encryption_key'], $firstRemoteServer[0]['timeout']); if($remote->status_chk() != 1) { return false; @@ -238,8 +238,8 @@ class Theme foreach($serverHomes AS $key => $shData) { // check if the screen running the server is running. - $remote = new GSPRemoteLibrary($shData['agent_ip'], $shData['agent_port'], $shData['encryption_key'], $shData['timeout']); - if( $remote->is_screen_running(GSP_SCREEN_TYPE_HOME, $shData['home_id'])) + $remote = new OGPRemoteLibrary($shData['agent_ip'], $shData['agent_port'], $shData['encryption_key'], $shData['timeout']); + if( $remote->is_screen_running(OGP_SCREEN_TYPE_HOME, $shData['home_id'])) { $queryData = $this->getProtocolAndQuery($serverHomes[$key]); $serverHomes[$key]['qProtocol'] = $queryData['qProtocol']; diff --git a/themes/AdminLTE/layout.html b/themes/AdminLTE/layout.html index ac7e03a1..77caa37d 100644 --- a/themes/AdminLTE/layout.html +++ b/themes/AdminLTE/layout.html @@ -74,7 +74,7 @@