Exemplo n.º 1
0
    </section>

    <section class="content">
        <p>Users</p>
        <table class="users">
            <tr><th>Username</th><th>Email</th><th>Signup Date</th><th>Action</th></tr>
            <?php 
getUsers();
?>
        </table>

        <p>Songs</p>
        <table class="songs">
            <tr><th>ID</th><th>Artis - Title</th><th>Likes</th><th>Action</th></tr>
            <?php 
listSongs();
?>
        </table>

        <p>Songs Comments</p>
        <table class="comments">
            <tr><th>Comment ID</th><th>Comment</th><th>By User</th><th>For Song</th><th>Action</th></tr>
            <?php 
getComment("song");
?>
        </table>

        <p>Playlists Comments</p>
        <table>
            <tr><th>Comment ID</th><th>Comment</th><th>By User</th><th>For Playlist</th><th>Action</th></tr>
            <?php 
Exemplo n.º 2
0
    $email_message = "<html><body><h1>List of songs</h1>";
    $email_message .= "<ol>" . listSongs($songs) . "</ol>";
    $email_message .= "<p>Email: " . clean_string($email_from) . "</p></body></html>";
    // create email headers
    $headers = "From: " . strip_tags($_POST['email']) . "\r\n";
    $headers .= "Reply-To: " . strip_tags($_POST['email']) . "\r\n";
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=UTF-8\r\n";
    @mail($email_to, $email_subject, $email_message, $headers);
}
include "inc/head.php";
?>
<main class="main col-xs-12">
    <h1><?php 
echo $title;
?>
</h1>
    <p>Thank you for submitting us your requested songs. We will be in touch with you very soon.</p>
    <ol>
        <?php 
echo listSongs($songs);
?>
    </ol>
    <?php 
echo '<p><a href="index.php?' . rand() . '">Back to selection</a></p>';
// echo '<p><a href="http://soundtraxx.ca/">Back to Soundtraxx.ca</a></p>';
?>

</main>
<?php 
include "inc/foot.php";