<?php /** * Created by PhpStorm. * User: Oyon * Date: 2/14/2016 * Time: 4:20 PM */ session_start(); require '../controller/define.php'; require '../controller/adminControl.php'; if (!isset($_SESSION['admin'])) { header('Location: ' . SERVER . '/404'); } else { $proInfo = getPersonalInfo(); } ?> <!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="Neon Admin Panel" /> <meta name="author" content="" /> <?php require_once '../includes/head.php'; ?>
$function = $_POST['function']; } if ($function == "") { http_response_code(300); } if ($function == "add_item") { addItem(); } if ($function == "sign_up") { signUp(); } if ($function == "log_in") { LogIn(); } if ($function == "get_personal_info") { getPersonalInfo(); } if ($function == "update_personal_info") { updatePersonalInfo(); } if ($function == "change_password") { changePassword(); } if ($function == "get_all_addresses") { getAllAddresses(); } if ($function == "get_address") { getAddress(); } if ($function == "update_address") { updateAddress();
<?php session_start(); require 'controller/define.php'; require 'controller/indexControl.php'; $login = false; if (isset($_COOKIE['user']) || isset($_SESSION['user'])) { if (!isset($_SESSION['user'])) { $_SESSION['user'] = $_COOKIE['user']; } $login = true; $user = $_SESSION['user']; $proInfo = getPersonalInfo($user); } elseif (!$login) { header('Location: ' . SERVER . '/404'); } ?> <!DOCTYPE HTML> <html> <head> <?php require_once 'includes/head.php'; ?> <link href="<?php echo SERVER; ?> /assets/css/bootstrap-3.3.5-dist/css/bootstrap.min.css" rel="stylesheet"/> <link href="<?php echo SERVER; ?> /assets/css/custom.css" rel="stylesheet"/>
include "navbar.php"; ?> <div class="container-fluid"> <div class="checkout"> <div class="checkout_first"> <h3 class="text-center text-warning">Order detials</h3> <?php getOrdersCheckout($_GET['acc_id'], $_GET['order_id']); ?> </div> <div class="checkout_second"> <?php $info = getPersonalInfo($_GET['acc_id']); ?> <h3 class="text-center text-primary">Personal detials</h3> <div class="row user_info"> <label class="control-label custom-label col-sm-3" for="fname">Name:</label> <p><?php echo $info[0]; ?> </p> </div> <div class="row user_info"> <label class="control-label custom-label col-sm-3" for="fname">Surname:</label> <p><?php echo $info[1];