<?php
/**
* ProjectPress add user type/tag
*
* @package ProjectPress
* @since 2.0
*/
// Starts the session.
session_start();
define('access',true);
include(dirname(dirname(__FILE__)) . '/config.inc.php');
include(PM_DIR . 'pm-includes/global.inc.php');
include(PM_DIR . 'pm-includes/functions.php');
// User is logged in and is an admin.
is_admin();
// Enable for error checking and troubleshooting.
//display_errors();
if($_POST) {
$user_type = pmdb::connect()->escape($_POST['user_type']);
$sql = pmdb::connect()->query("INSERT INTO ". DB ."user_types (user_type) VALUES ('$user_type')");
} else { }
?>
<li class="user_type"><?php echo $user_type;?> <a style="float: right;" href="#" id="UTID-<?php echo $row['usrt_id'];?>" class="ut_delete"><img src="<?php echo PM_URI ?>/images/delete.png" alt="Delete" title="Delete" /></a></li>