remove old readme
[atutor.git] / mods / _standard / photos / set_profile_picture.php
1 <?php
2 /***********************************************************************/
3 /* ATutor                                                                                                                          */
4 /***********************************************************************/
5 /* Copyright (c) 2002-2010                                             */
6 /* Inclusive Design Institute                                          */
7 /* http://atutor.ca                                                                                                        */
8 /*                                                                                                                                         */
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 /***********************************************************************/
13 // $Id$
14
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
19
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');
23 } else {
24         header('Location: ../profile_pictures/profile_picture.php');
25 }
26 exit;
27 ?>