├── includes ├── Config │ └── blank.php ├── environment.php ├── configuration.php ├── functions.php └── Class │ ├── Bulletins.class.php │ ├── SampQuery.class.php │ ├── QueryServer.class.php │ └── SampRcon.class.php ├── store └── 1525134156_1.txt ├── styles ├── images │ ├── favicon.png │ ├── samp_logo.png │ └── ajax-loader.gif └── server_console.css ├── resources ├── openssl.cnf ├── bootstrap.php ├── System │ ├── SSH_Agent.php │ └── SSH │ │ └── Agent.php ├── Crypt │ ├── AES.php │ ├── RC4.php │ ├── Random.php │ └── TripleDES.php ├── Net │ └── SCP.php └── File │ └── ANSI.php ├── .gitignore ├── views ├── login.view.php ├── footer.view.php ├── emergency.view.php ├── guestpage.view.php ├── header.view.php ├── settings.view.php ├── installation.view.php ├── bulletins.view.php └── tools.view.php ├── locked.php ├── login.php ├── LICENSE ├── controllers ├── login.ctrl.php ├── updates.ctrl.php ├── settings.ctrl.php ├── bulletins.ctrl.php ├── installation.ctrl.php └── server-actions.ctrl.php ├── install.php ├── index.php ├── README.md └── status.php /includes/Config/blank.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /store/1525134156_1.txt: -------------------------------------------------------------------------------- 1 | This is a sample text for the new installation of the Server Remote Console! -------------------------------------------------------------------------------- /styles/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maxelweb/ServerRemoteConsoleSAMP/HEAD/styles/images/favicon.png -------------------------------------------------------------------------------- /styles/images/samp_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maxelweb/ServerRemoteConsoleSAMP/HEAD/styles/images/samp_logo.png -------------------------------------------------------------------------------- /styles/images/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Maxelweb/ServerRemoteConsoleSAMP/HEAD/styles/images/ajax-loader.gif -------------------------------------------------------------------------------- /resources/openssl.cnf: -------------------------------------------------------------------------------- 1 | # minimalist openssl.cnf file for use with phpseclib 2 | 3 | HOME = . 4 | RANDFILE = $ENV::HOME/.rnd 5 | 6 | [ v3_ca ] 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | includes/Config/parameters.config.php 3 | includes/Config/modes.config.php 4 | includes/Config/guestpage.config.php 5 | installed.lock 6 | -------------------------------------------------------------------------------- /views/login.view.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 14 |

Protected Area

15 |

16 |
17 |
18 | 19 |
-------------------------------------------------------------------------------- /resources/bootstrap.php: -------------------------------------------------------------------------------- 1 | 45 | -------------------------------------------------------------------------------- /views/footer.view.php: -------------------------------------------------------------------------------- 1 | 12 | 13 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /login.php: -------------------------------------------------------------------------------- 1 | 53 | -------------------------------------------------------------------------------- /includes/environment.php: -------------------------------------------------------------------------------- 1 | ./includes/Config/ folder"; 23 | @define(BULL_FOLDER, "./store/"); 24 | @define(BULL_EXTENSION, ".txt"); 25 | 26 | 27 | 28 | ?> 29 | -------------------------------------------------------------------------------- /includes/configuration.php: -------------------------------------------------------------------------------- 1 | folder 17 | * --------------------------------- 18 | */ 19 | 20 | if(file_exists("emergency.lock")) 21 | { 22 | header("location: locked.php"); 23 | } 24 | elseif(file_exists("installed.lock")) 25 | { 26 | require_once("Config/parameters.config.php"); 27 | require_once("Config/modes.config.php"); 28 | require_once("Config/guestpage.config.php"); 29 | } 30 | else 31 | { 32 | header("location: install.php"); 33 | } 34 | ?> 35 | 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Mariano Sciacco 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /controllers/login.ctrl.php: -------------------------------------------------------------------------------- 1 | time()) 15 | No("Your access has been blocked. You must wait 5 minutes to continue."); 16 | else 17 | { 18 | 19 | $psw = $_POST['psw']; 20 | if($psw == SRC_PASSWORD) 21 | { 22 | $_SESSION['src_logged'] = 1; 23 | unset($_SESSION['src_login_tried']); 24 | unset($_SESSION['src_login_wait']); 25 | location("index.php?updates"); 26 | } 27 | else 28 | { 29 | if(!isset($_SESSION['src_login_tried'])) 30 | $_SESSION['src_login_tried'] = 1; 31 | 32 | if($_SESSION['src_login_tried'] == 5) 33 | { 34 | $_SESSION['src_login_tried'] = 1; 35 | $_SESSION['src_login_wait'] = time()+300; 36 | No("Your access has been blocked. You must wait 5 minutes to continue."); 37 | } 38 | else 39 | { 40 | echo No("ERROR! Wrong password, try again. ".($_SESSION['src_login_tried'])."/5 attempts."); 41 | $_SESSION['src_login_tried'] += 1; 42 | } 43 | } 44 | } 45 | 46 | echo "

"; 47 | 48 | ?> -------------------------------------------------------------------------------- /controllers/updates.ctrl.php: -------------------------------------------------------------------------------- 1 | version; 17 | $Release = $obj->releaseDate; 18 | 19 | if($NewVersion != $version && $json) 20 | { 21 | echo '