The Unreal Admins Page - Forums

The Unreal Admins Page - Forums (https://unrealadmin.org/forums/index.php)
-   General Chat (https://unrealadmin.org/forums/forumdisplay.php?f=184)
-   -   making screenshots accessible via http (https://unrealadmin.org/forums/showthread.php?t=11759)

Shaydee 6th August, 2005 12:28 AM

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

Baiter 6th August, 2005 01:52 AM

GG

Code:

        if (strpos($strRequest, "/") !== false || strpos($strRequest, "\\") !== false)
                die("fuck off.");

LOL

Matthew 11th November, 2005 01:01 AM

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).

DarkCoder 2nd November, 2006 09:27 PM

Quote:

Originally Posted by Matthew (Post 73941)
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).

Try changing line 178 from
Code:

echo readUTDCPic($strRequest);
to
Code:

echo readUTDCPic($logdir.$strRequest);
This worked for me.

Baiter 2nd November, 2006 11:44 PM

What if you dont use the normal FTP port 21 for your FTP-ing needs?

Sardukar 20th November, 2006 04:44 PM

Try this:

ftp://user:password@hostname:port/directory

tsr 7th December, 2006 06:15 AM

Quote:

Originally Posted by DarkCoder (Post 103260)
Try changing line 178 from
blah
to
blub

gee, my apologies!
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. :)

Baiter 7th December, 2006 06:48 AM

Quote:

Originally Posted by tsr (Post 105133)
gee, my apologies!
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. :)



UTDC 2.2?

tsr 11th December, 2006 03:29 AM

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.

donjski 17th December, 2006 06:35 PM

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

tsr 4th January, 2007 01:09 PM

Quote:

Originally Posted by donjski (Post 105976)
The problem I am having is that all the screenshots are showing up in alphabetical order.

I'm sorry to say this, but I removed this feature in the current version because it increased the loading time of the website by many seconds.
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);".

2399Skillz 27th October, 2008 10:43 PM

broken link, anyone got a copy?

2399Skillz 29th December, 2008 02:01 AM

No one has this? I'd really like to get this for a possible port to UTStats.

Taragon 4th January, 2009 05:50 PM

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

killereye 5th January, 2009 10:37 AM

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.

2399Skillz 5th January, 2009 11:29 PM

Thanks.

2399Skillz 5th January, 2009 11:47 PM

Quote:

Originally Posted by killereye (Post 145871)
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.

You are awesome bro. :thumbup:

2399Skillz 6th January, 2009 07:24 AM

Can someone update the OP with this link?

http://ut-files.com/Anticheat/UTDC/U...ecoder-php.zip

SoNY_scarface 6th January, 2009 01:09 PM

did you report your post? if not i have done it :)

Azura 6th January, 2009 08:34 PM

Quote:

Originally Posted by SoNY_scarface (Post 145911)
did you report your post? if not i have done it :)

You've already been asked once to not abuse that forum feature =x.


All times are GMT +1. The time now is 11:02 AM.

 


All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.