*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
$I[error]: $I[nodb]
"; echo ''; exit; } echo 'I\'m not responsible for any content of websites linked here. Be careful and use your brain.
Do you want your address to be highlighted and featured at the top of the results? Send Bitcoins to 1CHvjeMJum2Zfd3JEdb35RUEdz1jjQvdPT and then tell me your transaction ID and which address(es) you want to be highlighted. 0.025 BTC equals 10 days for one address. Any other amount can be calculated thereof.
'; //update onions description form echo ""; //search from echo " | "; echo ' |
$I[invalonion]
"; echo "$I[valid]: http://tt3j2x4k5ycaa5zt.onion
"; }else{ $addr=strtolower($addr[4]); $md5=md5($addr, true); $stmt=$db->prepare('SELECT locked FROM ' . PREFIX . 'onions WHERE md5sum=?;'); $stmt->execute(array($md5)); $stmt->bindColumn(1, $locked); if($category==count($categories)){ $category=0; } if(!isSet($_POST['desc'])){ $desc=''; }else{ $desc=trim($_POST['desc']); $desc=htmlspecialchars($desc); $desc=preg_replace("/(\r?\n|\r\n?)/", '$I[succadd]
"; }elseif($locked==1){//locked, not editable echo "$I[faillocked]
"; }elseif($desc!==''){//update description $stmt=$db->prepare('UPDATE ' . PREFIX . 'onions SET description=?, category=? WHERE md5sum=?;'); $stmt->execute(array($desc, $category, $md5)); echo "$I[succupddesc]
"; }elseif($category!=0){//update category only $stmt=$db->prepare('UPDATE ' . PREFIX . 'onions SET category=? WHERE md5sum=?;'); $stmt->execute(array($category, $md5)); echo "$I[succupdcat]
"; }else{//nothing changed and already known echo "$I[alreadyknown]
"; } } } if($pages>1 && empty($_REQUEST['q'])){ $pagination=get_pagination($category, $pages); echo $pagination; }else{ $pagination=''; } if(!empty($_REQUEST['q'])){//run search query $stmt=$db->prepare('SELECT address, lasttest, lastup, timeadded, description, locked, special FROM ' . PREFIX . "onions WHERE address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . 'phishing) AND (description LIKE ? OR address LIKE ?) ORDER BY address;'); $query=htmlspecialchars($_REQUEST['q']); $query="%$query%"; $stmt->execute(array($query, $query)); $table=get_table($stmt, $numrows); printf("$I[searchresult]
", $_REQUEST['q'], $numrows); echo $table; }elseif($category>=count($categories)+count($special)){//show phishing clones print_phishing_table(); }elseif($category>=count($categories)){//show special categories $tmp=$category-count($categories); foreach($special as $name=>$query){ if($tmp===0) break; --$tmp; } if($category-count($categories)===1){ $query.=' ORDER BY id DESC LIMIT 100'; }else{ $query.=' ORDER BY address'; if($_REQUEST['pg']>0){ $offset=100*($_REQUEST['pg']-1); $query.=" LIMIT 100 OFFSET $offset"; } } $stmt=$db->query('SELECT address, lasttest, lastup, timeadded, description, locked, special FROM ' . PREFIX . "onions WHERE $query;"); echo get_table($stmt, $numrows, true); }else{//show normal categories if($_REQUEST['pg']>0){ $offset=100*($_REQUEST['pg']-1); $offsetquery=" LIMIT 100 OFFSET $offset"; }else{ $offsetquery=''; } $stmt=$db->prepare('SELECT address, lasttest, lastup, timeadded, description, locked, special FROM ' . PREFIX . "onions WHERE address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . "phishing) AND category=? AND timediff<604800 ORDER BY address$offsetquery;"); $stmt->execute(array($category)); echo get_table($stmt, $numrows, true); } echo '