PDA

View Full Version : Corrections for Version 1.8.1


Charter
07-08-2004, 11:59 AM
Hi. These changes are for PhpDig version 1.8.1 downloaded before the date of this post.

In config.php find:

//connection to database
if (is_file("$relative_script_path/includes/connect.php")) {
include "$relative_script_path/includes/connect.php";
}
else {
die("Unable to find connect.php file.\n");
}

and replace with:

//connection to database
if ((!isset($no_connect)) || ($no_connect != 1)) {
if (is_file("$relative_script_path/includes/connect.php")) {
include "$relative_script_path/includes/connect.php";
}
else {
die("Unable to find connect.php file.\n");
}
}

In search_function.php move this block of code:

$test_short = $query_to_parse;
$query_to_parse2 = explode(" ",$query_to_parse);
usort($query_to_parse2, "by_length");
$query_to_parse = implode(" ",$query_to_parse2);
unset($query_to_parse2);

so that it is below this line:

$query_for_phrase = $query_to_parse;

It should look like this afterwards:

$query_for_phrase = $query_to_parse;
$test_short = $query_to_parse;
$query_to_parse2 = explode(" ",$query_to_parse);
usort($query_to_parse2, "by_length");
$query_to_parse = implode(" ",$query_to_parse2);
unset($query_to_parse2);

Again, these changes are for PhpDig version 1.8.1 downloaded before the date of this post.

These changes have already been applied to PhpDig version 1.8.1 downloaded after the date of this post.

Charter
07-08-2004, 03:20 PM
Hi. One more oops... :o

These changes are for PhpDig version 1.8.1 downloaded before the date of this post.

In auth.php right after:

$relative_script_path = "..";

place the following:

if (isset($_POST['no_connect'])) {
$no_connect = $_POST['no_connect'];
}

It should look like this afterwards:

$relative_script_path = "..";

if (isset($_POST['no_connect'])) {
$no_connect = $_POST['no_connect'];
}

Also in auth.php find:

header("Location: $relative_script_path/admin/");

and replace with:

header("Location: $relative_script_path/admin/$redir_file");

Again, these changes are for PhpDig version 1.8.1 downloaded before the date of this post.

These changes have already been applied to PhpDig version 1.8.1 downloaded after the date of this post.

Charter
07-09-2004, 07:16 AM
Hi. Some other tweaks...

These changes are for PhpDig version 1.8.1 downloaded before the date of this post.

added to config.php file right before the $templates_array variable:

if (isset($_GET['template_demo'])) { $template_demo = $_GET['template_demo']; }

added to all $result['form_head'] variables in function_phpdig_form.php file:

<input type='hidden' name='template_demo' value='".$_GET['template_demo']."'/>

changed the phpdigMsg('alt_try') link in search_function.php file:

".SEARCH_PAGE."?template_demo=".$_GET['template_demo']."&query_string=".urlencode($leven_query)."


Again, these changes are for PhpDig version 1.8.1 downloaded before the date of this post.

These changes have already been applied to PhpDig version 1.8.1 downloaded after the date of this post.

Charter
07-12-2004, 05:37 PM
Foo... See the Bug Tracker forum for further "oops" in version 1.8.1 or download PhpDig version 1.8.2.