diff --git a/Dropbox/API.php b/Dropbox/API.php
deleted file mode 100644
index 8cdce678e..000000000
--- a/Dropbox/API.php
+++ /dev/null
@@ -1,380 +0,0 @@
-oauth = $oauth;
- $this->root = $root;
- $this->useSSL = $useSSL;
- if (!$this->useSSL)
- {
- throw new Dropbox_Exception('Dropbox REST API now requires that all requests use SSL');
- }
-
- }
-
- /**
- * Returns information about the current dropbox account
- *
- * @return stdclass
- */
- public function getAccountInfo() {
-
- $data = $this->oauth->fetch($this->api_url . 'account/info');
- return json_decode($data['body'],true);
-
- }
-
- /**
- * Returns a file's contents
- *
- * @param string $path path
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return string
- */
- public function getFile($path = '', $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- $result = $this->oauth->fetch($this->api_content_url . 'files/' . $root . '/' . ltrim($path,'/'));
- return $result['body'];
-
- }
-
- /**
- * Uploads a new file
- *
- * @param string $path Target path (including filename)
- * @param string $file Either a path to a file or a stream resource
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return bool
- */
- public function putFile($path, $file, $root = null) {
-
- $directory = dirname($path);
- $filename = basename($path);
-
- if($directory==='.') $directory = '';
- $directory = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($directory));
-// $filename = str_replace('~', '%7E', rawurlencode($filename));
- if (is_null($root)) $root = $this->root;
-
- if (is_string($file)) {
-
- $file = fopen($file,'rb');
-
- } elseif (!is_resource($file)) {
- throw new Dropbox_Exception('File must be a file-resource or a string');
- }
- $result=$this->multipartFetch($this->api_content_url . 'files/' .
- $root . '/' . trim($directory,'/'), $file, $filename);
-
- if(!isset($result["httpStatus"]) || $result["httpStatus"] != 200)
- throw new Dropbox_Exception("Uploading file to Dropbox failed");
-
- return true;
- }
-
-
- /**
- * Copies a file or directory from one location to another
- *
- * This method returns the file information of the newly created file.
- *
- * @param string $from source path
- * @param string $to destination path
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return stdclass
- */
- public function copy($from, $to, $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $response = $this->oauth->fetch($this->api_url . 'fileops/copy', array('from_path' => $from, 'to_path' => $to, 'root' => $root), 'POST');
-
- return json_decode($response['body'],true);
-
- }
-
- /**
- * Creates a new folder
- *
- * This method returns the information from the newly created directory
- *
- * @param string $path
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return stdclass
- */
- public function createFolder($path, $root = null) {
-
- if (is_null($root)) $root = $this->root;
-
- // Making sure the path starts with a /
-// $path = '/' . ltrim($path,'/');
-
- $response = $this->oauth->fetch($this->api_url . 'fileops/create_folder', array('path' => $path, 'root' => $root),'POST');
- return json_decode($response['body'],true);
-
- }
-
- /**
- * Deletes a file or folder.
- *
- * This method will return the metadata information from the deleted file or folder, if successful.
- *
- * @param string $path Path to new folder
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return array
- */
- public function delete($path, $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $response = $this->oauth->fetch($this->api_url . 'fileops/delete', array('path' => $path, 'root' => $root), 'POST');
- return json_decode($response['body']);
-
- }
-
- /**
- * Moves a file or directory to a new location
- *
- * This method returns the information from the newly created directory
- *
- * @param mixed $from Source path
- * @param mixed $to destination path
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return stdclass
- */
- public function move($from, $to, $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $response = $this->oauth->fetch($this->api_url . 'fileops/move', array('from_path' => rawurldecode($from), 'to_path' => rawurldecode($to), 'root' => $root), 'POST');
-
- return json_decode($response['body'],true);
-
- }
-
- /**
- * Returns file and directory information
- *
- * @param string $path Path to receive information from
- * @param bool $list When set to true, this method returns information from all files in a directory. When set to false it will only return infromation from the specified directory.
- * @param string $hash If a hash is supplied, this method simply returns true if nothing has changed since the last request. Good for caching.
- * @param int $fileLimit Maximum number of file-information to receive
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return array|true
- */
- public function getMetaData($path, $list = true, $hash = null, $fileLimit = null, $root = null) {
-
- if (is_null($root)) $root = $this->root;
-
- $args = array(
- 'list' => $list,
- );
-
- if (!is_null($hash)) $args['hash'] = $hash;
- if (!is_null($fileLimit)) $args['file_limit'] = $fileLimit;
-
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- $response = $this->oauth->fetch($this->api_url . 'metadata/' . $root . '/' . ltrim($path,'/'), $args);
-
- /* 304 is not modified */
- if ($response['httpStatus']==304) {
- return true;
- } else {
- return json_decode($response['body'],true);
- }
-
- }
-
- /**
- * A way of letting you keep up with changes to files and folders in a user's Dropbox. You can periodically call /delta to get a list of "delta entries", which are instructions on how to update your local state to match the server's state.
- *
- * This method returns the information from the newly created directory
- *
- * @param string $cursor A string that is used to keep track of your current state. On the next call pass in this value to return delta entries that have been recorded since the cursor was returned.
- * @return stdclass
- */
- public function delta($cursor) {
-
- $arg['cursor'] = $cursor;
-
- $response = $this->oauth->fetch($this->api_url . 'delta', $arg, 'POST');
- return json_decode($response['body'],true);
-
- }
-
- /**
- * Returns a thumbnail (as a string) for a file path.
- *
- * @param string $path Path to file
- * @param string $size small, medium or large
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @return string
- */
- public function getThumbnail($path, $size = 'small', $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- $response = $this->oauth->fetch($this->api_content_url . 'thumbnails/' . $root . '/' . ltrim($path,'/'),array('size' => $size));
-
- return $response['body'];
-
- }
-
- /**
- * This method is used to generate multipart POST requests for file upload
- *
- * @param string $uri
- * @param array $arguments
- * @return bool
- */
- protected function multipartFetch($uri, $file, $filename) {
-
- /* random string */
- $boundary = 'R50hrfBj5JYyfR3vF3wR96GPCC9Fd2q2pVMERvEaOE3D8LZTgLLbRpNwXek3';
-
- $headers = array(
- 'Content-Type' => 'multipart/form-data; boundary=' . $boundary,
- );
-
- $body="--" . $boundary . "\r\n";
- $body.="Content-Disposition: form-data; name=file; filename=".rawurldecode($filename)."\r\n";
- $body.="Content-type: application/octet-stream\r\n";
- $body.="\r\n";
- $body.=stream_get_contents($file);
- $body.="\r\n";
- $body.="--" . $boundary . "--";
-
- // Dropbox requires the filename to also be part of the regular arguments, so it becomes
- // part of the signature.
- $uri.='?file=' . $filename;
-
- return $this->oauth->fetch($uri, $body, 'POST', $headers);
-
- }
-
-
- /**
- * Search
- *
- * Returns metadata for all files and folders that match the search query.
- *
- * @added by: diszo.sasil
- *
- * @param string $query
- * @param string $root Use this to override the default root path (sandbox/dropbox)
- * @param string $path
- * @return array
- */
- public function search($query = '', $root = null, $path = ''){
- if (is_null($root)) $root = $this->root;
- if(!empty($path)){
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- }
- $response = $this->oauth->fetch($this->api_url . 'search/' . $root . '/' . ltrim($path,'/'),array('query' => $query));
- return json_decode($response['body'],true);
- }
-
- /**
- * Creates and returns a shareable link to files or folders.
- *
- * Note: Links created by the /shares API call expire after thirty days.
- *
- * @param type $path
- * @param type $root
- * @return type
- */
- public function share($path, $root = null) {
- if (is_null($root)) $root = $this->root;
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- $response = $this->oauth->fetch($this->api_url. 'shares/'. $root . '/' . ltrim($path, '/'), array(), 'POST');
- return json_decode($response['body'],true);
-
- }
-
- /**
- * Returns a link directly to a file.
- * Similar to /shares. The difference is that this bypasses the Dropbox webserver, used to provide a preview of the file, so that you can effectively stream the contents of your media.
- *
- * Note: The /media link expires after four hours, allotting enough time to stream files, but not enough to leave a connection open indefinitely.
- *
- * @param type $path
- * @param type $root
- * @return type
- */
- public function media($path, $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- $response = $this->oauth->fetch($this->api_url. 'media/'. $root . '/' . ltrim($path, '/'), array(), 'POST');
- return json_decode($response['body'],true);
-
- }
-
- /**
- * Creates and returns a copy_ref to a file. This reference string can be used to copy that file to another user's Dropbox by passing it in as the from_copy_ref parameter on /fileops/copy.
- *
- * @param type $path
- * @param type $root
- * @return type
- */
- public function copy_ref($path, $root = null) {
-
- if (is_null($root)) $root = $this->root;
- $path = str_replace(array('%2F','~'), array('/','%7E'), rawurlencode($path));
- $response = $this->oauth->fetch($this->api_url. 'copy_ref/'. $root . '/' . ltrim($path, '/'));
- return json_decode($response['body'],true);
-
- }
-
-
-}
diff --git a/Dropbox/Exception.php b/Dropbox/Exception.php
deleted file mode 100644
index 50cbc4c79..000000000
--- a/Dropbox/Exception.php
+++ /dev/null
@@ -1,15 +0,0 @@
-oauth_token = $token['token'];
- $this->oauth_token_secret = $token['token_secret'];
- } else {
- $this->oauth_token = $token;
- $this->oauth_token_secret = $token_secret;
- }
-
- }
-
- /**
- * Returns the oauth request tokens as an associative array.
- *
- * The array will contain the elements 'token' and 'token_secret'.
- *
- * @return array
- */
- public function getToken() {
-
- return array(
- 'token' => $this->oauth_token,
- 'token_secret' => $this->oauth_token_secret,
- );
-
- }
-
- /**
- * Returns the authorization url
- *
- * @param string $callBack Specify a callback url to automatically redirect the user back
- * @return string
- */
- public function getAuthorizeUrl($callBack = null) {
-
- // Building the redirect uri
- $token = $this->getToken();
- $uri = self::URI_AUTHORIZE . '?oauth_token=' . $token['token'];
- if ($callBack) $uri.='&oauth_callback=' . $callBack;
- return $uri;
- }
-
- /**
- * Fetches a secured oauth url and returns the response body.
- *
- * @param string $uri
- * @param mixed $arguments
- * @param string $method
- * @param array $httpHeaders
- * @return string
- */
- public abstract function fetch($uri, $arguments = array(), $method = 'GET', $httpHeaders = array());
-
- /**
- * Requests the OAuth request token.
- *
- * @return array
- */
- abstract public function getRequestToken();
-
- /**
- * Requests the OAuth access tokens.
- *
- * @return array
- */
- abstract public function getAccessToken();
-
-}
diff --git a/Dropbox/OAuth/Consumer/Dropbox.php b/Dropbox/OAuth/Consumer/Dropbox.php
deleted file mode 100644
index 204a659de..000000000
--- a/Dropbox/OAuth/Consumer/Dropbox.php
+++ /dev/null
@@ -1,37 +0,0 @@
-consumerRequest instanceof HTTP_OAuth_Consumer_Request) {
- $this->consumerRequest = new HTTP_OAuth_Consumer_Request;
- }
-
- // TODO: Change this and add in code to validate the SSL cert.
- // see https://github.com/bagder/curl/blob/master/lib/mk-ca-bundle.pl
- $this->consumerRequest->setConfig(array(
- 'ssl_verify_peer' => false,
- 'ssl_verify_host' => false
- ));
-
- return $this->consumerRequest;
- }
-}
diff --git a/Dropbox/OAuth/Curl.php b/Dropbox/OAuth/Curl.php
deleted file mode 100644
index b75b27bb3..000000000
--- a/Dropbox/OAuth/Curl.php
+++ /dev/null
@@ -1,282 +0,0 @@
-consumerKey = $consumerKey;
- $this->consumerSecret = $consumerSecret;
- }
-
- /**
- * Fetches a secured oauth url and returns the response body.
- *
- * @param string $uri
- * @param mixed $arguments
- * @param string $method
- * @param array $httpHeaders
- * @return string
- */
- public function fetch($uri, $arguments = array(), $method = 'GET', $httpHeaders = array()) {
-
- $uri=str_replace('http://', 'https://', $uri); // all https, upload makes problems if not
- if (is_string($arguments) and strtoupper($method) == 'POST') {
- preg_match("/\?file=(.*)$/i", $uri, $matches);
- if (isset($matches[1])) {
- $uri = str_replace($matches[0], "", $uri);
- $filename = $matches[1];
- $httpHeaders=array_merge($httpHeaders,$this->getOAuthHeader($uri, array("file" => $filename), $method));
- }
- } else {
- $httpHeaders=array_merge($httpHeaders,$this->getOAuthHeader($uri, $arguments, $method));
- }
- $ch = curl_init();
- if (strtoupper($method) == 'POST') {
- curl_setopt($ch, CURLOPT_URL, $uri);
- curl_setopt($ch, CURLOPT_POST, true);
-// if (is_array($arguments))
-// $arguments=http_build_query($arguments);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $arguments);
-// $httpHeaders['Content-Length']=strlen($arguments);
- } else {
- curl_setopt($ch, CURLOPT_URL, $uri.'?'.http_build_query($arguments));
- curl_setopt($ch, CURLOPT_POST, false);
- }
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_TIMEOUT, 300);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
-// curl_setopt($ch, CURLOPT_CAINFO, "rootca");
- curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
- //Build header
- $headers = array();
- foreach ($httpHeaders as $name => $value) {
- $headers[] = "{$name}: $value";
- }
- curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
- if (!ini_get('safe_mode') && !ini_get('open_basedir'))
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true );
- if (function_exists($this->ProgressFunction) and defined('CURLOPT_PROGRESSFUNCTION')) {
- curl_setopt($ch, CURLOPT_NOPROGRESS, false);
- curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, $this->ProgressFunction);
- curl_setopt($ch, CURLOPT_BUFFERSIZE, 512);
- }
- $response=curl_exec($ch);
- $errorno=curl_errno($ch);
- $error=curl_error($ch);
- $status=curl_getinfo($ch,CURLINFO_HTTP_CODE);
- curl_close($ch);
-
-
- if (!empty($errorno))
- throw new Dropbox_Exception_NotFound('Curl error: ('.$errorno.') '.$error."\n");
-
- if ($status>=300) {
- $body = json_decode($response,true);
- switch ($status) {
- // Not modified
- case 304 :
- return array(
- 'httpStatus' => 304,
- 'body' => null,
- );
- break;
- case 403 :
- throw new Dropbox_Exception_Forbidden('Forbidden.
- This could mean a bad OAuth request, or a file or folder already existing at the target location.
- ' . $body["error"] . "\n");
- case 404 :
- throw new Dropbox_Exception_NotFound('Resource at uri: ' . $uri . ' could not be found. ' .
- $body["error"] . "\n");
- case 507 :
- throw new Dropbox_Exception_OverQuota('This dropbox is full. ' .
- $body["error"] . "\n");
- }
- if (!empty($body["error"]))
- throw new Dropbox_Exception_RequestToken('Error: ('.$status.') '.$body["error"]."\n");
- }
-
- return array(
- 'body' => $response,
- 'httpStatus' => $status
- );
- }
-
- /**
- * Returns named array with oauth parameters for further use
- * @return array Array with oauth_ parameters
- */
- private function getOAuthBaseParams() {
- $params['oauth_version'] = '1.0';
- $params['oauth_signature_method'] = 'HMAC-SHA1';
-
- $params['oauth_consumer_key'] = $this->consumerKey;
- $tokens = $this->getToken();
- if (isset($tokens['token']) && $tokens['token']) {
- $params['oauth_token'] = $tokens['token'];
- }
- $params['oauth_timestamp'] = time();
- $params['oauth_nonce'] = md5(microtime() . mt_rand());
- return $params;
- }
-
- /**
- * Creates valid Authorization header for OAuth, based on URI and Params
- *
- * @param string $uri
- * @param array $params
- * @param string $method GET or POST, standard is GET
- * @param array $oAuthParams optional, pass your own oauth_params here
- * @return array Array for request's headers section like
- * array('Authorization' => 'OAuth ...');
- */
- private function getOAuthHeader($uri, $params, $method = 'GET', $oAuthParams = null) {
- $oAuthParams = $oAuthParams ? $oAuthParams : $this->getOAuthBaseParams();
-
- // create baseString to encode for the sent parameters
- $baseString = $method . '&';
- $baseString .= $this->oauth_urlencode($uri) . "&";
-
- // OAuth header does not include GET-Parameters
- $signatureParams = array_merge($params, $oAuthParams);
-
- // sorting the parameters
- ksort($signatureParams);
-
- $encodedParams = array();
- foreach ($signatureParams as $key => $value) {
- $encodedParams[] = $this->oauth_urlencode($key) . '=' . $this->oauth_urlencode($value);
- }
-
- $baseString .= $this->oauth_urlencode(implode('&', $encodedParams));
-
- // encode the signature
- $tokens = $this->getToken();
- $hash = $this->hash_hmac_sha1($this->consumerSecret.'&'.$tokens['token_secret'], $baseString);
- $signature = base64_encode($hash);
-
- // add signature to oAuthParams
- $oAuthParams['oauth_signature'] = $signature;
-
- $oAuthEncoded = array();
- foreach ($oAuthParams as $key => $value) {
- $oAuthEncoded[] = $key . '="' . $this->oauth_urlencode($value) . '"';
- }
-
- return array('Authorization' => 'OAuth ' . implode(', ', $oAuthEncoded));
- }
-
- /**
- * Requests the OAuth request token.
- *
- * @return void
- */
- public function getRequestToken() {
- $result = $this->fetch(self::URI_REQUEST_TOKEN, array(), 'POST');
- if ($result['httpStatus'] == "200") {
- $tokens = array();
- parse_str($result['body'], $tokens);
- $this->setToken($tokens['oauth_token'], $tokens['oauth_token_secret']);
- return $this->getToken();
- } else {
- throw new Dropbox_Exception_RequestToken('We were unable to fetch request tokens. This likely means that your consumer key and/or secret are incorrect.');
- }
- }
-
- /**
- * Requests the OAuth access tokens.
- *
- * This method requires the 'unauthorized' request tokens
- * and, if successful will set the authorized request tokens.
- *
- * @return void
- */
- public function getAccessToken() {
- $result = $this->fetch(self::URI_ACCESS_TOKEN, array(), 'POST');
- if ($result['httpStatus'] == "200") {
- $tokens = array();
- parse_str($result['body'], $tokens);
- $this->setToken($tokens['oauth_token'], $tokens['oauth_token_secret']);
- return $this->getToken();
- } else {
- throw new Dropbox_Exception_RequestToken('We were unable to fetch request tokens. This likely means that your consumer key and/or secret are incorrect.');
- }
- }
-
- /**
- * Helper function to properly urlencode parameters.
- * See http://php.net/manual/en/function.oauth-urlencode.php
- *
- * @param string $string
- * @return string
- */
- private function oauth_urlencode($string) {
- return str_replace('%E7', '~', rawurlencode($string));
- }
-
- /**
- * Hash function for hmac_sha1; uses native function if available.
- *
- * @param string $key
- * @param string $data
- * @return string
- */
- private function hash_hmac_sha1($key, $data) {
- if (function_exists('hash_hmac') && in_array('sha1', hash_algos())) {
- return hash_hmac('sha1', $data, $key, true);
- } else {
- $blocksize = 64;
- $hashfunc = 'sha1';
- if (strlen($key) > $blocksize) {
- $key = pack('H*', $hashfunc($key));
- }
-
- $key = str_pad($key, $blocksize, chr(0x00));
- $ipad = str_repeat(chr(0x36), $blocksize);
- $opad = str_repeat(chr(0x5c), $blocksize);
- $hash = pack('H*', $hashfunc(( $key ^ $opad ) . pack('H*', $hashfunc(($key ^ $ipad) . $data))));
-
- return $hash;
- }
- }
-
-
-}
\ No newline at end of file
diff --git a/Dropbox/README.md b/Dropbox/README.md
deleted file mode 100644
index 54e05db76..000000000
--- a/Dropbox/README.md
+++ /dev/null
@@ -1,31 +0,0 @@
-Dropbox-php
-===========
-
-This PHP library allows you to easily integrate dropbox with PHP.
-
-The following PHP extension is required:
-
-* json
-
-The library makes use of OAuth. At the moment you can use either of these libraries:
-
-[PHP OAuth extension](http://pecl.php.net/package/oauth)
-[PEAR's HTTP_OAUTH package](http://pear.php.net/package/http_oauth)
-
-The extension is recommended, but if you can't install php extensions you should go for the pear package.
-Installing
-----------
-
- pear channel-discover pear.dropbox-php.com
- pear install dropbox-php/Dropbox-alpha
-
-Documentation
--------------
-Check out the [documentation](http://www.dropbox-php.com/docs).
-
-Questions?
-----------
-
-[Dropbox-php Mailing list](http://groups.google.com/group/dropbox-php)
-[Official Dropbox developer forum](http://forums.dropbox.com/forum.php?id=5)
-
diff --git a/Dropbox/autoload.php b/Dropbox/autoload.php
deleted file mode 100644
index 5388ea633..000000000
--- a/Dropbox/autoload.php
+++ /dev/null
@@ -1,29 +0,0 @@
- $error) {
- if ($error) {
- switch($error) {
- case UPLOAD_ERR_INI_SIZE:
- case UPLOAD_ERR_FORM_SIZE:
- echo "The uploaded file exceeds the upload_max_filesize directive in php.ini."; break;
- case UPLOAD_ERR_PARTIAL:
- echo "The uploaded file was only partially uploaded."; break;
- case UPLOAD_ERR_NO_FILE:
- break;
- case UPLOAD_ERR_NO_TMP_DIR:
- echo "Missing a temporary folder."; break;
- default:
- echo "Unknown error";
- }
- continue;
- }
-
- $weight = "normal";
- $style = "normal";
-
- switch($name) {
- case "bold":
- $weight = "bold"; break;
-
- case "italic":
- $style = "italic"; break;
-
- case "bold_italic":
- $weight = "bold";
- $style = "italic";
- break;
- }
-
- $style_arr = array(
- "family" => $family,
- "weight" => $weight,
- "style" => $style,
- );
-
- Font_Metrics::init();
-
- if (!Font_Metrics::register_font($style_arr, $data["tmp_name"][$name])) {
- echo $data["name"][$name]." is not a valid font file";
- }
- else {
- echo "The $family $weight $style font was successfully installed !
";
- }
- }
- break;
-}
\ No newline at end of file
diff --git a/dompdf/www/cssSandpaper/css/reset.css b/dompdf/www/cssSandpaper/css/reset.css
deleted file mode 100644
index 4d53549b6..000000000
--- a/dompdf/www/cssSandpaper/css/reset.css
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * CSS Reset based on code from
- * http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
- *
- * Earlier copy stated:
- * "If you want to use my reset styles, then feel free! It's all
- * explicitly in the public domain (I have to formally say that
- * or else people ask me about licensing)."
- */
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, font, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- outline: 0;
- font-weight: inherit;
- font-style: inherit;
- font-size: 100%;
- font-family: inherit;
- vertical-align: baseline;
-}
-/* remember to define focus styles! */
-:focus {
- outline: 0;
-}
-body {
- line-height: 1;
- color: black;
- background: white;
-}
-ol, ul {
- list-style: none;
-}
-/* tables still need 'cellspacing="0"' in the markup */
-table {
- border-collapse: separate;
- border-spacing: 0;
-}
-caption, th, td {
- text-align: left;
- font-weight: normal;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: "";
-}
-blockquote, q {
- quotes: "" "";
-}
-
-/*
- * Added 2009/02/04 to fix IE7's issue with interpolated
- * scaling not turned on by default. Based on an idea from
- * http://acidmartin.wordpress.com/2009/01/05/better-image-scaling-and-resampling-in-internet-explorer/
- */
-img
-{
- -ms-interpolation-mode: bicubic;
-}
diff --git a/dompdf/www/cssSandpaper/js/EventHelpers.js b/dompdf/www/cssSandpaper/js/EventHelpers.js
deleted file mode 100644
index 52fe7e67e..000000000
--- a/dompdf/www/cssSandpaper/js/EventHelpers.js
+++ /dev/null
@@ -1,441 +0,0 @@
-/*******************************************************************************
- * This notice must be untouched at all times.
- *
- * This javascript library contains helper routines to assist with event
- * handling consinstently among browsers
- *
- * EventHelpers.js v.1.3 available at http://www.useragentman.com/
- *
- * released under the MIT License:
- * http://www.opensource.org/licenses/mit-license.php
- *
- *******************************************************************************/
-var EventHelpers = new function(){
- var me = this;
-
- var safariTimer;
- var isSafari = /WebKit/i.test(navigator.userAgent);
- var globalEvent;
-
- me.init = function () {
- if (me.hasPageLoadHappened(arguments)) {
- return;
- }
-
- if (document.createEventObject){
- // dispatch for IE
- globalEvent = document.createEventObject();
- } else if (document.createEvent) {
- globalEvent = document.createEvent("HTMLEvents");
- }
-
- me.docIsLoaded = true;
- }
-
- /**
- * Adds an event to the document. Examples of usage:
- * me.addEvent(window, "load", myFunction);
- * me.addEvent(docunent, "keydown", keyPressedFunc);
- * me.addEvent(document, "keyup", keyPressFunc);
- *
- * @author Scott Andrew - http://www.scottandrew.com/weblog/articles/cbs-events
- * @author John Resig - http://ejohn.org/projects/flexible-javascript-events/
- * @param {Object} obj - a javascript object.
- * @param {String} evType - an event to attach to the object.
- * @param {Function} fn - the function that is attached to the event.
- */
- me.addEvent = function(obj, evType, fn){
-
- if (obj.addEventListener) {
- obj.addEventListener(evType, fn, false);
- } else if (obj.attachEvent) {
- obj['e' + evType + fn] = fn;
- obj[evType + fn] = function(){
- obj["e" + evType + fn](self.event);
- }
- obj.attachEvent("on" + evType, obj[evType + fn]);
- }
- }
-
-
- /**
- * Removes an event that is attached to a javascript object.
- *
- * @author Scott Andrew - http://www.scottandrew.com/weblog/articles/cbs-events
- * @author John Resig - http://ejohn.org/projects/flexible-javascript-events/ * @param {Object} obj - a javascript object.
- * @param {String} evType - an event attached to the object.
- * @param {Function} fn - the function that is called when the event fires.
- */
- me.removeEvent = function(obj, evType, fn){
-
- if (obj.removeEventListener) {
- obj.removeEventListener(evType, fn, false);
- } else if (obj.detachEvent) {
- try {
- obj.detachEvent("on" + evType, obj[evType + fn]);
- obj[evType + fn] = null;
- obj["e" + evType + fn] = null;
- }
- catch (ex) {
- // do nothing;
- }
- }
- }
-
- function removeEventAttribute(obj, beginName){
- var attributes = obj.attributes;
- for (var i = 0; i < attributes.length; i++) {
- var attribute = attributes[i]
- var name = attribute.name
- if (name.indexOf(beginName) == 0) {
- //obj.removeAttributeNode(attribute);
- attribute.specified = false;
- }
- }
- }
-
- me.addScrollWheelEvent = function(obj, fn){
- if (obj.addEventListener) {
- /** DOMMouseScroll is for mozilla. */
- obj.addEventListener('DOMMouseScroll', fn, true);
- }
-
- /** IE/Opera. */
- if (obj.attachEvent) {
- obj.attachEvent("onmousewheel", fn);
- }
-
- }
-
- me.removeScrollWheelEvent = function(obj, fn){
- if (obj.removeEventListener) {
- /** DOMMouseScroll is for mozilla. */
- obj.removeEventListener('DOMMouseScroll', fn, true);
- }
-
- /** IE/Opera. */
- if (obj.detachEvent) {
- obj.detatchEvent("onmousewheel", fn);
- }
-
- }
-
- /**
- * Given a mouse event, get the mouse pointer's x-coordinate.
- *
- * @param {Object} e - a DOM Event object.
- * @return {int} - the mouse pointer's x-coordinate.
- */
- me.getMouseX = function(e){
- if (!e) {
- return;
- }
- // NS4
- if (e.pageX != null) {
- return e.pageX;
- // IE
- } else if (window.event != null && window.event.clientX != null &&
- document.body != null &&
- document.body.scrollLeft != null)
- return window.event.clientX + document.body.scrollLeft;
- // W3C
- else if (e.clientX != null)
- return e.clientX;
- else
- return null;
- }
-
- /**
- * Given a mouse event, get the mouse pointer's y-coordinate.
- * @param {Object} e - a DOM Event Object.
- * @return {int} - the mouse pointer's y-coordinate.
- */
- me.getMouseY = function(e){
- // NS4
- if (e.pageY != null)
- return e.pageY;
- // IE
- else if (window.event != null && window.event.clientY != null &&
- document.body != null &&
- document.body.scrollTop != null)
- return window.event.clientY + document.body.scrollTop;
- // W3C
- else if (e.clientY != null) {
- return e.clientY;
- }
- }
- /**
- * Given a mouse scroll wheel event, get the "delta" of how fast it moved.
- * @param {Object} e - a DOM Event Object.
- * @return {int} - the mouse wheel's delta. It is greater than 0, the
- * scroll wheel was spun upwards; if less than 0, downwards.
- */
- me.getScrollWheelDelta = function(e){
- var delta = 0;
- if (!e) /* For IE. */
- e = window.event;
- if (e.wheelDelta) { /* IE/Opera. */
- delta = e.wheelDelta / 120;
- /** In Opera 9, delta differs in sign as compared to IE.
- */
- if (window.opera) {
- delta = -delta;
- }
- } else if (e.detail) { /** Mozilla case. */
- /** In Mozilla, sign of delta is different than in IE.
- * Also, delta is multiple of 3.
- */
- delta = -e.detail / 3;
- }
- return delta
- }
-
- /**
- * Sets a mouse move event of a document.
- *
- * @deprecated - use only if compatibility with IE4 and NS4 is necessary. Otherwise, just
- * use EventHelpers.addEvent(window, 'mousemove', func) instead. Cannot be used to add
- * multiple mouse move event handlers.
- *
- * @param {Function} func - the function that you want a mouse event to fire.
- */
- me.addMouseEvent = function(func){
-
- if (document.captureEvents) {
- document.captureEvents(Event.MOUSEMOVE);
- }
-
- document.onmousemove = func;
- window.onmousemove = func;
- window.onmouseover = func;
-
- }
-
-
-
- /**
- * Find the HTML object that fired an Event.
- *
- * @param {Object} e - an HTML object
- * @return {Object} - the HTML object that fired the event.
- */
- me.getEventTarget = function(e){
- // first, IE method for mouse events(also supported by Safari and Opera)
- if (e.toElement) {
- return e.toElement;
- // W3C
- } else if (e.currentTarget) {
- return e.currentTarget;
-
- // MS way
- } else if (e.srcElement) {
- return e.srcElement;
- } else {
- return null;
- }
- }
-
-
-
-
- /**
- * Given an event fired by the keyboard, find the key associated with that event.
- *
- * @param {Object} e - an event object.
- * @return {String} - the ASCII character code representing the key associated with the event.
- */
- me.getKey = function(e){
- if (e.keyCode) {
- return e.keyCode;
- } else if (e.event && e.event.keyCode) {
- return window.event.keyCode;
- } else if (e.which) {
- return e.which;
- }
- }
-
-
- /**
- * Will execute a function when the page's DOM has fully loaded (and before all attached images, iframes,
- * etc., are).
- *
- * Usage:
- *
- * EventHelpers.addPageLoadEvent('init');
- *
- * where the function init() has this code at the beginning:
- *
- * function init() {
- *
- * if (EventHelpers.hasPageLoadHappened(arguments)) return;
- *
- * // rest of code
- * ....
- * }
- *
- * @author This code is based off of code from http://dean.edwards.name/weblog/2005/09/busted/ by Dean
- * Edwards, with a modification by me.
- *
- * @param {String} funcName - a string containing the function to be called.
- */
- me.addPageLoadEvent = function(funcName){
-
- var func = eval(funcName);
-
- // for Internet Explorer (using conditional comments)
- /*@cc_on @*/
- /*@if (@_win32)
- pageLoadEventArray.push(func);
- return;
- /*@end @*/
- if (isSafari) { // sniff
- pageLoadEventArray.push(func);
-
- if (!safariTimer) {
-
- safariTimer = setInterval(function(){
- if (/loaded|complete/.test(document.readyState)) {
- clearInterval(safariTimer);
-
- /*
- * call the onload handler
- * func();
- */
- me.runPageLoadEvents();
- return;
- }
- set = true;
- }, 10);
- }
- /* for Mozilla */
- } else if (document.addEventListener) {
- var x = document.addEventListener("DOMContentLoaded", func, null);
-
- /* Others */
- } else {
- me.addEvent(window, 'load', func);
- }
- }
-
- var pageLoadEventArray = new Array();
-
- me.runPageLoadEvents = function(e){
- if (isSafari || e.srcElement.readyState == "complete") {
-
- for (var i = 0; i < pageLoadEventArray.length; i++) {
- pageLoadEventArray[i]();
- }
- }
- }
- /**
- * Determines if either addPageLoadEvent('funcName') or addEvent(window, 'load', funcName)
- * has been executed.
- *
- * @see addPageLoadEvent
- * @param {Function} funcArgs - the arguments of the containing. function
- */
- me.hasPageLoadHappened = function(funcArgs){
- // If the function already been called, return true;
- if (funcArgs.callee.done)
- return true;
-
- // flag this function so we don't do the same thing twice
- funcArgs.callee.done = true;
- }
-
-
-
- /**
- * Used in an event method/function to indicate that the default behaviour of the event
- * should *not* happen.
- *
- * @param {Object} e - an event object.
- * @return {Boolean} - always false
- */
- me.preventDefault = function(e){
-
- if (e.preventDefault) {
- e.preventDefault();
- }
-
- try {
- e.returnValue = false;
- }
- catch (ex) {
- // do nothing
- }
-
- }
-
- me.cancelBubble = function(e){
- if (e.stopPropagation) {
- e.stopPropagation();
- }
-
- try {
- e.cancelBubble = true;
- }
- catch (ex) {
- // do nothing
- }
- }
-
- /*
- * Fires an event manually.
- * @author Scott Andrew - http://www.scottandrew.com/weblog/articles/cbs-events
- * @author John Resig - http://ejohn.org/projects/flexible-javascript-events/ * @param {Object} obj - a javascript object.
- * @param {String} evType - an event attached to the object.
- * @param {Function} fn - the function that is called when the event fires.
- *
- */
- me.fireEvent = function (element,event, options){
-
- if(!element) {
- return;
- }
-
- if (document.createEventObject){
- /*
- var stack = DebugHelpers.getStackTrace();
- var s = stack.toString();
- jslog.debug(s);
- if (s.indexOf('fireEvent') >= 0) {
- return;
- }
- */
- return element.fireEvent('on' + event, globalEvent)
- jslog.debug('ss');
-
- }
- else{
- // dispatch for firefox + others
- globalEvent.initEvent(event, true, true); // event type,bubbling,cancelable
- return !element.dispatchEvent(globalEvent);
- }
-}
-
- /* EventHelpers.init () */
- function init(){
- // Conditional comment alert: Do not remove comments. Leave intact.
- // The detection if the page is secure or not is important. If
- // this logic is removed, Internet Explorer will give security
- // alerts.
- /*@cc_on @*/
- /*@if (@_win32)
-
- document.write('
-
-
-
-
-
-
-
- - - - - - - - - | -||
- - | -- - | -- - | -
Enter your html snippet in the text box below to see it rendered as a -PDF: (Note by default, remote stylesheets, images & inline PHP are disabled.)
- - -(Note: if you use a KHTML -based browser and are having difficulties loading the sample output, try -saving it to a file first.)
- - - -- User input has been disabled for remote connections. -
- - - - \ No newline at end of file diff --git a/dompdf/www/examples.php b/dompdf/www/examples.php deleted file mode 100644 index 06a541c27..000000000 --- a/dompdf/www/examples.php +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - -Below are some sample files. The PDF version is generated on the fly by dompdf. (The source HTML & CSS for -these files is included in the test/ directory of the distribution -package.)
- - array(), - "dom" => array(), - "image" => array(), - "page" => array(), - "encoding" => array(), - "script" => array(), - "quirks" => array(), - "other" => array(), -); - -//if dompdf.php runs in virtual server root, dirname does not return empty folder but '/' or '\' (windows). -//This leads to a duplicate separator in unix etc. and an error in Windows. Therefore strip off. - -$dompdf = dirname(dirname($_SERVER["PHP_SELF"])); -if ( $dompdf == '/' || $dompdf == '\\') { - $dompdf = ''; -} - -$dompdf .= "/dompdf.php?base_path=" . rawurlencode("www/test/"); - - -foreach ( $test_files as $file ) { - preg_match("@[\\/](([^_]+)_?(.*))\.(".implode("|", $extensions).")$@i", $file, $matches); - $prefix = $matches[2]; - - if ( array_key_exists($prefix, $sections) ) { - $sections[$prefix][] = array($file, $matches[3]); - } - else { - $sections["other"][] = array($file, $matches[1]); - } -} - -foreach ( $sections as $section => $files ) { - echo "Font family | -Variants | -File versions | -|||||
---|---|---|---|---|---|---|---|
TTF | -AFM | -AFM cache | -UFM | -UFM cache | -|||
- (default)'; - ?> - | - $path) { - if ($i > 0) { - echo "|||||||
- $name : $path - | ";
-
- foreach ($extensions as $ext) {
- $v = "";
- $class = "";
-
- if (is_readable("$path.$ext")) {
- // if not cache file
- if (strpos($ext, ".php") === false) {
- $class = "ok";
- $v = $ext;
- }
-
- // cache file
- else {
- // check if old cache format
- $content = file_get_contents("$path.$ext", null, null, null, 50);
- if (strpos($content, '$this->')) {
- $v = "DEPREC.";
- }
- else {
- ob_start();
- $d = include("$path.$ext");
- ob_end_clean();
-
- if ($d == 1)
- $v = "DEPREC.";
- else {
- $class = "ok";
- $v = $d["_version_"];
- }
- }
- }
- }
-
- echo "$v | "; - } - - echo "