/composer.lock |
@@ -4,7 +4,7 @@ |
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", |
"This file is @generated automatically" |
], |
"content-hash": "1be622cf34e47f742b54f717572972a0", |
"content-hash": "68527e96f8378fa77deddb114ef7a04a", |
"packages": [ |
{ |
"name": "alchemy/binary-driver", |
@@ -64,6 +64,110 @@ |
"time": "2016-03-02T13:49:15+00:00" |
}, |
{ |
"name": "aura/installer-default", |
"version": "1.0.0", |
"source": { |
"type": "git", |
"url": "https://github.com/auraphp/installer-default.git", |
"reference": "52f8de3670cc1ef45a916f40f732937436d028c8" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/auraphp/installer-default/zipball/52f8de3670cc1ef45a916f40f732937436d028c8", |
"reference": "52f8de3670cc1ef45a916f40f732937436d028c8", |
"shasum": "" |
}, |
"type": "composer-installer", |
"extra": { |
"class": "Aura\\Composer\\DefaultInstaller" |
}, |
"autoload": { |
"psr-0": { |
"Aura\\Composer\\": "src/" |
} |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"BSD-2-Clause" |
], |
"authors": [ |
{ |
"name": "Paul M. Jones", |
"email": "pmjones88@gmail.com", |
"homepage": "http://paul-m-jones.com" |
} |
], |
"description": "Installs Aura packages using the Composer defaults.", |
"keywords": [ |
"aura", |
"installer" |
], |
"time": "2012-11-26T21:35:57+00:00" |
}, |
{ |
"name": "aura/uri", |
"version": "1.2.0", |
"source": { |
"type": "git", |
"url": "https://github.com/auraphp/Aura.Uri.git", |
"reference": "298abdf98f64e06928a159abc61c227b2814c065" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/auraphp/Aura.Uri/zipball/298abdf98f64e06928a159abc61c227b2814c065", |
"reference": "298abdf98f64e06928a159abc61c227b2814c065", |
"shasum": "" |
}, |
"require": { |
"aura/installer-default": "1.0.*", |
"php": ">=5.4.0" |
}, |
"type": "aura-package", |
"autoload": { |
"psr-0": { |
"Aura\\Uri": "src/" |
} |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"BSD-2-Clause" |
], |
"authors": [ |
{ |
"name": "Paul M. Jones", |
"email": "pmjones88@gmail.com", |
"homepage": "http://paul-m-jones.com" |
}, |
{ |
"name": "Hari KT", |
"email": "kthari85@gmail.com", |
"homepage": "http://harikt.com" |
}, |
{ |
"name": "Aura.Uri Contributors", |
"homepage": "https://github.com/auraphp/Aura.Uri/contributors" |
}, |
{ |
"name": "Jonathon Hill", |
"email": "jhill9693@gmail.com", |
"homepage": "http://jonathonhill.net", |
"role": "Developer" |
}, |
{ |
"name": "Jeremy Kendall", |
"email": "jeremy@jeremykendall.net", |
"homepage": "http://www.jeremykendall.net" |
} |
], |
"description": "The Aura Uri package provides tools to build and manipulate URL strings.", |
"homepage": "http://auraphp.com/Aura.Uri", |
"keywords": [ |
"uri", |
"url" |
], |
"time": "2014-05-31T00:00:00+00:00" |
}, |
{ |
"name": "doctrine/cache", |
"version": "v1.6.1", |
"source": { |
@@ -523,66 +627,17 @@ |
"time": "2017-06-24T09:29:48+00:00" |
}, |
{ |
"name": "symfony/finder", |
"name": "symfony/process", |
"version": "v3.3.4", |
"source": { |
"type": "git", |
"url": "https://github.com/symfony/finder.git", |
"reference": "baea7f66d30854ad32988c11a09d7ffd485810c4" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/symfony/finder/zipball/baea7f66d30854ad32988c11a09d7ffd485810c4", |
"reference": "baea7f66d30854ad32988c11a09d7ffd485810c4", |
"shasum": "" |
}, |
"require": { |
"php": ">=5.5.9" |
}, |
"type": "library", |
"extra": { |
"branch-alias": { |
"dev-master": "3.3-dev" |
} |
}, |
"autoload": { |
"psr-4": { |
"Symfony\\Component\\Finder\\": "" |
}, |
"exclude-from-classmap": [ |
"/Tests/" |
] |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"MIT" |
], |
"authors": [ |
{ |
"name": "Fabien Potencier", |
"email": "fabien@symfony.com" |
}, |
{ |
"name": "Symfony Community", |
"homepage": "https://symfony.com/contributors" |
} |
], |
"description": "Symfony Finder Component", |
"homepage": "https://symfony.com", |
"time": "2017-06-01T21:01:25+00:00" |
}, |
{ |
"name": "symfony/process", |
"version": "v3.3.2", |
"source": { |
"type": "git", |
"url": "https://github.com/symfony/process.git", |
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf" |
"reference": "5ab8949b682b1bf9d4511a228b5e045c96758c30" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/symfony/process/zipball/8e30690c67aafb6c7992d6d8eb0d707807dd3eaf", |
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf", |
"url": "https://api.github.com/repos/symfony/process/zipball/5ab8949b682b1bf9d4511a228b5e045c96758c30", |
"reference": "5ab8949b682b1bf9d4511a228b5e045c96758c30", |
"shasum": "" |
}, |
"require": { |
@@ -618,7 +673,7 @@ |
], |
"description": "Symfony Process Component", |
"homepage": "https://symfony.com", |
"time": "2017-05-22T12:32:03+00:00" |
"time": "2017-07-03T08:12:02+00:00" |
} |
], |
"packages-dev": [], |
/graph.php |
@@ -7,8 +7,20 @@ |
require_once('php/pseudocrypt.php'); |
require_once('php/functions.php'); |
require_once('vendor/autoload.php'); |
|
### FFMpeg |
require_once('vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php'); |
|
### Aura URI |
require_once('vendor/aura/uri/src/Aura/Uri/PublicSuffixList.php'); |
require_once('vendor/aura/uri/src/Aura/Uri/Url/Factory.php'); |
require_once('vendor/aura/uri/src/Aura/Uri/Query.php'); |
require_once('vendor/aura/uri/src/Aura/Uri/Host.php'); |
require_once('vendor/aura/uri/src/Aura/Uri/Url.php'); |
require_once('vendor/aura/uri/src/Aura/Uri/Path.php'); |
use Aura\Uri\Url\Factory as UrlFactory; |
use Aura\Uri\PublicSuffixList; |
|
### Load configuration. |
$config = spyc_load_file('config.yaml'); |
|
@@ -65,10 +77,28 @@ |
die('File not found.'); |
} |
|
$GRAPH_URL = $config['URL_PATH'].'og/'.$_GET['hash']; |
$CANON_URL = $config['URL_PATH'].'file.php?hash='.$_GET['hash']; |
$BASIC_URL = $config['URL_PATH'].$_GET['hash']; |
### Extract the server path. |
$URLFactory = new UrlFactory( |
$_SERVER, |
new PublicSuffixList(require 'vendor/aura/uri/data/public-suffix-list.php') |
); |
$URL = $URLFactory->newCurrent(); |
|
### HTTPs has to be enforced for opengraph sharing. |
if(strtoupper($URL->scheme) != 'HTTPS') |
$URL->setScheme('https'); |
|
$URL_PATH = array_shift( |
explode( |
'og/'.$_GET['hash'], |
$URL->getFull() |
) |
); |
|
$GRAPH_URL = $URL_PATH.'og/'.$_GET['hash']; |
$CANON_URL = $URL_PATH.'file.php?hash='.$_GET['hash']; |
$BASIC_URL = $URL_PATH.$_GET['hash']; |
|
switch(strtoupper($fileExtension)) { |
case 'GIF': |
list($width, $height) = getimagesize($userPath); |
@@ -146,9 +176,9 @@ |
$videoHeight = $dimension->getHeight(); |
|
### Build paths. |
$PREVIEW_IMAGE_URL = $config['URL_PATH'].$file; |
$FLOW_PLAYER_VIDEO_URL = $config['URL_PATH'].'flowplayer/flowplayer.swf?config={"clip":"'.$BASIC_URL.'"}'; |
$FLOW_PLAYER = $config['URL_PATH'].'flowplayer/flowplayer.swf'; |
$PREVIEW_IMAGE_URL = $URL_PATH.$file; |
$FLOW_PLAYER_VIDEO_URL = $URL_PATH.'flowplayer/flowplayer.swf?config={"clip":"'.$BASIC_URL.'"}'; |
$FLOW_PLAYER = $URL_PATH.'flowplayer/flowplayer.swf'; |
|
echo <<<END |
<html> |
/vendor/composer/installed.json |
@@ -181,57 +181,6 @@ |
] |
}, |
{ |
"name": "symfony/filesystem", |
"version": "v3.3.4", |
"version_normalized": "3.3.4.0", |
"source": { |
"type": "git", |
"url": "https://github.com/symfony/filesystem.git", |
"reference": "311fa718389efbd8b627c272b9324a62437018cc" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/symfony/filesystem/zipball/311fa718389efbd8b627c272b9324a62437018cc", |
"reference": "311fa718389efbd8b627c272b9324a62437018cc", |
"shasum": "" |
}, |
"require": { |
"php": ">=5.5.9" |
}, |
"time": "2017-06-24T09:29:48+00:00", |
"type": "library", |
"extra": { |
"branch-alias": { |
"dev-master": "3.3-dev" |
} |
}, |
"installation-source": "dist", |
"autoload": { |
"psr-4": { |
"Symfony\\Component\\Filesystem\\": "" |
}, |
"exclude-from-classmap": [ |
"/Tests/" |
] |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"MIT" |
], |
"authors": [ |
{ |
"name": "Fabien Potencier", |
"email": "fabien@symfony.com" |
}, |
{ |
"name": "Symfony Community", |
"homepage": "https://symfony.com/contributors" |
} |
], |
"description": "Symfony Filesystem Component", |
"homepage": "https://symfony.com" |
}, |
{ |
"name": "neutron/temporary-filesystem", |
"version": "2.2.0", |
"version_normalized": "2.2.0.0", |
@@ -394,57 +343,6 @@ |
] |
}, |
{ |
"name": "symfony/process", |
"version": "v3.3.2", |
"version_normalized": "3.3.2.0", |
"source": { |
"type": "git", |
"url": "https://github.com/symfony/process.git", |
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/symfony/process/zipball/8e30690c67aafb6c7992d6d8eb0d707807dd3eaf", |
"reference": "8e30690c67aafb6c7992d6d8eb0d707807dd3eaf", |
"shasum": "" |
}, |
"require": { |
"php": ">=5.5.9" |
}, |
"time": "2017-05-22T12:32:03+00:00", |
"type": "library", |
"extra": { |
"branch-alias": { |
"dev-master": "3.3-dev" |
} |
}, |
"installation-source": "dist", |
"autoload": { |
"psr-4": { |
"Symfony\\Component\\Process\\": "" |
}, |
"exclude-from-classmap": [ |
"/Tests/" |
] |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"MIT" |
], |
"authors": [ |
{ |
"name": "Fabien Potencier", |
"email": "fabien@symfony.com" |
}, |
{ |
"name": "Symfony Community", |
"homepage": "https://symfony.com/contributors" |
} |
], |
"description": "Symfony Process Component", |
"homepage": "https://symfony.com" |
}, |
{ |
"name": "alchemy/binary-driver", |
"version": "1.6.0", |
"version_normalized": "1.6.0.0", |
@@ -585,24 +483,132 @@ |
] |
}, |
{ |
"name": "symfony/finder", |
"name": "aura/installer-default", |
"version": "1.0.0", |
"version_normalized": "1.0.0.0", |
"source": { |
"type": "git", |
"url": "https://github.com/auraphp/installer-default.git", |
"reference": "52f8de3670cc1ef45a916f40f732937436d028c8" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/auraphp/installer-default/zipball/52f8de3670cc1ef45a916f40f732937436d028c8", |
"reference": "52f8de3670cc1ef45a916f40f732937436d028c8", |
"shasum": "" |
}, |
"time": "2012-11-26T21:35:57+00:00", |
"type": "composer-installer", |
"extra": { |
"class": "Aura\\Composer\\DefaultInstaller" |
}, |
"installation-source": "dist", |
"autoload": { |
"psr-0": { |
"Aura\\Composer\\": "src/" |
} |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"BSD-2-Clause" |
], |
"authors": [ |
{ |
"name": "Paul M. Jones", |
"email": "pmjones88@gmail.com", |
"homepage": "http://paul-m-jones.com" |
} |
], |
"description": "Installs Aura packages using the Composer defaults.", |
"keywords": [ |
"aura", |
"installer" |
] |
}, |
{ |
"name": "aura/uri", |
"version": "1.2.0", |
"version_normalized": "1.2.0.0", |
"source": { |
"type": "git", |
"url": "https://github.com/auraphp/Aura.Uri.git", |
"reference": "298abdf98f64e06928a159abc61c227b2814c065" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/auraphp/Aura.Uri/zipball/298abdf98f64e06928a159abc61c227b2814c065", |
"reference": "298abdf98f64e06928a159abc61c227b2814c065", |
"shasum": "" |
}, |
"require": { |
"aura/installer-default": "1.0.*", |
"php": ">=5.4.0" |
}, |
"time": "2014-05-31T00:00:00+00:00", |
"type": "aura-package", |
"installation-source": "dist", |
"autoload": { |
"psr-0": { |
"Aura\\Uri": "src/" |
} |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"BSD-2-Clause" |
], |
"authors": [ |
{ |
"name": "Paul M. Jones", |
"email": "pmjones88@gmail.com", |
"homepage": "http://paul-m-jones.com" |
}, |
{ |
"name": "Hari KT", |
"email": "kthari85@gmail.com", |
"homepage": "http://harikt.com" |
}, |
{ |
"name": "Aura.Uri Contributors", |
"homepage": "https://github.com/auraphp/Aura.Uri/contributors" |
}, |
{ |
"name": "Jonathon Hill", |
"email": "jhill9693@gmail.com", |
"homepage": "http://jonathonhill.net", |
"role": "Developer" |
}, |
{ |
"name": "Jeremy Kendall", |
"email": "jeremy@jeremykendall.net", |
"homepage": "http://www.jeremykendall.net" |
} |
], |
"description": "The Aura Uri package provides tools to build and manipulate URL strings.", |
"homepage": "http://auraphp.com/Aura.Uri", |
"keywords": [ |
"uri", |
"url" |
] |
}, |
{ |
"name": "symfony/filesystem", |
"version": "v3.3.4", |
"version_normalized": "3.3.4.0", |
"source": { |
"type": "git", |
"url": "https://github.com/symfony/finder.git", |
"reference": "baea7f66d30854ad32988c11a09d7ffd485810c4" |
"url": "https://github.com/symfony/filesystem.git", |
"reference": "311fa718389efbd8b627c272b9324a62437018cc" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/symfony/finder/zipball/baea7f66d30854ad32988c11a09d7ffd485810c4", |
"reference": "baea7f66d30854ad32988c11a09d7ffd485810c4", |
"url": "https://api.github.com/repos/symfony/filesystem/zipball/311fa718389efbd8b627c272b9324a62437018cc", |
"reference": "311fa718389efbd8b627c272b9324a62437018cc", |
"shasum": "" |
}, |
"require": { |
"php": ">=5.5.9" |
}, |
"time": "2017-06-01T21:01:25+00:00", |
"time": "2017-06-24T09:29:48+00:00", |
"type": "library", |
"extra": { |
"branch-alias": { |
@@ -612,7 +618,7 @@ |
"installation-source": "dist", |
"autoload": { |
"psr-4": { |
"Symfony\\Component\\Finder\\": "" |
"Symfony\\Component\\Filesystem\\": "" |
}, |
"exclude-from-classmap": [ |
"/Tests/" |
@@ -632,7 +638,58 @@ |
"homepage": "https://symfony.com/contributors" |
} |
], |
"description": "Symfony Finder Component", |
"description": "Symfony Filesystem Component", |
"homepage": "https://symfony.com" |
}, |
{ |
"name": "symfony/process", |
"version": "v3.3.4", |
"version_normalized": "3.3.4.0", |
"source": { |
"type": "git", |
"url": "https://github.com/symfony/process.git", |
"reference": "5ab8949b682b1bf9d4511a228b5e045c96758c30" |
}, |
"dist": { |
"type": "zip", |
"url": "https://api.github.com/repos/symfony/process/zipball/5ab8949b682b1bf9d4511a228b5e045c96758c30", |
"reference": "5ab8949b682b1bf9d4511a228b5e045c96758c30", |
"shasum": "" |
}, |
"require": { |
"php": ">=5.5.9" |
}, |
"time": "2017-07-03T08:12:02+00:00", |
"type": "library", |
"extra": { |
"branch-alias": { |
"dev-master": "3.3-dev" |
} |
}, |
"installation-source": "dist", |
"autoload": { |
"psr-4": { |
"Symfony\\Component\\Process\\": "" |
}, |
"exclude-from-classmap": [ |
"/Tests/" |
] |
}, |
"notification-url": "https://packagist.org/downloads/", |
"license": [ |
"MIT" |
], |
"authors": [ |
{ |
"name": "Fabien Potencier", |
"email": "fabien@symfony.com" |
}, |
{ |
"name": "Symfony Community", |
"homepage": "https://symfony.com/contributors" |
} |
], |
"description": "Symfony Process Component", |
"homepage": "https://symfony.com" |
} |
] |