Parašė Mandello· 2010 Bir. 12 23:06:03
#1
Gal kas zinote kaip perkoduoti header kad jis nebutu sukrapytas?
kodas index.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#4a4a4a";
$body_bg = "#232323";
$theme_width = "900";
$theme_width_l = "192";
$theme_width_r = "192";
function render_header($header_content) {
global $theme_width,$settings,$locale,$userdata,$aidlink,$db_prefix;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%' align='center'>
<tr>
<td>
<table width='900' height='348' border='0' cellpadding='0' cellspacing='0'align='center'>
<tr>
<td rowspan='3' align='center'>
<img src='".THEME."images/header/0_01.gif' width='582' height='281' alt=''></td>
<td colspan='2' align='left'>
<img src='".THEME."images/header/0_02.gif' width='318' height='30' alt=''></td>
</tr>
<tr>
<td colspan='2' class='vartotojo_zona' align='left'>";
include_once"".THEME."vartotojo_zona.php";
echo "</td>
</tr>
<tr>
<td colspan='2' align='left'>
<img src='".THEME."images/header/0_04.gif' width='318' height='76' alt='' align='center'></td>
</tr>
<tr>
<td colspan='2' style='height: 50px; width: 650px;' align='center'>";
include_once"".THEME."nuorodos.php";
echo "</td>
<td class='data' align='left'><span style='padding-left:10px;'>".ucwords(showdate($settings['subheaderdate'], time()))."</span></td>
</tr>
<tr>
<td colspan='3' align='center'>\n";
echo " <img src='".THEME."images/header/0_07.gif' width='900' height='16' alt=''>
</td>
</tr>";
echo "<br><center><img src='http://www.part.lt/img/d92647a3a21fd9d751b07df92ac146ab854.jpg' width='750' height='100'></center><br>
<tr>
<td align='center'>
<img src='".THEME."images/header/spacer.gif' width='582' height='0' alt=''></td>
<td align='center'>
<img src='".THEME."images/header/spacer.gif' width='68' height='0' alt=''></td>
<td align='left'>
<img src='".THEME."images/header/spacer.gif' width='250' height='0' alt=''></td>
</tr>
</table>
IMG:
Jai kas galit tai as noriu si header ideti nesukarpyta.