move code up one directory
[atutor.git] / mods / _standard / photos / admin / edit_photos.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 define('AT_INCLUDE_PATH', '../../../../include/');
15 require (AT_INCLUDE_PATH.'vitals.inc.php');
16 admin_authenticate(AT_ADMIN_PRIV_PHOTO_ALBUM);
17
18 $isadmin   = TRUE;
19
20 //printer header iff this is not a POST request 
21 //a hack to avoid 'header already sent...' error.
22 if (!isset($_POST['submit']) && !isset($_POST['cancel'])){
23         //$_custom_css = $_base_path . AT_PA_BASENAME . 'module.css'; // use a custom stylesheet
24         require(AT_INCLUDE_PATH.'header.inc.php'); 
25         $msg->printAll();
26 }
27 require(AT_PA_INCLUDE.'edit_photos.inc.php');
28 require(AT_INCLUDE_PATH.'footer.inc.php'); 
29 ?>