Might want to work on some of the "security" :tongue.gif: I didn't try anything more than basic HTML but I was able to make the page disappear with by setting the body to not display. Make sure you're using strip_tags on all your output.
The api I have returns "true" or "false" based upon the username and password sent, so you can use that also :tongue.gif:
Wait... did you enter that as the title of the map, and the browser viewed it as actual code?
Rollback Post to RevisionRollBack
Blargha! Blargha! Blargha!
I wouldn't listen to a thing I say. I'm probably insane.
A while back I had a problem with a kind of primitive forum I made. (It's still up and I made it from scratch with PHP) People would add redirects to "stuff" or would make java script spam pop ups. I eventually solved it though, by removeing all in the text. Too bad I didn't know of that function back then.
Allowing people to choose up to 6 screenshots and adding in a description feild. (and author feild)
Each map will get it's own little page with a screenshot viewer program and will show the description and a link to that persons Minecraftforums profile.
I'm confused about what's going to happen for map viewing. When we upload, does the server automatically create 6 screenshots of the map? Or will the veiwer be dynamic?
Rollback Post to RevisionRollBack
Blargha! Blargha! Blargha!
I wouldn't listen to a thing I say. I'm probably insane.
Allowing people to choose up to 6 screenshots and adding in a description feild. (and author feild)
Each map will get it's own little page with a screenshot viewer program and will show the description and a link to that persons Minecraftforums profile.
I'm confused about what's going to happen for map viewing. When we upload, does the server automatically create 6 screenshots of the map? Or will the veiwer be dynamic?
For now, you choose six screen shots.
But I'm working on a program to make (a) picture (s) for you.
For now, you choose six screen shots.
But I'm working on a program to make (a) picture (s) for you.
Ok. That makes sense. I wonder if it would be possible to make an efficient map veiwer in a browser. Might need a plug-in to do that without using too much memory.
Rollback Post to RevisionRollBack
Blargha! Blargha! Blargha!
I wouldn't listen to a thing I say. I'm probably insane.
For now, you choose six screen shots.
But I'm working on a program to make (a) picture (s) for you.
Ok. That makes sense. I wonder if it would be possible to make an efficient map veiwer in a browser. Might need a plug-in to do that without using too much memory.
If I even knew how to do that there would still be one problem, A map on avrage contains almost 120,000 bricks. Getting them all to simataniusly move and in a small space would make alot of lag, so that the viewer would be almost unusable. It's the equalivlent of turning on far mode and using cheat engine to speed up the game 5 times while standing on top of a tower looking at an ocean. :/
For now, you choose six screen shots.
But I'm working on a program to make (a) picture (s) for you.
Ok. That makes sense. I wonder if it would be possible to make an efficient map veiwer in a browser. Might need a plug-in to do that without using too much memory.
If I even knew how to do that there would still be one problem, A map on avrage contains almost 120,000 bricks. Getting them all to simataniusly move and in a small space would make alot of lag, so that the viewer would be almost unusable. It's the equalivlent of turning on far mode and using cheat engine to speed up the game 5 times while standing on top of a tower looking at an ocean. :/
I wasn't suggesting you try. But it wouldn't need to be realtime. Although while I was waiting I had an idea.
If you happen to have a giant warehouse full of servers sitting somewhere in garage, you could make the veiwer a bit more controllable. You would have a slider or list that lets you select the layer to look from, then the page would reload and diplay a picture generated on the spot. This would allow you to 'explore' the map. But don't do this unless you don't actually want to use whatever computer you're hosting the site on, or if you want to use your internet.
Rollback Post to RevisionRollBack
Blargha! Blargha! Blargha!
I wouldn't listen to a thing I say. I'm probably insane.
I'm going dig out an older laptop to use just for hosting. Four (deticated) and a few more on again off again servers for minecraft. Plus a program I'm working on that's like rapidshare or mediafire except all you do is type in a file name into this program and it downloads it for you.
Edit:
Status:
Now the upload screen has a description a title and a file select box.
When a file is uploaded it creates a webpage (.html) it it's name and a .azjdat file to store desc and title. (Oh and it uploads the map too)
I wish I could do that. The only system that I have that I'm not using is over 8 years old. It's running Win98se. I might be able to host one small map with only 8 people. The other limitation is my internet. We have DSL, so I would mess up everything else in our house.
Quote from Azjherben »
(Oh and it uploads the map too)
I was very worried about that.
Rollback Post to RevisionRollBack
Blargha! Blargha! Blargha!
I wouldn't listen to a thing I say. I'm probably insane.
Okay then.
Anyway, I'm going to take a quick break from the webpage.
And yes, I know the view.php page is filled with errors.
(I'm was editing it and am in the middle of adding things.)
No offence intended here, just my opinion: Azjherben what you're building doesn't feel suitable. You should really be working with a backend database for this, creating html pages based on the uploaded files is not only slow and impractical, it's also going to cause problems. I see no problem with you building the maps site as opposed to me (it's fair game for anyone to do it, obviously) but I won't be willing to "advocate" the use of such a site if it was insecure and sloppily made. I would recommend you look into better methods of building this. If the site does come out well I will happily advocate the usage of it with its presence in the navbar and what not. Furthermore, you seem to be ignoring a vast array of security issues.
...I just read that back to me and I come across like a ****; but basically, I won't be able to advocate the usage of a site which is insecure and could cause problems to the community. Feel free to build it how you're doing, but I won't be able to add it to the navbar etc if it's insecure.
Oh, you'd add it to the navbar, I forgot you owned the forums site too.
Anyway, atm what it does is you upload a file and it makes a little html page with the map title at the top. Then the description, then the link at the bottom. It dosn't look great, but I just started.
Well, it works (I just finished!), so you can try it out for now.
But, is there any other way you suggest I do it?
Becuase, I'm not seeing the big securty hole atm, I know I have alot more work to do but It already checks for a file under 180 kb that ends with .dat then it strips HTML tags away
He's talking about using a database. I'm editing putting what I think he want's you to do.
You go to the Main page and it has a list of the maps. When you click on a name it loads a new page. It passes an identification key(generated on upload) to this page. The page then uses this key to find all of the content needed for display. It then places all of the information on the page. Becuase all of the maps will have the same fields, you won't need to worry about changing the page template to accomadate different items.
I'm actually not doing this to help you. I was just checking to see if I understood databases. If was wrong you would tell me. But since you haven't said anything, i can only assume i'm heading in the right direction.
Rollback Post to RevisionRollBack
Blargha! Blargha! Blargha!
I wouldn't listen to a thing I say. I'm probably insane.
Wait... did you enter that as the title of the map, and the browser viewed it as actual code?
I wouldn't listen to a thing I say. I'm probably insane.
http://azjhv.net/
I'm confused about what's going to happen for map viewing. When we upload, does the server automatically create 6 screenshots of the map? Or will the veiwer be dynamic?
I wouldn't listen to a thing I say. I'm probably insane.
For now, you choose six screen shots.
But I'm working on a program to make (a) picture (s) for you.
http://azjhv.net/
Ok. That makes sense. I wonder if it would be possible to make an efficient map veiwer in a browser. Might need a plug-in to do that without using too much memory.
I wouldn't listen to a thing I say. I'm probably insane.
If I even knew how to do that there would still be one problem, A map on avrage contains almost 120,000 bricks. Getting them all to simataniusly move and in a small space would make alot of lag, so that the viewer would be almost unusable. It's the equalivlent of turning on far mode and using cheat engine to speed up the game 5 times while standing on top of a tower looking at an ocean. :/
http://azjhv.net/
http://azjhv.net/
I wasn't suggesting you try. But it wouldn't need to be realtime. Although while I was waiting I had an idea.
If you happen to have a giant warehouse full of servers sitting somewhere in garage, you could make the veiwer a bit more controllable. You would have a slider or list that lets you select the layer to look from, then the page would reload and diplay a picture generated on the spot. This would allow you to 'explore' the map. But don't do this unless you don't actually want to use whatever computer you're hosting the site on, or if you want to use your internet.
I wouldn't listen to a thing I say. I'm probably insane.
Edit:
Status:
Now the upload screen has a description a title and a file select box.
When a file is uploaded it creates a webpage (.html) it it's name and a .azjdat file to store desc and title. (Oh and it uploads the map too)
http://azjhv.net/
I was very worried about that.
I wouldn't listen to a thing I say. I'm probably insane.
http://azjhv.net/
I wouldn't listen to a thing I say. I'm probably insane.
And you need forwarded ports to host a minecraft server.
http://azjhv.net/
I wouldn't listen to a thing I say. I'm probably insane.
Anyway, I'm going to take a quick break from the webpage.
And yes, I know the view.php page is filled with errors.
(I'm was editing it and am in the middle of adding things.)
http://azjhv.net/
I wouldn't listen to a thing I say. I'm probably insane.
...I just read that back to me and I come across like a ****; but basically, I won't be able to advocate the usage of a site which is insecure and could cause problems to the community. Feel free to build it how you're doing, but I won't be able to add it to the navbar etc if it's insecure.
Anyway, atm what it does is you upload a file and it makes a little html page with the map title at the top. Then the description, then the link at the bottom. It dosn't look great, but I just started.
Well, it works (I just finished!), so you can try it out for now.
But, is there any other way you suggest I do it?
Becuase, I'm not seeing the big securty hole atm, I know I have alot more work to do but It already checks for a file under 180 kb that ends with .dat then it strips HTML tags away
http://azjhv.net/
You go to the Main page and it has a list of the maps. When you click on a name it loads a new page. It passes an identification key(generated on upload) to this page. The page then uses this key to find all of the content needed for display. It then places all of the information on the page. Becuase all of the maps will have the same fields, you won't need to worry about changing the page template to accomadate different items.
I'm actually not doing this to help you. I was just checking to see if I understood databases. If was wrong you would tell me. But since you haven't said anything, i can only assume i'm heading in the right direction.
I wouldn't listen to a thing I say. I'm probably insane.