<?php
// dropboxSaver.php
// Check for uploads that are too big
if (isset($_GET['pidis']) && isset($_GET['check'])) {
  $okay = 1;
  try {
  $huhis=@file_get_contents(urldecode($_GET['check']));
  } catch (Exception $e) {
  $huhis=" ";
  $okay = 0;
  }
  if (strlen($huhis) > 20000 || ($ok == 0 && strlen($huhis) == 1)) {
    echo "<html><body onload=\" parent.document.getElementById('" . $_GET['pidis'] . "').value='http://www.rjmprogramming.com.au/uploads/file_too_big_sorry.txt'; \"></body></html>";
  }
}
?>