Example #1
0
            if (pre_strlen($_POST['OldPass']) > "60") {
                $Error = "Yes";
                ?>
<div class="TableMessage" style="text-align: center;">Your old password is too big.<br />&nbsp;</div>
<?php 
            }
            if ($_POST['Password'] != $_POST['RePassword']) {
                $Error = "Yes";
                ?>
<div class="TableMessage" style="text-align: center;">Your passwords did not match.<br />&nbsp;</div>
<?php 
            }
            $NewIP = $_SERVER['REMOTE_ADDR'];
            if ($Error != "Yes") {
                if ($_POST['Password'] != "") {
                    $NewSalt = salt_hmac();
                    $NewDay = GMTimeStamp();
                    if ($Settings['use_hashtype'] == "md2") {
                        $iDBHash = "iDBH2";
                        $NewPassword = b64e_hmac($_POST['Password'], $OldJoined, $NewSalt, "md2");
                    }
                    if ($Settings['use_hashtype'] == "md4") {
                        $iDBHash = "iDBH4";
                        $NewPassword = b64e_hmac($_POST['Password'], $OldJoined, $NewSalt, "md4");
                    }
                    if ($Settings['use_hashtype'] == "md5") {
                        $iDBHash = "iDBH5";
                        $NewPassword = b64e_hmac($_POST['Password'], $OldJoined, $NewSalt, "md5");
                    }
                    if ($Settings['use_hashtype'] == "sha1") {
                        $iDBHash = "iDBH";
Example #2
0
    echo "<br />Sorry board exists pick a new board url prefix.";
}
if ($_POST['AdminPasswords'] != $_POST['ReaPassword']) {
    $Error = "Yes";
    echo "<br />Your passwords did not match.";
}
if ($_POST['HTMLType'] == "xhtml11") {
    $_POST['HTMLLevel'] = "Strict";
}
$_POST['BoardURL'] = htmlentities($_POST['BoardURL'], ENT_QUOTES, $Settings['charset']);
$_POST['BoardURL'] = remove_spaces($_POST['BoardURL']);
$_POST['BoardURL'] = addslashes($_POST['BoardURL']);
$YourDate = GMTimeStamp();
$YourEditDate = $YourDate + $dayconv['minute'];
$GSalt = salt_hmac();
$YourSalt = salt_hmac();
/* Fix The User Info for iDB */
$_POST['NewBoardName'] = stripcslashes(htmlspecialchars($_POST['NewBoardName'], ENT_QUOTES, $Settings['charset']));
//$_POST['NewBoardName'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['NewBoardName']);
$_POST['NewBoardName'] = remove_spaces($_POST['NewBoardName']);
//$_POST['AdminPassword'] = stripcslashes(htmlspecialchars($_POST['AdminPassword'], ENT_QUOTES, $Settings['charset']));
//$_POST['AdminPassword'] = preg_replace("/\&amp;#(.*?);/is", "&#$1;", $_POST['AdminPassword']);
$_POST['AdminUser'] = stripcslashes(htmlspecialchars($_POST['AdminUser'], ENT_QUOTES, $Settings['charset']));
//$_POST['AdminUser'] = preg_replace("/&amp;#(x[a-f0-9]+|[0-9]+);/i", "&#$1;", $_POST['AdminUser']);
$_POST['AdminUser'] = remove_spaces($_POST['AdminUser']);
$_POST['AdminEmail'] = remove_spaces($_POST['AdminEmail']);
if (!function_exists('hash') && !function_exists('hash_algos')) {
    if ($_POST['usehashtype'] != "md5" && $_POST['usehashtype'] != "sha1") {
        $_POST['usehashtype'] = "sha1";
    }
}
Example #3
0
function rand_uuid($rndty = "rand", $namespace = null, $name = null)
{
    $rand_array = array(1 => "v3", 2 => "v4", 3 => "v5");
    if ($name === null) {
        $name = salt_hmac();
    }
    $my_uuid = $rand_array[$rndty(1, 3)];
    if ($my_uuid == "v4") {
        return uuid("v4", $rndty);
    }
    if ($my_uuid == "v3" || $my_uuid == "v5") {
        return uuid($my_uuid, $rndty, $name);
    }
}
Example #4
0
 $_POST['Interests'] = "";
 $_POST['Title'] = "";
 $_POST['PostCount'] = "0";
 if (!isset($Settings['AdminValidate'])) {
     $Settings['AdminValidate'] = "off";
 }
 if ($Settings['AdminValidate'] == "on" || $Settings['AdminValidate'] != "off") {
     $ValidateStats = "no";
     $yourgroup = $Settings['ValidateGroup'];
 }
 if ($Settings['AdminValidate'] == "off" || $Settings['AdminValidate'] != "on") {
     $ValidateStats = "yes";
     $yourgroup = $Settings['MemberGroup'];
 }
 $HideMe = "no";
 $HashSalt = salt_hmac();
 if ($Settings['use_hashtype'] == "md2") {
     $iDBHash = "iDBH2";
     $NewPassword = b64e_hmac($_POST['Password'], $_POST['Joined'], $HashSalt, "md2");
 }
 if ($Settings['use_hashtype'] == "md4") {
     $iDBHash = "iDBH4";
     $NewPassword = b64e_hmac($_POST['Password'], $_POST['Joined'], $HashSalt, "md4");
 }
 if ($Settings['use_hashtype'] == "md5") {
     $iDBHash = "iDBH5";
     $NewPassword = b64e_hmac($_POST['Password'], $_POST['Joined'], $HashSalt, "md5");
 }
 if ($Settings['use_hashtype'] == "sha1") {
     $iDBHash = "iDBH";
     $NewPassword = b64e_hmac($_POST['Password'], $_POST['Joined'], $HashSalt, "sha1");