Navigacija

Vartotojų tinkle

Prisijungusių svečių: 108
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,967
Naujausias narys: tanos

Naujausi straipsniai

Paskutiniai nariai

tanos 1 savaitė
LnKnPrK1 6 savaitės
inti 8 savaitės
kileedyg15 savaitės
Reikalas20 savaitės
Kižas21 savaitės
Bruksnys22 savaitės
laleceylan5024 savaitės
minimukas25 savaitės
N-2027 savaitės
Rytis28 savaitės
DjArtas29 savaitės
WolfHammer29 savaitės
Nostesi39 savaitės
Wisedocs40 savaitės
asdasdddz43 savaitės
Paslapties K...44 savaitės
Audrius_1747 savaitės
Simbijanas59 savaitės
Karinacraft60 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.217.127
Naujienų: 529
Straipsnių: 235
Temų: 52,592
Postų: 522,552
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

LnKnPrK1
2026 Bir. 21 09:06:52
Sveiki, gal kas is administracijos gali parasyti man PM,aciu

minimukas
2026 Vas. 21 08:02:25
oi oi akinanti šypsen yra dar cia gyvu? akinanti šypsen

N-20
2026 Vas. 6 21:02:05
O mes dar gyvi šypsosi)

WolfHammer
2026 Sau. 25 01:01:35
drovus

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
Theme.php klaida
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Žaliems

Autorius: malybu Peržiūrų: 1040      Spausdinti temą
2009 Bal. 16 15:04:07          1 žinutė iš 2
Spausdinti pranešimą
Sveiki idejau nauja theme ir apacioje meta theme.php klaida.

Sitokai klaida :

Fatal error: Call to undefined function get_microtime() in /home/login/webas.lt/themes/cia_theme/theme.php on line 98




Stai theme.php:


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

// theme settings
$body_text = "#ffffff";
$body_bg = "#FFFFFF";
$theme_width = "911";
$theme_width_l = "200";
$theme_width_r = "200";

function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>

   <tr>
      <td colspan='11'
         background='".THEME."images/headeris.jpg' width='911' height='152' alt=''></td>
   </tr>
   <tr>

   </tr>
   <tr>
      <td colspan='11'
         background='".THEME."images/informacine.jpg' width='911' height='129' alt=''>
         <table align='left' width='240px' cellpadding='0' cellspacing='0'>";
         
         echo "</td><td></td><td style='padding-top: 18px; padding-left: 5px;' align='left' width='150'>";
         
   $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,7");
   if (dbrows($result) != 0) {
      echo "<table style='padding-left: 15px;' width='260' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
                     $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";

   }

echo "</table>

<table align='left' width='222px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 35px;' align='right' width='120'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,7");
if (dbrows($result) != 0) {
   echo "<table width='275' cellpadding='0' cellspacing='0'>";
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
      <td align='right'>".$data['download_count']."</td>\n</tr>\n";
   }
   echo "</table>";
} else {
   echo "<center>".$locale['004']."</center>\n";
}
echo "</table>

<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 36px;' align='left' width='0'>";
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_reads DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 35);
echo "» <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}




 
   echo "</td></tr></table></td></tr></table>";

echo "<table align='center' cellpadding='0' cellspacing='0' width='911px'>\n<tr>\n";

}
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='911px' class='footer'>
<tr>
<td align='center' class='footer'>Varikliukas: <a href='http://www.php-fusion.co.uk' style='color:#cecece;'>PHP-Fusion</a> &nbsp;&nbsp; Sprendimas: <a href='http://www.tracklist.lt' style='color:#cecece;'>TrackList.LT</a><br><br>Puslap&#303; u&#382;krov&#279; per ".(get_microtime()-START_TIME)." sek.</td>
</tr>

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

echo "".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."";
}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
<br>&#193;d&#235;jo: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#cecece;'><b>".$info['user_name']."</b></a> &nbsp; Data: ".showdate("%y.%m.%d", $info['news_date'])."<img src='".THEME."images/blank.gif' width='15' height='0'><a href='news.php?readmore=".$info['news_id']."' style='color:#9a9a9a;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>";if ($info['news_allow_comments'])   echo "&nbsp; Komentar&#371;:&nbsp;<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Skait&#279;:&nbsp; ";   echo "".$info['news_reads'].$locale['044']."
</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='474' 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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

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

}

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

}

