![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
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');
}
}
?>
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> 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>
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. Открыть источник. |
|
|