KCP : A RO server control panel
** For discussion about the CP, please go to this link here: http://www.eathena.ws/board/index.php?showtopic=205355
A little intro
Well, I’ve been a member here since 2005. I’ve been using eathena for quite a while, used a few scripts released here, clients, graphics and such. So I think it’s time I give something back to the community. And as a PHP developer and an ex-graphics designer, I’ve decided to make a control panel for RO
The aim of this project is to produce a feature-rich, fully functional control panel that looks good enough to be used as main web page (for those server owners who just can’t be bothered
)
Also, the CP will be developed using object oriented style (for maintainability etc), this will help me develop my skills as a PHP developer. So you guys get a CP, I improved my skill. Everyone happy. YAY! :0
Now, I’m not saying that my CP will be the best, nor am I trying to compete with other CP in any way. I’m just giving the community an alternative
** This project is also used as part of the research for my dissertation. ~powered by Zend Framework!
Downloads:
There are 3 part of the download. The first is the main application: KCP 0.1
**For those who use MD5 passwords on their server, please also download this patch, and replace the files in the corresponding folders: KCP 0.1 MD5 patch
Part 2 is the Zend Framework. Download the Minimal package from here: Zend Framework
Part 3 is optional. If you would like to display item icon/pictures in the donation page etc. You will need to download this package: Item icons and images
Or you could download this package and upload only the images that you will use (recommended if you don’t have a lot of space)
Installation:
Inside the KCP-01.zip, there are 4 folders. application and library are to be placed 1 level ABOVE your public folder (your “public” folder can sometimes be called public_html, public_www, www or similar, depending on your host. It is the where your domain name points to). The content inside the public folder are to be placed in the “public” folder on your host.
So the folder structure should be something like this (assuming that your public folder is called public_html):
/root
|-application
|-library
`-public_html
|-css
|-img
|-.htaccess
|-charimg.php
|-favicon.ico
|-index.php
`-j.js
when you have finished downloading Zend Framework Minimal package (around 5MB), extract Zend folder from:
ZendFramwork-1.10.5-minimal/library
This folder need to be uploaded to the library folder on your host (which is located 1 level above public folder)
*the Zend folder is about 25MB when extract, so it will be faster if you extract it, rezip it and upload to your host. You can then upzip it on your host (if your host allows it)
your folder structure would look like this:
/root
|-application
|-library
| `-Zend
`-public_html
|-css
|-img
|-.htaccess
|-charimg.php
|-favicon.ico
|-index.php
`-j.js
Lastly, if you chose to download the items icons and pictures, upload item.zip to public/img (and extract on your host). Your folder structure will now look like this:
/root
|-application
|-library
| `-Zend
`-public_html
|-css
|-img
| `-item
| |-Collection
| `-Icons
|-.htaccess
|-charimg.php
|-favicon.ico
|-index.php
`-j.js
Next~ You need to setup the MySQL tables. You Must already have setup your MySQL database for your RO server AND have imported the item_db table (the file is available in sql-files folder included with the server svn download)
In KCP-01.zip, inside the sql folder is a sql file that you need to import (This file is about 1MB big as it includes descriptions for every items), which will create 8 tables
After the table setup is done, you need to configure the application itself. To do this you have to edit 2 files, application.ini and config.ini. Both can be found in application/congif folder (located 1 level above public folder)
In application.ini file, you need to change:
resources.db.params.host (if not localhost)
resources.db.params.username
resources.db.params.password
resources.db.params.dbname
phpSettings.date.timezone too if you like
In config.ini file, you need to change everything. All of them are self-explanatory. Ones that aren’t so obvious are donation.rate (amount of donation points given per 1 unit of real money, like $1), donation.term (is what you call your donation points)
vote.links (number of vote banners that you want to display on the vote page. Make sure that are equal number of vote link/image, for example, if your vote.links = 1, then you need to define vote.link1 and vote.img1. If your vote.link = 2. Then you need vote.link1, vote.img1, vote.link2 and vote.img2)
Vote.ppl is the amount points given per vote.
This should work~ I have tried installing a fresh copy of the CP as I have written here, and everything works, so you shouldn’t have any problem
Credits:
Thanks to shidobu, racionais and Fortran, who tested the CP extensively ![]()
Thanks to other people who helped tested the CP (but didn’t mention it in my thread ^^;)
Thanks to Developers at Zend for great framework
<3

