This is a simple script that takes a snapshot of what your screen. Check out http://www.sitepointforums.com/showthread.php?threadid=89660&highlight=snapshot&pagenumber=1 for details and how to use JS with it :)... clete2@sowibb.com
By : Clete2
<?php
/*
~~~README~~~
Change your paths and everything.
NOTE that a script is never done and I have not changed it a bit when I copied/pasted it in here. If you have any problems, e-mail me at clete2@sowibb.com or look for me on AIM as CleteBlackwell
Add this to your MySQL DB:
CREATE TABLE finished ( id int(11) NOT NULL auto_increment, ip varchar(15) NOT NULL default '', KEY id (id) ) TYPE=MyISAM;
CREATE TABLE queue ( id int(11) NOT NULL auto_increment, time varchar(255) NOT NULL default '', KEY id (id), KEY time (time) ) TYPE=MyISAM;
<div align="center"> To take another snapshot, click <a href="http://216.143.50.59/test/index.php">here</a>. <br /> <br />
<img src="http://216.143.50.59/picture001.png" />
</div>
<?
else:
$time1 = $_GET['time'];
$sql1 = @mysql_query("SELECT * FROM queue WHERE time = '$time1'");
$sql = @mysql_query("SELECT * FROM finished"); $count = mysql_num_rows($sql);
if($count <= 1){
$have = "has"; $people = "person";
}else{
$have = "have"; $people = "people";
}
$lastshot = $time - $read + 30;
$timeuntillshot = 30 - $lastshot;
?>
<META http-equiv="refresh" content="<?=$timeuntillshot?>; URL=http://216.143.50.59/test/index.php?currwindow=<?=$_GET['currwindow']?>&inserted=1&time=<?=$time1?>&id=<?=$sql['id']?>"> <div align=center>Sorry, but someone else is currently using this script, this page will refresh when your screenshot is ready. This may take up to 30 seconds. <br /> The total wait time between one snapshot and another is 30 seconds. <br /> <?=$count?> <?=$people?> <?=$have?> successfully recieved their snapshot. <br /> The last snapshot was taken <?=$lastshot?> seconds ago. <br /> </div>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.