Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Php script for flash thumbnail creation
SUBMITTED BY:
Guest
DATE:
Sept. 9, 2014, 10:03 a.m.
FORMAT:
PHP
SIZE:
721 Bytes
Raw
Download
Tweet
HITS:
680
Go to comments
Report
<?php
?>
<HTML><HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
</HEAD><BODY>
<?php
$f
=
file_get_contents
(
"thumb.txt"
);
$i
=
0
;
$output
=
''
;
$dir
=
scandir
(
'../gosonicgo.com/games'
);
foreach
(
$dir
as
$file
){
if
(
$file
!=
'.'
&&
$file
!=
'..'
){
$i
=
$i
+
1
;
if
(
$i
==
$f
){
$game
=
'<meta http-equiv="refresh" content="0; url=http://192.168.254.15/gosonicgo.com/games/'
.
$file
.
'">'
;
}
}
}
$f
=
$f
+
1
;
$file
=
fopen
(
"thumb.txt"
,
"w+"
);
fwrite
(
$file
,
$f
);
fclose
(
$file
);
if
(
$f
>=
10375
){
die
();
}
echo
$game
;
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus