Exemplo n.º 1
0
    $showHeader = false;
}
if ($cli->getParam('help')) {
    $cli->displayHelp();
    exit(0);
}
// Check for required extensions
$extensions = array("bcmath", "curl", "SimpleXML");
foreach ($extensions as $extension) {
    if (!extension_loaded($extension)) {
        LogError("You don't have '{$extension}' extension installed. please install it before continuing.");
    }
}
// Initialize classes
$cc = new cURL();
$f4f = new F4F();
$f4f->baseFilename =& $baseFilename;
$f4f->debug =& $debug;
$f4f->fixWindow =& $fixWindow;
$f4f->format =& $format;
$f4f->outDir =& $outDir;
$f4f->outFile =& $outFile;
$f4f->play =& $play;
$f4f->rename =& $rename;
// Process command line options
if ($cli->getParam('debug')) {
    $debug = true;
}
if ($cli->getParam('delete')) {
    $delete = true;
}
Exemplo n.º 2
0
    $showHeader = false;
}
if ($cli->getParam('help')) {
    $cli->displayHelp();
    exit(0);
}
// Check for required extensions
$required_extensions = array("bcmath", "curl", "SimpleXML");
$missing_extensions = array_diff($required_extensions, get_loaded_extensions());
if ($missing_extensions) {
    $msg = "You have to install the following extension(s) to continue: '" . implode("', '", $missing_extensions) . "'";
    LogError($msg);
}
// Initialize classes
$cc = new cURL();
$f4f = new F4F();
$f4f->baseFilename =& $baseFilename;
$f4f->debug =& $debug;
$f4f->fixWindow =& $fixWindow;
$f4f->format =& $format;
$f4f->metadata =& $metadata;
$f4f->outDir =& $outDir;
$f4f->outFile =& $outFile;
$f4f->play =& $play;
$f4f->rename =& $rename;
// Process command line options
if (isset($cli->params['unknown'])) {
    $baseFilename = $cli->params['unknown'][0];
}
if ($cli->getParam('debug')) {
    $debug = true;
Exemplo n.º 3
0
// Check for required extensions
$required_extensions = array("bcmath", "curl", "mcrypt", "SimpleXML");
$missing_extensions = array_diff($required_extensions, get_loaded_extensions());
if ($missing_extensions) {
    $msg = "You have to install and enable the following extension(s) to continue: '" . implode("', '", $missing_extensions) . "'";
    LogError($msg);
}
// Display help
if ($cli->getParam('help')) {
    $cli->displayHelp();
    exit(0);
}
// Initialize classes
$cc = new cURL();
$ad = new AkamaiDecryptor();
$f4f = new F4F();
// Process command line options
if (isset($cli->params['unknown'])) {
    $baseFilename = $cli->params['unknown'][0];
}
if ($cli->getParam('debug')) {
    $debug = true;
}
if ($cli->getParam('delete')) {
    $delete = true;
}
if ($cli->getParam('fproxy')) {
    $cc->fragProxy = true;
}
if ($cli->getParam('rename')) {
    $rename = $cli->getParam('rename');