1 /* Copyright (C) 2000-2004 Thomas Bopp, Thorsten Hampel, Ludger Merkens
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * $Id: global.pike,v 1.1 2008/03/31 13:39:57 exodusd Exp $
27 object _FileSystem = 0;
33 object _Initialize = 0;
37 * set the global objects
40 void __set(array globals)
42 if ( objectp(_Initialize) && CALLER != _Initialize &&
43 CALLER != this_object() )
46 [ _Security, _Database, _FileSystem, _Types, _Log, _GroupAll,
47 _RootRoom, _Initialize ] = globals;
53 * @return the global objects
57 return ({ _Security, _Database, _FileSystem, _Types, _Log, _GroupAll,
58 _RootRoom, _Initialize });
62 * return the object class for global objets "0"
64 * @return the object class
66 int get_object_class()