[PHP]SA:MP Control Panel [fully released] V2.0 -
darkrider366 - 15.03.2009
This is my first PHP release for sa-mp. its a Control Panel for Linux Ubuntu.
includes:
FTP
server.cfg Editor
start
stop
restart
Install:
For a windows install just drag and drop the cpanel windows folder contents to your web directory and download samp 0.2x server for windows and make this directory
C:\samp\
and drop all the server files to that directry, and ur done.
Код:
<?php
class maxProtector{
var $password = 'changeme';
function showLoginForm(){
?>
in this section "maxprotector.class.php" you MUST edit the password
this password is the access to the control panel, to change the password change the word
"changeme"
Код:
define("USERNAME", "usernamehere"); // Your default username.
define("PASSWORD", "passwordhere"); // Your default password.
in this section "ftp.php" on the 11th and 12th line there is the username and password, please change these
to what ever you want, please remember to use hard names like MrDfЈre and passwords like 43F$3F#
this prevents most brute force hacks,
_________________________________________________
NOW, to put your gamemode on you need to goto ftp > "login" > gamemode > upload
NOW, to put your filterscripts on you need to goto ftp > "login" > filterscripts > upload
NOW, to put your scriptfiles on you need to goto ftp > "login" > scriptfiles > upload
NOW, to put your plugins on you need to goto ftp > "login" > plugins > upload
NOW, to make these work, goto the main page, then goto server.cfg
Then goto the main page of the control panel and press start/restart/stop to control your server
Ubuntu:
http://rapidshare.com/files/20960092...panel.zip.html
http://rapidshare.de/files/46114872/...panel.zip.html
http://www.filefactory.com/file/af6a...-MP_cpanel_zip
http://www.megaupload.com/?d=GKUDCY37
V2.0
http://rapidshare.de/files/46531293/...l_2.0.zip.html
http://rapidshare.com/files/21749626...l_2.0.zip.html
http://www.zezombia.com/upload/files/511_sa-mp cpanel 2.0.zip
Windows:
http://rapidshare.com/files/21210320...elwin.zip.html
http://rapidshare.de/files/46265487/cpanelwin.zip.html
http://www.filefactory.com/file/af669cg/n/cpanelwin_zip
http://www.megaupload.com/?d=X7O1TNBI
CentOS:
http://rapidshare.com/files/20960092...panel.zip.html
http://rapidshare.de/files/46114872/...panel.zip.html
http://www.filefactory.com/file/af6a...-MP_cpanel_zip
http://www.megaupload.com/?d=GKUDCY37
PLEASE REPORT ALL BUGS FOR LINUX VERSIONS ONLY ^_^ i do not support the windows one anymore!.
Re: SA:MP Control Panel -
[SP]JTweemanXD - 15.03.2009
looks good, nice work
Re: SA:MP Control Panel -
Weirdosport - 15.03.2009
I saw the Script Discussion page for this, looks good.
Re: SA:MP Control Panel -
darkrider366 - 15.03.2009
Quote:
Originally Posted by Weirdosport
I saw the Script Discussion page for this, looks good.
|
Quote:
Originally Posted by [SP
JTweemanXD ]
looks good, nice work
|
thanks ppl
Re: SA:MP Control Panel -
Mr_LeaDeR - 15.03.2009
Wow nice work on there !
Re: SA:MP Control Panel -
darkrider366 - 15.03.2009
Quote:
Originally Posted by Mr_LeaDeR
Wow nice work on there !
|
Quote:
Originally Posted by [SP
oOCharlieOo ]
Nice One dan
|
thanks peeps, keep the comments
Re: SA:MP Control Panel -
ICECOLDKILLAK8 - 15.03.2009
Looks alright, You could of put all the php files into one file though instead of having a load of files, Also maybe think about using sessions, And you could change this
Код:
require_once("/var/www/samp/cpanel/maxProtector.class.php");
to this
Код:
require_once("maxProtector.class.php");
to make it more setup friendly
Re: SA:MP Control Panel -
darkrider366 - 15.03.2009
Quote:
Originally Posted by JeNkStAX
Looks alright, You could of put all the php files into one file though instead of having a load of files, Also why
Код:
require_once("/var/www/samp/cpanel/maxProtector.class.php");
just put this lol
Код:
require_once("maxProtector.class.php");
|
testing.. it dont matter tho
Re: SA:MP Control Panel -
g@k - 15.03.2009
let's testing !!! i tell you if it work in few minutes
Re: SA:MP Control Panel -
CAMERON_BANFIELD - 16.03.2009
Quote:
Originally Posted by darkrider366
Windows:
not done yet
|
I cant wait till this version is finished!!! Thanks
Re: SA:MP Control Panel -
James_Alex - 17.03.2009
please an other mirror ?
Re: SA:MP Control Panel -
darkrider366 - 17.03.2009
Quote:
Originally Posted by James_Alex
please an other mirror ?
|
mirrors added!!
also
for secure files
use this on the gamemode, filterscripts, scriptfiles, server.cfg = permissions: write only
Re: SA:MP Control Panel -
darkrider366 - 17.03.2009
Quote:
Originally Posted by Westie
If they're write only, then how do you expect the files to be read by the server, because I presume that the server runs as www-data or the apache user, am I right?
|
i am just updating the cpanel so the server files go to a directory */home/daniel/samp/ * this way it is not accessable via http, only FTP
Re: SA:MP Control Panel -
Pzychy - 17.03.2009
Quote:
Originally Posted by Westie
And then how do you plan to actually start the server? If you have the www-data user starting the server and the home directory has been set properly (700 for ьber security) then www-data can't start the server.
|
I have this problem too
Re: SA:MP Control Panel -
darkrider366 - 17.03.2009
ok everyone keep ur tits on :P , just let me do update v1.5
Re: SA:MP Control Panel -
XeoN_13 - 17.03.2009
hey im new at this.. but i have a vps and what to install this cpanel.but how do i install.? i uploded the files you said and put them on the vps its linux. but should i open note pad or something? and use the code u mention for install?
got it installed
, but hey u should make a back button... so when im done with cfg i can go back to main cpanel index cuz its a pain having to type whole cpanel site all over again
( just an opinion)
btw, sorry for my bad english
Re: SA:MP Control Panel -
darkrider366 - 19.03.2009
Quote:
Originally Posted by XeoN_13
hey im new at this.. but i have a vps and what to install this cpanel.but how do i install.? i uploded the files you said and put them on the vps its linux. but should i open note pad or something? and use the code u mention for install?
got it installed , but hey u should make a back button... so when im done with cfg i can go back to main cpanel index cuz its a pain having to type whole cpanel site all over again ( just an opinion)
btw, sorry for my bad english
|
ok u need a button
@westie: i will root the samp files to a user name, then use the shell_exec cd /home/user/samp/ then go on from there, it works fine for me...
Re: SA:MP Control Panel -
gta24.net - 19.03.2009
Should edit it even more so it can be used for a hosting company.
Other than that nice.
- Connor/Gta24
Re: SA:MP Control Panel -
darkrider366 - 20.03.2009
Quote:
Originally Posted by gta24.net
Should edit it even more so it can be used for a hosting company.
Other than that nice.
- Connor/Gta24
|
have u got any good ideas for the cpanel ??
Re: SA:MP Control Panel -
DMSOrg - 20.03.2009
Can't wait for windows to be released