salt; $salt2 = $this->salty; $seed = $salt1; $lead = $this->config['csrf']['options']['leadtime']; if ($lead >= 11) { $lead = 10; } if ($lead <= 0) { $lead = 3; } if ($minute == 59 && $second > (60-$lead)) { $minute = 0; $fhour = ($hour == 23) ? $hour = 0 : $hour+=1; } $seed.= (strpos($timing, 'm') !== false) ? $month : ''; $seed.= (strpos($timing, 'd') !== false) ? $day : ''; $seed.= (strpos($timing, 'y') !== false) ? $year : ''; $seed.= (strpos($timing, 'H') !== false) ? $hour : ''; $seed.= (strpos($timing, 'i') !== false) ? $minute : ''; $seed.= (strpos($timing, 's') !== false) ? $second : ''; $seed.= ($seedExtra !== '') ? $seedExtra.$salt2 : $salt2; return $this->getHash($seed); } /** * * @param unknown $dowhat * @return string */ public static function getDescriptionImageHTML($dowhat="try") { $string = "salty.$string.$this->salt); } } $csrftoken = new CSRFToken(); $csrftoken->setDebug($debug); $csrftoken->setMysql($mysqli); $csrftoken->setSalt(SALT); $csrftoken->setSalty(SALTY); $csrftoken->setMail($mail); $csrftoken->setUser($user); $csrftoken->setToken($oToken); $csrftoken->setConfig($config); $csrftoken->setErrorCodes($aErrorCodes); ?>