PDA

View Full Version : Online PHP Map With Zoom and Security


rodier
15.09.2006, 10:17
I bet this is best map what you ever seen ;-) .. but its first version.

Created by our GameParkL2 webmaster Greenghost. [email protected]
(another my man created lovely petition server - aralyon .) )

http://l2.ratafak.net/php-map-with-zoom.zip

Its online map with:
- security feature, you can define which IP can access this map
- zoom feature, you can select zoom from 1x to 10x, so you can watch people more precisely :-) \
- you can click on any part of map and ..poof.. it zoom to that part ;)
- when you put mouse cursor on "box" you can see info about player..

mantrastic
15.09.2006, 12:02
nice :o, thanks alot =D

edit:rofl at that ip blocking idiot thing, hahaha =D

greenghost
15.09.2006, 16:30
download -> https://postpacific.loc-online.com/forums/attachment.php?attachmentid=610&d=1171413790

btw pls don't use that "gamepark" mail... use [email protected] instead

if you intend to use this map, send me a email or post here pls ;-) i just want to know how far does it get ;-)

tested in Mozilla Firefox, Opera, Internet Explorer 6.0

+ -> new
* -> fix
o -> update
x -> known bug


version 2.0
__________________________
* - few bugs fixed
o - HTML code optimized (CSS)
o - PHP and HTML code updates and cleanup
o - new layout!

version 1.5
__________________________
+ - new window with character information (if you click on color box (player) the infobox will stay visible, if you click second time, it will act like before)
o - bigger color boxes in zoom mode

version 1.4
__________________________
o - minor PHP and HTML code updates and cleanup
o - database configuration moved to config.php (thx Sakumi for suggestion)

version 1.3
__________________________
* - zooming fixed in Opera :-) (i am so stupid...)

version 1.2
__________________________
* - zooming didnt work because XHTML have another definition of scrollTop and scrollLeft value (in Opera still dont work)

version 1.1
__________________________
+ - 3rd classes
* - XHTML 1.0 valid code
x - zooming on position dont work in Opera browser :-(

version 1.0
__________________________
+ - first release

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
php-map-with-zoom.zip — 280101 байт

GMan
15.09.2006, 21:28
looks nice, Thank you

Sakumi
15.09.2006, 21:37
Very nice work ;)

Just a note, some people like to have the lin2world be named different. You may want to add this to the config's as well (mine is l2world ^^) - Was an easy fix for someone who knows php like me, but i'm more thinking of the poor guy who doesnt know php and has a diff lin2world database name ^^

One thing: when you zoon can you have it draw the player boxes bigger (ie 2x zoom, 2x bigger box)

Good work!

Edit: woot! 500 posts!

hel
15.09.2006, 23:08
greenghost:
Good job, Nice script.
Thank you. :)

greenghost
16.09.2006, 06:04
Very nice work ;)

Just a note, some people like to have the lin2world be named different. You may want to add this to the config's as well (mine is l2world ^^) - Was an easy fix for someone who knows php like me, but i'm more thinking of the poor guy who doesnt know php and has a diff lin2world database name ^^

One thing: when you zoon can you have it draw the player boxes bigger (ie 2x zoom, 2x bigger box)

Good work!

Edit: woot! 500 posts!

the small boxes are on purpose. if you have boxes bigger there is no need to zoom the map because you see the same :-) (just bigger pixels on Aden map)

Sakumi
16.09.2006, 08:21
the small boxes are on purpose. if you have boxes bigger there is no need to zoom the map because you see the same :-) (just bigger pixels on Aden map)

Some people use huge resolutions like me though, and the box is so ever small to mouse over ^^

Maybe I'm a freak but if its not 1600x1200 or above i don't touch it ^^

The reason I say this is first time i used it, i zoomed in so i could mouse over the player box better, and was left with the same little box >.> hehe

Thanks for responding anyways, I guess it's just me...

Good work none-the-less.

greenghost
19.09.2006, 21:16
new version has been uploaded :-)

https://postpacific.loc-online.com/forums/showthread.php?t=5745&page=1#post67452

Sakumi
20.09.2006, 00:27
The new version rocks, thanks much ;)

Roton
20.09.2006, 19:01
Ghosty, I'm totally going to steal that and implement it with my L2ASP-S project. plzkthx. :D Original design and coding credit will goto you, but I'll be taking credit for re-coding it in ASP.Net, unless you wanna. ;P

greenghost
21.09.2006, 12:35
as you wish :-) just remember me in credits ;-)

edit: but update it according to my version. thx

greenghost
21.09.2006, 16:10
new version has been uploaded :-)

https://postpacific.loc-online.com/forums/showthread.php?t=5745&page=1#post67452

wton
22.09.2006, 14:37
Thanks, very good job :D

greenghost
30.10.2006, 21:35
..........

Smart
30.10.2006, 23:08
Thx it's like wery good :)

olmer2002
05.11.2006, 16:37
tnx a lot man,it's beautiful :Р

DEFINE IP OF PEOPLE WHO CAN ACCESS THIS MAP - rofl five mark =)

Lucas
11.02.2007, 15:13
Can anybody reupload?

maxtormaxtor
11.02.2007, 16:23
please reshare

YakudZe
11.02.2007, 18:29
I bet this is best map what you ever seen ;-) .. but its first version.

Created by our GameParkL2 webmaster Greenghost. [email protected]
(another my man created lovely petition server - aralyon .) )

http://l2.ratafak.net/php-map-with-zoom.zip

Its online map with:
- security feature, you can define which IP can access this map
- zoom feature, you can select zoom from 1x to 10x, so you can watch people more precisely :-) \
- you can click on any part of map and ..poof.. it zoom to that part ;)
- when you put mouse cursor on "box" you can see info about player..

Not Found

The requested URL /php-map-with-zoom.zip was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
pls work link...

yobzhik
12.02.2007, 00:17
same...404... reupload please.

Forcer
13.02.2007, 14:22
Reshare plz

greenghost
13.02.2007, 17:15
i'm sorry... here is new link

https://postpacific.loc-online.com/forums/attachment.php?attachmentid=610&d=1171413790

pls write comments and opinions for this map... what shall i improve?

palace
13.02.2007, 19:29
Thanks, very good job

Osito2Dancer
13.02.2007, 21:10
i'm sorry... here is new link

https://postpacific.loc-online.com/forums/attachment.php?attachmentid=606&d=1171387403

pls write comments and opinions for this map... what shall i improve?
It says "Invalid Attachment, contact Administrator".

Can you reshare?

Oso

YakudZe
13.02.2007, 21:20
Invalid Attachment specified. If you followed a valid link, please notify the
:(

palace
13.02.2007, 21:21
Sorry man, the problems is internet explorer, try witch Firefox

https://postpacific.loc-online.com/forums/attachment.php?attachmentid=606&d=1171387403

link is download


Check greenghost second post page 1, and try

YakudZe
13.02.2007, 23:16
I am use FireFox:
Invalid Attachment specified. If you followed a valid link, please notify the administrator
:(
Reshare pls

greenghost
14.02.2007, 00:44
okey now it should be ok. i'm so sorry... or you can use http://greenghost.iglu.cz/php-map-with-zoom.zip

yobzhik
14.02.2007, 15:29
Share for rapidshare.com
http://rapidshare.com/files/16435369/php-map-with-zoom.zip
Thank you for stuff. Must be very usefull !
Ill write later how it work. Thank you !

YakudZe
16.02.2007, 17:59
Men, I did not understand :) Just kidding? How can that not perebrasavalo? How to set up what worked map? :)

palace
16.02.2007, 18:28
Open index.php
<?php
header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
//----allowed ips---
// localhost some another IP
$ip = array("127.0.0.1", "1xx.xx3.1xx.xx3");
if(!in_array($_SERVER["REMOTE_ADDR"], $ip)) {
header("location:http://piv.pivpiv.dk/");
exit;
}
// if you want to show this map to anyone just remove lines 3 to 10 (from first to this commentary)

include("./include/config.php");
------------------------------------
remove lines 3 to 10

------------------------------------
Open index.php
<?php

include("./include/config.php");

greenghost
17.02.2007, 18:12
you have to set up correct values (server name, mssql login and password) in ./include/config.php

adriahu
16.03.2007, 19:42
Upgraded version:
http://www.l2-existence.com/map2.zip

Optimization of speed for large servers (client HTML processing)
GM`s authentication
No locks on DB :P

KOC2000
16.03.2007, 22:56
Well.. it still sees me online although I'm not.. what's wrong?
-----------
The reason was.. power went off.. I loged in then loged out with my char. and it's fine now.

nish
17.03.2007, 08:47
wtf are you taking about

adriahu
17.03.2007, 11:39
You must clear your DB after crash or server restart :)

update user_data set logout = '2007-03-08 10:07:xx.xx0' where login > logout and login < '2007-03-08 10:07:xx.xx0'

2007-03-08 10:07:xx.xx0 = date is earlier than restart or crash

greenghost
24.04.2007, 16:16
or "update lin2world..user_data set logout = login where login > logout"

didu
07.08.2007, 12:43
reshare please :p

emanuel
07.08.2007, 12:51
With a litle fix in php code.

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

didu
07.08.2007, 13:04
Why the zome doesn't work for my ?

And i see player disconnected online !!


http://www.ultimegames.com/newsite/modules/seemap/index2.php

adriahu
07.08.2007, 13:29
Why the zome doesn't work for my ?

And i see player disconnected online !!


http://www.ultimegames.com/newsite/modules/seemap/index2.php

because of wrong redirect
index.php -> index2.php

and You must clear your DB after crash or server restart (earlier was info about that).

didu
07.08.2007, 13:39
how clear DB ?

:: Eru ::
07.08.2007, 14:23
Theory:
You have to fix login & logout time for each character.

Practise:
update lin2world.user_data set logout = login where login > logout

didu
07.08.2007, 14:31
i have this error:

Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'lin2world.user_data'.

:: Eru ::
07.08.2007, 14:35
Didu, what I wrote is not the perfect sentence...
Are you using MSSQL 2005? Navigate lin2world until you reach user_data: Right click on it --> Script table as "UPDATE..." .

It will open a .sql file having the script on it, just edit it modifying just the columns you want.

didu
07.08.2007, 14:43
i use mssql 2000 :p

:: Eru ::
07.08.2007, 14:46
It's the same...open Query Analyzer and navigate until you find the table.

alysia
07.08.2007, 15:18
i have this error:

Server: Msg 208, Level 16, State 1, Line 1
Invalid object name 'lin2world.user_data'.


maybe you called your databse not lin2world :)

didu
07.08.2007, 17:26
use lin2world
update user_data set logout = login where login > logout

work :p

FidoW
07.08.2007, 17:59
use lin2world
update user_data set logout = login where login > logout

work :p


USE lin2world
UPDATE user_data
SET logout = GETDATE() /* Update to Current Date */
WHERE (login > logout) /* Normal login */
OR (login IS NOT NULL AND logout IS NULL) /* First Login */