Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
<?php
2
/*************************
3
  Coppermine Photo Gallery
4
  ************************
5
  Copyright (c) 2003-2005 Coppermine Dev Team
6
  v1.1 originaly written by Gregory DEMAR
7
 
8
  This program is free software; you can redistribute it and/or modify
9
  it under the terms of the GNU General Public License as published by
10
  the Free Software Foundation; either version 2 of the License, or
11
  (at your option) any later version.
12
  ********************************************
13
  Coppermine version: 1.3.3
14
  $Source: /cvsroot/coppermine/stable/admin.php,v $
15
  $Revision: 1.6 $
16
  $Author: gaugau $
17
  $Date: 2005/04/19 03:17:10 $
18
**********************************************/
19
 
20
define('IN_COPPERMINE', true);
21
define('ADMIN_PHP', true);
22
 
23
require('include/init.inc.php');
24
 
25
if (!USER_CAN_CREATE_ALBUMS && !USER_IS_ADMIN) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
26
 
27
if (!isset($HTTP_GET_VARS['admin_mode']) || !isset($HTTP_GET_VARS['referer'])) cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
28
 
29
$admin_mode = (int)$HTTP_GET_VARS['admin_mode'] ? 1 : 0;
30
$referer = $HTTP_GET_VARS['referer'] ? $HTTP_GET_VARS['referer'] : 'index.php';
31
$USER['am'] = $admin_mode;
32
if (!$admin_mode) $referer = 'index.php';
33
 
34
pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url=$referer\">");
35
msg_box($lang_info, $lang_admin_php[$admin_mode], $lang_continue, $referer);
36
pagefooter();
37
ob_end_flush();
38
 
39
?>