OT (?) php rotator

L

lisztnet

http://www.maitre-eolas.fr/themes/ensemble/images/ensemble/rotator.php

This is a rotator... obviously php, well but inside it looks bad.

This is totally weird no ? i found another rotator wich is 10 times
smaller, also php :

Author: Dan Benjamin - http://hivelogic.com/

Question : what is it all about, with the weird code inside the big
rotator ? It doesn't even has a normal header (it's line 11 :

<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">

)

.. First i thought the images where stored inside the script, but no,
they are in the directory along with the rotator.

the lines 1-7 are what ?????

TIA,


L
 
L

lisztnet

You're asking us to explain code we can't see?

Hi,

The code is the rotator.php which my first link i pointing to... i
won't post here 32kb with part of binary code !

Now, i just downloaded a photo from flickr with a similary code inside
(i was just testing emacs...)

it's located here :

http://www.flickr.com/photo_zoom.gne?id=375421412&context=set-72157600165365515&size=o

OR

http://tinyurl.com/2css5u

Here is what it looks like inside (it is the same header, tags as
inthe rotator.php)


<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.print.PageFormat.FormattingPrinter</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.FormattingPrinter</key>
<string>deskjet_5550</string>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-07-24T16:28:17Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMHorizontalRes</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMHorizontalRes</key>
<real>72</real>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-07-24T16:28:17Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMOrientation</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMOrientation</key>
<integer>1</integer>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-07-24T16:28:17Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMScaling</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMScaling</key>
<real>1</real>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-07-24T16:28:17Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMVerticalRes</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMVerticalRes</key>
<real>72</real>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-07-24T16:28:17Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMVerticalScaling</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMVerticalScaling</key>
<real>1</real>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2005-07-24T16:28:17Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.subTicket.paper_info_ticket</key>
<dict>
<key>com.apple.print.PageFormat.PMAdjustedPageRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMAdjustedPageRect</key>
<array>
<real>0.0</real>
<real>0.0</real>
<real>803.90999999999997</real>
<real>576</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2007-02-02T13:09:11Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PageFormat.PMAdjustedPaperRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PageFormat.PMAdjustedPaperRect</key>
<array>
<real>-5.04</real>
<real>-9.629999999999999</real>
<real>837.02999999999997</real>
<real>585.63</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>com.apple.printingmanager</string>
<key>com.apple.print.ticket.modDate</key>
<date>2007-02-02T13:09:11Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>0</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMAutoDuplex</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMAutoDuplex</key>
<true/>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMCodeName</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMCodeName</key>
<string>iso-a4</string>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMManualDuplex</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMManualDuplex</key>
<false/>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMPaperBanner</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMPaperBanner</key>
<false/>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMPaperFullBleed</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMPaperFullBleed</key>
<false/>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMPaperName</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMPaperName</key>
<string>ISO A4</string>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPageRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPageRect</key>
<array>
<real>0.0</real>
<real>0.0</real>
<real>803.90999999999997</real>
<real>576</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPaperRect</key>
<dict>
<key>com.apple.print.ticket.creator</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.itemArray</key>
<array>
<dict>
<key>com.apple.print.PaperInfo.PMUnadjustedPaperRect</key>
<array>
<real>-5.04</real>
<real>-9.629999999999999</real>
<real>837.02999999999997</real>
<real>585.63</real>
</array>
<key>com.apple.print.ticket.client</key>
<string>com.hp.print.puffin</string>
<key>com.apple.print.ticket.modDate</key>
<date>2004-01-26T12:32:20Z</date>
<key>com.apple.print.ticket.stateFlag</key>
<integer>1</integer>
</dict>
</array>
</dict>
<key>com.apple.print.ticket.APIVersion</key>
<string>00.20</string>
<key>com.apple.print.ticket.privateLock</key>
<false/>
<key>com.apple.print.ticket.type</key>
<string>com.apple.print.PaperInfoTicket</string>
</dict>
<key>com.apple.print.ticket.APIVersion</key>
<string>00.20</string>
<key>com.apple.print.ticket.privateLock</key>
<false/>
<key>com.apple.print.ticket.type</key>
<string>com.apple.print.PageFormatTicket</string>
</dict>
</plist
 
H

Harlan Messinger

Hi,

The code is the rotator.php which my first link i pointing to...

As one would expect from the address of a dynamic page, we can only see
what it produces (which in this case is an image), not the server-side
code that produced it.
 
L

lisztnet

As one would expect from the address of a dynamic page, we can only see
what it produces (which in this case is an image), not the server-side
code that produced it.

I' too stupid. :(

L
 
B

Bergamot

Jonathan said:
cp rotator.php rotator.src.txt

or
cp rotator.php rotator.phps

Many servers are already set up to recognize phps as php source code,
and can even apply syntax highlighting.
 
J

Jonathan N. Little

Bergamot said:
or
cp rotator.php rotator.phps

Many servers are already set up to recognize phps as php source code,
and can even apply syntax highlighting.

Hmm. Didn't know that, works on my own developments servers. I guess it
is automatically setup with PHP4+
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top