In this board you can talk about general questions about phpMyFAQ
Moderator: Thorsten
marve
Posts: 13 Joined: Wed Jul 28, 2004 6:25 am
Post
by marve » Wed Jul 28, 2004 4:07 pm
Apache didn't give any errors in his log, but I've tested the following:
I removed some code.
This is the original code:
Code: Select all
/* get language (default: english) */
if (isset($_POST["language"]) && $_POST["language"] != "" && strlen($_POST["language"]) <= 2 && !preg_match("=/=", $_REQUEST["language"])) {
$LANGCODE = $_POST["language"];
require_once("lang/language_".$_POST["language"].".php");
}
if (!isset($LANGCODE) && isset($_GET["lang"]) && $_GET["lang"] != "" && strlen($_GET["lang"]) <= 2 && !preg_match("=/=", $_GET["lang"])) {
if (@require_once("lang/language_".$_REQUEST["lang"].".php")) {
$LANGCODE = $_REQUEST["lang"];
}
else {
unset($LANGCODE);
}
}
if (!isset($LANGCODE) && isset($PMF_CONF["detection"]) && isset($_SERVER["HTTP_ACCEPT_LANGUAGE"])) {
if (@require_once("lang/language_".substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2).".php")) {
$LANGCODE = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2);
}
else {
unset($LANGCODE);
}
}
if (isset($LANGCODE)) {
require_once("lang/language_".$LANGCODE.".php");
}
$LANGCODE = "en";
require_once ("lang/language_en.php");
/* found a session ID? */
I removed most of it, this is what left:
Code: Select all
/* get language (default: english) */
$LANGCODE = "en";
require_once ("lang/language_en.php");
/* found a session ID? */
No it works like a charm!
marve
Posts: 13 Joined: Wed Jul 28, 2004 6:25 am
Post
by marve » Wed Jul 28, 2004 4:20 pm
Ok I don't know if this has anything to do with the code deleting like I did
before to make it work, it seems unlikely.
When I give comment on a document it says:
Comment of NDptYXJ2ZToyNTlhNzdkNjBjMTMwY2ZmZjJkZTM5ZGEwY2NlNTg0MToxMDo6MDowOjA6MDo6NDA5Ng==:
instead of my real name, when I mouse over it it says my email adres
in the status bar:
mkools at xs4all dot nl
So that's good but the name is all messed up.
Thorsten
Posts: 15739 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Wed Jul 28, 2004 4:25 pm
Hi,
it seems, your PHP version breaks some stuff.
bye
Thorsten
marve
Posts: 13 Joined: Wed Jul 28, 2004 6:25 am
Post
by marve » Wed Jul 28, 2004 4:47 pm
Thorsten sorry to bother you again (I already did that enough today
) but
what do you think of the 'white screen' appearing if i leave that code where
it is?
I just installed phpmyfaq 1.3 as test and it's working good in there but
1.4 looks way better so I want to use that one.
Thanks in advance.
Thorsten
Posts: 15739 Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:
Post
by Thorsten » Wed Jul 28, 2004 5:04 pm
marve wrote: Thorsten sorry to bother you again (I already did that enough today
) but
what do you think of the 'white screen' appearing if i leave that code where
it is?
I asked some PHP geeks and they didn't know anything what could produce such a result.
But I will look for a solution for this problem.
Maybe a PHP update to 4.3.8 will be a choice.
bye
Thorsten
marve
Posts: 13 Joined: Wed Jul 28, 2004 6:25 am
Post
by marve » Wed Jul 28, 2004 6:53 pm
Hi Thorsten,
I compiled apache and php from source on an OpenBSD box and
it runs great now without any bugs
Think you are right in saying PHP causes the problems, or maybe apache.
On slack10 i can't get in to run like it should, but it's ok now, i can work
around the problem
thanks for all your help!
You might as well want to close this thread.