コード例 #1
0
ファイル: alumni_add_server.php プロジェクト: vermauv/ca-site
if (isset($_POST['linkedin_id'])) {
    $linkedin_id = $_POST['linkedin_id'];
} else {
    $linkedin_id = NULL;
}
if (isset($_POST['batch'])) {
    $batch = $_POST['batch'];
} else {
    die("insert batch year");
}
if (isset($_POST['userName'])) {
    $username = $_POST['userName'];
} else {
    die("Enter User Name");
}
$check = Alumni_Detail::checkUsernameAvalibility($username);
if ($check === 0) {
    die("username is already exist");
}
if (isset($_POST['password'])) {
    $password = $_POST['password'];
} else {
    die("Enter Password");
}
if (isset($_POST['confirmPassword'])) {
    $cpassword = $_POST['confirmPassword'];
} else {
    die("Enter Confirm Password");
}
if ($password != $cpassword) {
    die("Password mis-match");
コード例 #2
0
<?php

if (!isset($_SERVER['HTTP_REFERER'])) {
    header("location: ../../access_denied.php?data=You don't have direct access to this page");
}
if (isset($_GET['uname']) && $_GET['uname'] != "") {
    require_once '../../db/alumni_detail.php';
    $r = Alumni_Detail::checkUsernameAvalibility($_GET['uname']);
    echo $r;
} else {
    die("Enter Username First.");
}