Wording update

This commit is contained in:
Daniel Winzen
2020-10-17 09:33:21 +02:00
parent d4e5ccd025
commit 267ef405a3
2 changed files with 15 additions and 13 deletions

View File

@ -8,7 +8,7 @@ $I=[
'title' => 'Onion link list', 'title' => 'Onion link list',
'error' => 'ERROR', 'error' => 'ERROR',
'nodb' => 'No database connection!', 'nodb' => 'No database connection!',
'addonion' => 'Onion-Address', 'addonion' => 'Onion address',
'adddesc' => 'Description', 'adddesc' => 'Description',
'category' => 'Category', 'category' => 'Category',
'search' => 'Search', 'search' => 'Search',
@ -16,10 +16,10 @@ $I=[
'specialcat' => 'Special categories', 'specialcat' => 'Special categories',
'categories' => 'Categories', 'categories' => 'Categories',
'pages' => 'Pages', 'pages' => 'Pages',
'invalonion' => 'Invalid onion-Address!', 'invalonion' => 'Invalid onion address!',
'valid' => 'A valid address looks like this', 'valid' => 'A valid address looks like this',
'succadd' => 'Successfully added onion-Address!', 'succadd' => 'Successfully added onion address!',
'faillocked' => 'Sorry, editing this onion-Address has been locked!', 'faillocked' => 'Sorry, editing this onion address has been locked!',
'succupddesc' => 'Successfully updated description!', 'succupddesc' => 'Successfully updated description!',
'succupdcat' => 'Successfully updated category!', 'succupdcat' => 'Successfully updated category!',
'alreadyknown' => 'Thanks, but I already knew this address!', 'alreadyknown' => 'Thanks, but I already knew this address!',
@ -47,19 +47,19 @@ $I=[
'phishing' => 'Phishing', 'phishing' => 'Phishing',
'unphishing' => 'No phishing', 'unphishing' => 'No phishing',
'update' => 'Update', 'update' => 'Update',
'succremove' => 'Successfully removed onion-Address!', 'succremove' => 'Successfully removed onion address!',
'succreadd' => 'Successfully readded onion-Address!', 'succreadd' => 'Successfully re-added onion address!',
'succlock' => 'Successfully locked onion-Address!', 'succlock' => 'Successfully locked onion address!',
'succunlock' => 'Successfully unlocked onion-Address!', 'succunlock' => 'Successfully unlocked onion address!',
'succpromote' => 'Successfully promoted onion-Address until %1$s!', 'succpromote' => 'Successfully promoted onion address until %1$s!',
'succunpromote' => 'Successfully un-promoted onion-Address!', 'succunpromote' => 'Successfully un-promoted onion address!',
'succaddphish' => 'Successfully added Phishing clone!', 'succaddphish' => 'Successfully added Phishing clone!',
'samephish' => 'Not added Phishing clone! Phishing and original have the same address.', 'samephish' => 'Not added Phishing clone! Phishing and original have the same address.',
'succrmphish' => 'Successfully removed Phishing clone!', 'succrmphish' => 'Successfully removed Phishing clone!',
'noaction' => 'No action taken!', 'noaction' => 'No action taken!',
'wrongpass' => 'Wrong Pass!', 'wrongpass' => 'Wrong Pass!',
'testtitle' => 'Online-Test', 'testtitle' => 'Online-Test',
'testdesc' => 'Here an Onion-Address can be tested, for whether it is online or not.', 'testdesc' => 'Here an onion address can be tested, for whether it is online or not.',
'testonline' => 'Yes, the service is online!', 'testonline' => 'Yes, the service is online!',
'testoffline' => 'No, the service is offline!', 'testoffline' => 'No, the service is offline!',
'testphishing' => 'Warning, this is a known phishing clone. The original site is located at %s.', 'testphishing' => 'Warning, this is a known phishing clone. The original site is located at %s.',
@ -71,5 +71,7 @@ $I=[
'rejected' => 'Rejected', 'rejected' => 'Rejected',
'reject' => 'Reject', 'reject' => 'Reject',
'approve' => 'Approve', 'approve' => 'Approve',
'succreject' => 'Successfully rejected onion address',
'succapprove' => 'Successfully approved onion address',
'switchviewmode' => 'Switch view mode', 'switchviewmode' => 'Switch view mode',
]; ];

View File

@ -205,10 +205,10 @@ if(!isset($_POST['pass']) || $_POST['pass']!==ADMINPASS){
echo "<p class=\"green\">$I[succrmphish]</p>"; echo "<p class=\"green\">$I[succrmphish]</p>";
} elseif ( $_POST[ 'action' ] === $I[ 'reject' ] ) { //lock editing } elseif ( $_POST[ 'action' ] === $I[ 'reject' ] ) { //lock editing
$db->prepare( 'UPDATE ' . PREFIX . 'onions SET approved=-1 WHERE md5sum=?;' )->execute( [ $md5 ] ); $db->prepare( 'UPDATE ' . PREFIX . 'onions SET approved=-1 WHERE md5sum=?;' )->execute( [ $md5 ] );
echo "<p class=\"green\">$I[succlock]</p>"; echo "<p class=\"green\">$I[succreject]</p>";
} elseif ( $_POST[ 'action' ] === $I[ 'approve' ] ) { //lock editing } elseif ( $_POST[ 'action' ] === $I[ 'approve' ] ) { //lock editing
$db->prepare( 'UPDATE ' . PREFIX . 'onions SET approved=1 WHERE md5sum=?;' )->execute( [ $md5 ] ); $db->prepare( 'UPDATE ' . PREFIX . 'onions SET approved=1 WHERE md5sum=?;' )->execute( [ $md5 ] );
echo "<p class=\"green\">$I[succlock]</p>"; echo "<p class=\"green\">$I[succapprove]</p>";
} else { //no specific button was pressed } else { //no specific button was pressed
echo "<p class=\"red\">$I[noaction]</p>"; echo "<p class=\"red\">$I[noaction]</p>";
} }