'Al Azhar', 'dob' => date("Y-m-d",strtotime('1992-10-21')), 'telp' => '000', 'address' => 'test', 'hometown' => 'kampung', 'Fakultas' => 'if', 'Jurusan' => 'sif', 'Angkatan' => '2010', 'Kelas' => '04', 'relationship' => '1', 'user' => $_SESSION['username'] ); if ($u->inputProfil($data)){ //echo ' insert bisa '; $idp = $u->getId(); $foto = new Foto($_FILES); $foto->insert($_SESSION['username']); $hasil = $foto->getHasil(); $photo = $hasil['lokasi']; //echo $photo; if($u->inputAvatar($photo,$idp))echo ' complete'; else echo ' gagal foto'; } else echo ' gagal'; } */ //create post(suskses) /* if (isset($_SESSION['username']) && isset($_POST['sbm'])){ $u = new User(); $data = array( 'name' => 'test nama', 'status' => 'lab', 'user' => $_SESSION['username'] ); if ($u->insertPost($data))else echo 'sukses'; else echo 'gagal' } */ //add friend /* */ //approve friend /* */ //notification /* */ //add and delete member /* */ //crete community and event(sukses) /* if (isset($_SESSION['username']) && isset($_POST['sbm'])){ $u = new Community(); $data = array( 'name' => 'test nama', 'type' => 'lab', 'user' => $_SESSION['username'], 'desc' => 'test desc' ); if ($u->create($data)){ echo ' insert bisa '; $idp = $u->getId(); mkdir(user_file . $idp, 0700); $foto = new Foto($_FILES); $foto->insert($idp); $hasil = $foto->getHasil(); $photo = $hasil['lokasi']; //echo $photo; if($u->inputPhoto($photo,$idp))header('Location: home.php'); else echo ' gagal foto'; } else echo ' gagal'; } */ //update /* */ echo date('d/m/Y H:i:s',time()); if (hasPassed('06/03/2014 8:00')) echo ' passed'; else echo ' not'; if (isset($_POST['select3'])){ print_r($_REQUEST); } ?>