Location: PHPKode > projects > ProjectPress > projectpress/profile/delete_comment.php
<?php
/**
 * ProjectPress delete wall comment
 *
 * @package ProjectPress
 * @since 2.0
 */

// Starts the session.
session_start();
define('access',true);
require_once(dirname(dirname(__FILE__)) . '/config.inc.php');
require_once(PM_DIR . 'pm-includes/global.inc.php');

// Checks if user is logged in; if not redirect to login page.
if($current_user->hasPermission('access_site') != true) { pm_redirect(PM_URI . '/index.php'); }

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

pmdb::connect()->query("delete from ". DB ."wall_posts_comments where c_id ='".$_REQUEST['c_id']."' AND c_user ='".$_SESSION['username']."'");
Return current item: ProjectPress