-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpense.php
More file actions
39 lines (30 loc) · 1.19 KB
/
expense.php
File metadata and controls
39 lines (30 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require_once './php/essentials.php';
include_once './php/nocache.php';
require_once './php/identify/user.php';
$headings = array($user['user_name']);
$navbox = TRUE;
$urls = Array("user.php?user_id=$user_id");
require_once './php/identify/business.php';
array_push($headings, $business['business_name'], 'Expenses');
$urls[] = "business.php$unique_id";
if (array_key_exists('HTTP_REFERER', $_SERVER) and
!empty($_SERVER['HTTP_REFERER'])
and substr(basename($_SERVER['HTTP_REFERER']), 0, 12) == 'find_out.php') {
$urls[] = $_SERVER['HTTP_REFERER'];
}
else $urls[] = "search_out.php$unique_id";
require './php/identify/expense.php';
$headings[] = html_entity_decode($expense['expense_title'], ENT_COMPAT, 'UTF-8');
require_once './php/header_one.php';
require_once './php/header_two.php';
?>
<form accept-charset="UTF-8" name="frm_main" method="post" action="action.php" onsubmit="disable()">
<?php
$open_xhtml_tags[] = 'form';
$allowed = array('diary.php', 'find_out.php');
if (!empty($_GET['return'])) $allowed[] = 'commission.php';
insert_hidden_fields(goto_address("business.php$unique_id", $allowed));
require './php/forms/expense.php';
close_xhtml_tag('form');
include './php/footer.php';