Time Problem [message #1152] |
Thu, 21 March 2002 23:11 |
DPitts18
Messages: 32 Registered: March 2002
Karma: 0
|
Member |
|
|
The time on my board is way off. It says 10:21AM EST right now.
I have the admin time set to est time and my profile set to est time, but for some reason it keeps listing it wrong.
|
|
|
|
|
|
|
Re: Time Problem [message #1185 is a reply to message #1184] |
Sat, 23 March 2002 16:31 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hi, I know this bug, but it's from older versions of the forum and has been fixed meanwhile. U can edit the GLOBALS.php and remove the entry there. To illustrate it here is a sample
[...] $SERVER_TZ = "Europe/Berlin"; $DATE_FORMAT = "D, d F Y"; $TIME_FORMAT = "G:i:s";
[...]
In case ur entry is in single ' u should change it to " when altering the entry.
bye Ken
|
|
|
|
|
|
|
|
Re: Time Problem [message #1199 is a reply to message #1194] |
Sat, 23 March 2002 20:08 |
|
basse
Messages: 164 Registered: March 2002 Location: Åbo, Finland
Karma: 0
|
Senior Member |
|
|
DPitts18 wrote on Sat, 23 March 2002 7:27 PM | You lost me in just about everything you said. LoL
|
OK. Let's try this again, shall we?
Do you know the difference between a symbolic link and a real file? If not, check that out first before you try to understand the rest of this post.
The following example will use paths /example/path/forum/ as the forum main dir and /example/path/data/ as the forums data dir.
The file GLOBALS.php exists in one place, which is /example/path/data/includes/GLOBALS.php. But there are symbolic links (symlinks) in two places, both of which point to the file in /example/path/data/includes/. These two symlinks are: /example/path/forum/GLOBALS.php and /example/path/forum/adm/GLOBALS.php. If you wish to edit any settings in GLOBALS.php directly, please make the corrections in the real file (ie. /example/path/data/includes/GLOBALS.php), not in the symlinks.
To fix your problem, please recreate the symlinks in /example/path/forum/ and /example/path/forum/adm/. This can be done by issuing the commands 'ln -s /example/path/data/includes/GLOBALS.php /example/path/forum/GLOBALS.php' and 'ln -s /example/path/data/includes/GLOBALS.php /example/path/forum/adm/GLOBALS.php' at the shell prompt.
Quote: |
I don't know that much about PHP. This my first excursion into it.
|
This isn't actually a php issue, rather basic unix know-how. But everybody has to start somewhere...
Hope this helped clear things up for you. Feel free to ask if you still don't understand.
|
|
|
|
|
|
Re: Time Problem [message #1208 is a reply to message #1207] |
Sun, 24 March 2002 15:32 |
Olliver
Messages: 443 Registered: March 2002
Karma: 0
|
Senior Member |
|
|
Hello, there's nothing much to fix. The right file which has to be edited is the GLOBALS.php in the non-browsable dir unter include/. This is the only original file. The symlink in the rootdir (browsable) of the forum and the one in the adm/ dir should be kept as links. So if one of the latter already has mutated to a real file DO delete it and create new symlinks to the real one as described above. It DOES have a reason why GLOBALS.php ought to be non-browsable, since it keeps both ur forum settings and the confidential user/pass of ur SQL connection. So the steps are quite easy:
1. copy the already edited file to ur local harddrive 2. delete the GLOBALS.php in the root, adm/, ur hidden-dir/include/ and wherever copies of it may roam 3. copy ur local copy back to ur hiddendir/include/ 4. chmod it to 666 so u can change settings at any time with the admin control panel 5. next make the symlinks as djupsjob has described to u
Quote: | To fix your problem, please recreate the symlinks in /example/path/forum/ and /example/path/forum/adm/. This can be done by issuing the commands 'ln -s /example/path/data/includes/GLOBALS.php /example/path/forum/GLOBALS.php' and 'ln -s /example/path/data/includes/GLOBALS.php /example/path/forum/adm/GLOBALS.php' at the shell prompt.
|
6. Now it should work. Consider upgrading to the latest version, as it will fix many problems u cannot solve by configuring via the web interface.
bye Ken
|
|
|