Skocz do zawartości

Cos popsulem ;/


wnlxmatt

Rekomendowane odpowiedzi

Pewnie wkleiłeś ten kod w "czysty PHP" a tak być nie może. Zrób tak:

//Jeśli przedtem jest jakiś kod PHP to dajesz //?>

// Jeśli nie ma kodu otwierasz <?php

?>

// Tutaj ten kod...

<?php

// dalej kod PHP

HTTP 200 usługi IT -> Dariusz Janicki | Realizacja serwisów www oraz oprogramowania w PHP / C# / Golang / Node.js / MySQL/ Laravel
Komory normobaryczne - normobaria.tech Wykonawca montażu i instalacji komory normobarii

Odnośnik do komentarza
Udostępnij na innych stronach

sorka za drugi post ale moze to cos pomoze"

<script LANGUAGE="javascript">

function show_hide(msg_id){

msg_id.style.display=msg_id.style.display=='none' ? '' : 'none'

}

</SCRIPT>

<?php?>

$body_text = "#000000";

$body_bg = "#57423D";

$theme_width = "100%";

$theme_width_l = "200";

$theme_width_r = "200";

function render_header($header_content) {

global $theme_width,$settings;

echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0'>

<tr>

<td class='main_left'><img width='15' src='".THEME."images/main_left.gif' height='1' alt=''></td>

<td class='mbody' align='center'><table width='100%' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/head/head_01.gif' width='19' height='13' alt=''></td>

<td class='head_02' width='100%'><img src='".THEME."images/head/head_02.gif' width='1' height='13'

alt=''></td>

<td><img src='".THEME."images/head/head_03.gif' width='19' height='13' alt=''></td>

</tr>

<tr>

<td class='head_04'><img src='".THEME."images/head/head_04.gif' width='19' height='1' alt=''></td>

<td class='head_05' widht='100%'>$header_content</td>

<td class='head_06'><img src='".THEME."images/head/head_06.gif' width='19' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/head/head_07.gif' width='19' height='27' alt=''></td>

<td class='head_08' width='100%'><img src='".THEME."images/head/head_08.gif' width='1' height='27'

alt=''></td>

<td><img src='".THEME."images/head/head_09.gif' width='19' height='27' alt=''></td>

</tr>

<tr><td><img src='".THEME."images/head/head_10.gif' width='19' height='25' alt=''></td>

<td class='head_11' width='100%'><img src='".THEME."images/head/head_11.gif' width='1' height='25'

alt=''></td>

<td><img src='".THEME."images/head/head_12.gif' width='19' height='25' alt=''></td>

</tr>

</table><table width='100%' align='center' cellspacing='0' cellpadding='0'>

<tr>

<td><table border='0' cellpadding='0' cellspacing='0'>

<tr>\n";

$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");

if (dbrows($result) != 0) {

echo "  \n";

$i = 0;

while($data = dbarray($result)) {

if (checkgroup($data['link_visibility'])) {

if ($data['link_url']!="---") {

if ($i != 0) { echo "\n"; } else { echo "\n"; }

$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");

if (strstr($data['link_url'], "https://") || strstr($data['link_url'], "https://")) {

echo "<a href='".$data['link_url']."'".$link_target." class='white2'>".$data['link_name']."</a>";

} else {

echo "<td><table border='0' cellpadding='0' cellspacing='0'><tr><td rowspan='3'><img

src='".THEME."images/menu_01.gif' width='10' height='23' alt=''></td><td class='menu_02'><img

src='".THEME."images/menu_02.gif' width='1' height='4' alt=''></td><td rowspan='3'><img

src='".THEME."images/menu_03.gif' width='8' height='23' alt=''></td></tr><tr><td class='menu_xx'><a

href='".BASEDIR.$data['link_url']."'".$link_target." class='white2'>".$data['link_name']."

»</a></td></tr><tr><td class='menu_05'><img src='".THEME."images/menu_05.gif' width='1' height='5'

alt=''></td></tr></table></td>";

}

}

$i++;

}

}

}

echo ($i == 0 ? " " : "")."</tr></table></td><td align='right'><table border='0' cellpadding='0'

cellspacing='0'>

<tr>

<td rowspan='3'><img src='".THEME."images/menu_01.gif' width='10' height='23' alt=''></td>

<td class='menu_02'><img src='".THEME."images/menu_02.gif' width='1' height='4' alt=''></td>

<td rowspan='3'><img src='".THEME."images/menu_03.gif' width='8' height='23' alt=''></td>

</tr>

<tr>

<td class='menu_xx'>".ucwords(showdate($settings['subheaderdate'], time()))."</td>

</tr>

<tr>

<td class='menu_05'><img src='".THEME."images/menu_05.gif' width='1' height='5' alt=''></td>

</tr>

</table></td>

</tr>

</table>\n";

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

}

