Example #1
0
<?php

eval(getPluginConf($plugin["name"]));
require_once 'unpack.php';
if ($do_diagnostic) {
    if (USE_UNRAR) {
        findRemoteEXE('unzip', "thePlugins.get('unpack').showError('theUILang.unzipNotFound');", $remoteRequests);
    }
    if (USE_UNZIP) {
        findRemoteEXE('unrar', "thePlugins.get('unpack').showError('theUILang.unrarNotFound');", $remoteRequests);
    }
}
if (USE_UNZIP || USE_UNRAR) {
    $up = rUnpack::load();
    if ($up->setHandlers()) {
        $jResult .= "plugin.useUnzip = " . (USE_UNZIP ? "true;" : "false;");
        $jResult .= "plugin.useUnrar = " . (USE_UNRAR ? "true;" : "false;");
        $jResult .= $up->get();
        $theSettings->registerPlugin($plugin["name"], $pInfo["perms"]);
    } else {
        $jResult .= "plugin.disable(); noty('unpack: '+theUILang.pluginCantStart,'error');";
    }
} else {
    $jResult .= "plugin.disable(); noty('unpack: '+theUILang.pluginCantStart,'error');";
}
Example #2
0
     }
     if (!isLocalMode()) {
         if ($info["rtorrent.remote"] == "error") {
             $jResult .= "noty('" . $file . ": '+theUILang.errMustBeInSomeHost,'error');";
             $disabled[$file] = $info;
             continue;
         }
         if ($do_diagnostic && $info["rtorrent.remote"] == "warning") {
             $jResult .= "noty('" . $file . ": '+theUILang.warnMustBeInSomeHost,'error');";
         }
     }
 }
 if ($do_diagnostic) {
     if ($theSettings->linkExist) {
         foreach ($info['rtorrent.external.warning'] as $external) {
             findRemoteEXE($external, "noty('" . $file . ": '+theUILang.rTorrentExternalNotFoundWarning+' ('+'" . $external . "'+').','error');", $remoteRequests);
         }
     }
     foreach ($info['web.external.warning'] as $external) {
         if (findEXE($external) == false) {
             $jResult .= "noty('" . $file . ": '+theUILang.webExternalNotFoundWarning+' ('+'" . $external . "'+').','error');";
         }
     }
     foreach ($info['php.extensions.warning'] as $extension) {
         if (!in_array($extension, $loadedExtensions)) {
             $jResult .= "noty('" . $file . ": '+theUILang.phpExtensionNotFoundWarning+' ('+'" . $extension . "'+').','error');";
         }
     }
 }
 $js = "../plugins/" . $file . "/init.js";
 if (!is_readable($js)) {
Example #3
0
<?php

eval(getPluginConf($plugin["name"]));
if ($do_diagnostic) {
    findRemoteEXE('php', "thePlugins.get('datadir').showError('theUILang.datadirPHPNotFound');", $remoteRequests);
}
$theSettings->registerPlugin($plugin["name"], $pInfo["perms"]);