scrape.php
<?php // This file defines all the functions we will need.// Since it defines things, we need to make sure it isn't loaded twice.require_once __DIR__.'/_phoenix.php';require_once $settings['onces'].'once.sanitize.tracker.php'; // IF STATSif ( isset($_GET['stats']) ) { require_once $settings['onces'].'once.stats.tracker.php';// END IF STATS // IF NOT STATS} else { // IF SCRAPE if ( $peer['info_hash'] && ( $settings['open_tracker'] || in_array($peer['info_hash'], $allowed_torrents) ) ) { // Perform a Scrape on the torrent. require_once $settings['onces'].'once.scrape.torrent.php'; // END IF SCRAPE // IF FULL SCRAPEUsage of ELSE IF is discouraged; use ELSEIF instead } else if ( $settings['full_scrape'] ) { // Scrape the full tracker. require_once $settings['onces'].'once.scrape.tracker.php'; // END IF FULL SCRAPE // IF NOT ALLOWED TO SCRAPE } else { // IF ERROR TORRENT if ( isset($peer['info_hash']) ) { tracker_error('Torrent is not allowed.'); // END IF ERROR TORRENT // IF ERROR TRACKER } else { tracker_error('Tracker scraping is not allowed.'); } // END IF ERROR TRACKERBlank line found at end of control structure } // END IF NOT ALLOWED TO SCRAPEBlank line found at end of control structure } // END IF NOT STATS