|
CSP Panel - Official Topic
|
|
Topic Started: Apr 4 2010, 01:13 PM (3,352 Views)
|
|
darkSymphonie
|
Apr 4 2010, 01:13 PM
Post #1
|
- Posts:
- 859
- Group:
- Members
- Member
- #25
- Joined:
- June 20, 2008
|
So, as you know, Dualfever stopped working on CSP Panel, which is a CMS-like control panel for using your own server with web administration. Thanks to Xiphirx, when Dualfever got his webhosting account closed without notice, he had a backup (old, but better than nothing!) I will be taking the lead and I'll try to keep it updated.
CURRENT VERSION: 1.2
There's no readme in this file Package download : http://ifile.it/kezfwvh
Guide (thanks Xiphirx):
Spoiler: click to toggle Things you need: * The package (download it from this thread) -includes a default CSPSPServer.exe with maps and all * A Windows operating system <- Sorry, no support for MacOS or *unix systems * A web server that supports PHP and MySQL <- I recommend using XAMPP Extract the file to your http server directory. Inside the package you just downloaded, there is an "config.php" "index.php", is, as usual, the index page of CSPP. "cpanel.php", it's the CSPPanel with the commands and all You must open MySQL (phpMyAdmin with XAMPP, http://localhost/phpmyadmin/), create a new database named csp (technically, you can name it whatever you want, but you'll need to apply to changes to the configuration in config.php). Now, execute this query in the database we just created: Spoiler: click to toggle /* MySQL Database for CSP Database Name: csp Date: 03/03/2010 18:21:24 :: You need to execute this file on your CSP database :: */
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for accounts -- ---------------------------- CREATE TABLE `accounts` ( `username` varchar(255) NOT NULL, `password` text NOT NULL, `email` text NOT NULL, `name` text NOT NULL,
PRIMARY KEY (`username`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Here, you will add as many accounts as you want for as many servers you are going to host. For the rest of the instructions, I am going to create a test user: Username: default Password: c21f969b5f03d33d43e04f8f136e7682 (when you put the password in, make sure it is the MD5 HASH of it, in this example, I would entered 'default' (without the quotes in here: http://www.miraclesalad.com/webtools/md5.php, which resulted in the hash c21f969b5f03d33d43e04f8f136e7682) Email: mikehockislarge@yahoo.com Name: Default Now, to supply a server to this person, you need to create a folder where index.php is located, with their username as the folder name, and copy the normal CSPSPServer contents to that folder with an addition of a new text file called port_for_web.txt that you will put in the data folder, and another one named server.txt that stays in the user's folder. Also, rename CSPSPServer.exe to [username].exe. We use default as example, so we named it default.exe. So the directory tree would like look: \ default\ -----default.exe -----default.lnk <- IT'S A 'L' , NOT AN 'I' -----server.txt -----data\ ----------guns.txt ----------mapcycle.txt ----------config.txt ----------port_for_web.txt -----maps\ ----------{maps here} index.php ServRestarter.exe restartlist.txt etc, etc. That is how the new folder named default (in this case) should be structured. Important note, port_for_web contains the port you would like that server to use, so change it AND config.txt's accordingly. After you created the folder with everything inside, you'll need to create a .lnk file in the same directory also named by the username, in our case, default. To create a lnk file, just right click -> Create Shortcut . In it, we should write, in our example, the name of the person we want to add, so 'default'. Now browse to the directory where is located your [username].exe file (CSPSPServer.exe). NOTE: After that, I right clicked my shortcut and changed the properties so it would minimize by itself when started/stopped. This will be used by the PHP script to start/stop/restart the server. You now need to change the configs in the config.php file to tell the script to open your database. Look at all the parameters, they are explained.. Now try it out by pointing your browser to your http server ( http://localhost/[csppdirectory]) If you followed the guide with the default username, try Username: default / Password: default === FAQ ===
Spoiler: click to toggle Q: How do I install a webserver? A: I can't anwser this.. If you're going to host a CSPP, you should already know. Try looking on http://www.apachefriends.org/en/xampp.htmlQ: I installed a webserver, but can't access it! A: Make sure it is running. If your using Xampp, open up the control panel and Start Apache Q: What's the MySQL username/password? A: By default, the username is usually 'root' (without quotes) and the password is blank, meaning there's no password. It is recommended to set up a password, but I will not cover it in this guide. Q: I get a database error when trying to login! A: Make sure you changed the configuration in config.php accordingly to your infos (username, password, database). Q: Why do I get a 'That user does not exist in our database.' error? A: At least it means you can connect to the database. The error is because you entered a wrong username. Make sure you spelled it correctly. Q: Wrong password error? Why? A: Make sure you entered it correcly. Also, the PHP script checks if what you entered matches the MD5 hash in the database. Check if the password in the database is a MD5 hash.
Update 1.2 :
- Quote:
-
* Changed alot of the original PHP coding - New config.php file; for server host, MySQL username, MySQL password, database name, and for some CSPP host personal details (host name that shows in Login page and title) - New index.php with only what's suppose to be in that page; - cpanel.php, which includes the commands of the CSP Panel, but in another page so it's easier to edit and all;
* Other changes - Changed the way the script checked if the server was online (was not working due to port masking/firewall); - Changed the way the script restarted the servers;
Todos:
- Quote:
-
- Presentation page (like an index.php for presenting what's CSPP, contact to have a CSPP, etc) - CMS for admins (look at all server logfiles, add users, delete users, etc.) - More options and neater layout - ... More I can't think of
|
|
| |
|
mrgnome
|
Apr 4 2010, 02:27 PM
Post #2
|
- Posts:
- 880
- Group:
- Members
- Member
- #589
- Joined:
- May 23, 2009
- CSPSP username
- mrgnome
|
I guess im first person to try this out. Ill tell you what happens. I can probably help you update it once i get it to work.
|

|
| |
|
Xiphirx
|
Apr 4 2010, 02:38 PM
Post #3
|
- Posts:
- 3,013
- Group:
- Global Moderator
- Member
- #64
- Joined:
- July 14, 2008
- CSPSP username
- [ARSE]Xiphirx
|
Much better guide than mine D:
|
ARSE | For The Swarm ᶘ ᵒᴥᵒᶅoo( ♪♫ )
|
| |
|
mrgnome
|
Apr 4 2010, 02:47 PM
Post #4
|
- Posts:
- 880
- Group:
- Members
- Member
- #589
- Joined:
- May 23, 2009
- CSPSP username
- mrgnome
|
ill say. it actually works to. Ok now all i need to do is set my ip so ppl can join.
GJ! Dark. Congrats.
server restarted works and everything.
|

|
| |
|
mrgnome
|
Apr 4 2010, 03:04 PM
Post #5
|
- Posts:
- 880
- Group:
- Members
- Member
- #589
- Joined:
- May 23, 2009
- CSPSP username
- mrgnome
|
try this out.
GNOME CSPP
|

|
| |
|
Sniperz227
|
Apr 4 2010, 04:41 PM
Post #6
|
- Posts:
- 157
- Group:
- Members
- Member
- #884
- Joined:
- December 20, 2009
|
wont let ,me sign in it says my username doesnt exist???
|
|HG| Map Maker |HG| Soldier |HG| Co-Leader
|
| |
|
mrgnome
|
Apr 4 2010, 04:46 PM
Post #7
|
- Posts:
- 880
- Group:
- Members
- Member
- #589
- Joined:
- May 23, 2009
- CSPSP username
- mrgnome
|
- Sniperz227
- Apr 4 2010, 12:41 PM
wont let ,me sign in it says my username doesnt exist???
Its not meant for you.
|

|
| |
|
Sniperz227
|
Apr 4 2010, 05:39 PM
Post #8
|
- Posts:
- 157
- Group:
- Members
- Member
- #884
- Joined:
- December 20, 2009
|
i see
|
|HG| Map Maker |HG| Soldier |HG| Co-Leader
|
| |
|
Joekinglord
|
Apr 4 2010, 06:51 PM
Post #9
|
- Posts:
- 718
- Group:
- Members
- Member
- #398
- Joined:
- January 25, 2009
- CSPSP username
- JkZ~Joekinglord
|
larl. And Vannnnnnesssaaa. Work on that Mac OSX port of ServRestart.exe first please :3
|
~JkZ~ Leader, once again we are back.


- nataku92
- Jan 24 2010, 11:49 PM
Also, for everyone else, I know it's been a long time since the last release, but I'm definitely still working on a new one.
- russilker
- Apr 24 2010, 12:22 PM
Typical frenchman underestimating the power of America's foreign workforce.
|
| |
|
Xiphirx
|
Apr 4 2010, 07:05 PM
Post #10
|
- Posts:
- 3,013
- Group:
- Global Moderator
- Member
- #64
- Joined:
- July 14, 2008
- CSPSP username
- [ARSE]Xiphirx
|
- Joekinglord
- Apr 4 2010, 02:51 PM
larl. And Vannnnnnesssaaa. Work on that Mac OSX port of ServRestart.exe first please :3
Macs fail.
|
ARSE | For The Swarm ᶘ ᵒᴥᵒᶅoo( ♪♫ )
|
| |
|
Joekinglord
|
Apr 4 2010, 07:12 PM
Post #11
|
- Posts:
- 718
- Group:
- Members
- Member
- #398
- Joined:
- January 25, 2009
- CSPSP username
- JkZ~Joekinglord
|
Uhm no. Windows fail, my computer broke and it had windows on it. Prolly haks fault tho.
|
~JkZ~ Leader, once again we are back.


- nataku92
- Jan 24 2010, 11:49 PM
Also, for everyone else, I know it's been a long time since the last release, but I'm definitely still working on a new one.
- russilker
- Apr 24 2010, 12:22 PM
Typical frenchman underestimating the power of America's foreign workforce.
|
| |
|
Xiphirx
|
Apr 4 2010, 07:21 PM
Post #12
|
- Posts:
- 3,013
- Group:
- Global Moderator
- Member
- #64
- Joined:
- July 14, 2008
- CSPSP username
- [ARSE]Xiphirx
|
- Joekinglord
- Apr 4 2010, 03:12 PM
Uhm no. Windows fail, my computer broke and it had windows on it. Prolly haks fault tho.
conclusion: hak fails
|
ARSE | For The Swarm ᶘ ᵒᴥᵒᶅoo( ♪♫ )
|
| |
|
Spartan
|
Apr 4 2010, 08:06 PM
Post #13
|
- Posts:
- 2,235
- Group:
- Global Moderator
- Member
- #179
- Joined:
- August 22, 2008
- CSPSP username
- Spartan
|
- Joekinglord
- Apr 4 2010, 03:12 PM
Uhm no. Windows fail, my computer broke and it had windows on it. Prolly haks fault tho.
conclusion: downloading porn and being an idiot about what you download on the internet fails.
|


- FFFJAKER
-
Greetings to You Are necessary the Server for your clan I can to start it at itself on the computer for your game
|
| |
|
Doublehawk
|
Apr 4 2010, 09:09 PM
Post #14
|
- Posts:
- 1,659
- Group:
- Members
- Member
- #51
- Joined:
- July 8, 2008
|
- Spartan
- Apr 4 2010, 07:06 PM
conclusion: downloading porn and being an idiot about what you download on the internet fails.
conclusion: porn is worth the risk
|
|
My signature? Tis a silly thing to read.
|
| |
|
mrgnome
|
Apr 4 2010, 09:14 PM
Post #15
|
- Posts:
- 880
- Group:
- Members
- Member
- #589
- Joined:
- May 23, 2009
- CSPSP username
- mrgnome
|
Minor style.css update.
Spoiler: click to toggle html{ height:100%; margin:0; text-align:center; }
body{ height:100%; margin-top:5px; margin-left:auto; margin-right:auto; background-color:#90becc; background-repeat:repeat-x; font-family:"Lucida Sans", Tahoma, "Trebuchet MS", Verdana; text-align:center; }
h1{ margin-top:20px; margin-left:5px; text-align:center; font-size:24px; color:#3A99FF; }
ul{ margin: 0; padding: 0; list-style-type: none; }
.container{ margin-top:0; text-align:left; margin-left:auto; margin-right:auto; height:100%; width:500px; background-position:bottom; background-repeat:no-repeat; margin-bottom:0; text-align:center; }
a{ position:relative; text-align:left; font-size:12px; color:#fff; text-decoration:none; } a:hover{ text-align:left; color:#fff; text-decoration:underline; } a:visited{ text-align:left; color:#fff; }
|

|
| |