PHP-Fusion Mods
Navigacija
Apsauga
Apsauga Neleista registracija: 38936
Šiandien: 18
Prisijungę nariai
» Svečių: 6
» Narių: 0

» Viso narių: 10,235
» Naujausias: ruslanas tuk

Prisijungimų istorija:
tabux08:16:57
sanpernepamenu
Zbigniew@nepamenu
CepelinasXnepamenu
VV91DDnepamenu
Minusnepamenu
priezilviciunepamenu
EdvinasG1337nepamenu
rolandas94nepamenu
Edis2nepamenu
klubogerbejasnepamenu
Miskinisnepamenu
Pask. modai
Prisijungti
Vardas

Slaptažodis



Dar ne narys?
Registruotis.

Pamiršai slaptažodį?
Prašyk naujo!.

Naujausi prašymai
[L] testas
Narių apklausa
Ar dar kuriate tinklalapius?

Ne
Ne
0% [0 Balsai]

Taip
Taip
88% [7 Balsai]

Naudojuosi socialiniais tinklais
Naudojuosi socialiniais tinklais
13% [1 Balsas]

Balsai: 8
Kad galėtum balsuoti, turi prisijungti.
Pradėta: 2022-05-29 19:54
Shoutbox
You must login to post a message.

2026-03-21 19:07

2025-07-13 17:07
svx, smagu kad dar atsiranda naujų narių Šypsosi2

2024-03-07 22:13
Oj Tabux… apkabinčiau už tą moderatorių 😁

2024-02-22 17:40
Šypsosi2 jo buvo laikai.. Senukai jau mes. Bega laikas greiciau nei noretusi. Smagu matyti kad uzsuka seni nariai, ne as vienas Šypsosi

2024-02-20 22:18
Zodziu.. Nostalgija. Sorry Tabux uz spam’a, netelpa viskas i viena shout’a. 😁

Shoutbox Archive
Peržiūrėti temą
PHP-Fusion Mods :: PHP-Fusion modifikacijų forumas :: Taisymas
 Spausdinti temą
v7 template/panels
Hopazz
#1 Spausdinti pranešimą
parašyta 2009-10-22 14:11
Naujokas



Reputacija: 0

Pranešimai: 10
Įstojo: 2007-08-21

Perkelinjau puslap nauj hostinga, viskas atrodo tvarkingai su MSQL susitvarkiau, bet be klaid vl neapseita.

Vir? paneli u?ra?as

Download source  Code
Parse error: syntax error, unexpected '<', expecting ')' in /home/extazeclub/domains/extazeclub.lt/public_html/themes/templates/panels.php(47) : eval()'d code on line 19




\themes\templates\panels.php
Download source  Code
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: panels.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\")) { header(\"Location: ../../index.php\"); exit; }

// Calculate current true url
$script_url = explode(\"/\", $_SERVER['PHP_SELF'].(FUSION_QUERY ? \"?\".FUSION_QUERY : \"\"));
$url_count = count($script_url);
$base_url_count = substr_count(BASEDIR, \"/\") + 1;
$start_page = \"\";
while ($base_url_count != 0) {
   $current = $url_count - $base_url_count;
   $start_page .= \"/\".$script_url[$current];
   $base_url_count--;
}

define(\"START_PAGE\", substr(preg_replace(\"#(&|\?)(s_action=edit&shout_id=)([0-9]+)#s\", \"\", $start_page), 1));

// Side & center panels
ob_start();
$plc = 0;

// Render left panels
if(!defined(\"ADMIN_PANEL\")){
   if (check_panel_status(\"left\")) {
      $p_res = dbquery(\"SELECT * FROM \".DB_PANELS.\" WHERE panel_side='1' AND panel_status='1' ORDER BY panel_order\");
      if (dbrows($p_res)) {
         while ($p_data = dbarray($p_res)) {
            if (checkgroup($p_data['panel_access'])) {
               if ($p_data['panel_type'] == \"file\") {
                  $panel_name = $p_data['panel_filename'];
                  include INFUSIONS.$panel_name.\"/\".$panel_name.\".php\";
               } else {
                  eval(stripslashes($p_data['panel_content']));
               }
               $plc++;
            }
         }
      }
   }
}else{
   require_once ADMIN.\"navigation.php\";
}

define(\"LEFT\", ob_get_contents());
ob_end_clean();

// Render right panels
$prc = 0;
ob_start();
if(!defined(\"ADMIN_PANEL\")){
   if (check_panel_status(\"right\")) {
      $p_res = dbquery(\"SELECT * FROM \".DB_PANELS.\" WHERE panel_side='4' AND panel_status='1' ORDER BY panel_order\");
      if (dbrows($p_res)) {
         while ($p_data = dbarray($p_res)) {
            if (checkgroup($p_data['panel_access'])) {
               if ($p_data['panel_type'] == \"file\") {
                  $panel_name = $p_data['panel_filename'];
                  include INFUSIONS.$panel_name.\"/\".$panel_name.\".php\";
               } else {
                  eval(stripslashes($p_data['panel_content']));
               }
               $prc++;
            }
         }
      }
   }
}
define(\"RIGHT\", ob_get_contents());
ob_end_clean();

// Set the require div-width class
if(defined(\"ADMIN_PANEL\")){
   $main_style = \"side-left\";
}elseif ($plc && $prc) {
   $main_style = \"side-both\";
} elseif ($plc && !$prc) {
   $main_style = \"side-left\";
} elseif (!$plc && $prc) {
   $main_style = \"side-right\";
} elseif (!$plc && !$prc) {
   $main_style = \"\";
}

// Render upper center panels   
ob_start();

if(!defined(\"ADMIN_PANEL\")){
   echo \"\n\";
   if (iADMIN && $settings['maintenance']) {
      echo \"
\".$locale['global_190'].\"
\";
   }
   if (iSUPERADMIN && file_exists(BASEDIR.\"setup.php\")) {
      echo \"
\".$locale['global_198'].\"
\";
   }
   if (iADMIN && !$userdata['user_admin_password']) {
      echo \"
\".$locale['global_199'].\"
\";
   }
   if (check_panel_status(\"upper\")) {
      $p_res = dbquery(\"SELECT * FROM \".DB_PANELS.\" WHERE panel_side='2' AND panel_status='1' ORDER BY panel_order\");
      if (dbrows($p_res)) {
         while ($p_data = dbarray($p_res)) {
            if (checkgroup($p_data['panel_access'])) {
               if ($p_data['panel_display'] == 1 || $settings['opening_page'] == START_PAGE) {
                  if ($p_data['panel_type'] == \"file\") {
                     $panel_name = $p_data['panel_filename'];
                     include INFUSIONS.$panel_name.\"/\".$panel_name.\".php\";
                  } else {
                     eval(stripslashes($p_data['panel_content']));
                  }
               }
            }
         }
      }
   }
}
define(\"U_CENTER\", ob_get_contents());
ob_end_clean();

// Render lower center panels
ob_start();

if(!defined(\"ADMIN_PANEL\")){
   if (check_panel_status(\"lower\")) {
      $p_res = dbquery(\"SELECT * FROM \".DB_PANELS.\" WHERE panel_side='3' AND panel_status='1' ORDER BY panel_order\");
      if (dbrows($p_res) != 0) {
         while ($p_data = dbarray($p_res)) {
            if (checkgroup($p_data['panel_access'])) {
               if ($p_data['panel_display'] == 1 || $settings['opening_page'] == START_PAGE) {
                  if ($p_data['panel_type'] == \"file\") {
                     $panel_name = $p_data['panel_filename'];
                     include INFUSIONS.$panel_name.\"/\".$panel_name.\".php\";
                  } else {
                     eval(stripslashes($p_data['panel_content']));
                  }
               }
            }
         }
      }
   }
}
define(\"L_CENTER\", ob_get_contents());
ob_end_clean();
?>




Dkui u? pagalb.
 
PM
Peršokti į forumą: