/extremedating/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/extremedating/trunk

« back to all changes in this revision

Viewing changes to profile/profile.php

  • Committer: Daniel Johansson
  • Date: 2013-04-13 19:42:41 UTC
  • Revision ID: maila@danieljohansson.nu-20130413194241-7f2xjsttrcvdu2w0
Derping around

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
                <div id="profile">
43
43
                        <div id="profileheader">
44
44
                        <div class="logo">
45
 
                                <a href="index.php">
46
45
                                <img src="img/logo.png"/>
47
 
                                </a>
48
46
                        </div>
49
47
                                <form action="./logout.php" method="POST">
50
48
                                        <table id="logout">
59
57
                                <p class="profilename"><?php echo $firstName . " " . $surName;?></p>
60
58
                        </div>
61
59
                        <div id="wallflow">
62
 
                        <?PHP
63
 
                        $profilename = 'åäö';
64
 
                        $userinfo = $db->query("SELECT firstName from Users WHERE loginName='$profilename'");
65
 
                        $self = $userinfo->fetchAll();
66
 
                        $firstName = $self [0]['firstName'];
67
 
                        $userinfo = $db->query("SELECT surName from Users WHERE loginName='$profilename'");
68
 
                        $self = $userinfo->fetchAll();
69
 
                        $surName = $self [0]['surName']
70
 
                        ?>
71
 
                        <p class="profilename"><?php echo $firstName . " " . $surName;?></p>
72
60
                        </div>
73
61
                </div>
74
62
        </body>
75
63
        <?PHP
76
64
        } else { 
77
65
        sleep(.5);
78
 
        header("Location:index.php");
 
66
        header("Location:../index.php");
79
67
} ?>
80
68
</html>