Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 29.01.2008, 22:00   #1
hel
Guest
 
Posts: n/a
Default [SHARE] L2Admin2, full remake

L2Admin2, Lineage2 administration tool, remake.

This administration tool was written using adriahu "Advanced cached php class" (GPL license).


Changelog


RC2 changelog:
Added 2 language files English and Russian, it is possible to translate to any language you want even to Chinese. (but don't forget about converting file to UTF-8 using notepad)

Improved template engine, soon I will post how to use it, it's very easy. (thanks to Forcer for help)

"Move char to account" function now gets only "char name" and "account name", "account id" will be retrieved from DB.

I need contributors who can make template operators parser. (IF, WHILE and so on)


What my L2Admin supports:
UTF-8 encoding.

AJAX implementation.

Template system, HTML with CSS.

Basicaly all the cached packets.

Have very easy code which support implementing new pages.

Have 9 working functions listed below.

Check if char is online

Change player name

Give item (need test, or working solution)

Delete item

Change player

Move char to another account

Block chat

Change player stats

Set player stats

Quick announce (supports many languages)


How to install:
Upload archive to your web-server with php5 (with mbstring and mssql support).

Edit includes/config.php, fill mssql and cached connection details, also set admin password.

Try to enter admin page, you will see authorization dialog, enter a password and enter.

You will see admin menu, thats all, you may start using functions.


How to add your own admin page:

1. For an example, create file named page_test.class.php in includes/pages/.

2. Open it and write it into:

Code:

Code:
<?php
class Page_Test implements IPage{
	function process(){
		return file_get_contents('templates/default/a_test.tpl');
	}
}
?>
3. Create file a_test.tpl in templates/Default/.

4. Open it and write:

Code:

Code:
<table align='center' border='1' style='width:350px;margin:10px;border-style:dashed;'>
	<tr>
		<td align='left' valign='center' style='padding:10px;'>
			<big class='MainPageCaption'>Test.</big><br>
			<big class='MainPageText'>This is a test page.</big><br>
		</td>
	</tr>
</table>
5. Open menu.tpl and add new link to page (page and Ajax argument must be a part of text after page_ in page filename, in this example it's page_test.class.php):

Code:

Code:
<tr>
	<td class='menuItem' onmouseover='HLMenu(this,1)' onmouseout='HLMenu(this,0)'>
		<a class='MenuUrls' href='index.php?page=test' onclick='Ajax("test");return false;'>
			<big class='MenuBullet'>•</big> Test
		</a>
	</td>
</tr>
Attach contains Russian and English version.


I will support this project for some time.


And big thanks to user Dekabrist, his testing helps this project grow up.


Regards, hel.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник.
 
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 23:36.