PDA

View Full Version : [SHARE] L2Admin2, full remake


hel
29.01.2008, 22:00
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:

<?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:

<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:

<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. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

emanuel
29.01.2008, 22:00
Thx hel nice work.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

Bloodust
29.01.2008, 22:00
Thank you. Looks like the file is release candidate 1 (RC1). Is there some features in new versions that will blow our minds or do you have any intentions to continue this project ?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

DarkAngelGR
29.01.2008, 22:00
Nice word. Tnx for the share Wink

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

MyLover
29.01.2008, 22:00
First thanks for the post,

Second, I am with the following error when I go to any function of l2admin


Parse error: syntax error, unexpected T_STRING in C: \ xampp \ htdocs \ Lineage2 \ includes \ mssql.class.php on line 15


Help ! Smile

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

Bloodust
29.01.2008, 22:00
MyLover could you shrink your signature picture its WAYYY too BIG thx

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

FBIagent
29.01.2008, 22:00
Quote:


Originally Posted by MyLover
View Post (https://postpacific.mmorpg-game.online/showpost.php?p=1002924)

Parse error: syntax error, unexpected T_STRING in C: \ xampp \ htdocs \ Lineage2 \ includes \ mssql.class.php on line 15

Look at this:

Code:

exit('Can't connect to MSSQL.');

i think should be

Code:

exit('Can\'t connect to MSSQL.');

Also look at line 26 and 42.

Best wishes

FBIagent

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

hel
29.01.2008, 22:00
FBIagent,

Will be fixed in next versions.


Bloodust,

Yeah, I will continue.

Quote:



I will support this project for some time.


In next versions I will add some interactivity. maybe autofill fields. Grouped functions. But everyone can start contributing now.


I want a solution to make AddItem2 (Give item) function work, or it's working?


And I want a new color scheme. Someone, use style.css to make design more better and share it. I'm not a designer.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

gggame
29.01.2008, 22:00
Thx hel nice work. good

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).

Fot@r@s
29.01.2008, 22:00
Nice work! And great source to learn.


Gratz

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 January 2008. Открыть источник (https://web.archive.org/web/20080319020425id_/http://www.postpacific.com:80/forums/showthread.php?t=10120&highlight=l2-admin).