22 lines
567 B
PHP
22 lines
567 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
require_once($_SERVER['DOCUMENT_ROOT'] . "/config.php");
|
||
|
|
|
||
|
|
//ini_set('display_errors', 1);
|
||
|
|
//error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE);
|
||
|
|
|
||
|
|
if ($_SESSION['id'] && isset($_GET['object_id'])) {
|
||
|
|
|
||
|
|
$get = clearInputData($_GET);
|
||
|
|
|
||
|
|
if (!isset($obj)) {
|
||
|
|
$objectId = trim($_GET['object_id']);
|
||
|
|
$sql = "SELECT *
|
||
|
|
FROM objects WHERE id=$objectId";
|
||
|
|
$res = mysql_query($sql);
|
||
|
|
$obj = mysql_fetch_assoc($res);
|
||
|
|
}
|
||
|
|
|
||
|
|
include($_SERVER['DOCUMENT_ROOT'] . "/templates/object-content__send-buttons.php");
|
||
|
|
|
||
|
|
} ?>
|