Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

0albums.php

Go to the documentation of this file.
00001 <?php
00002 /* $Id: 0albums.php,v 1.1 2003/09/25 18:59:22 mikko Exp $ */
00003 /*
00004  * ImaComm - a web based photo album software
00005  * Copyright (C) 2003, Mikko Kokkonen
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or (at
00010  * your option) any later version.
00011  * 
00012  * This program is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020  */
00021 if (function_exists("posix_getpwuid") && function_exists("posix_getuid"))
00022 {
00023         $__info = posix_getpwuid(posix_getuid());
00024         $__grpinf = posix_getgrgid($__info['uid']);
00025         $__info = "(Username: ".$__info['name'].", group: ".$__grpinf['name'].")";
00026 }
00027 
00028 // Generate default album path (ImaComm installion folder -> up one step -> albums)
00029 $path = dirname($_SERVER['PHP_SELF']);
00030 $path = explode("/", $path);
00031 array_pop($path); array_pop($path); array_push($path, "albums");
00032 $path = implode("/", $path);
00033 $module = array(
00034                 "name"        => "Albums path",
00035                 "var"         => "albums",
00036                 "type"        => "webpath",
00037                 "serious"     => true,
00038                 "description" => "Please give path to the directory where ImaComm can save albums. This directory must be PHP writable $__info",
00039                 "default" => $path);
00040 ?>

Generated on Sun Oct 19 11:08:00 2003 for ImaComm by doxygen1.3