コード例 #1
0
ファイル: profile.php プロジェクト: Kiwisoju/Pungent
              <form method="POST" id="bio">
                <textarea class="form-control" rows="5" placeholder="Write your bio here.." name="bio" required><?php 
        echo htmlspecialchars($databaseQueries->getBio($_GET['username'])['bio'], ENT_COMPAT, 'ISO-8859-1', true);
        ?>
</textarea>
                <input type="submit" class="btn btn-md btn-primary btn-lg custom-button">
              </form>
          
              <?php 
    } elseif (!($_SESSION['username'] == $_GET['username'])) {
        ?>
              <div class="row">
              <p id='bio'><?php 
        echo htmlspecialchars($databaseQueries->getBio($_GET['username'])['bio'], ENT_COMPAT, 'ISO-8859-1', true);
        ?>
</p>
              <?php 
    }
    ?>
  
              </div>
        </div>
        
        <hr class="hr-fade">
        
        <h2>Best Puns</h2>
        
        <?php 
    $databaseQueries->getUserPuns($_GET['username']);
    include 'footer.php';
}