Compare commits
2 Commits
86ba3a1a76
...
4dcf1fcfd5
Author | SHA1 | Date | |
---|---|---|---|
4dcf1fcfd5
|
|||
5a3e23de49
|
@ -26,6 +26,7 @@ const LANGUAGES = [
|
|||||||
'fa' => ['name' => 'فارسی', 'locale' => 'fa_IR', 'flag' => '🇮🇷', 'show_in_menu' => true, 'dir' => 'rtl'],
|
'fa' => ['name' => 'فارسی', 'locale' => 'fa_IR', 'flag' => '🇮🇷', 'show_in_menu' => true, 'dir' => 'rtl'],
|
||||||
'fr' => ['name' => 'Français', 'locale' => 'fr_FR', 'flag' => '🇫🇷', 'show_in_menu' => true, 'dir' => 'ltr'],
|
'fr' => ['name' => 'Français', 'locale' => 'fr_FR', 'flag' => '🇫🇷', 'show_in_menu' => true, 'dir' => 'ltr'],
|
||||||
'ja' => ['name' => '日本語', 'locale' => 'ja_JP', 'flag' => '🇯🇵', 'show_in_menu' => true, 'dir' => 'ltr'],
|
'ja' => ['name' => '日本語', 'locale' => 'ja_JP', 'flag' => '🇯🇵', 'show_in_menu' => true, 'dir' => 'ltr'],
|
||||||
|
'nl' => ['name' => 'Nederlands', 'locale' => 'nl_NL', 'flag' => '🇳🇱', 'show_in_menu' => true, 'dir' => 'ltr'],
|
||||||
'pl' => ['name' => 'Polski', 'locale' => 'pl_PL', 'flag' => '🇵🇱', 'show_in_menu' => true, 'dir' => 'ltr'],
|
'pl' => ['name' => 'Polski', 'locale' => 'pl_PL', 'flag' => '🇵🇱', 'show_in_menu' => true, 'dir' => 'ltr'],
|
||||||
'pt' => ['name' => 'Português', 'locale' => 'pt_PT', 'flag' => '🇵🇹', 'show_in_menu' => true, 'dir' => 'ltr'],
|
'pt' => ['name' => 'Português', 'locale' => 'pt_PT', 'flag' => '🇵🇹', 'show_in_menu' => true, 'dir' => 'ltr'],
|
||||||
'ru' => ['name' => 'Русский', 'locale' => 'ru_RU', 'flag' => '🇷🇺', 'show_in_menu' => true, 'dir' => 'ltr'],
|
'ru' => ['name' => 'Русский', 'locale' => 'ru_RU', 'flag' => '🇷🇺', 'show_in_menu' => true, 'dir' => 'ltr'],
|
||||||
|
@ -24,7 +24,7 @@ function check(string $link, string $phishing_link): void
|
|||||||
if(!empty($links) && !empty($phishing_links)){
|
if(!empty($links) && !empty($phishing_links)){
|
||||||
$phishings=$db->prepare('INSERT IGNORE INTO ' . PREFIX . 'phishing (onion_id, original) VALUES ((SELECT id FROM onions WHERE md5sum=?), ?);');
|
$phishings=$db->prepare('INSERT IGNORE INTO ' . PREFIX . 'phishing (onion_id, original) VALUES ((SELECT id FROM onions WHERE md5sum=?), ?);');
|
||||||
$select=$db->prepare('SELECT id FROM ' . PREFIX . 'onions WHERE md5sum=?;');
|
$select=$db->prepare('SELECT id FROM ' . PREFIX . 'onions WHERE md5sum=?;');
|
||||||
$insert=$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, timechanged) VALUES (?, ?, ?, ?);');
|
$insert=$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, timechanged, description) VALUES (?, ?, ?, ?, "");');
|
||||||
$update=$db->prepare('UPDATE ' . PREFIX . 'onions SET locked=1, timechanged=? WHERE md5sum=?;');
|
$update=$db->prepare('UPDATE ' . PREFIX . 'onions SET locked=1, timechanged=? WHERE md5sum=?;');
|
||||||
preg_match_all('~(https?://)?([a-z0-9]*\.)?([a-z2-7]{55}d).onion(/[^\s><"]*)?~i', $links, $addr);
|
preg_match_all('~(https?://)?([a-z0-9]*\.)?([a-z2-7]{55}d).onion(/[^\s><"]*)?~i', $links, $addr);
|
||||||
preg_match_all('~(https?://)?([a-z0-9]*\.)?([a-z2-7]{55}d).onion(/[^\s><"]*)?~i', $phishing_links, $phishing_addr);
|
preg_match_all('~(https?://)?([a-z0-9]*\.)?([a-z2-7]{55}d).onion(/[^\s><"]*)?~i', $phishing_links, $phishing_addr);
|
||||||
|
@ -90,7 +90,7 @@ function add_onions(&$onions, $db): void
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$time=time();
|
$time=time();
|
||||||
$insert=$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, timechanged) VALUES (?, ?, ?, ?);');
|
$insert=$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, timechanged, description) VALUES (?, ?, ?, ?, "");');
|
||||||
$db->beginTransaction();
|
$db->beginTransaction();
|
||||||
foreach($onions as $md5=>$addr){
|
foreach($onions as $md5=>$addr){
|
||||||
$insert->execute([$addr, $md5, $time, $time]);
|
$insert->execute([$addr, $md5, $time, $time]);
|
||||||
|
@ -78,7 +78,7 @@ if(!empty($_REQUEST['addr'])){
|
|||||||
$stmt=$db->prepare('SELECT null FROM ' . PREFIX . 'onions WHERE md5sum=?;');
|
$stmt=$db->prepare('SELECT null FROM ' . PREFIX . 'onions WHERE md5sum=?;');
|
||||||
$stmt->execute([$md5]);
|
$stmt->execute([$md5]);
|
||||||
if(!$stmt->fetch(PDO::FETCH_NUM)){
|
if(!$stmt->fetch(PDO::FETCH_NUM)){
|
||||||
$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded) VALUES (?, ?, ?);')->execute([$addr, $md5, time()]);
|
$db->prepare('INSERT INTO ' . PREFIX . 'onions (address, md5sum, timeadded, description) VALUES (?, ?, ?, "");')->execute([$addr, $md5, time()]);
|
||||||
}
|
}
|
||||||
$db->prepare('UPDATE ' . PREFIX . 'onions SET lasttest=?, lastup=lasttest, timediff=0 WHERE md5sum=?;')->execute([time(), $md5]);
|
$db->prepare('UPDATE ' . PREFIX . 'onions SET lasttest=?, lastup=lasttest, timediff=0 WHERE md5sum=?;')->execute([time(), $md5]);
|
||||||
if(preg_match('~window\.location\.replace\("http://'.$addr.'.onion/(.*?)"\)~', $content, $matches)){
|
if(preg_match('~window\.location\.replace\("http://'.$addr.'.onion/(.*?)"\)~', $content, $matches)){
|
||||||
|
Reference in New Issue
Block a user