function completevotefooter($lid, $ttitle, $ratinguser) { global $prefix, $db, $sitename, $module_name; include "modules/{$module_name}/l_config.php"; $lid = intval($lid); $row = $db->sql_fetchrow($db->sql_query("SELECT url FROM " . $prefix . "_links_links WHERE lid='{$lid}'")); $url = stripslashes($row['url']); echo "<font class=\"content\">" . _THANKSTOTAKETIME . " {$sitename}. " . _LETSDECIDE . "</font><br><br><br>"; if ($ratinguser == "outside") { echo "<center><font class=\"content\">" . WEAPPREACIATE . " {$sitename}!<br><a href=\"{$url}\">" . _RETURNTO . " {$ttitle}</a></font><center><br><br>"; $row2 = $db->sql_fetchrow($db->sql_query("SELECT title FROM " . $prefix . "_links_links where lid='{$lid}'")); $title = stripslashes(check_html($row2['title'], "nohtml")); $ttitle = ereg_replace(" ", "_", $title); } echo "<center>"; linkinfomenu($lid, $ttitle); echo "</center>"; CloseTable(); }
function completevotefooter($lid, $ttitle, $ratinguser) { global $linksprefix, $db, $sitename, $module_name; $result = $db->sql_query("SELECT url FROM " . $linksprefix . "_links WHERE lid={$lid}"); list($url) = $db->sql_fetchrow($result); echo '<span class="content">' . _THANKSTOTAKETIME . " {$sitename}. " . _LETSDECIDE . '</span><br /><br /><br />'; if ($ratinguser == 'outside') { echo '<div style="text-align:center;" class="content">' . WEAPPREACIATE . ' ' . $sitename . '!<br /><a href="' . $url . '">' . _RETURNTO . ' ' . $ttitle . '</a></div><br /><br />'; $result = $db->sql_query("SELECT title FROM " . $linksprefix . "_links WHERE lid={$lid}"); list($title) = $db->sql_fetchrow($result); $ttitle = ereg_replace(' ', '_', $title); } echo '<div style="text-align:center;">'; linkinfomenu($lid, $ttitle); echo '</div>'; CloseTable(); }