making screenshots accessible via http
hey guys,
thanks to troublesome its quite easy to decode the .enc files that UTDCs screenshots are wrapped in. i took that advantage to write a php script that makes the screenshots taken on our server available on the web. and since i thought some of you might be interested in doing the same, you can get it here: http://ut-files.com/Anticheat/UTDC/U...ecoder-php.zip |
GG
Code:
if (strpos($strRequest, "/") !== false || strpos($strRequest, "\\") !== false) |
I'm unable to get this to work. The files do show up (links), however their images are always broken (get a 'X' image, or image failure).
|
Quote:
Code:
echo readUTDCPic($strRequest); Code:
echo readUTDCPic($logdir.$strRequest); |
What if you dont use the normal FTP port 21 for your FTP-ing needs?
|
|
Quote:
i accidentally released a bugged version with the link above. right now the links points to the first (=bugged) version, as well as to a current version (02) in which i fixed the bug, as well as some of the comments. a live demo is still avaliable via this link. that is, if you can call it a "live demo" even if it has not been update for ages. :) |
Quote:
UTDC 2.2? |
nono ;)
the "2.2" prefix in the servername means that the server is running "tactical ops 2.2 beta", which is a necessity because the incompatible versions 2.2 and 3.x of this mod use the same master server. or did you want to ask what i meant by "02" above ? i was referring to the link in my first post (i cant find the login info for my shaydee account :/ ) as well as to this one. |
I had this up and running before. But I lost all my settings.
The problem I am having is that all the screenshots are showing up in alphabetical order. I want them to show up by date. The newest first at the top of the page. How can I do this? thanks |
Quote:
My goal was to provite a very simplistic PHP script that allows access to UTDC's screenshots. Sorting the screenies unfortunately exceeds the scope of my goal. If you are literal in PHP, then you might want to have a look at the compareScreenie() function (also have a look at the usort() function in the PHP documentation), but from now on you are on your own (even though I certainly dont mind answering questions). Sorry. :/ P.S.: If you dont mind a long loading time, then simply remove the line "return $logdir.$strA < $logdir.$strB;" and uncomment the line "return @filemtime($logdir.$strA) < @filemtime($logdir.$strB);". |
broken link, anyone got a copy?
|
No one has this? I'd really like to get this for a possible port to UTStats.
|
I’m not exactly sure what this mod originally did, and therefore my reply might be completely off topic.
I’m using/created this script to download my AKAv20KLog.ini from my UT server to my web server, where it could be displayed to those who don’t have ftp access to my UT server. (chmod aka.txt to 777) As said, I’m not really sure if it would help you. Feel free however to use it/modify it to suit your needs. (except from the included favicon that is) http://die16-clan.com/die16taragon/aka.zip |
Hi again 2339skills hehe.
I've added a copy of the script here: http://cwlserver.net/redirect.php?id=185 . Just add the *.enc utdc screenies in the same folder as this one. |
Thanks.
|
Quote:
|
|
did you report your post? if not i have done it :)
|
Quote:
|
All times are GMT +1. The time now is 11:02 AM. |