Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Labai reikia pagalbos prasau

Parašė MariukasR· 2011 Vas. 26 22:02:33
#1

tai yra klaida 1 ir 13 eiluteja rodo errora tik sveciams galite padeti PANELS.PHP yra blogai 13 ir 1 eilute ;) PLZ


?<php
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];
	}
	$p_arr[2] = "<noscript><div class='noscript-message admin-message'>".$locale['global_303']."</div>\n</noscript>\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 = "";
}
?>
 
 

Redagavo MariukasR· 2011 Vas. 26 22:02:03

Parašė MariukasR· 2011 Vas. 26 22:02:44
#2

padesir ar ne :) labai prasau ...

Parašė MariukasR· 2011 Vas. 27 08:02:52
#3

Krc 16K nariu ir niekas negali apdeti OT ....

Parašė avice· 2011 Vas. 27 10:02:19
#4

tai parasyk kokias tas klaidas meta.
1 eilej turi but <?php
ir suprask is tu 16k nariu 90% moka tik tepliones piest...

Redagavo avice· 2011 Vas. 27 10:02:20

Parašė MariukasR· 2011 Vas. 27 11:02:25
#5

va tokias klaidas : Notice: Undefined index: user_id in /home/drakosys/public_html/themes/templates/panels.php(78) : eval()'d code on line 1

Notice: Undefined index: user_id in /home/drakosys/public_html/themes/templates/panels.php(78) : eval()'d code on line 13

Parašė Žmogus· 2011 Vas. 27 12:02:20
#6

O tai į kur tu čia jį kiši?

Parašė MariukasR· 2011 Vas. 27 19:02:47
#7

niekur nekisu atsirado tie errorai ir nebezinau ka daryti ukniso jau