$page->append($blocked_msg); } else { // If we're redirecting from edit.php, assure the user that their change was applied if ($_GET['edit_submit'] == 1) { $changed_msg = new InfoText('Plan changed successfully.'); $page->append($changed_msg); } if ($is_blocking_this_user) { $blocked_msg = new InfoText("You have enabled the blocking feature for this user. This means the contents of your plan are unavailable to this user. Searching for your plan, quicklove, and planwatch are also disabled for this user. To unblock, use the button at the bottom of the page."); $page->append($blocked_msg); } // Get the plan text $plantext = $user->Plan->plan; // Jumble it if requested if ($_GET['jumbled'] == 'yes' || $_COOKIE['jumbled'] == 'yes' && $_GET['jumbled'] != 'no') { $plantext = jumble($plantext); } $plantext = new PlanText($plantext, false); $thisplan = new PlanContent($user->username, $user->pseudo, strtotime($user->login), strtotime($user->changed), $plantext); $page->append($thisplan); } $page->title = '[' . $user->username . "]'s Plan"; if (User::logged_in()) { if (!($searchnum == $idcookie)) { if (!$this_user_is_blocking_you && !$is_blocking_this_user) { $addform = new Form('autoreadadd', 'Set Priority'); $thisplan->addform = $addform; $addform->action = "read.php?searchnum={$searchnum}"; $addform->method = 'POST'; $item = new HiddenInput('addtolist', 1); $addform->append($item);
<?php $first = $_GET["first"]; $second = $_GET["second"]; $third = $_GET["third"]; $jumbledString = jumble($first, $second, $third); function jumble($dog, $cat, $bird) { $reverse = strrev($dog); $capital = strtoupper($cat); $reverseTwo = strrev($bird); $capitalTwo = strtoupper($reverseTwo); $newString = $reverse . $capital . $capitalTwo; return $newString; } ?> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> <title>Jumbler</title> </head> <body> <div class="container"> <h1>Try to read this</h1> <p><?php echo $jumbledString; ?> </p> </div>