<script type="text/javascript"> var collapsing_review = new Spry.Widget.CollapsiblePanel("collapsing_review", { contentIsOpen: false }); function review_show() { e=document.getElementById('review_hide'); if (e.innerHTML == 'Close') { collapsing_review.close(); e.innerHTML = 'Leave a Review'; } else { collapsing_review.open(); e.innerHTML = 'Close'; } } </script> <?php echo '</div>'; //} ?> </div> </div> </td> <?php get_footer(); ao_log($a['id'], 'profile_view'); pod_query("UPDATE wp_pod_tbl_vendor_profiles SET profile_views = profile_views + 1 WHERE id = " . $a['id']); ?>
} $len = strlen($url); $action = ''; $target = ''; $sql = "SELECT * FROM wp_pod_tbl_vendor_profiles WHERE\nweb_url LIKE '{$url}%' \nOR blog_url LIKE '{$url}%' \nOR facebook_url LIKE '{$url}%' \nOR linkedin_url LIKE '{$url}%' \nOR twitter_url LIKE '{$url}%' \nOR ad_url LIKE '{$url}%' \n"; $result = pod_query($sql); $row = mysql_fetch_assoc($result); if ($row) { $id = $row['id']; if ($url == substr($row['web_url'], 0, $len)) { $action = 'click_web'; } elseif ($url == substr($row['blog_url'], 0, $len)) { $action = 'click_blog'; } elseif ($url == substr($row['facebook_url'], 0, $len)) { $action = 'click_facebook'; } elseif ($url == substr($row['linkedin_url'], 0, $len)) { $action = 'click_linkedin'; } elseif ($url == substr($row['twitter_url'], 0, $len)) { $action = 'click_twitter'; } elseif ($url == substr($row['ad_url'], 0, $len)) { $action = 'click_ad'; } } if (!$action) { $id = 0; $action = 'click_url'; $target = $url; } ao_log($id, $action, $target); header("Location: " . $url); exit;