Ulysses Stuff > Ulysses Release Archives
Uban PHP Viewer
spbogie:
There's also the Google Web Toolkit. Cross compiles from Java, lets you use debuggers and everything else. I plan to try it myself when I get some time.
Lt.Smith:
Heh, I ended up starting from scratch and writing my own page anyway.
You can take this and use it, modify it, whatever. Just remember to be nice and keep my name in the bottom or commented out in the page's source or something if you really find it ugly. Do whatever.
The coding is pretty sloppy, especially the pagination part, but I was too lazy to check where I'd mixed up ' and " quotes. I pulled the pagination part from a deceased script elsewhere, so it's a bit of a mess. If you want to cut down on the amount of queries you're executing, the thing you can remove is the permaban counter, it'll come out with no trouble at all. I tried to comment what I was doing as much as possible, so it shouldn't be too hard to follow.
The attached file is .txt by the way - just rename it to .php, fill in your database info and you're ready to roll! :)
Check out what she looks like here!
Tophat Man:
We did the exact same thing about a month ago and it looks exactly the same as ours but ours showed more information on the ban when you clicked on the persons name. www.gman4president.com exept all the bans got erased in the re-install so it doesn't show up. Just ask mrpresident.
MrPresident:
Na, we dont have the list anymore because I unistalled UBan. Our SQL host was being retarded and the game was locking up everytime it tried to connect.
Lt.Smith:
--- Quote ---Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'zakap_tophatman'@'69.89.31.223' (using password: YES) in /home/theslick/public_html/MrPresident/bans.php on line 95
Unable to select database.
--- End quote ---
::)
Well, there's only so many ways you can format a ban list. My database is in the USA, but the gameserver is in London, so yes, the game freezes for a bit when you run a query. My solution was to write to the db every 7 minutes instead of every minute. It means bans are lost if the server crashes within 1-7 minutes of banning someone, but if people got banned the server shouldn't be crashing anyway. It hides the latency issue pretty well.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version