/** * Process releases without a proper name */ public function processOtherMiscCategory() { $p = null; if ($this->site->updatecleanup == 1) { $p = new Parsing(false, true, false); $p->cleanup(); } if ($this->site->updateparsing == 1) { if ($p == null) { $p = new Parsing(false, true, false); } $p->process(); } if ($this->site->removespecial == 1) { if ($p == null) { $p = new Parsing(false, true, false); } $p->removeSpecial(); } }
/** * Process releases without a proper name */ public function processOtherMiscCategory() { $p = null; if ($this->pdo->getSetting('updatecleanup') == 1) { $p = new Parsing(false, true, false); $p->cleanup(); } if ($this->pdo->getSetting('updateparsing') == 1) { if ($p == null) { $p = new Parsing(false, true, false); } $p->process(); } if ($this->pdo->getSetting('removespecial') == 1) { if ($p == null) { $p = new Parsing(false, true, false); } $p->removeSpecial(); } }
<?php require_once dirname(__FILE__) . '/../../www/config.php'; $echoonly = false; $limitedtotoday = true; $verbose = true; $p = new Parsing($echoonly, $limitedtotoday, $verbose); $p->removeSpecial();