SA-MP Forums Archive
[Tool/Web/Other] [PHP] Grex's Control Panel - English Edition - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] [PHP] Grex's Control Panel - English Edition (/showthread.php?tid=159595)

Pages: 1 2


[PHP] Grex's Control Panel - English Edition - Grex - 13.07.2010

Hi there,

I have made a control panel, it connects via SSH to your server and you can start/stop/restart it. You can use the "Web-FTP", in fact, it is SFTP, and it is limited!, so you cannot go to other folders illegally by typing .. at the path.
It is only for Linux, it was tested on Linux Debian 5.0 64 Bit and Linux Ubuntu 10.04 Lucid 64 Bit.

Screenshots:
http://gta-sa.eu/index.php?page=screenshots

Installation:
You must install the Lib for ssh2 (php5 extension), if it is ready, search for "ssh2" at your phpinfo.php file.
If it isn't ready, then you must install it. Install it with "pecl install ssh2-0.11.0" on debian and on ubuntu with "apt-get install libssh2" or ssh2lib,... (don't work on debian!!!).
If you have installed it with pecl, than you must go to /etc/php5/apache2/ and open the php.ini, add following line at the end: "extension="ssh2.so".
Save it, and restart the apache2 with /etc/init.d/apache2 restart
Or you just find a webhoster, that have installed it.
You must change one configuration on your ssh on the destination server. Go to /etc/ssh/ and open the sshd_config, search for PasswordAuthentication and change no to yes.
Restart your ssh-server with /etc/init.d/ssh restart
Alternative, you can use the cp for german on my site, register your server, and you can administrate it.


Download the english version:
http://files.sa-rl.de/grex_control_p....0_english.rar

There will be no more support for english for this control panel at time, so you have to ask me in this forum, and not at gta-sa.eu
Thanks, and best greets from Austria,
Grex


Re: [PHP] Grex's Control Panel - English Edition - hab2ever - 13.07.2010

Wow, This is nice, Great job


Re: [PHP] Grex's Control Panel - English Edition - Aleluja - 13.07.2010

Quote:
Originally Posted by hab2ever
Посмотреть сообщение
Wow, This is nice, Great job
I agree with you


Respuesta: [PHP] Grex's Control Panel - English Edition - xenowort - 13.07.2010

good, congratulations a good script in php but in asp.net oh!


Re: [PHP] Grex's Control Panel - English Edition - Ernis456 - 14.07.2010

Can you say Login ar Password of the panel ?


Re: [PHP] Grex's Control Panel - English Edition - Grex - 14.07.2010

Quote:
Originally Posted by Ernis456
Посмотреть сообщение
Can you say Login ar Password of the panel ?
You must entry a Username and a vailid md5 hash for password in the database, you can Login with my demosite:
http://grex.sa-rl.de/english/
User: Demo
Password: demo


Re: [PHP] Grex's Control Panel - English Edition - Ernis456 - 14.07.2010

I need password of the downloaded CP and how can I set or change it ?


Re: [PHP] Grex's Control Panel - English Edition - Grex - 14.07.2010

You must make a database, use the mysql.sql, and fill in with mysql commands...

For instance:
Go into the folder, where the mysql.sql file is be placed
[SHELL]
mysql -u root -p
FILL IN THE ROOT PASSWORD ON MySQL
create database control_panel
use control_panel
source mysql.sql
insert into Users values('Grex','cdbb08d0bc8ea3b3a30e88c15970a1bd');
[SHELL OFF]

This was an example to add user Grex with password gregor (to get md5 search for md5 hash code generator at ******), I will write at evening a detailed tutorial for Users, who don't know about mysql.


Re: [PHP] Grex's Control Panel - English Edition - Ernis456 - 14.07.2010

Quote:
Originally Posted by Grex
Посмотреть сообщение
You must make a database, use the mysql.sql, and fill in with mysql commands...

For instance:
Go into the folder, where the mysql.sql file is be placed
[SHELL]
mysql -u root -p
FILL IN THE ROOT PASSWORD ON MySQL
create database control_panel
use control_panel
source mysql.sql
insert into Users values('Grex','cdbb08d0bc8ea3b3a30e88c15970a1bd');
[SHELL OFF]

This was an example to add user Grex with password gregor (to get md5 search for md5 hash code generator at ******), I will write at evening a detailed tutorial for Users, who don't know about mysql.
How can I do it using PhpMyAdmin ?


Re: [PHP] Grex's Control Panel - English Edition - Grex - 14.07.2010

Create a mysql database and import the mysql.sql file from the folder


Re: [PHP] Grex's Control Panel - English Edition - HydraX - 14.07.2010

When the password or username is incorrect, this comes up
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 6 in /var/www/grex/english/index.php on line 15


Re: [PHP] Grex's Control Panel - English Edition - Brian_Furious - 14.07.2010

Awesome i'll use it...thanks a lot


Re: [PHP] Grex's Control Panel - English Edition - Brian_Furious - 14.07.2010

What is "SSH Verbindung"?


Re: [PHP] Grex's Control Panel - English Edition - Grex - 14.07.2010

Quote:
Originally Posted by Brian_Furious
View Post
What is "SSH Verbindung"?
For Linux Root/vServer Systems only.


Re: [PHP] Grex's Control Panel - English Edition - Brian_Furious - 14.07.2010

Quote:
Originally Posted by Grex
View Post
For Linux Root/vServer Systems only.
so, it's only for linux the function?

And where can i modify the username and password for log in the control panel?


Re: [PHP] Grex's Control Panel - English Edition - Grex - 14.07.2010

Quote:
Originally Posted by Brian_Furious
View Post
so, it's only for linux the function?

And where can i modify the username and password for log in the control panel?
Right.
You can edit and add users at mysql.


Re: [PHP] Grex's Control Panel - English Edition - Brian_Furious - 15.07.2010

It's only for linux ? or can i use it for windows?


Re: [PHP] Grex's Control Panel - English Edition - Grex - 15.07.2010

Quote:
Originally Posted by Brian_Furious
View Post
It's only for linux ? or can i use it for windows?
Only for Linux.


Re: [PHP] Grex's Control Panel - English Edition - nielsbon1 - 15.07.2010

It's nice but it can be much more options like: donate functions / e-mail functions


Re: [PHP] Grex's Control Panel - English Edition - Grex - 15.07.2010

Quote:
Originally Posted by nielsbon1
View Post
It's nice but it can be much more options like: donate functions / e-mail functions
Sorry, what you mean?