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&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," ·").articleopts($info,"·").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
Parašė bruzgis· 2008 Lie. 1 01:07:09
#2
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; } sita istrink bet nemanau kad pades, nes su tema kaip ir viskas normaliai... ji nera susijusi su
mysql prijungimu, tad nedel sito klaida bus
Redagavo Fanio· 2008 Lie. 1 02:07:39
Parašė Haked· 2008 Lie. 1 02:07:48
#3
pastebejau idomu dalyka katik meginau keisti puslapio virsutine antraste virsuje kaip Lithuania
PHP tai meginau keisti ir uzluzo saitas visa praradau :( reiskias ne su tema susije
Parašė bruzgis· 2008 Lie. 1 05:07:49
#4
per
phpmyadmin atsistatyk
Parašė MAnjack· 2008 Lie. 1 09:07:19
#5
Gal hostingas lūžo tuo metu ir čia tik sutapimas.
Parašė Haked· 2008 Lie. 1 13:07:10
#6
nu nzn praradau saita jame buvo 30dienu darbo ir vsio uzluzo kai tik sukuri saita viskas norm kai ieini i pagrindiniai nustatymai nustatai puslapio antraste ir vsio :(
Parašė Pongis· 2008 Lie. 1 13:07:32
#7
oho, 30 dienų darbo..
Parašė Haked· 2008 Lie. 1 13:07:08
#8
Sorry uz flood, bet per mozilla firefox man atidaro viskas norm saitą kuri katik sukuriau o per naršyklę ne :( kas atsitiko kur gauti nauja naršyklę, o gal ir pas jus taip pat?
www.pk.gan.lt patikrinkit kam ne sunku
Pongis parašė:
oho, 30 dienų darbo..
gali netikėti, bet taip yra aš esu dar gan mažas tad daug per 30dienų nepadariau, bet jau norėjau atidarynėti saitą ir xuj sorry keiksmai
Redagavo Haked· 2008 Lie. 1 13:07:36