Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,956
Naujausias narys: saulyzas

Naujausi straipsniai

Paskutiniai nariai

saulyzas23:17:37
MaFetas 3 dienos
TOMIJUS 1 savaitė
ozzWANTED 1 savaitė
Reikalas10 savaitės
Jaunelis16 savaitės
lanis16 savaitės
And2s17 savaitės
Memento Mori22 savaitės
Quwqkibor24 savaitės
asirija28 savaitės
tomeem30 savaitės
weberiz34 savaitės
mRokass36 savaitės
kartoonas37 savaitės
grunskiz40 savaitės
Bruksnys40 savaitės
illusion40 savaitės
ordo41 savaitės
Jurgaila42 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 18.223.172.108
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,537
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.

MaFetas
2024 Lap. 13 22:11:57
hey how, geras dar veikiantis saitas?

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Š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
Error
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Bendri PHP-F klausimai

Autorius: WriteMaster Peržiūrų: 4364      Spausdinti temą
2008 Rugp. 24 22:08:36          1 žinutė iš 7
Spausdinti pranešimą
error:
Fatal error: Cannot redeclare opensidex() (previously declared in ....includes/theme_functions_include.php on line 196




Theme_functions_include.php

<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: theme_functions_include.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

function check_panel_status($side) {
   
   global $settings;
   
   $exclude_list = "";
   
   if ($side == "left") {
      if ($settings['exclude_left'] != "") {
         $exclude_list = explode("\r\n", $settings['exclude_left']);
      }
   } elseif ($side == "upper") {
      if ($settings['exclude_upper'] != "") {
         $exclude_list = explode("\r\n", $settings['exclude_upper']);
      }
   } elseif ($side == "lower") {
      if ($settings['exclude_lower'] != "") {
         $exclude_list = explode("\r\n", $settings['exclude_lower']);
      }
   } elseif ($side == "right") {
      if ($settings['exclude_right'] != "") {
         $exclude_list = explode("\r\n", $settings['exclude_right']);
      }
   }
   
   if (is_array($exclude_list)) {
      $script_url = explode("/", $_SERVER['PHP_SELF']);
      $url_count = count($script_url);
      $base_url_count = substr_count(BASEDIR, "/")+1;
      $match_url = "";
      while ($base_url_count != 0) {
         $current = $url_count - $base_url_count;
         $match_url .= "/".$script_url[$current];
         $base_url_count--;
      }
      if (!in_array($match_url, $exclude_list) && !in_array($match_url.(FUSION_QUERY ? "?".FUSION_QUERY : ""), $exclude_list)) {
         return true;
      } else {
         return false;
      }
   } else {
      return true;
   }
}

function showbanners() {
   global $settings;
   ob_start();
   if ($settings['sitebanner2']) {
      eval("?><div style='float: right;'>".stripslashes($settings['sitebanner2'])."</div>\n<?php ");
   }
   if ($settings['sitebanner1']) {
      eval("?>".stripslashes($settings['sitebanner1'])."\n<?php ");
   } elseif ($settings['sitebanner']) {
      echo "<a href='".$settings['siteurl']."'><img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' style='border: 0;' /></a>\n";
   } else {
      echo "<a href='".$settings['siteurl']."'>".$settings['sitename']."</a>\n";
   }   
   $output = ob_get_contents();
   ob_end_clean();
   return $output;
}

function showsublinks($sep = "&middot;", $class = "") {
   $sres = dbquery(
      "SELECT link_window, link_visibility, link_url, link_name FROM ".DB_SITE_LINKS."
      WHERE ".groupaccess('link_visibility')." AND link_position>='2' AND link_url!='---' ORDER BY link_order ASC"
   );
   if(dbrows($sres)) {
      $i = 0;
      $res = "<ul>\n";
      while ($sdata = dbarray($sres)) {
         $link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
         $li_class = ($i == 0 ? " class='first-link".($class ? " $class" : "")."'" : ($class ? " class='$class'" : ""));
         if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
            $res .= "<li".$li_class.">".$sep."<a href='".$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
         } else {
            $res .= "<li".$li_class.">".$sep."<a href='".BASEDIR.$sdata['link_url']."'$link_target><span>".$sdata['link_name']."</span></a></li>\n";
         }
         $i++;
      }
      $res .= "</ul>\n";
      return $res;
   }
}

function showsubdate() {
   global $settings;
   return ucwords(showdate($settings['subheaderdate'], time()));
}

