Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("includes/functions.php");
- include_once("includes/header.php");
- $pdo = conectar();
- ?>
- <?php if(isset($_SESSION['logado'])){
- $sessMail = $_SESSION['email'];
- $select = $pdo->prepare("SELECT * FROM membros WHERE email = ?");
- $select->bindParam(1, $sessMail);
- $select->execute();
- while($res = $select->fetchAll(PDO::FETCH_OBJ)){
- $_SESSION['username']=$res->nome;
- $_SESSION['id_user']=$res->id;
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <link rel="shortcut icon" href="img/LOGO_03.png" type="image/x-icon"/>
- <title>Smush | <?php echo $res->nome; ?></title>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="stylesheet" href="css/geral.css" />
- <link rel="stylesheet" href="css/logado.css" />
- <link rel="stylesheet" href="icones/styles.css" />
- <link rel="stylesheet" href="js/jquery-ui-1.11.4.custom/jquery-ui.css" />
- <link rel="stylesheet" href="js/jquery-ui-1.11.4.custom/jquery-ui.structure.min.css" />
- <link rel="stylesheet" href="js/jquery-ui-1.11.4.custom/jquery-ui.theme.min.css" />
- <link rel="stylesheet" href="notify/notify.style.css"/>
- <link rel="stylesheet" href="css/smodal.css"/>
- <script type="text/javascript" src="js/jquery.js"></script>
- <script type="text/javascript" src="js/jquery-ui-1.11.4.custom/jquery-ui.js"></script>
- <script type="text/javascript" src="js/functions.js"></script>
- <script src="notify/notify.js"></script>
- <?php echo '<script> var meu_id = '. $res->id .'</script>'; ?>
- <script>
- ...
- </script>
- </head>
- <body style="background:#ececec">
- <div id="dialogo" title="Sucesso!">
- <p></p>
- </div>
- <div id="tudo">
- <a href="javascript:logout();" id="logout" class="icon-log-out" title="Sair"></a>
- <?php include_once("menu.inc"); ?>
- ...
- resto do site
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement