function SEOChecklist_footer in SEO Checklist 5
Same name and namespace in other branches
- 5.2 seochecklist.module \seochecklist_footer()
- 6.3 seochecklist.module \seochecklist_footer()
- 6.2 seochecklist.module \seochecklist_footer()
File
- ./
SEOChecklist.module, line 339 - seo_checklist.module Keep track of all the Search Engine Optimization related tasks in your Drupal site.
Code
function SEOChecklist_footer($main = 0) {
$sql = "select linked_seo from {seo_checklist} where id=1";
$result = db_query(db_rewrite_sql($sql));
$linked = db_result(db_query($sql));
if ($linked == 1) {
$ch = curl_init();
$timeout = 2;
// set to zero for no timeout
curl_setopt($ch, CURLOPT_URL, 'http://www.sprydev.com/linkcodes/seomodule_link.js');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
return $file_contents;
}
}