clydejones:
This is the entire section of code that applies to this issue:
Please compare the following with your copy of admin/links.php
break;
case 'check':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_CHECK_LINK . '</b>');
$url = $lInfo->links_reciprocal_url;
$link_check_status = false;
$link_check_status_text = '';
if (function_exists('curl_exec')) {
$c = curl_init();
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_URL, $url);
$content = curl_exec($c);
curl_close($c);
if ($content) {
// I think this is the right preg_match syntax ... please double-check that it works as desired.
if (preg_match('/'.LINKS_CHECK_PHRASE.'/i', $content)) {
$link_check_status = true;
}
}
} else if (ini_get('allow_url_fopen') == TRUE && file($url)) {
$file = fopen($url,'r');
while (!feof($file)) {
$page_line = trim(fgets($file, 4096));
// I recommend changing this eregi to a preg_match for PHP 5.3 compatibility:
if (preg_match('/'.LINKS_CHECK_PHRASE.'/i', $page_line)) {
$link_check_status = true;
break;
}
}
fclose($file);
} else {
$link_check_status_text = TEXT_INFO_LINK_CHECK_ERROR;
}
if ($link_check_status == true) {
$link_check_status_text = TEXT_INFO_LINK_CHECK_FOUND;
} elseif ($link_check_status_text == '') {
$link_check_status_text = TEXT_INFO_LINK_CHECK_NOT_FOUND;
}
$contents[] = array('text' => TEXT_INFO_LINK_CHECK_RESULT . ' ' . $link_check_status_text);
$contents[] = array('text' => '<br /><b>' . $lInfo->links_reciprocal_url . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_LINKS, zen_get_all_get_params(array('lID', 'action')) . 'lID=' . $lInfo->links_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
Sorry just getting back, I lost my site.
yes its the same as my copy starting on line 610-659.
I run the uninstall SQL, and reinstalled v3.5.2 and when I run the install v3.5.2 SQL I got this:
1109 Unknown table 'links_status' in where clause
in:
[DELETE FROM zen_links_status WHERE links_status.links_status_id = 3;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.