PDA

View Full Version : L2 Admin Script Manager


Drag
11.11.2006, 08:30
Since Hel created L2 Admin i decided to make something easier to use... You can add/remove scripts in admin folder (will be added to menu by itself too).
Dont remove files started by 'x_'.

This time script is protected by 2 passwords (good for users with dynamic IP like me)... It might be brute-forced too so keep script address only for staff (add img code to repeat by your own if need... or i will do it later xD)

You can also copy&paste function from Hel's L2 Admin and make to it form - very easy to do :) just check functions which are ready in admin folder.

Test it please :) Im still learning PHP so all annoying comments are welcome :P

Later I will add more scripts... Best regards.

ps. Dont forget to modify config.php
ps2. Thanks to all people which are listed on first page on script :P

// EDIT //

Here we go... Just cuz i was bored...
http://l2epi.com/l2admin.jpg

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
l2admin.rar — 28619 байт

Xoleum
11.11.2006, 16:08
I'm pretty much a n00b to php and stuff but i'll see if i can port the functions from hel script to this one. =)

hel
11.11.2006, 16:26
Seems very interest. :)
Design is more better, than my. :D
Thanks.
Don't think, if it's easiest script. :\

kepler001
11.11.2006, 17:06
very interest job man

Drag
11.11.2006, 20:03
hel... its easier to manage scripts... just work at form, function and paste file.

AHTUKULLEP
11.11.2006, 20:05
xm, cool tnx, but the dont work, only start page, no scripts. WHO??

twzenit
14.11.2006, 22:43
It shows only a white page...

Drag
15.11.2006, 15:17
It works. I use it. So You did something wrong.

empathon
15.11.2006, 20:02
gratz Drag :) gj

Ranma12
16.11.2006, 04:35
It shows only a white page...

Change first line <? to <?php in all php files. At least here is it working now ;) At least main page, not functions :(

Drag
16.11.2006, 05:42
Maybe u dont have globals enabled... For me it works perfect :]

mcrabben7
16.11.2006, 05:43
<?php is for PHP 4 and before, if I remember properly. <? should work fine on all newer versions.

I guess <?php is better coding style, but it should still work on PHP 5 afaik.

Charis
16.11.2006, 08:09
Some one knows what means error 029 from Cashed when moving char?

Thanks.

KDG
17.11.2006, 10:46
thnx alot.

Kenjiro
17.11.2006, 12:49
<?php is for PHP 4 and before, if I remember properly. <? should work fine on all newer versions.

I guess <?php is better coding style, but it should still work on PHP 5 afaik.

From php.ini:
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On

Code <?php is only 100% working with PHP (from version 3).

Drag
17.11.2006, 13:07
well... i have php 4 and works...

DevilsAssociate
05.12.2006, 02:23
i got easyphp 1.8
== EasyPHP 1.8
== www.easyphp.org
== apache 1.3.33 - php 4.3.10 - mysql 4.1.9 - phpmyadmin 2.6.1

and when i click the lick to the function at the bottom nothing happens.
does it not work with easyphp?

RumanticK
05.12.2006, 05:48
Is there any cashed-packet for changing the nickname? Seems to be not convinient changing it via DB... :(

Trying to complete your work. Nice idea =)

Kenjiro
05.12.2006, 09:32
function l2_modcharpledge ( $char_id, $new_title ) {
// 17 - ModCharPledge, char_id, new_title
$cached_op = pack ( "cV", 17, $char_id );
$cached_op .= ansi2unicode ( $new_title );
$cached_op .= ansi2unicode ( "webadmin" );
$ret_string = l2_cached_push ( pack ( "s", strlen ( $cached_op ) + 2 ) . $cached_op );
return ( $ret_string );
}

RumanticK
05.12.2006, 09:41
Where are you getting that packages? =)

Kenjiro
05.12.2006, 11:05
From this thread: https://postpacific.mmorpg-game.online/forums/showthread.php?p=64631#post64631
Kudos to KciNicK for this ^^.

SkyFabrik
16.12.2006, 12:55
:thumbleft: good and perfect working job. Dont stop !

Drag
16.12.2006, 19:28
updated ;)

demon
16.12.2006, 20:52
Change first line <? to <?php in all php files. At least here is it working now ;) At least main page, not functions :(

zzz

open php.ini and
short_open_tag = Off
make that shit ON..noobs

koala
17.12.2006, 05:21
It seems to be a very nice script, but I still cant use it, Im having some problems to connect to cached... its not connecting =/

I tryed port 2012 (as you set)
tryed 2006 (used by l2server)

none worked

I'm using php4 over IIS (win 2003)


and a little Suggestion:
its better to use isset($_POST['name']) than $_POST['name']<>''

you r using $_POST['name']<>'' and it gives Warnings

obs2: added $notconnected = 'Cant connect to cached.'; on config.php (used by hel function)

Drag
17.12.2006, 06:51
and a little Suggestion:
its better to use isset($_POST['name']) than $_POST['name']<>''

you r using $_POST['name']<>'' and it gives Warnings

I missed it... Thats because Im still learning :) thanks, will be changed.

Actually it can be just if($_POST['name'])...

koala
17.12.2006, 15:05
Do you know why i cant connect to cached?

Anyone tested it over IIS?

Drag
17.12.2006, 16:13
Never used IIS....

koala
17.12.2006, 23:49
Instaled apache 2,
kick are working fine now, but aways i try to give or delete a iten from a char i got error

Drag
18.12.2006, 00:35
maybe sleep ?