Ejemplo n.º 1
0
                     $groups .= "," . $_GET['f'][$i];
                 }
             }
         }
     } else {
         $groups = 'f[]=-1';
     }
     if (isset($_GET['pn'])) {
         $pn = $_GET['pn'];
     }
     if (isset($_GET['oop'])) {
         $oop = $_GET['oop'];
     }
     $options = array('f' => $groups, 'pn' => mb_convert_encoding($pn, "cp1251"), 'oop' => $oop, 'nm' => $search_str);
     if ($config['search-in']['rutracker']) {
         $rt_result = $rt->search($search_str, $options);
     }
     if ($config['search-in']['rutor']) {
         $rutor_search = $rutor->search($search_str);
     }
 }
 if (count($rt_result) !== 0 && !array_key_exists('error', $rt_result)) {
     if (array_key_exists('pages', $rt_result) && array_key_exists('search_id', $rt_result)) {
         echo "<p> <span class='search-word'>Rutracker</span> Found: " . (count($rt_result) - 2) . " results</p>";
     } else {
         echo "<p> <span class='search-word'>Rutracker</span> Found: " . count($rt_result) . " results</p>";
     }
     ?>
     <table class="table table-striped table-hover table-bordered  table-condensed tablesorter"
            id="rutracker_result">
         <thead>
Ejemplo n.º 2
0
<?php

/**
 * Created by #ROOT.
 * to contact me use skype neronmoon
 */
include_once 'Rutracker.php';
$r = new RutrackerAPI('<login>', '<pass>');
$r->findUser('<login>');
$r->search(["term" => "<term>"]);