/
contact_add.php
36 lines (30 loc) · 999 Bytes
/
contact_add.php
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
<?php
// contact_add.php - Adds a new contact
//
// SiT (Support Incident Tracker) - Support call tracking system
// Copyright (C) 2000-2009 Salford Software Ltd. and Contributors
//
// This software may be used and distributed according to the terms
// of the GNU General Public License, incorporated herein by reference.
//
// This Page Is Valid XHTML 1.0 Transitional! 31Oct05
$permission = 1; // Add new contact
require ('core.php');
require (APPLICATION_LIBPATH . 'functions.inc.php');
// This page requires authentication
require (APPLICATION_LIBPATH . 'auth.inc.php');
// External variables
$siteid = mysql_real_escape_string($_REQUEST['siteid']);
$submit = $_REQUEST['submit'];
$title = $strNewContact;
if (empty($submit) OR !empty($_SESSION['formerrors']['add_contact']))
{
include (APPLICATION_INCPATH . 'htmlheader.inc.php');
echo show_add_contact($siteid, 'internal');
include (APPLICATION_INCPATH . 'htmlfooter.inc.php');
}
else
{
echo process_add_contact();
}
?>