Location: PHPKode > projects > ProjectPress > projectpress/profile/index.php
<?php
/**
 * ProjectPress redirects to user's main profile
 *
 * @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();

pm_redirect(PM_URI . "/profile/profile.php");
Return current item: ProjectPress