From ac77e952820f965013f15189e262a7916627faad Mon Sep 17 00:00:00 2001 From: HotPizzaYT <57576298+HotPizzaYT@users.noreply.github.com> Date: Wed, 11 May 2022 20:58:45 -0500 Subject: [PATCH] Add and remove bunch of stuff... --- 3ds/acc/register.php | 6 ++++-- 3ds/chat/i/honey_troll.png | Bin 0 -> 1508 bytes 3ds/chat/index.php | 16 +++++++------- 3ds/chat/process.php | 3 ++- 3ds/chat/sender.php | 13 ++++++++++++ 3ds/forums/index.php | 13 ++++++++++-- 3ds/forums/topic.php | 2 +- 3ds/forums/view.php | 5 +---- 3ds/games/cbr/data/1/info.php | 20 ++++++++++++++++-- 3ds/games/cbr/data/1/pages/page8.png | Bin 0 -> 67576 bytes 3ds/games/cbr/data/1/pages/page9.png | Bin 0 -> 55874 bytes 3ds/games/cbr/shop.php | 9 ++++---- 3ds/games/nixsim/index.php | 1 + 3ds/info.php | 18 ++++++++++++++++ 3ds/livetype/index.php | 30 +++++++++++++++++++++++++++ 3ds/livetype/type.php | 0 3dsTownSquare.png | Bin 0 -> 1715 bytes 17 files changed, 112 insertions(+), 24 deletions(-) create mode 100644 3ds/chat/i/honey_troll.png create mode 100644 3ds/games/cbr/data/1/pages/page8.png create mode 100644 3ds/games/cbr/data/1/pages/page9.png create mode 100644 3ds/info.php create mode 100644 3ds/livetype/type.php create mode 100644 3dsTownSquare.png diff --git a/3ds/acc/register.php b/3ds/acc/register.php index 662cbd8..bdeb479 100644 --- a/3ds/acc/register.php +++ b/3ds/acc/register.php @@ -22,13 +22,15 @@ body, html { \[\]\(\).,\/\\&?$=!%^#* ])/', $_POST["username"])){ +if(!file_exists("data/" . $_POST["username"] . ".json") && !preg_match_all('/([<>\[\]\(\).,\/\\&?$=!%^#* ])/', $_POST["username"]) && count($_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"=>0,"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"=>0,"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!

"; + } else if (!(count($_POST["username"]) >= 3)){ + echo "

ERROR: Username cannot be shorter than 3 characters!"; } else { echo "

ERROR: That account already exists or contains symbols! (<>[]().,/\\&?$=!%^#*)

"; } diff --git a/3ds/chat/i/honey_troll.png b/3ds/chat/i/honey_troll.png new file mode 100644 index 0000000000000000000000000000000000000000..58d8396462df77950c66bce6457c8b55096a0d5f GIT binary patch literal 1508 zcmVpKmPtfGR5*=|l}l_?=M{jz|G#(U&ckCoGseaqn|P+{ z?TH^V!#wPJ|J#KDRg^`~>gXKlJ5QY>cq)hEuO@^LKXN!6-?wesZ`%sXv?!O$n3jbQ z0;ki7loA0T1X75c%kBD`rfIiIrBd?F(9r#7JOL2zIrKj80f3MKr4*Xf2#3RTbadeJ z`B++7B9$8EN&X240k9WD05;fw%P`JMplywlfxEr(8w|!CP;>MKBly8{94zLQ15RNGVXZjcJ-RG=y-w-R$P` z2*lG#?G02Z)h>j5U9Z|#HI5K$Zf&7y8ZMWMwe@wDSC$zc8)sp0fw}{A)YQ}vZH`hM z4C3`x;PZOP<#O2A*tY$==SnG*Qmy*z%*@Q?%a_^O+T#5A^MoT|h6abYdGjWgWl>vO z%el*E356O+rG~keO3~BZL#eb^p|Y&Kb+kcBfe?~%xt!NEU2m|Jq9fM9*47pRXm4-B z5Apl`3=9l#>+4(e_V#l6 z^l2>1VtRU-Pp({{djI|=t*y1~Xl6Zgd}d~bPyhTWOUp}OL-9$0bUMx0*f_ypH9`nt zu^3ISyh42_L^K*Deke{VHB5bd9e@Ag3$oi;Ov}RQbpAyzmrH+o{nV-V+rHiIoSdA* zvMhFXcG%h7!Q=LD^tGeJ<8h>vWV74M&p%>pEKQ+M;PBxiba(eKIXT6~#s<-7l&Y$I ztgf!z(3Pd8ZTLLg6#nj|OP83NpJR8|WM8F^#)Ah5g+hqETOH zBof~to6U0J!UgjA{N~*3{F}f3;~)N|%|CubsaVuDH#ZW|Xme#G9HFtHfx5Z_2q2fs z@%ZrqsZ@%Ii3tqDU}koP^k|y5-~J(ujg73XuIzsKZE0zdmSvI6ZqwD(O)wZ>;=u!MCzBM5C33kO?d|Qn`|i(JU0cKJ^(H_5 z^~c9P|Lb-2jHf?SCa0zfz&pCs7W4W1FRQDoSzcaZYHFH7p+K=%z~lAO9F5|ws9>jD z#*w@p!KFCVDBCci7z8BoGMD+1W);cQ=iVjrb~j7>0oj zcsy>dUHdHkBIkd=_y741Gguw`RjF76puMe~NF+iq7{KTAkm>8dH>|8Ie{^SPaOD32S5$Z{ zmtoM=)rr$-;P?AEapE|YmHQYQ8zT_#6AT7OCX)}>*4BReGKTgtWAnG7R!eK^iTyP- z4aH&+u*v72kj-ur4o9dvP{-Z7!;{0Q)c3AkzyA1T3<2=Tl`9UQ>L(X3u0L~}JA2OC z-{1F6XDrs_a5yWKQfG?AqH}X&; } #chatscreen { @@ -47,10 +47,10 @@ if(isset($_GET["room"])){ overflow-y: scroll; } .test { - height: 100px; + height: 176px; } .h200 { - height: 140px; + height: 100px; background-color: #fff; } #msg { @@ -189,10 +189,10 @@ if(isset($_GET["room"])){
Back
- +
-
-
Loading chat...
+
+ You have to be logged in! Login here
"pre", ":0)" => "clown", ":O)" => "clown", - ":o)" => "clown" + ":o)" => "clown", + ":ht:" => "Honey Troll" ); $txt = str_replace(array_keys($plazaEmotes), array_values($plazaEmotes), $txt); diff --git a/3ds/chat/sender.php b/3ds/chat/sender.php index 8c53ca0..da8750c 100644 --- a/3ds/chat/sender.php +++ b/3ds/chat/sender.php @@ -48,6 +48,7 @@ include_once("functions.php"); }else if(startsWith($_POST["msg"], "/eval ")){ echo "::eval;".str_replace("/eval ", "",$_POST["msg"]); }else if(startsWith($_POST["msg"], "/whisper ")){ + $x = explode(" ", $_POST["msg"]); $who = $x[1]; $msg = strSplit($_POST["msg"], 2, " "); @@ -60,6 +61,18 @@ include_once("functions.php"); array_unshift($jsonD["msg"], $finalmsg); $jsonString = json_encode($jsonD); file_put_contents("data/".$room.".json",$jsonString); + }else if(startsWith($_POST["msg"], "/claim")){ + if(file_exists("data/claim.global") && file_get_contents("data/claim.global") == "0"){ + $finalmsg = array("cont"=>"{$_SESSION['ts_user']} has claimed the hourly points!","time"=>time(),"type"=>"rawbr","color"=>"red","visibility"=>"all","from"=>"system"); + array_unshift($jsonD["msg"], $finalmsg); + $jsonString = json_encode($jsonD); + file_put_contents("data/".$room.".json",$jsonString); + echo "::message;FYI, this command does not actually add any points, sorry!"; + }else if(!(file_exists("data/claim.global"))){ + echo "::eval;alert('chat.errors.noglobal\\n\\nError details: Could not find the specified global file \"data\\/claim.global\", contact @HxOr1337#0907 on Discord."; + }else if(file_exists("data/claim.global")){ + echo "::eval;alert('You failed to claim the points. No points have been rewarded.');"; + } }else{ echo "::message;Command \"" . explode(" ", $_POST["msg"])[0] . "\" not found."; diff --git a/3ds/forums/index.php b/3ds/forums/index.php index 828838b..e6d5488 100644 --- a/3ds/forums/index.php +++ b/3ds/forums/index.php @@ -63,9 +63,18 @@ include("../../detect.php"); $jsonD = json_decode($jsonF, true); $name = "".$jsonD["name"].""; $desc = $jsonD["description"]; + $latest = count($jsonD["posts"]) - 1; - $latestPost = "Latest post by: ".$jsonD["posts"][$latest]["from"].", \"".htmlspecialchars($jsonD["posts"][$latest]["title"])."\""; - echo "
" . $name . "
".$latestPost."
"; + + $lpc = "grey"; + if(count($jsonD["posts"]) == 0){ + $lpc = "red"; + $latestPost = "This topic is empty! Be the first one to post something!"; + } else { + $lpc = "grey"; + $latestPost = "Latest post by: ".$jsonD["posts"][$latest]["from"].", \"".htmlspecialchars($jsonD["posts"][$latest]["title"])."\""; + } + echo "
" . $name . "
".$latestPost."
"; } } ?> diff --git a/3ds/forums/topic.php b/3ds/forums/topic.php index 6c75964..138cdb5 100644 --- a/3ds/forums/topic.php +++ b/3ds/forums/topic.php @@ -55,7 +55,7 @@ include("../../detect.php"); ?> Oops! Our header could not be displayed!
-
".$error.""; } ?>
+
".$error.""; } ?>
diff --git a/3ds/forums/view.php b/3ds/forums/view.php index 3ff214d..a4af77e 100644 --- a/3ds/forums/view.php +++ b/3ds/forums/view.php @@ -5,10 +5,7 @@ include("../../detect.php"); ?> - - - + + + +

Coming Soon

+ LiveType is coming soon... +
+ Test + + \ No newline at end of file diff --git a/3ds/livetype/type.php b/3ds/livetype/type.php new file mode 100644 index 0000000..e69de29 diff --git a/3dsTownSquare.png b/3dsTownSquare.png new file mode 100644 index 0000000000000000000000000000000000000000..291c7d929c43d340431d39e68856f843b71107da GIT binary patch literal 1715 zcmV;k22A;hP)pLWl2OqR9J=WmP>4u*A>Tq_kJ_;&BJ4RW{im$LuXtY+r=*i>_JMf z%d4z_l;S{$*i=PrSWuCsSu_i>h$>a8+El8b8y1mD%z`G70#p?%upMkXP~s=p#$b$% zu?IYihk1CuM;C6=l#HnxRaI5xzxwpQpU(N;^SI|g4xBmNrkrVO6S>a5!8iE7!?G%U z|Grj>!{G?T=i}b#>4%nVHY;>pN7J$>iUrd!uvo1YRaIvci*oC7d%N);5wJ0|AuNRW zq19?_HBHlFng+V2lgVVzbR8iCHk%D8<)R@WkV4Gc9rn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