This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // You need to add server side validation and better error handling here | |
$data = array(); | |
if(isset($_FILES)) | |
{ | |
$error = false; | |
$files = array(); | |
$uploaddir = './uploads/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = new WebPage(), | |
address, output, size; | |
var retval = {}; | |
retval.result = "failed"; | |
retval.messages = []; | |
//capture and captureSelector functions adapted from CasperJS - https://github.com/n1k0/casperjs | |
capture = function(targetFile, clipRect) { | |
try { |