function newsposter($info,$sep = "",$class = "") {
   global $locale;
   $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res = THEME_BULLET." <a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a> ";
   $res .= $locale['global_071'].showdate("longdate", $info['news_date']);
   $res .= $info['news_ext'] == "y" || $info['news_allow_comments'] ? $sep."\n" : "\n";
   return "<!--news_poster-->".$res;
}

function newsopts($info, $sep, $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   if (!isset($_GET['readmore']) && $info['news_ext'] == "y") $res = "<a href='news.php?readmore=".$info['news_id']."'".$link_class.">".$locale['global_072']."</a> ".$sep." ";
   if ($info['news_allow_comments']) $res .= "<a href='news.php?readmore=".$info['news_id']."#comments'".$link_class.">".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep." ";
   if ($info['news_ext'] == "y" || $info['news_allow_comments']) $res .= $info['news_reads'].$locale['global_074']."\n";
   $res .= $sep." <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
   return "<!--news_opts-->".$res;
}

function articleposter($info, $sep = "", $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res = THEME_BULLET." ".$locale['global_070']."<a href='profile.php?lookup=".$info['user_id']."'".$link_class.">".$info['user_name']."</a>\n";
   $res .= $locale['global_071'].showdate("longdate", $info['article_date']);
   $res .= $info['article_allow_comments'] ? $sep."\n" : "\n";
   return "<!--article_poster-->".$res;
}

