[Tool/Web/Other] [PHP] Tion's Godfather UCP v2.0
#1

Hey everyone,

loooooong time ago I released a godfather UCP in this forum. The code I used is pretty... ugly.
Today I'm releasing a new controlpanel - this time with pretty code and an ugly design.

Features:
- Login / Logout
- Supports FTP and SFTP (for a secured connection between ucp and gameserver)
- Online account managment; pay money from hand to account, from account to hand or transfer to your friends
- change your password

Installation:
Installation is kinda easy.
First download the german version here and unzip it. Then download the english-patch (zip in attachment) and replace the files. Now setup config.
conf/setup.php translated in (bad) english:
PHP Code:
<?php
/* Diese Datei ist Teil des Tionsys.de-Projektes
** (Some copyright text having informations about how to license this)
*/
    /*
    ** Connection
    ** "ftp" or "sftp"
    */
    
define('CONNECTION''ftp');
    
    
/*
    ** Connection
    ** Should be obvious
    */ 
    
define('CONNECTION_HOST''tionsys.de');
    
define('CONNECTION_USER''tion');
    
define('CONNECTION_PASS''xxx');
    
define('CONNECTION_DIR''./tmp/scriptfiles');
    
    
/*
    ** Root-dir of this ucp
    ** Doesn't need to be changed. Just leave it as it is.
    */
    
define('ROOT_DIR''.');
    
    
/*
    ** Cache-Time
    ** Higher = better performance, but maybe deprecated data. "0" for live updates.
    */
    
define('LOCAL_CACHE'5); 
    
    
/*
    ** Line-Breaks?
    ** Can be "\r\n" or only "\n". Just check out in your script.
    */
    
define('LINE_BREAK'"\n");
    
    
/*
    ** "Title"
    ** Will be shown as title
    */
    
define('BASE_NAME''Basic SA:MP Roleplay v0.1a');
    
    
/*
    ** Teamspeak 3
    ** If there is none, just make this as comment (by adding "//" in front of the line)
    */
    
define('TEAMSPEAK3''racitac.de:9987');
    
    
/*
    ** Forum
    ** If there is none, just make this as comment (by adding "//" in front of the line)
    */
    
define('FORUM''http://tionsys.de/');
    
    
/*
    ** Secret
    ** Change it. Don't tell anyone. It's the biggest secret of life.
    */
    
define('SECRET''dhcfgbyjshfgcbukhsfgcbhfdghyfhyuhgfkhgvdfyf');
    
    
/*
    ** Debug-Mode
    ** Force re-compiling of templates.
    */
    //define('DEBUG_MODE', true);
?>
Should be self explained.

Screenshots
Login (1080x1900px)
Index page (1080x1900px)
Account page (1080x1900px)
Transfer (1080x1900px)
Settings (1080x1900px)

Translating / Changing design / ...
To change the ucp you don't need to know how to write php code. In /pages/templates is everything you can change to customize the layout, change the texts and so on.
You can change everything you want - even the (ugly) design. But the "Copyright by tionsys.de and racitac.de" needs to be visible somewhere on the page

Third party software
This is using my framework and the phpseclib (MIT license).
I found a zip containing skins, no idea, who the author is. If you know, let me know

License
The main points are:
- Open Source
- Modify it!
- Share it!
- Use it!
- Mirror it! (send me link, I'll add)
- Leave the copyright!
- Don't sell it!
Questions about some points? Ask :P

Feedback
Please write your opinion. Even if you find this bad, write why, so I can change some things and make it (hopefully) better.

Support
You can ask questions here. If I don't respond (for example, because I forgot about this thread) you can add me on Skype. Please write why you are adding me. My id is als_tion.

Also seen on...
This ucp is also aviable on....
sa-mp.de (German!)

Sorry for bad english.
Reply
#2

Linux or Windows ?
Reply
#3

Quote:
Originally Posted by Skoo
View Post
Linux or Windows ?
It's a usercontrolpanel. It needs a webserver aviable on both; linux and windows.

In order to work proper you need a godfather working with ini like files (but that's default in GF).
Reply
#4

Ok thank you.

+1
Reply
#5

good +rep
Reply
#6

Thanks for the +rep - even if I don't know what that is :P
Reply
#7

Gamemode link?
Reply
#8

this code looks awful :\
Reply
#9

Quote:
Originally Posted by DemME
View Post
Gamemode link?
Should work with every Godfather-Gamemode aviable

Quote:
Originally Posted by CoaPsyFactor
View Post
this code looks awful :\
It's build OOP and has a build-in template engine. Of course it looks awful, but it does everything as fast as possible and makes it easy to translate in other languages
And my framework was not designed to work with files, so I had to overwrite some parts :P
Reply
#10

I have this error:

Code:
Exception ErrorException

An exception occured while trying to build the page you requested. Details listed below:

File: /home/fgrp/public_html/ucp/modules/connect_ftp/AccountDetails.class.php
Line: 15
Code: 0
Message: ftp_chdir(): Failed to change directory.
Stacktrace:
#0 [internal function]: ExceptionHandler::onError(2, 'ftp_chdir(): Fa...', '/home/fgrp/publ...', 15, Array)
#1 /home/fgrp/public_html/ucp/modules/connect_ftp/AccountDetails.class.php(15): ftp_chdir(Resource id #10, './tmp/scriptfil...')
#2 /home/fgrp/public_html/ucp/modules/connect_ftp/AccountDetails.class.php(24): AccountDetails::init()
#3 /home/fgrp/public_html/ucp/pages/LoginPage.class.php(22): AccountDetails::getUser('Snich_Falcone')
#4 /home/fgrp/public_html/ucp/modules/templates/PluginPage.class.php(35): LoginPage->onRequest()
#5 /home/fgrp/public_html/ucp/index.php(42): PluginPage->display()
#6 {main}

Please try refreshing the page or, if that error repeats, report it to an admin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)