Beispiel #1
0
<?php

include "db.php";
$dataBase = new LoginDatabase();
$dataBase->remove_user($_POST["name"]);
Beispiel #2
0
        <table id="tg" style="undefined;table-layout: fixed; width: 1300px">
            <tr>
                <th class="tg-baqh" colspan="7">User Information</th>
            </tr>
            <tr>
                <td class="tg-dzk6">회원정보삭제</td>
                <td class="tg-dzk6">ID</td>
                <td class="tg-dzk6">E-mail</td>
                <td class="tg-dzk6">Comment</td>
                <td class="tg-dzk6">School</td>
                <td class="tg-dzk6">Age</td>
                <td class="tg-dzk6">Name</td>
            </tr>
            <?php 
    include "db.php";
    $dataBase = new LoginDatabase();
    $users = $dataBase->user_info();
    $i = 0;
    $num = 0;
    foreach ($users as $user) {
        ?>
            <tr id="<?php 
        echo "tablerow" . ++$num;
        ?>
">
                <td class="tg-yw4l"><img src="img/paper.png" alt="<?php 
        echo ++$i;
        ?>
" /></td>
                <td class="tg-yw4l"><?php 
        echo $user[0];
Beispiel #3
0
<?php

include "db.php";
$dataBase = new LoginDatabase();
if (!isset($_POST['user_id']) || !isset($_POST['user_pw'])) {
    exit;
}
$user_id = $_POST['user_id'];
$user_pw = $_POST['user_pw'];
$isset_id = $dataBase->login($user_id, $user_pw);
if (!$isset_id) {
    echo "<script>alert('아이디 또는 패스워드가 잘못되었습니다.');history.back();</script>";
    exit;
}
session_start();
$_SESSION['user_id'] = $user_id;
?>
<meta http-equiv='refresh' content='0;url=index.php'>
Beispiel #4
0
<?php

include "db.php";
$dataBase = new LoginDatabase();
$test = $dataBase->find($_POST['user_email'])[0];
if (!isset($test)) {
    echo "<script>alert('등록된 이메일이 아닙니다.');history.back();</script>";
    exit;
}
echo "<script>alert('아이디 : {$test['0']}, 비밀번호 : {$test['1']}');</script>";
?>
<meta http-equiv='refresh' content='0;url=login.php'>