require_once "./util_rt.php"; require_once "./autotools.php"; eval(getPluginConf('autotools')); function Debug($str) { global $autodebug_enabled; if ($autodebug_enabled) { rtDbg("AutoWatch", $str); } } Debug(""); Debug("--- begin ---"); $is_ok = true; // Read configuration if ($is_ok) { $at = rAutoTools::load(); Debug("enabled : " . $at->enable_watch); Debug("autostart : " . $at->watch_start); if ($at->enable_watch) { $auto_start = $at->watch_start; $path_to_watch = rtAddTailSlash(trim($at->path_to_watch)); Debug("path_to_watch : " . $path_to_watch); if ($path_to_watch == '' || $path_to_watch == '/') { $is_ok = false; } } else { $is_ok = false; } } // Ask info from rTorrent if ($is_ok) {
<?php require_once 'autotools.php'; $at = new rAutoTools(); $at->set(); cachedEcho($at->get(), "application/javascript");