Exemplo n.º 1
0
<?php

include '../../settings.php';
include '../../inc/login_functions.php';
include '../Admin/functions.php';
//später ersetzen, wenn nihct nur Admin antworten darf
include '../../inc/helper.php';
include 'functions.php';
/* Zugangsberechtigungen */
access($mysqli);
adminAccess($mysqli, $_SESSION['userId']);
if (isset($_GET['offer'])) {
    $offer = trim(htmlentities($_GET['offer'], ENT_QUOTES, "UTF-8"));
    $offer = $mysqli->real_escape_string($offer);
    $offerData = getOfferData($mysqli, $offer, $_SESSION['userId']);
    $result = updateOffer($mysqli, $offer, $_SESSION['userId'], $offerData["requestId"]);
}
if (!empty($result) && $result != 1) {
    echo $result;
}
/* direkt zu thanl You direkten */
if ($result === 1) {
    header("Location: answer.php?request=" . $offerData["requestId"]);
    exit;
}
?>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
Exemplo n.º 2
0
<?php

include '../../settings.php';
include '../../inc/login_functions.php';
include '../../inc/helper.php';
include 'functions.php';
/* Zugangsberechtigungen */
$logedIn = access($mysqli, false);
if (isset($_GET['offer'])) {
    $offerId = trim(htmlentities($_GET['offer'], ENT_QUOTES, "UTF-8"));
    $offerId = $mysqli->real_escape_string($offerId);
    $offer = getOfferData($mysqli, $offerId);
}
include "../../inc/head.php";
?>

<script src='<?php 
echo PROJECT_HTTP_ROOT;
?>
/extLibs/jquery-1.11.1.min.js'></script>
<script src='<?php 
echo PROJECT_HTTP_ROOT;
?>
/extLibs/jquery-ui.min.js'></script>

<section id="Content" role="main">

<div class="container">

<!-- SECTION EMPHASIS 1 -->
<!-- FULL WIDTH -->