예제 #1
0
<?php

session_start();
require_once 'class/dataManager.php';
require_once 'class/user.inc.php';
$dm = new dataManager();
$curr_user = $dm->getuser(T_USER_ID);
if (isset($_POST['submit'])) {
    if ($_POST['userpass'] == "" || $_POST['userpass'] == null) {
        $changePASS = false;
    } else {
        $changePASS = true;
    }
    $res = $dm->updateUser($_POST['userpass'], $_POST['full_name'], $_POST['usercollege'], $_POST['useryear'], $_POST['useremail'], $_POST['usercontact'], $changePASS);
    if ($res == 1) {
        $success = 1;
    }
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Innovacion Online Treasure Hunt">
    <meta name="author" content="Institute of Engineering & Management">
    <meta property="og:title" content="Innovacion Online Treasure Hunt" /> 
    <meta property="og:description" content="Innovacion Online Treasure Hunt" />  
    <!--<meta property="og:image" content="http://www.iemculturalfest.com/images/iemcf2.jpg" />
    <meta property="og:image:width" content="960" />