function closeside_panel() {

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

}

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

}

function closeside() {

echo "</td>
</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 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";

}
?>



2009 Bal. 16 15:04:34          2 žinutė iš 2
Spausdinti pranešimą
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#ffffff";
$body_bg = "#FFFFFF";
$theme_width = "911";
$theme_width_l = "200";
$theme_width_r = "200";

function render_header($header_content) {
global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellpadding='0' cellspacing='0'>\n<tr>

   <tr>
      <td colspan='11'
         background='".THEME."images/headeris.jpg' width='911' height='152' alt=''></td>
   </tr>
   <tr>

   </tr>
   <tr>
      <td colspan='11'
         background='".THEME."images/informacine.jpg' width='911' height='129' alt=''>
         <table align='left' width='240px' cellpadding='0' cellspacing='0'>";
         
         echo "</td><td></td><td style='padding-top: 18px; padding-left: 5px;' align='left' width='150'>";
         
   $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,7");
   if (dbrows($result) != 0) {
      echo "<table style='padding-left: 15px;' width='260' cellpadding='0' cellspacing='0'>";
      while ($data = dbarray($result)) {
                     $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
            </td>
            <td align='right'>".$data['download_count']."</td>
         </tr>";
      }
      echo "</table>";

   }

echo "</table>

<table align='left' width='222px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 35px;' align='right' width='120'>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,7");
if (dbrows($result) != 0) {
   echo "<table width='275' cellpadding='0' cellspacing='0'>";
   while($data = dbarray($result)) {
      $itemsubject = trimlink($data['download_title'], 30);
      echo "<tr>\n<td class='small'>» <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a>
      <td align='right'>".$data['download_count']."</td>\n</tr>\n";
   }
   echo "</table>";
} else {
   echo "<center>".$locale['004']."</center>\n";
}
echo "</table>

<table align='left' width='320px' cellpadding='0' cellspacing='0'>";
echo "</td><td></td><td style='padding-top: 18px; padding-left: 36px;' align='left' width='0'>";
$result = dbquery(
"SELECT tn.*, tc.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
LEFT JOIN ".$db_prefix."news_cats tc ON tn.news_cat=tc.news_cat_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_reads DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['news_subject'], 35);
echo "» <a href='".BASEDIR."news.php?readmore=".$data['news_id']."' title='".$data['news_subject']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}




 
   echo "</td></tr></table></td></tr></table>";

echo "<table align='center' cellpadding='0' cellspacing='0' width='911px'>\n<tr>\n";

}
function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table align='center' cellpadding='0' cellspacing='0' width='911px' class='footer'>
<tr>
<td align='center' class='footer'>Varikliukas: <a href='http://www.php-fusion.co.uk' style='color:#cecece;'>PHP-Fusion</a> &nbsp;&nbsp; Sprendimas: <a href='http://www.tracklist.lt' style='color:#cecece;'>TrackList.LT</a></td>
</tr>

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


}

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

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='center' class='news-footer'>
<br>&#193;d&#235;jo: <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."' style='color:#cecece;'><b>".$info['user_name']."</b></a> &nbsp; Data: ".showdate("%y.%m.%d", $info['news_date'])."<img src='".THEME."images/blank.gif' width='15' height='0'><a href='news.php?readmore=".$info['news_id']."' style='color:#9a9a9a;'><b>&#222;i&#251;r&#235;ti daugiau</b></a>";if ($info['news_allow_comments'])   echo "&nbsp; Komentar&#371;:&nbsp;<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Skait&#279;:&nbsp; ";   echo "".$info['news_reads'].$locale['044']."
</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table width='474' 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 cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";

}

function closetable() {

echo "</td>
</tr>
</table>\n";

}

function openside_header($title) {
   
echo "<table align='center' cellpadding='center' cellspacing='0'>
<tr>
<td align='center'class='side-body-panel'>\n";

}

function closeside_header() {

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

}

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

}

function closeside_panel() {

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

}

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

}

function closeside() {

echo "</td>
</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 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";

}
?>




Adminas - ban'o laisvė
www.KIETEKAS.com
Redagavo MaFetas 2009 Bal. 16 15:04:18
Peršokti į forumą: