Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,963
Naujausias narys: WolfHammer

Naujausi straipsniai

Paskutiniai nariai

DjArtas 6 dienos
WolfHammer 6 dienos
Rytis 4 savaitės
Nostesi11 savaitės
Wisedocs11 savaitės
asdasdddz15 savaitės
Paslapties K...16 savaitės
Audrius_1718 savaitės
Reikalas23 savaitės
Simbijanas31 savaitės
Karinacraft31 savaitės
Žmogus35 savaitės
Bruksnys39 savaitės
Darexs41 savaitės
Nepas42 savaitės
keistuole44 savaitės
Gizmis46 savaitės
MaFetas59 savaitės
ozzWANTED61 savaitės
saulyzas62 savaitės

Informacija:


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

WolfHammer
2026 Sau. 25 01:01:35
drovus

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

Nepas
2025 Bal. 9 17:04:13
drovus

Nepas
2025 Bal. 9 17:04:08
drovus

Gizmis
2025 Kov. 15 14:03:50
OMG, smagu matyt sita puslapi veikianti

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

Autorius: Edve Peržiūrų: 1264      Spausdinti temą
2010 Rugs. 24 11:09:46          1 žinutė iš 2
Spausdinti pranešimą
Kaip bandau sukurti panele, iškyla problema.. Rašo

Parse error: syntax error, unexpected T_STRING in /home/a4647353/public_html/themes/templates/panels.php(78) : eval()'d code on line 3


Galit padėti tą problema eliminuot?


<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: panels.php
| Author: Nick Jones (Digitanium)
| Co Author: Hans Kristian Flaatten (Starefossen)
| Co Author: bartek124
+--------------------------------------------------------+
| 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 <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> 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("#(&amp;|\?)(s_action=edit&amp;shout_id=)([0-9]+)#s", "", $start_page), 1));
 
$p_sql = false; $p_arr = array(1 => false, 2 => false, 3 => false, 4 => false);
if (!defined("ADMIN_PANEL")) {
if (check_panel_status("left")) {
$p_sql = "panel_side='1'";
}
if (check_panel_status("upper")) {
$p_sql .= ($p_sql ? " OR " : "");
$p_sql .= ($settings['opening_page'] != START_PAGE ? "(panel_side='2' AND panel_display='1')" : "panel_side='2'");
}
if (check_panel_status("lower")) {
$p_sql .= ($p_sql ? " OR " : "");
$p_sql .= ($settings['opening_page'] != START_PAGE ? "(panel_side='3' AND panel_display='1')" : "panel_side='3'");
}
if (check_panel_status("right")) {
$p_sql .= ($p_sql ? " OR " : "")."panel_side='4'";
}
 
$p_sql = ($p_sql ? " AND (".$p_sql.")" : false);
 
if ($p_sql) {
$p_res = dbquery(
"SELECT panel_side, panel_type, panel_filename, panel_content FROM ".DB_PANELS."
WHERE panel_status='1'"
.$p_sql." AND ".groupaccess('panel_access')."
ORDER BY panel_side, panel_order"

);
if (dbrows($p_res)) {
$current_side = 0;
while ($p_data = dbarray($p_res)) {
if ($current_side == 0) {
ob_start();
$current_side = $p_data['panel_side'];
}
if ($current_side > 0 && $current_side != $p_data['panel_side']) {
$p_arr[$current_side] = ob_get_contents();
ob_end_clean();
$current_side = $p_data['panel_side'];
ob_start();
}
if ($p_data['panel_type'] == "file") {
if (file_exists(INFUSIONS.$p_data['panel_filename']."/".$p_data['panel_filename'].".php")) {
include INFUSIONS.$p_data['panel_filename']."/".$p_data['panel_filename'].".php";
}
} else {
eval(stripslashes($p_data['panel_content']));
}
}
$p_arr[$current_side] .= ob_get_contents();
ob_end_clean();
}
}
} else {
ob_start();
require_once ADMIN."navigation.php";
$p_arr[1] = ob_get_contents();
ob_end_clean();
}
 
if (!defined("ADMIN_PANEL")) {
$p_arr[2] = "<a id='content' name='content'></a>\n".$p_arr[2];
if (iADMIN && $settings['maintenance']) {
$p_arr[2] = "<div id='close-message'><div class='admin-message'>".$locale['global_190']."</div></div>\n".$p_arr[2];
}
if (iSUPERADMIN && file_exists(BASEDIR."setup.php")) {
$p_arr[2] = "<div id='close-message'><div class='admin-message'>".$locale['global_198']."</div></div>\n".$p_arr[2];
}
if (iADMIN && !$userdata['user_admin_password']) {
$p_arr[2] = "<div id='close-message'><div class='admin-message'>".$locale['global_199']."</div></div>\n".$p_arr[2];
}
}
 
define("LEFT", $p_arr[1]);
define("U_CENTER", $p_arr[2]);
define("L_CENTER", $p_arr[3]);
define("RIGHT", $p_arr[4]);
unset($p_arr);
 
// Set the require div-width class
if (defined("ADMIN_PANEL")) {
$main_style = "side-left";
} elseif (LEFT && RIGHT) {
$main_style = "side-both";
} elseif (LEFT && !RIGHT) {
$main_style = "side-left";
} elseif (!LEFT && RIGHT) {
$main_style = "side-right";
} elseif (!LEFT && !RIGHT) {
$main_style = "";
}
?>


Čia panels.php del kurios man meta error. drovus


Edve prisegtu failu:
panels.php.zip

1 atsakymas:
2010 Rugs. 24 12:09:38          2 žinutė iš 2
Spausdinti pranešimą
Kam kurti dvi temas iš eilės ? Čia ne dėl panels.php. Čia todėl, kad nemoki panelės įdėti, arba jinai neveikia ant tavo versijos.
0


Peršokti į forumą: