Din Menu
Fra fotoalbummet...

Nyeste artikler
> Billede ind i profil
> Optimer tabler i dat...
> Total Commander
> Redirect en side
> Mods / Infusion op p...
Downloads
SE ALLE DOWNLOADS...
Nye downloads
SurrealExperience 17
Luxury Yachts 10
Glare in Dark 66
AS-AppStore 36
AS-Global 20
AS-yellow_star 24
Hitman Games Zone 19
AS-Football 23
AS-Christmas 40
JuleCountdown til c... 20
Top 5 downloads
buzzlightyear 2801
php-fusion-7-01-02 2790
junglebook 2776
Disney2 2762
Disney1 2680
mickey-pluto. 2672
danish_locales_v7_1 2393
Opgraderingspakke v... 2366
Themes-phpfusion.dk
Facebook
Facebook

Pernille

statistik
Screenshots DB
Total Images: 796
Latest Images









statistik
Fra fotoalbummet...

Connect via Facebook
Connect via Facebook
Select your language
Danish Language Danish   English Language English
Fødselsdage i November
07.11 esig (61)
08.11 coldice (29)
14.11 Scorpion4Life (47)
15.11 DJ Tidzse (30)
17.11 ekate7 (49)
19.11 Kimse (64)
20.11 Brusher (49)
20.11 FogWelt (49)
24.11 SiteMaster (53)
26.11 kiko2611 (59)
26.11 kiko26 (59)
28.11 Micke Tyson (56)
Tilfældig Billede
Udtalelser fra brugerne
"SAssensvej...

Så køre det for dig

Har fået meget og god support her."

EvP
Reklame
Antispam
Se indlæg
Hvem er her? 1 gæst(er)
 Udskriv debat
fejl på siden
Allan
hejsa jeg får denne fejl på min side

Warning: number_format() expects parameter 1 to be double, string given in /customers/sonsofvalhalla.dk/sonsofvalhalla.dk/httpd.www/includes/theme_functions_include.php on line 200


hvor dan retter jeg den

koden er
Download kildekode  Kode
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 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 http://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_name, link_url, link_window, link_visibility FROM ".DB_SITE_LINKS."
      WHERE link_position='2' OR link_position='3' ORDER BY link_order"
   );
   if (dbrows($sres)) {
      $i = 0;
      $res = "<ul>\n";
      while ($sdata = dbarray($sres)) {
         if ($sdata['link_url'] != "---" && checkgroup($sdata['link_visibility'])) {
            $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>".parseubb($sdata['link_name'], "b|i|u|color")."</span></a></li>\n";
            } else {
               $res .= "<li".$li_class.">".$sep."<a href='".BASEDIR.$sdata['link_url']."'$link_target><span>".parseubb($sdata['link_name'], "b|i|u|color")."</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." <span ".$link_class.">".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</span> ";
   $res .= $locale['global_071'].showdate("newsdate", $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, $settings; $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'] && $settings['comments_enabled'] == "1") { $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'] && $settings['comments_enabled'] == "1")) { $res .= $info['news_reads'].$locale['global_074']."\n ".$sep; }
   $res .= "<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 newscat($info, $sep = "", $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res .= $locale['global_079'];
   if ($info['cat_id']) {
      $res .= "<a href='news_cats.php?cat_id=".$info['cat_id']."'$link_class>".$info['cat_name']."</a>";
   } else {
      $res .= "<a href='news_cats.php?cat_id=0'$link_class>".$locale['global_080']."</a>";
   }
   return "<!--news_cat-->".$res." $sep ";
}

function articleposter($info, $sep = "", $class = "") {
   global $locale, $settings; $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res = THEME_BULLET." ".$locale['global_070']."<span ".$link_class.">".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."</span>\n";
   $res .= $locale['global_071'].showdate("newsdate", $info['article_date']);
   $res .= ($info['article_allow_comments'] && $settings['comments_enabled'] == "1" ? $sep."\n" : "\n");
   return "<!--article_poster-->".$res;
}

function articleopts($info, $sep) {
   global $locale, $settings; $res = "";
   if ($info['article_allow_comments'] && $settings['comments_enabled'] == "1") { $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 articlecat($info, $sep = "", $class = "") {
   global $locale; $res = "";
   $link_class = $class ? " class='$class' " : "";
   $res .= $locale['global_079'];
   if ($info['cat_id']) {
      $res .= "<a href='articles.php?cat_id=".$info['cat_id']."'$link_class>".$info['cat_name']."</a>";
   } else {
      $res .= "<a href='articles.php?cat_id=0'$link_class>".$locale['global_080']."</a>";
   }
   return "<!--article_cat-->".$res." $sep ";
}

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 showrendertime($queries = true) {
   global $locale, $mysql_queries_count;

   $res = sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4));
   $res .= ($queries ? " - $mysql_queries_count ".$locale['global_173'] : "");
   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;
   if ($settings['visitorcounter_enabled']) {
      return "<!--counter-->".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['global_170'] : $locale['global_171']);
   } else {
      return "";
   }
}

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;
}
?>



Redigeret af Allan d. 16-12-2010 18:31
www.assensvej.dk/7/signaturer/Allan.png
 
Web
Skrevet d. 22-11-2024 14:47
Reklame Agent

Antal indlæg: n^x
Tilmeldt: Altid

IP: localhost  
Tutsi
Har du redigeret i filen - hvilken version af Php Fusion er den til?
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
Allan
har ikke rette i den og ahr v7,1

www.assensvej.dk/7/signaturer/Allan.png
 
Web
Tutsi
Så ville jeg forsøge at overskrive med en fra en ny installation. Altså kun den ene fil. Der må jo være en fejl et sted.
______________________________

Hilsen Ellen

______________________________
www.jensens-madbl...


"Den som opfatter sig som færdiguddannet, er mere færdig end uddannet"
 
Spring til debat:
Lignende tråde
Debat Forum Svar Nyeste indlæg
Fejl i vores fotoalbum Infusioner v7 2 27-08-2012 22:55
Fejl i php v. 7.02.05 Generel debat - PHP-Fusion /7.02 7 08-08-2012 20:44
fejl i brugerfelterne i v7.02.03 Generel debat - PHP-Fusion /7.02 17 07-06-2012 02:01
fejl i phpshow.php Temaer /7.02 16 03-06-2012 00:44
fejl i maincore.php Generel debat - PHP-Fusion /7.02 2 23-05-2012 09:54