Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Pagalbos su MYsql

Parašė Haked· 2008 Lie. 1 00:07:52
#1

Nesuprantu kas per nesamonė įregistruoju saitą viskas normaliai redaguoju idedu šia temą ir viskas niekur neeina, o po kurio laiko meta MySQL klaida: 2002 : Can’t connect to local MySQL server through socket > ‘/tmp/mysql.sock’ ir dar kažka o gal ir viskas kas per nesamone.

va tema:

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "55%";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%' style='border:0px;'>\n<tr>
<td align='center' class='sub-header' width='100%' valign='middle'>
<center>
<a href='news.php'><img src='".THEME."images/1.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/11.gif' onMouseOut=this.src='".THEME."images/1.gif'></a>
<a href='viewpage.php?page_id=1'><img src='".THEME."images/2.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/22.gif' onMouseOut=this.src='".THEME."images/2.gif'></a>
<a href='viewpage.php?page_id=2'><img src='".THEME."images/3.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/33.gif' onMouseOut=this.src='".THEME."images/3.gif'></a>
<a href='viewpage.php?page_id=4'><img src='".THEME."images/4.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/44.gif' onMouseOut=this.src='".THEME."images/4.gif'></a>
<a href='viewpage.php?page_id=3'><img src='".THEME."images/5.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/55.gif' onMouseOut=this.src='".THEME."images/5.gif'></a>
<center />
</table>\n";


echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'><br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "
<table cellpadding='0' align='center' cellspacing='0' width='545'>
<tr>
<td class='capmain' align='center'><span style='font-size : 10px;font-weight :

normal;color:#B2B2B2;'>".showdate("longdate", $info['news_date'])."</span><br><a name='news_1'

id='news_1'></a>$subject</td>

</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&amp;news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><a href='news.php?readmore=".$info['news_id']."'>Naujiena placiau</a> |

Skaityta: ".$info['news_reads']." | Komentaru: ".$info['news_comments']."</td>
</form>

</tr>
</table><br><br>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table align='center' cellpadding='0' cellspacing='0' width='545'>
<tr>
<td align='center' class='side-center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closetable() {

echo "</td>
<tr><td><img src='".THEME."images/apacia.gif'></td></tr>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table align='center' cellpadding='0' cellspacing='0' width='188'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {

echo "<tr><td><img src='".THEME."images/apacia2.gif'></td></tr>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}
?>



Redagavo Haked· 2008 Lie. 1 00:07:05