function render_footer($license=false) {

global $theme_width,$settings,$locale;

echo "</tr>\n</table>\n";

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/footer/footer_01.gif' width='19' height='25' alt=''></td>

<td class='footer_02' width='100%'>Powered by: <b><a href='https://www.php-fusion.co.uk'

class='white3'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version'])."</b> & <b>ancher</b> theme by: <b><a

href='https://webmer.tk' target='_blank' class='white3'>sonar</a></b></td>

<td><img src='".THEME."images/footer/footer_03.gif' width='19' height='25' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/footer/footer_04.gif' width='19' height='27' alt=''></td>

<td class='footer_05'>";

echo "".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");

echo"

</td>

<td><img src='".THEME."images/footer/footer_06.gif' width='19' height='27' alt=''></td>

</tr>

<tr>

<td class='footer_07'><img src='".THEME."images/footer/footer_07.gif' width='19' height='1' alt=''></td>

<td class='footer_08'><br>".stripslashes($settings['footer'])."</td>

<td class='footer_09'><img src='".THEME."images/footer/footer_09.gif' width='19' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/footer/footer_10.gif' width='19' height='13' alt=''></td>

<td class='footer_11'><img src='".THEME."images/footer/footer_11.gif' width='1' height='13' alt=''></td>

<td><img src='".THEME."images/footer/footer_12.gif' width='19' height='13' alt=''></td>

</tr>

</table>

</td>

<td class='main_right'><img width='15' src='".THEME."images/main_right.gif' height='1' alt=''></td>

</tr>

</table>\n";

}

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

global $settings,$locale;

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/side/table_01.gif' width='13' height='21' alt=''></td>

<td class='table_02' width='100%'>$subject</td>

<td><img src='".THEME."images/side/table_03.gif' width='13' height='21' alt=''></td>

</tr>

<tr>

<td class='table_04'><img src='".THEME."images/side/table_04.gif' width='13' height='1' alt=''></td>

<td class='main-body'>$news</td>

<td class='table_06'><img src='".THEME."images/side/table_06.gif' width='13' height='1' alt=''></td>

</tr>

<tr>

<td class='table_04'><img src='".THEME."images/side/table_04.gif' width='13' height='1' alt=''></td>

<td class='main-body' align='right'><img src='".THEME."images/bullet.gif' alt='' > ".$locale['040']."<a

href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate",

$info['news_date'])."

<br><img src='".THEME."images/bullet.gif' alt='' > ".($info['news_ext'] == "y" ? "<a

href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> +\n" : "")."

<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> +

".$info['news_reads'].$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img

src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0'></a></td>

<td class='table_06'><img src='".THEME."images/side/table_06.gif' width='13' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/side/table_07.gif' width='13' height='11' alt=''></td>

<td class='table_08'><img src='".THEME."images/side/table_08.gif' width='1' height='11' alt=''></td>

<td><img src='".THEME."images/side/table_09.gif' width='13' height='11' alt=''></td>

</tr>

</table>\n";

}

function render_article($subject, $article, $info) {

global $locale;

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/side/table_01.gif' width='13' height='21' alt=''></td>

<td class='table_02' width='100%'>$subject</td>

<td><img src='".THEME."images/side/table_03.gif' width='13' height='21' alt=''></td>

</tr>

<tr>

<td class='table_04'><img src='".THEME."images/side/table_04.gif' width='13' height='1' alt=''></td>

<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>

<td class='table_06'><img src='".THEME."images/side/table_06.gif' width='13' height='1' alt=''></td>

</tr>

<tr>

<td class='table_04'><img src='".THEME."images/side/table_04.gif' width='13' height='1' alt=''></td>

<td class='main-body' align='right'><img src='".THEME."images/bullet.gif' alt='' > ".$locale['040']."<a

href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>

".$locale['041'].showdate("longdate", $info['article_date'])."<br><img src='".THEME."images/bullet.gif'

alt='' > <a

href='articlecomments.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> +

".$info['article_reads'].$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img

src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' ></a></td>

<td class='table_06'><img src='".THEME."images/side/table_06.gif' width='13' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/side/table_07.gif' width='13' height='11' alt=''></td>

<td class='table_08'><img src='".THEME."images/side/table_08.gif' width='1' height='11' alt=''></td>

<td><img src='".THEME."images/side/table_09.gif' width='13' height='11' alt=''></td>

</tr>

</table>\n";

}

function opentable($title) {

echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/side/table_01.gif' width='13' height='21' alt=''></td>

<td class='table_02' width='100%'>$title</td>

<td><img src='".THEME."images/side/table_03.gif' width='13' height='21' alt=''></td>

</tr>

<tr>

<td class='table_04'><img src='".THEME."images/side/table_04.gif' width='13' height='1' alt=''></td>

<td class='main-body'>\n";

}

function closetable() {

echo "</td>

<td class='table_06'><img src='".THEME."images/side/table_06.gif' width='13' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/side/table_07.gif' width='13' height='11' alt=''></td>

<td class='table_08'><img src='".THEME."images/side/table_08.gif' width='1' height='11' alt=''></td>

<td><img src='".THEME."images/side/table_09.gif' width='13' height='11' alt=''></td>

</tr>

</table>\n";

}

function openside($title) {

global $p_data;

if ($p_data['panel_side'] == 1) {

echo "<table width='200' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/side/side_left_01.gif' width='20' height='27' alt=''></td>

<td class='side_left_top'>$title</td>

<td><img src='".THEME."images/side/side_left_03.gif' width='20' height='27' alt=''></td>

</tr>

<tr>

<td class='side_left_ml'><img src='".THEME."images/side/side_left_04.gif' width='20' height='1' alt=''></td>

<td class='side-body'>\n"; }

else {

echo "<table width='200' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/side/side_right_01.gif' width='20' height='27' alt=''></td>

<td class='side_right_top'>$title</td>

<td><img src='".THEME."images/side/side_right_03.gif' width='20' height='27' alt=''></td>

</tr>

<tr>

<td class='side_right_ml'><img src='".THEME."images/side/side_right_04.gif' width='20' height='1'

alt=''></td>

<td class='side-body'>\n";

}

}

function closeside() {

global $p_data;

if ($p_data['panel_side'] == 1) {

echo "</td>

<td class='side_left_mr'><img src='".THEME."images/side/side_left_06.gif' width='20' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/side/side_left_07.gif' width='20' height='18' alt=''></td>

<td class='side_left_down'></td>

<td><img src='".THEME."images/side/side_left_09.gif' width='20' height='18' alt=''></td>

</tr>

</table>\n"; }

else {

echo "</td>

<td class='side_right_mr'><img src='".THEME."images/side/side_right_06.gif' width='20' height='1'

alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/side/side_right_07.gif' width='20' height='18' alt=''></td>

<td class='side_right_down'></td>

<td><img src='".THEME."images/side/side_right_09.gif' width='20' height='18' alt=''></td>

</tr>

</table>\n";

}

tablebreak();

}

function opensidex($title,$open="on") {

$box_img = ($open=="on" ? "off" : "on");

echo "<table width='200' border='0' cellpadding='0' cellspacing='0'>

<tr>

<td><img src='".THEME."images/side/side_left_01.gif' width='20' height='27' alt=''></td>

<td class='side_left_top'>$title <img onclick=\"java script:flipBox('$title')\" name='b_$title'

alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'><br><div id='box_$title'".($open=="off" ?

"style='display:none'" : "")."></td>

<td><img src='".THEME."images/side/side_left_03.gif' width='20' height='27' alt=''></td>

</tr>

<tr>

<td class='side_left_ml'><img src='".THEME."images/side/side_left_04.gif' width='20' height='1' alt=''></td>

<td class='side-body'>\n";

}

function closesidex() {

echo "</div>

</td>

<td class='side_left_mr'><img src='".THEME."images/side/side_left_06.gif' width='20' height='1' alt=''></td>

</tr>

<tr>

<td><img src='".THEME."images/side/side_left_07.gif' width='20' height='18' alt=''></td>

<td class='side_left_down'></td>

<td><img src='".THEME."images/side/side_left_09.gif' width='20' height='18' alt=''></td>

</tr>

</table>\n";

tablebreak();

}

function tablebreak() {

echo "<table width='100%' cellspacing='0' cellpadding='0'>

<tr>

<td height='7'></td>

</tr>

</table>\n";

}

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head><script language="JavaScript" src="https://www.yoyo.pl/advertisements/adv.js"

type="text/javascript"></script><style type="text/css">#epbchyxazftdslvrgjwmqkn {position:absolute; visibility:

visible; left: 0px; top: 0px; z-index: 1000000; width:724px; height:130px; padding:0px; }</style><script

language="JavaScript" type="text/javascript">function initStatLyr() {var statLyr = new

Glider("epbchyxazftdslvrgjwmqkn",0,0,null,null,1000,-1);statLyr.show();}</script><title>Shaman King: Tourney Of

