Location: PHPKode > projects > ProjectPress > projectpress/profile/notes/delete_note.php
<?php
/**
 * ProjectPress delete note
 *
 * @package ProjectPress
 * @since 2.0
 */

// Starts the session.
session_start();
define('access',true);

require_once(dirname(dirname(dirname(__FILE__))) . '/config.inc.php');
require_once(PM_DIR . 'pm-includes/global.inc.php');
require_once(PM_DIR . 'pm-includes/functions.php');

if($current_user->hasPermission('access_site') != true) { pm_redirect(PM_URI . '/index.php'); }

pmdb::connect()->query("delete from ". DB ."notes where n_id ='".pmdb::connect()->escape($_REQUEST['n_id'])."' AND n_user = '".pmdb::connect()->escape($_REQUEST['n_user'])."' LIMIT 1");
Return current item: ProjectPress