FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » FUDforum 3.0+ » The GLOBALS.php
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
The GLOBALS.php [message #12846] Sat, 13 September 2003 07:01 Go to next message
Nesrene is currently offline  Nesrene   Norway
Messages: 25
Registered: April 2003
Location: Oslo
Karma: 0
Junior Member
I find 4 instances of the GLOBALS.php:

[root@m1 forum]# find * -name 'GLOBALS.php'
GLOBALS.php
adm/GLOBALS.php
data/scripts/GLOBALS.php
data/include/GLOBALS.php

Are all these neccessary? In other words please explain the function of each one. As an old unix hack I am a fan of symlinks and would like to get rid of some of them Wink

Reason is that it seems to be bugs in the config-system. I can change an item in the config-interface, ex. "Display IP..." and it will not reflect a change i both the ~/ and ~/adm/ one...


"History is written by those who have hanged heroes!"
Re: The GLOBALS.php [message #12848 is a reply to message #12846] Sat, 13 September 2003 07:06 Go to previous messageGo to next message
Nesrene is currently offline  Nesrene   Norway
Messages: 25
Registered: April 2003
Location: Oslo
Karma: 0
Junior Member
Nesrene wrote on Sat, 13 September 2003 09:01

I find ...4 instances of the GLOBALS.php:...



I run 2.5.2 btw.


"History is written by those who have hanged heroes!"
Re: The GLOBALS.php [message #12932 is a reply to message #12848] Thu, 18 September 2003 15:03 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is only 1 physical GLOBALS.php, the rest are symlinks.

FUDforum Core Developer
Re: The GLOBALS.php [message #12947 is a reply to message #12846] Thu, 18 September 2003 15:38 Go to previous messageGo to next message
JamesS is currently offline  JamesS   United States
Messages: 275
Registered: July 2002
Location: Atlanta, GA
Karma: 0
Senior Member
An "old unix hack" that doesn't know how to tell if a file is a symlink?
Re: The GLOBALS.php [message #12952 is a reply to message #12932] Thu, 18 September 2003 15:53 Go to previous messageGo to next message
Nesrene is currently offline  Nesrene   Norway
Messages: 25
Registered: April 2003
Location: Oslo
Karma: 0
Junior Member
prottoss wrote on Thu, 18 September 2003 17:03

There is only 1 physical GLOBALS.php, the rest are symlinks.


Not on my system, all are regular files... But that explains alot. Which of the four should be the actual file?


"History is written by those who have hanged heroes!"
Re: The GLOBALS.php [message #12953 is a reply to message #12947] Thu, 18 September 2003 15:57 Go to previous messageGo to next message
Nesrene is currently offline  Nesrene   Norway
Messages: 25
Registered: April 2003
Location: Oslo
Karma: 0
Junior Member
JamesS wrote on Thu, 18 September 2003 17:38

An "old unix hack" that doesn't know how to tell if a file is a symlink?


Funney ey? All four are regular files. Probably as a result of a poor usage of tar at some point. Viewing the PHP-source to see how and from where all situations opens them are of corse the timeconsuming correct way rather than to just ask.

Grow up!


"History is written by those who have hanged heroes!"
Re: The GLOBALS.php [message #12961 is a reply to message #12953] Thu, 18 September 2003 16:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
GLOBALS.php inside the include/ directory is the 'primary' file. The others should by symlinks.

FUDforum Core Developer
Re: The GLOBALS.php [message #12975 is a reply to message #12961] Thu, 18 September 2003 17:21 Go to previous messageGo to next message
Nesrene is currently offline  Nesrene   Norway
Messages: 25
Registered: April 2003
Location: Oslo
Karma: 0
Junior Member
prottoss wrote on Thu, 18 September 2003 18:50

GLOBALS.php inside the include/ directory is the 'primary' file. The others should by symlinks.


Thanks, are there any other important symlincs?


"History is written by those who have hanged heroes!"

[Updated on: Thu, 18 September 2003 17:21]

Report message to a moderator

Re: The GLOBALS.php [message #12976 is a reply to message #12975] Thu, 18 September 2003 17:21 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There are no more symlinks that the forum uses.

FUDforum Core Developer
Re: The GLOBALS.php [message #12978 is a reply to message #12976] Thu, 18 September 2003 17:29 Go to previous message
Nesrene is currently offline  Nesrene   Norway
Messages: 25
Registered: April 2003
Location: Oslo
Karma: 0
Junior Member
prottoss wrote on Thu, 18 September 2003 19:21

There are no more symlinks that the forum uses.


Thanks Smile I'll punish the b00ger that fouled the tar-operation Wink


"History is written by those who have hanged heroes!"
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pdf generation
Next Topic: New way to limit troublesome users
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:09:46 GMT 2024

Total time taken to generate the page: 0.02630 seconds