Example #1
0
<form id="threme_clear" method="post">
<?php 
$dir = dirname(__FILE__);
$dir = str_replace('include', '', $dir);
include_once $dir . "config.php";
include_once $dir . "class/System.class.php";
include_once $dir . "class/Database.class.php";
$users = Database::getUserToWatch();
if (!empty($users)) {
    for ($i = 0; $i < count($users); $i++) {
        $thremes = Database::getThremesFromBuffer($users[$i]['id']);
        ?>
<div class="user-torrent-del" onclick="delete_user(<?php 
        echo $users[$i]['id'];
        ?>
)"></div>
<div class="user-torrent">Раздачи пользователя <strong><?php 
        echo $users[$i]['name'];
        ?>
</strong> на трекере <b><?php 
        echo $users[$i]['tracker'];
        ?>
</b>:</div>
		<?php 
        if (count($thremes) > 0) {
            ?>
<table class="user-table">
    <thead>
        <tr>
            <th>Скачать</th>
            <th>Раздел</th>
Example #2
0
             if ($tracker == 'lostfilm.tv' || $tracker == 'novafilm.tv') {
                 call_user_func($functionClass . '::main', $torrentsList[$i]['id'], $tracker, $torrentsList[$i]['name'], $torrentsList[$i]['hd'], $torrentsList[$i]['ep'], $torrentsList[$i]['timestamp']);
             }
             if ($tracker == 'rutracker.org' || $tracker == 'nnm-club.ru' || $tracker == 'rutor.org' || $tracker == 'tfile.me' || $tracker == 'kinozal.tv' || $tracker == 'anidub.com') {
                 call_user_func($functionClass . '::main', $torrentsList[$i]['id'], $tracker, $torrentsList[$i]['name'], $torrentsList[$i]['torrent_id'], $torrentsList[$i]['timestamp']);
             }
             $functionClass = NULL;
             $functionEngine = NULL;
         } else {
             Errors::setWarnings('system', 'missing_files');
         }
     } else {
         Errors::setWarnings('system', 'credential_miss');
     }
 }
 $usersList = Database::getUserToWatch();
 $count = count($usersList);
 for ($i = 0; $i < $count; $i++) {
     $tracker = $usersList[$i]['tracker'];
     if (Database::checkTrackersCredentialsExist($tracker)) {
         $serchFile = $dir . 'trackers/' . $tracker . '.search.php';
         if (file_exists($serchFile)) {
             Database::clearWarnings('system');
             $functionEngine = (include_once $serchFile);
             $class = explode('.', $tracker);
             $class = $class[0];
             $class = str_replace('-', '', $class);
             $functionClass = $class . 'Search';
             call_user_func($functionClass . '::mainSearch', $usersList[$i]['id'], $tracker, $usersList[$i]['name']);
             $functionClass = NULL;
             $functionEngine = NULL;