diff --git a/3ds/acc/register.php b/3ds/acc/register.php index b79b3e5..1e99dca 100755 --- a/3ds/acc/register.php +++ b/3ds/acc/register.php @@ -25,7 +25,7 @@ if(isset($_POST["username"]) && $_POST["username"] !== "" && isset($_POST["passw if(!file_exists("data/" . $_POST["username"] . ".json") && !preg_match_all('/([<>\[\]\(\).,\/\\&?$=!%^#* ])/', $_POST["username"]) && strlen($_POST["username"]) >= 3){ $passHash = password_hash($_POST["password"], PASSWORD_ARGON2ID); $date = date('Y/m/d H:i:s'); - $details = array("username" => $_POST["username"], "password" => $passHash, "email" => $_POST["email"], "timezone" => "UTC", "created"=>$date,"createdmt"=>microtime(),"profile"=>"I have not filled this in yet","profilecomments"=>array(),"apps"=>array(),"hasPublishedCB"=>false,"comicbooks"=>array(0),"ownedComics"=>array(),"points"=>30,"cmsg"=>0,"forumPosts"=>array(),"reputation"=>1500,"banned"=>0,"admin"=>0,"ownedApps"=>array(),"drawings"=>array(),"pms"=>array()); + $details = array("username" => $_POST["username"], "password" => $passHash, "email" => $_POST["email"], "timezone" => "UTC", "created"=>$date,"createdmt"=>microtime(),"profile"=>"I have not filled this in yet","profilecomments"=>array(),"apps"=>array(),"hasPublishedCB"=>false,"comicbooks"=>array(0),"ownedComics"=>array(),"points"=>30,"cmsg"=>0,"forumPosts"=>array(),"reputation"=>1500,"banned"=>1,"admin"=>0,"ownedApps"=>array(),"drawings"=>array(),"pms"=>array()); $detailsEncoded = json_encode($details, true); file_put_contents("data/" . $_POST["username"] . ".json", $detailsEncoded); echo "
SUCCESS: Account created successfully!
"; @@ -35,4 +35,4 @@ if(!file_exists("data/" . $_POST["username"] . ".json") && !preg_match_all('/([< echo "ERROR: That account already exists or contains symbols! (<>[]().,/\\&?$=!%^#*)
"; } } -?> \ No newline at end of file +?> diff --git a/3ds/chat/.innerch.php.swo b/3ds/chat/.innerch.php.swo new file mode 100644 index 0000000..fc4acef Binary files /dev/null and b/3ds/chat/.innerch.php.swo differ diff --git a/3ds/chat/.innerch.php.swp b/3ds/chat/.innerch.php.swp new file mode 100644 index 0000000..6242f43 Binary files /dev/null and b/3ds/chat/.innerch.php.swp differ diff --git a/3ds/chat/dsi.php b/3ds/chat/dsi.php index 89f468f..9eee834 100755 --- a/3ds/chat/dsi.php +++ b/3ds/chat/dsi.php @@ -1,4 +1,10 @@