forked from leftypol/leftypol
WIP
This commit is contained in:
parent
195a3914d1
commit
f75d42d9c4
10 changed files with 242 additions and 186 deletions
|
@ -185,8 +185,6 @@ class AntiBot {
|
|||
public function hash() {
|
||||
global $config;
|
||||
|
||||
print_err("compute hash for post page");
|
||||
|
||||
// This is the tricky part: create a hash to validate it after
|
||||
// First, sort the keys in alphabetical order (A-Z)
|
||||
$inputs = $this->inputs;
|
||||
|
@ -195,7 +193,6 @@ class AntiBot {
|
|||
$hash = '';
|
||||
// Iterate through each input
|
||||
foreach ($inputs as $name => $value) {
|
||||
print_err("<- " . $name . ' : ' . $value);
|
||||
$hash .= $name . '=' . $value;
|
||||
}
|
||||
// Add a salt to the hash
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue