#!/usr/bin/php
<?php
sleep
(15);
while (
1) {
  
system('import -window root /home/quinn/public_html/deskshot-new.jpg');
  
system('convert /home/quinn/public_html/deskshot-new.jpg -resize '."'".'300x225'."'".' /home/quinn/public_html/deskshot.jpg');
  echo(
'Screenshot made at '.date(DATE_RFC822)."!\n");
  
$buck 'quinnebert';                                //
  
$user '01NFPFDZRGBE6BQ9ATR2';                    //
  
$pass 'VwXLD8XsoYfkp1415+Dkdj9eBUmhydAKe0/yQgYa';            //
  
$file=dirname(__FILE__).'/S3.php';
  if (!
class_exists('S3')) {
    if (
file_exists($file) && is_readable($file)) {
      require_once(
$file);
    } else {
      if (
file_exists($file)) {
        die(
"The REQUIRED S3.php code library is not present.  Please fix this!");
      } else {
        die(
"The REQUIRED S3.php code library isn't readable.  Please fix this!");
      }
    }
  }
  
$s3 = new S3($user$pass);
  
$b3 $s3->getBucket($buck);
  
$file2up '/home/quinn/public_html/deskshot.jpg';
  
$file2as basename($file2up);
  
$s3->deleteObject($buck,$file2as);
  
$s3->putObject($s3->inputResource(fopen($file2up,'rb'),filesize($file2up)),$buck,$file2as,S3::ACL_PUBLIC_READ);
  
sleep(60);
}