Spirits | Official Site</title>

<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-2'>

<meta name='description' content='Oficjalna Strona o grze na PC "Shaman King : Tourney Of Spirits".SK TOS

Official Site.Król szamanów'>

<meta name='keywords' content='sk tos, shaman king tourney of spirits, tos, matt, gra matt'a, shaman king, krol

szamanow, sktos, ks, sk, tourney of spirits'>

<link rel='stylesheet' href='../../themes/ancher/styles.css' type='text/css'>

<link rel='stylesheet' href='../../includes/styles.css' type='text/css'>

<script type='text/javascript' src='../../includes/jscript.js'></script>

<script type='text/javascript' src='../../includes/png-hack.js'></script>

<!--[if gte IE 5.5000]>

<script language='javascript'>

window.attachEvent("onload", correctPNG);

</script>

<![endif]-->

<style type='text/css'>

#dhtmltooltip{

position: absolute;

width: 150px;

border: 0px solid black;

padding: 2px;

visibility: hidden;

z-index: 100;

}</style>

</head>

<body bgcolor='' text='' onLoad="initStatLyr()"><div align="center"><div id=___ads90581 align=center style="display:

visible;"><table cellpadding=0 cellspacing=0 border=0 style="width: 724px; height: 90px;"><tr><td><table

cellpadding=0 cellspacing=0 style="background-color: FFFFFF; width: 724px; height: 90px; "><tr><td><script

type="text/javascript"><!--

if (document.getElementById('adKontekst_0')==null) {

var adKontekst_pola=new Array;

document.write('<scr'+'ipt type="text/javascript" '+

'src="https://adsearch.wp.pl/akon/spliter?prid=813&caid=71516&ns='

+(new Date()).getTime()+'"'+'></'+'scri'+'pt>');

}

var adc_i=adKontekst_pola.length;

document.write("<div id='adKontekst_"+adc_i+"'> </"+"div>");

adKontekst_pola[adc_i]=new Object();

adKontekst_pola[adc_i].nazwa="adKontekst_"+adc_i;

adKontekst_pola[adc_i].typ=101;

adKontekst_pola[adc_i].r=1;

adKontekst_pola[adc_i].c=4;

adKontekst_pola[adc_i].x=724;

adKontekst_pola[adc_i].y=90;

adKontekst_pola[adc_i].paleta=new Object();

adKontekst_pola[adc_i].paleta.kolor_tlo="#FFFFFF";

adKontekst_pola[adc_i].paleta.kolor_tytul="#FF0000";

adKontekst_pola[adc_i].paleta.kolor_opis="#000000";

adKontekst_pola[adc_i].paleta.kolor_url="#FF0000";

adKontekst_pola[adc_i].paleta.kolor_naglowek="#FFFFFF";

adKontekst_pola[adc_i].nform=1;

//--></script></td><td style="width: 16px; vertical-align: top"><a href="java script:___hidden('90581')"><img

src="https://www.yoyo.pl/advertisements/close.gif" width=16 height=16

border=0></a></td></tr></table></td></tr></table></div></div>

<div id="dhtmltooltip"></div>

<script type="text/javascript" src='../../includes/dhtmltooltip.js'></script>

<br />

<b>Fatal error</b>: Call to undefined function: render_header() in

<b>/var/www/sites/yoyo.pl/s/k/sktos/subheader.php</b> on line <b>68</b><br />

Odnośnik do komentarza
Udostępnij na innych stronach

Skoro nie możesz edytować to jak dodałeś ten kod kontekstu - siłą woli? :)

Poza tym po co wklejasz kod HTML z źródła strony, ten może zobaczyć każdy. Jak już to wklej ten zmodyfikowany kod pliku edit_theme.php

HTTP 200 usługi IT -> Dariusz Janicki | Realizacja serwisów www oraz oprogramowania w PHP / C# / Golang / Node.js / MySQL/ Laravel
Komory normobaryczne - normobaria.tech Wykonawca montażu i instalacji komory normobarii

Odnośnik do komentarza
Udostępnij na innych stronach

To do FTP też nie masz dostępu?

Ręce opadają przy poziomie niektórych Waszych problemów :)

HTTP 200 usługi IT -> Dariusz Janicki | Realizacja serwisów www oraz oprogramowania w PHP / C# / Golang / Node.js / MySQL/ Laravel
Komory normobaryczne - normobaria.tech Wykonawca montażu i instalacji komory normobarii

Odnośnik do komentarza
Udostępnij na innych stronach

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Warunki użytkowania Polityka prywatności