Get rid of quote.php finally, it's been only used for mysql_connect in index.php
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
<?
|
||||
# Yeah, that sucks, but it's pretty much all we need here
|
||||
mysql_connect("localhost", "rock", "nla3YjQ0pL");
|
||||
mysql_select_db("rock");
|
||||
mysql_query("SET NAMES 'utf8';");
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
||||
"http://www.w3.org/TR/html4/loose.dtd">
|
||||
<HTML>
|
||||
@@ -233,7 +239,6 @@ screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
|
||||
<!-- end menu column -->
|
||||
<td bgcolor="#404040" vAlign="top" width="290">
|
||||
|
||||
<!--<p><?include("quote.php");?></p>-->
|
||||
<?
|
||||
function pub_block($id, $count=5, $show_all=false){
|
||||
if (! is_array($id)) {
|
||||
|
||||
@@ -2,11 +2,3 @@
|
||||
mysql_connect("localhost", "rock", "nla3YjQ0pL");
|
||||
mysql_select_db("rock");
|
||||
mysql_query("SET NAMES 'utf8';");
|
||||
$quote = mysql_fetch_assoc(mysql_query("SELECT quotes.text, persons.name FROM quotes INNER JOIN persons on quotes.id_person=persons.id ORDER BY RAND() LIMIT 1"));
|
||||
?>
|
||||
|
||||
<div align=right class="quote">
|
||||
<i>"<?=$quote['text'].mysql_error();?>"</i>
|
||||
<br>
|
||||
<b><?=$quote['name']?></b>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user