function articleopts($info, $sep) {
   global $locale; $res = "";
   if ($info['article_allow_comments']) { $res = "<a href='articles.php?article_id=".$info['article_id']."#comments'>".$info['article_comments'].($info['article_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> ".$sep."\n"; }
   $res .= $info['article_reads'].$locale['global_074']." ".$sep."\n";
   $res .= "<a href='print.php?type=A&amp;item_id=".$info['article_id']."'><img src='".get_image("printer")."' alt='".$locale['global_075']."' style='vertical-align:middle;border:0;' /></a>\n";
   return "<!--article_opts-->".$res;
}

function itemoptions($item_type, $item_id) {
   global $locale, $aidlink; $res = "";
   if ($item_type == "N") {
      if (iADMIN && checkrights($item_type)) { $res .= "<!--article_news_opts--> &middot; <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
   } elseif ($item_type == "A") {
   if (iADMIN && checkrights($item_type)) { $res .= "<!--article_admin_opts--> &middot; <a href='".ADMIN."articles.php".$aidlink."&amp;action=edit&amp;article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
   }
   return $res;
}

function showcopyright($class = "") {
   $link_class = $class ? " class='$class' " : "";
   $res = "Powered by <a href='http://www.php-fusion.co.uk'".$link_class.">PHP-Fusion</a> copyright &copy; 2002 - ".date("Y")." by Nick Jones.<br />\n";
   $res .= "Released as free software without warranties under <a href='http://www.fsf.org/licensing/licenses/agpl-3.0.html'".$link_class.">GNU Affero GPL</a> v3.\n";
   return $res;
}

function showcounter() {
   global $locale,$settings;
   return "<!--counter-->".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
}

function panelbutton($state, $bname) {
   if (isset($_COOKIE["fusion_box_".$bname])) {
      if ($_COOKIE["fusion_box_".$bname] == "none") {
         $state = "off";
      } else {
         $state = "on";
      }
   }
   return "<img src='".get_image("panel_".($state == "on" ? "off" : "on"))."' id='b_$bname' class='panelbutton' alt='' onclick=\"javascript:flipBox('$bname')\" />";
}

function panelstate($state, $bname) {
   if (isset($_COOKIE["fusion_box_".$bname])) {
      if ($_COOKIE["fusion_box_".$bname] == "none") {
         $state = "off";
      } else {
         $state = "on";
      }
   }
   return "<div id='box_$bname'".($state == "off" ? " style='display:none'" : "").">\n";
}

// v6 compatibility
function opensidex($title, $state = "on") {
   
   openside($title, true, $state);

}

function closesidex() {

   closeside();

}

function tablebreak() {
   return true;
}
?>




gal galit pataisyt ?


Redagavo WriteMaster 2008 Rugp. 24 22:08:03
2008 Rugp. 24 22:08:49          2 žinutė iš 7
Spausdinti pranešimą
Pz, tu duok visą error'ą, duoda, kas yra toje eilutėje, nors joje viskas ok.... BOT LIKE
2008 Rugp. 24 22:08:44          3 žinutė iš 7
Spausdinti pranešimą
pilnas error tik puslapi nutrinsiu del aš
Fatal error: Cannot redeclare opensidex() (previously declared in /home/selga/Adresas/themes/N-Club/theme.php:195) in /home/selga/Adresas/includes/theme_functions_include.php on line 196




2008 Rugp. 24 22:08:31          4 žinutė iš 7
Spausdinti pranešimą
Savo theme.php faile nutrink visą opensidex funkciją.

2008 Rugp. 24 22:08:17          5 žinutė iš 7
Spausdinti pranešimą
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#97b15e";
$body_bg = "#051c00";
$theme_width = "767";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix;

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td><img src='".THEME."header.jpg'></td>
</tr>
</table>
</td>
</tr>
</table>\n";

echo "<table align='center' cellpadding='0' cellspacing='0' width='767'>\n<tr>
<td><img src='".THEME."images/sub.png' usemap='#sub' width='767' height='34' border='0'></td>
<map id='sub' name='sub'>
<area shape='rect' coords=104,1,189,32' href='".BASEDIR."index.php'>
<area shape='rect' coords='209,1,277,32' href='".BASEDIR."downloads.php'>
<area shape='rect' coords='312,1,380,32' href='".BASEDIR."forum/index.php'>
<area shape='rect' coords='403,1,466,32' href='".BASEDIR."photogallery.php'>
<area shape='rect' coords='495,1,574,32' href='".BASEDIR."articles.php'>
<area shape='rect' coords='597,1,671,32' href='".BASEDIR."contact.php'>
</map></td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='paneles'>\n<tr>
<td align='center' width='50'>";
include THEME."user_info_panel.php";
echo "</td>
<td align='center' width='306'>";
include THEME."latest_downloads_panel.php";
echo "</td>
<td align='center' width='195'>";
include THEME."popular_downloads_panel.php";
echo "</td>
</tr>
</table><br>\n";


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

}

/////Nenuimk copyrighto, nes turesi bedos. :)/////

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='$theme_width' class='footer'>
<tr>
<td width='93'><a href='http://php-fusion.co.uk/' target='_blank'><img src='".THEME."images/fusion.gif' border='0'></a>  <img src='".THEME."images/made_by.png'>&nbsp;&nbsp;<a href='http://www.emotive.in/' target='_blank'><img src='".THEME."images/emotive.png' border='0'></a></td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

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

global $aidlink,$item_type;
$res = "";

echo "<table cellpadding='0' cellspacing='0' width='545'>
<tr>
<td class='capmain'>$subject<br>
<a href='news.php?readmore=".$info['news_id']."' style='font-size : 10px;'>Naujiena plačiau</a></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews".$info['news_id']."' method='post' action='".ADMIN."news.php".$aidlink."&amp;news_id=".$info['news_id']."'>
<td align='center' class='news-footer'><img src='".THEME."images/read_icon.gif'>  Skaityta: ".$info['news_reads']." &nbsp; <img src='".THEME."images/com_icon.gif'> Komentarų: ".$info['news_comments']." &nbsp; <img src='".THEME."images/time_icon.gif'> <span style='font-size : 10px;font-weight : none;color:#80ba04;'>".showdate("shortdate", $info['news_date'])."</span></td>
</form>
</tr>
</table>\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 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='0' cellspacing='0'>
<tr>
<td class='side-body-header'>\n";

}

function closeside_header() {

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

}

function openside_panel($title) {
   
echo "<table align='center' cellpadding='0' cellspacing='0' width='186'>
<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='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td 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 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";

}
?>



va codas kai as bandziauw nutrint tai man buvo error 206 vietoj kazkur
Arba kaip pakeisti dabar theme ? nes i puslapi kai eini error

Beto anudoju v7 fusiona jauciu del to atsirado erro :?


Redagavo WriteMaster 2008 Rugp. 24 22:08:26
2008 Rugp. 24 22:08:09          6 žinutė iš 7
Spausdinti pranešimą
Taigi ant v7 neveikia v6 themos juokiasi

2008 Rugp. 24 23:08:36          7 žinutė iš 7
Spausdinti pranešimą
tai katik ir pats pagavauv kampa bet kaip db atstatyt normalai tema jai nepasidariawu nei db kopijos neik a ? kaip uzdet kita theme ? ai va sugalvojauw i ta aplankala kur buvo sena theme desiu kitamerkia akį
Edit: mano mintis puikiai veikiamerkia akį


Redagavo WriteMaster 2008 Rugp. 24 23:08:48
Peršokti į forumą: