2 /***********************************************************************/
4 /***********************************************************************/
5 /* Copyright (c) 2002-2010 */
6 /* Inclusive Design Institute */
9 /* This program is free software. You can redistribute it and/or */
10 /* modify it under the terms of the GNU General Public License */
11 /* as published by the Free Software Foundation. */
12 /***********************************************************************/
15 define('AT_INCLUDE_PATH', '../../../include/');
16 $_user_location = 'public';
17 require (AT_INCLUDE_PATH.'vitals.inc.php');
18 require ('../profile_pictures/save_profile_picture.php'); //handle POST request
20 //tweak. disallow redirect to profile album, if the refererer is from profile picture.php
21 if (isset($_SESSION['course_id']) && $_SESSION['course_id']>0){
22 header('Location: profile_album.php');
24 header('Location: ../profile_pictures/profile_picture.php');