Skip to content
mission edited this page Sep 26, 2010 · 11 revisions

Welcome to the Urt-Admin-Web-Interface wiki!

The Urt-Admin-Web-Interface is aimed at giving the everyone the ability to have there own web interface for administrating UrbanTerror servers.

Requires a mysql database to install

Features a module based design, most modules are able to be used over and over. It comes with ts3 server viewer and a Urt Server viewer modules. The ts3 serverviewer pulls data from the database and displays it. The data is grabbed by the updatets3.php script located in the scripts folder. The updatets3.php script checks the database for ts3 modules and then gets a status for all of them, and puts them into the database, the ts3.php module then pulls that data from the database on page load, allowing for minimal page load time.

The Urt Server viewer module works in a very similar way to reduce page load time.

The getPlayer.php script cycles through all the servers in the database that have status set to Online and does a status, then does a dump user on all of the players to get the guids of each player then inputs them into the database. You then can search the database by name, ip, guid using the player search form.

Adding Users: First user will need to be added using /admin/add.php, after that you need to rename/delete add.php, then you can just use /admin/ and your new login u created earlier to add/edit/delete users after that. Admin setting tells the site if the user is allowed to use the backend interface. just goto /admin/ you can add users using the user manager.

Editing Users: just use the User Manager located in the backend area: /admin/

Deleting Users: same as above, but press delete instead of edit :)

Adding Servers: Use the Server Manager located in the backend area: /admin/

Adding Modules: to add a module, just add the module to the modules folder. next, add an entry in the modules table, file would of course be the file name with extension, requiredarg1-3 are used for if the modules inner function needs arguments passed to it, pos is the position you want it to be located. the values that you can put here are: news, reg, admin, left, body, user1, user2, user3, and footer. The rest of the fields are self explanatory.

Making a module: create a file in the file create a function with the same name as the file but without the file extension. put whatever you want into the function do the steps for adding modules

Making New Styles(also known as themes): make a copy of the Default folder located in the templates folder. Name this folder whatever you want. Now edit/add images, edit the style.css file. Next open the themes.php module and find this line: echo "<option value='templates/default/style.css'>Default</option>"; add after it: echo "<option value='templates/<your styles folder name>/style.css'><name for your style></option>"; replace and with actual values. save! if you havent already, you need to upload the files to the templates folder. Done! To see your new style, refresh the page and select the new style from the themes selector.

TODO: Backend admin interface for adding/deleting/modifying menu items, modules, and styles

Clone this wiki locally