Location: PHPKode > projects > ProjectPress > projectpress/pm-admin/add_uut.php
<?php
/**
 * ProjectPress add user 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');

// User is logged in and is an admin.
is_admin();

// Enable for error checking and troubleshooting.
//display_errors();

if($_POST) {
$uut_user = pmdb::connect()->escape($_POST['uut_user']);
$ut_id = pmdb::connect()->escape($_POST['ut_id']);

$sql = pmdb::connect()->query("INSERT INTO ". DB ."user_user_types (ut_id,uut_user) VALUES ('$ut_id','$uut_user')");
} else { }
Return current item: ProjectPress