Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Junkies1975

Server Side Includes

Recommended Posts

Acabei de jogar o site no ar, mas está dando esse erro

 

Warning: virtual() has been disabled for security reasons in /home/u592483509/public_html/index.php on line 1 Warning: mysql_select_db() expects parameter 2 to be resource, null given in /home/u592483509/public_html/index.php on line 51 Warning: mysql_query() expects parameter 2 to be resource, null given in /home/u592483509/public_html/index.php on line 53

 

 

segue o link

http://marcelocostateam.zz.mu/

 

 

joguei em outra hospedagem e está dando esse erro

 

 

 

http://praticamentefamilia.net46.net

Compartilhar este post


Link para o post
Compartilhar em outros sites

Peguei a conversa no meio do caminho....

 

Mas acredito que a video aula contida nesse link http://phparte.blogspot.com.br/2010/11/painel-de-controle.html

 

Poderá ajudá-lo

 

E ainda o autor da video aula disponibiliza o link da aplicação para download

Compartilhar este post


Link para o post
Compartilhar em outros sites
<?php virtual('Connections/mc_team__bd.php'); ?>

<?php

// Load the tNG classes

require_once('includes/tng/tNG.inc.php');


if (!function_exists("GetSQLValueString")) {

function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

{

$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;


$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);


switch ($theType) {

case "text":

$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

break;

case "long":

case "int":

$theValue = ($theValue != "") ? intval($theValue) : "NULL";

break;

case "double":

$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";

break;

case "date":

$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";

break;

case "defined":

$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;

break;

}

return $theValue;

}

}


$currentPage = $_SERVER["PHP_SELF"];


$currentPage = $_SERVER["PHP_SELF"];


$maxRows_rs_noticias = 10;

$pageNum_rs_noticias = 0;

if (isset($_GET['pageNum_rs_noticias'])) {

$pageNum_rs_noticias = $_GET['pageNum_rs_noticias'];

}

$startRow_rs_noticias = $pageNum_rs_noticias * $maxRows_rs_noticias;


mysql_select_db($database_mc_team__bd, $mc_team__bd);

$query_rs_noticias = "SELECT * FROM noticias ORDER BY id DESC";

$query_limit_rs_noticias = sprintf("%s LIMIT %d, %d", $query_rs_noticias, $startRow_rs_noticias, $maxRows_rs_noticias);

$rs_noticias = mysql_query($query_limit_rs_noticias, $mc_team__bd) or die(mysql_error());

$row_rs_noticias = mysql_fetch_assoc($rs_noticias);


if (isset($_GET['totalRows_rs_noticias'])) {

$totalRows_rs_noticias = $_GET['totalRows_rs_noticias'];

} else {

$all_rs_noticias = mysql_query($query_rs_noticias);

$totalRows_rs_noticias = mysql_num_rows($all_rs_noticias);

}

$totalPages_rs_noticias = ceil($totalRows_rs_noticias/$maxRows_rs_noticias)-1;


$colname_rs_noticias_full = "-1";

if (isset($_GET['id'])) {

$colname_rs_noticias_full = $_GET['id'];

}

mysql_select_db($database_mc_team__bd, $mc_team__bd);

$query_rs_noticias_full = sprintf("SELECT * FROM noticias WHERE id = %s ORDER BY id DESC", GetSQLValueString($colname_rs_noticias_full, "int"));

$rs_noticias_full = mysql_query($query_rs_noticias_full, $mc_team__bd) or die(mysql_error());

$row_rs_noticias_full = mysql_fetch_assoc($rs_noticias_full);

$totalRows_rs_noticias_full = mysql_num_rows($rs_noticias_full);


$queryString_rs_noticias = "";

if (!empty($_SERVER['QUERY_STRING'])) {

$params = explode("&", $_SERVER['QUERY_STRING']);

$newParams = array();

foreach ($params as $param) {

if (stristr($param, "pageNum_rs_noticias") == false &&

stristr($param, "totalRows_rs_noticias") == false) {

array_push($newParams, $param);

}

}

if (count($newParams) != 0) {

$queryString_rs_noticias = "&" . htmlentities(implode("&", $newParams));

}

}

$queryString_rs_noticias = sprintf("&totalRows_rs_noticias=%d%s", $totalRows_rs_noticias, $queryString_rs_noticias);


// Show Dynamic Thumbnail

$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");

$objDynamicThumb1->setFolder("admin/img/noticias/");

$objDynamicThumb1->setRenameRule("{rs_noticias.img}");

$objDynamicThumb1->setResize(20, 0, true);

$objDynamicThumb1->setWatermark(false);


$queryString_rs_noticias = "";

if (!empty($_SERVER['QUERY_STRING'])) {

$params = explode("&", $_SERVER['QUERY_STRING']);

$newParams = array();

foreach ($params as $param) {

if (stristr($param, "pageNum_rs_noticias") == false &&

stristr($param, "totalRows_rs_noticias") == false) {

array_push($newParams, $param);

}

}

if (count($newParams) != 0) {

$queryString_rs_noticias = "&" . htmlentities(implode("&", $newParams));

}

}

$queryString_rs_noticias = sprintf("&totalRows_rs_noticias=%d%s", $totalRows_rs_noticias, $queryString_rs_noticias);


// Show Dynamic Thumbnail

$objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1");

$objDynamicThumb1->setFolder("admin/img/noticias/");

$objDynamicThumb1->setRenameRule("{rs_noticias.img}");

$objDynamicThumb1->setResize(250, 0, true);

$objDynamicThumb1->setWatermark(false);

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<style type="text/css">

<!--

.style2 {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

font-weight: bold;

color: #CC0000;

}

.style3 {color: #FFFFFF}

.style7 {font-size: 14px}

.style8 {color: #999999}

.style9 {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 14px;

color: #333333;

}

.style10 {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 16px;

font-weight: bold;

color: #CC0000;

}

.style11 {color: #666666}

a:link {

color: #666666;

text-decoration: none;

}

a:visited {

text-decoration: none;

color: #666666;

}

a:hover {

text-decoration: none;

color: #CC0000;

}

a:active {

text-decoration: none;

color: #666666;

}

a {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 14px;

color: #FFFFFF;

}

body,td,th {

font-family: Verdana, Arial, Helvetica, sans-serif;

font-size: 12px;

color: #333333;

}

-->

</style>

</head>


<body>

<table width="100%" border="0">

<tr>

<td><img src="image/noticias____img2.png" width="450" height="31" /></td>

</tr>

<tr>

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

<tr>

<td colspan="2" align="left" valign="top"><table width="100%" border="0" cellpadding="4">

<tr>

<td width="7%" align="left" valign="top"><img src="admin/img/noticias/<?php echo $row_rs_noticias_full['img']; ?>" /></td>

<td width="93%" align="left" valign="top"><table width="100%" border="0">

<tr>

<td><span class="style10"><?php echo $row_rs_noticias_full['titulo']; ?></span></td>

</tr>

<tr>

<td><div align="justify"><span class="style9"><?php echo $row_rs_noticias_full['texto']; ?></span></div></td>

</tr>

</table></td>

</tr>

<tr>

<td align="left" valign="top"> </td>

<td align="left" valign="top"> </td>

</tr>

</table></td>

</tr>

<tr>

<td colspan="2" align="left" valign="top"> </td>

</tr>

<tr>

<td colspan="2" align="left" valign="top"> </td>

</tr>

<tr>

<td width="1%" align="left" valign="top"> </td>

<td width="99%" align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<?php

$rows_rs_noticias = 10;

$cols_rs_noticias = 1;

for ($i=0; $i<$rows_rs_noticias; $i++) {

for ($j=0; $j<$cols_rs_noticias; $j++) {

$currentIndex_rs_noticias = $i + $rows_rs_noticias * $j;

if (@mysql_data_seek($rs_noticias, $currentIndex_rs_noticias)) {

$row_rs_noticias = mysql_fetch_assoc($rs_noticias);

?>

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

<tr>

<td width="100%" align="left" valign="top" class="style2"><table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td width="0%" align="left" valign="top" bgcolor="#CC0000"> </td>

<td width="1%" align="left" valign="top"> </td>

<td width="99%" align="left" valign="top"><a href="index.php?team=noticias&id=<?php echo $row_rs_noticias['id']; ?>" class="style7 style11"><?php echo $row_rs_noticias['titulo']; ?></a><a href="index.php?team=noticias&id=<?php echo $row_rs_noticias['id']; ?>" class="style7 style11"></a></td>

</tr>

</table>

<a href="index.php?team=noticias&id=<?php echo $row_rs_noticias['id']; ?>" class="style3 style7 style7"></a></td>

</tr>

<tr>

<td align="left" valign="top"><span class="style8">------------------------------------------------------------------------------------------------------------------</span></td>

</tr>

</table></td>

<?php

} else {

echo '<td> </td>';

} // end if;

} //end for 2

if ($i != $rows_rs_noticias-1) {

echo "</tr><tr>";

}

} // end for 1

?>

</tr>

</table></td>

</tr>

<tr>

<td align="left" valign="top"> </td>

<td align="center" valign="top"> 

<table border="0">

<tr>

<td><?php if ($pageNum_rs_noticias > 0) { // Show if not first page ?>

<a href="<?php printf("%s?pageNum_rs_noticias=%d%s", $currentPage, 0, $queryString_rs_noticias); ?>"><img src="image/First.gif" border="0" /></a>

<?php } // Show if not first page ?>

</td>

<td><?php if ($pageNum_rs_noticias > 0) { // Show if not first page ?>

<a href="<?php printf("%s?pageNum_rs_noticias=%d%s", $currentPage, max(0, $pageNum_rs_noticias - 1), $queryString_rs_noticias); ?>"><img src="image/Previous.gif" border="0" /></a>

<?php } // Show if not first page ?>

</td>

<td><?php if ($pageNum_rs_noticias < $totalPages_rs_noticias) { // Show if not last page ?>

<a href="<?php printf("%s?pageNum_rs_noticias=%d%s", $currentPage, min($totalPages_rs_noticias, $pageNum_rs_noticias + 1), $queryString_rs_noticias); ?>"><img src="image/Next.gif" border="0" /></a>

<?php } // Show if not last page ?>

</td>

<td><?php if ($pageNum_rs_noticias < $totalPages_rs_noticias) { // Show if not last page ?>

<a href="<?php printf("%s?pageNum_rs_noticias=%d%s", $currentPage, $totalPages_rs_noticias, $queryString_rs_noticias); ?>"><img src="image/Last.gif" border="0" /></a>

<?php } // Show if not last page ?>

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

</body>

</html>

<?php

mysql_free_result($rs_noticias);


mysql_free_result($rs_noticias_full);


?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tenta mudar o virtual para

 

require_once

 

de

 

<?php virtual('Connections/mc_team__bd.php'); ?>

 

para

 

<?php require_once('Connections/mc_team__bd.php'); ?>

 

o servidor que você esta, não aceita o virtual (no caso esta desabilitado por medidas de segurança)

 

Veja se funciona.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Isso ai já é algo relacionado ao seu código, em algum ponto deve ter um momento em que a função executa 2 vezes, precisaria dar uma olhada nele para ver aonde se "repete" a ação ou se esta duplicado.

 

p.s: Vc é de Paranaguá? só por curiosidade... como o site é bateu a dúvida rsrs.. Sou de Curitiba =)

Compartilhar este post


Link para o post
Compartilhar em outros sites

Eu vi que vc tem 2

 

 

for ($i=0; $i<$rows_rs_noticias; $i++) {
for ($j=0; $j<$cols_rs_noticias; $j++) {
um logo depois do outro, o que eles deveriam fazer? será isso que faz repetir? tente remover 1 para ver o que acontece

Compartilhar este post


Link para o post
Compartilhar em outros sites

Exato moro em Curitiba, estou vendo de futuramente fazer uns encontros de programadores PHP por aqui quem sabe rsrs..

 

mas voltando ao tópico, sim tem que verificar pode ser alguma coisa na index caso não seja em noticias, verifique certinho os códigos.

Compartilhar este post


Link para o post
Compartilhar em outros sites

tenho certeza que é no index, pois quando coloco o caminho somente da noticia ele não duplica,

 

Obrigado pela ajuda



Rudy, não queria te perturbar, mas tem como ver onde pode estar dando esse erro de duplicar

 

 

<?php require_once('Connections/mc_team__bd.php'); ?>
<?php
// Require the MXI classes
require_once ('includes/mxi/MXI.php');
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
// Include Multiple Static Pages
$mxiObj = new MXI_Includes("team");
$mxiObj->IncludeStatic("home", "home.php", "Home", "", "");
$mxiObj->IncludeStatic("academia", "academia.php", "A Academia", "", "");
$mxiObj->IncludeStatic("galeria", "galeria.php", "Galeria", "", "");
$mxiObj->IncludeStatic("eventos", "eventos.php", "Eventos", "", "");
$mxiObj->IncludeStatic("contato", "contato.php", "Contato", "", "");
$mxiObj->IncludeStatic("videos", "videos.php", "Vídeos", "", "");
$mxiObj->IncludeStatic("noticias_all", "noticias_all.php", "Notícias", "", "");
$mxiObj->IncludeStatic("professores", "professores.php", "Professores", "", "");
$mxiObj->IncludeStatic("home0", "home_0.php", "Home 0", "", "");
$mxiObj->IncludeStatic("noticias", "noticias.php", "Notícias", "", "");
$mxiObj->IncludeStatic("eventos_full", "eventos_full.php", "Eventos", "", "");
$mxiObj->IncludeStatic("exibir", "exibir.php", "Fotos", "", "");
// End Include Multiple Static Pages
mysql_select_db($database_mc_team__bd, $mc_team__bd);
$query_rs_banner_in = "SELECT * FROM banner ORDER BY RAND() LIMIT 4";
$rs_banner_in = mysql_query($query_rs_banner_in, $mc_team__bd) or die(mysql_error());
$row_rs_banner_in = mysql_fetch_assoc($rs_banner_in);
$totalRows_rs_banner_in = mysql_num_rows($rs_banner_in);
mysql_select_db($database_mc_team__bd, $mc_team__bd);
$query_rs_endereco = "SELECT * FROM endereco_fone ORDER BY id DESC";
$rs_endereco = mysql_query($query_rs_endereco, $mc_team__bd) or die(mysql_error());
$row_rs_endereco = mysql_fetch_assoc($rs_endereco);
$totalRows_rs_endereco = mysql_num_rows($rs_endereco);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $mxiObj->getTitle(); ?></title>
<style type="text/css">
<!--
body {
background-image: url(image/fundo__001a.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-repeat: repeat;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
color: #FFFFFF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
}
.style1 {color: #FFFFFF}
.style4 {
font-size: 12px
}
.style3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #3C0000;
}
.style10 {font-size: 10px}
-->
</style>
<meta name="keywords" content="<?php echo $mxiObj->getKeywords(); ?>" />
<meta name="description" content="<?php echo $mxiObj->getDescription(); ?>" />
<base href="<?php echo mxi_getBaseURL(); ?>" />
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onload="MM_preloadImages('image/menu/002_1.png','image/menu/002_2.png','image/menu/002_3.png','image/menu/002_4.png','image/menu/002_5.png','image/menu/002_6.png','image/menu/002_7.png')">
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="269"><img src="image/img___01.gif" width="269" height="238" border="0" usemap="#Map2" /></td>
<td colspan="2" valign="top"><table width="100%" height="238" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="192" valign="top"><img src="image/img___02.jpg" width="581" height="192" /></td>
</tr>
<tr>
<td bgcolor="#B71E23"><table width="100" border="0" cellpadding="0" cellspacing="5">
<tr>
<td width="18%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','image/menu/002_1.png',1)"><img src="image/menu/001_1.png" name="Image12" width="89" height="17" border="0" usemap="#Image12Map" id="Image12" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="8%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','image/menu/002_2.png',1)"><img src="image/menu/001_2.png" name="Image13" width="45" height="17" border="0" usemap="#Image13Map" id="Image13" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="9%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','image/menu/002_3.png',1)"><img src="image/menu/001_3.png" name="Image14" width="53" height="20" border="0" usemap="#Image14Map" id="Image14" /></a></td>
<td width="3%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="11%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','image/menu/002_4.png',1)"><img src="image/menu/001_4.png" name="Image16" width="63" height="17" border="0" usemap="#Image16Map" id="Image16" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="12%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','image/menu/002_5.png',1)"><img src="image/menu/001_5.png" name="Image18" width="68" height="20" border="0" usemap="#Image18Map" id="Image18" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="13%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image20','','image/menu/002_6.png',1)"><img src="image/menu/001_6.png" name="Image20" width="101" height="17" border="0" usemap="#Image20Map" id="Image20" /></a></td>
<td width="4%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','image/menu/002_7.png',1)"><img src="image/menu/001_7.png" name="Image22" width="65" height="17" border="0" usemap="#Image22Map" id="Image22" /></a></td>
<td width="6%" align="left" valign="bottom"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"><div align="center"><img src="admin/img/banner/<?php echo $row_rs_banner_in['banner']; ?>" /></div></td>
</tr>
<tr>
<td height="143" colspan="3" valign="top"> 
<?php if(isset($_GET["team"])){?>
<?php
$incFileName = $mxiObj->getCurrentInclude();
if ($incFileName !== null) {
mxi_includes_start($incFileName);
require(basename($incFileName)); // require the page content
mxi_includes_end();
}
?>
<?php }else {?>
<?php
mxi_includes_start("home.php");
require(basename("home.php"));
mxi_includes_end();
?><?php }?></td>
</tr>
<tr>
<td colspan="3"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#666666"><img src="image/doc_clean.gif" width="1" height="8" /></td>
</tr>
<tr>
<td bgcolor="#999999"><table width="100%" border="0">
<tr>
<td width="1%"><img src="image/doc_clean.gif" width="1" height="111" /></td>
<td width="99%" valign="top"><table width="98%" border="0">
<tr>
<td width="17%" rowspan="5" align="center" valign="middle"><img src="image/logo_bottom.png" width="122" height="122" border="0" usemap="#Map" /></td>
<td width="83%"><table width="100" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td width="18%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','image/menu/002_1.png',1)"><img src="image/menu/001_1.png" name="Image1" width="89" height="17" border="0" usemap="#Image12MapMap" id="Image1" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="8%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','image/menu/002_2.png',1)"><img src="image/menu/001_2.png" name="Image21" width="45" height="17" border="0" usemap="#Image13MapMap" id="Image21" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="9%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image31','','image/menu/002_3.png',1)"><img src="image/menu/001_3.png" name="Image31" width="53" height="20" border="0" usemap="#Image14MapMap" id="Image31" /></a></td>
<td width="3%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="11%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image41','','image/menu/002_4.png',1)"><img src="image/menu/001_4.png" name="Image41" width="63" height="17" border="0" usemap="#Image16MapMap" id="Image41" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="12%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image51','','image/menu/002_5.png',1)"><img src="image/menu/001_5.png" name="Image51" width="68" height="20" border="0" usemap="#Image18MapMap" id="Image51" /></a></td>
<td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td width="13%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image61','','image/menu/002_6.png',1)"><img src="image/menu/001_6.png" name="Image61" width="101" height="17" border="0" usemap="#Image20MapMap" id="Image61" /></a></td>
<td width="4%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
<td align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image71','','image/menu/002_7.png',1)"><img src="image/menu/001_7.png" name="Image71" width="65" height="17" border="0" usemap="#Image22MapMap" id="Image71" /></a></td>
<td width="6%" align="left" valign="bottom"> </td>
</tr>
</table>
<map name="Image12MapMap" id="Image12MapMap">
<area shape="rect" coords="1,0,84,17" href="index.php?team=academia" />
</map>
<map name="Image13MapMap" id="Image13MapMap">
<area shape="rect" coords="0,0,46,28" href="index.php?team=galeria" />
</map>
<map name="Image14MapMap" id="Image14MapMap">
<area shape="rect" coords="1,1,51,23" href="index.php?team=videos" />
</map>
<map name="Image16MapMap" id="Image16MapMap">
<area shape="rect" coords="1,0,67,32" href="index.php?team=eventos" />
</map>
<map name="Image18MapMap" id="Image18MapMap">
<area shape="rect" coords="0,0,78,35" href="index.php?team=noticias_all" />
</map>
<map name="Image20MapMap" id="Image20MapMap">
<area shape="rect" coords="1,0,109,60" href="index.php?team=professores" />
</map>
<map name="Image22MapMap" id="Image22MapMap">
<area shape="rect" coords="1,1,69,37" href="index.php?team=contato" />
</map> </td>
</tr>
<tr>
<td><div align="center"><span class="style3">----------------------------------------------------------------------------------------------------------------------------------</span></div></td>
</tr>
<tr>
<td><div align="center" class="style3"></div></td>
</tr>
<tr>
<td><div align="center">
<p align="center" class="baseline style4">© Copyright 2013 | Marcelo Costa Team. Todos os Direitos Reservados<br />
<?php echo $row_rs_endereco['endereco']; ?> | <?php echo $row_rs_endereco['fone']; ?><br />
</p>
</div></td>
</tr>
<tr>
<td valign="bottom"><div align="center"><span class="style3">desenvolvido por <strong>Solução Publicidade</strong></span></div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
</table>
<map name="Map" id="Map"><area shape="circle" coords="15,108,11" href="login.php" target="_blank" />
</map>
<map name="Image12Map" id="Image12Map">
<area shape="rect" coords="0,0,83,17" href="index.php?team=academia" />
</map>
<map name="Image13Map" id="Image13Map"><area shape="rect" coords="0,0,46,28" href="index.php?team=galeria" />
</map>
<map name="Image14Map" id="Image14Map"><area shape="rect" coords="1,1,51,23" href="index.php?team=videos" />
</map>
<map name="Image16Map" id="Image16Map"><area shape="rect" coords="1,0,67,32" href="index.php?team=eventos" />
</map>
<map name="Image18Map" id="Image18Map"><area shape="rect" coords="0,0,78,35" href="index.php?team=noticias_all" />
</map>
<map name="Image20Map" id="Image20Map"><area shape="rect" coords="1,0,109,60" href="index.php?team=professores" />
</map>
<map name="Image22Map" id="Image22Map"><area shape="rect" coords="1,1,69,37" href="index.php?team=contato" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="15,201,74,228" href="index.php?team=home" />
</map></body>
</html>
<?php
mysql_free_result($rs_banner_in);
mysql_free_result($rs_endereco);
?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

veja se isso resolve

<?php require_once('Connections/mc_team__bd.php'); ?>
<?php
// Require the MXI classes
require_once ('includes/mxi/MXI.php');
 
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
 
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
 
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}
 
// Include Multiple Static Pages
$mxiObj = new MXI_Includes("team");
$mxiObj->IncludeStatic("home", "home.php", "Home", "", "");
$mxiObj->IncludeStatic("academia", "academia.php", "A Academia", "", "");
$mxiObj->IncludeStatic("galeria", "galeria.php", "Galeria", "", "");
$mxiObj->IncludeStatic("eventos", "eventos.php", "Eventos", "", "");
$mxiObj->IncludeStatic("contato", "contato.php", "Contato", "", "");
$mxiObj->IncludeStatic("videos", "videos.php", "Vídeos", "", "");
$mxiObj->IncludeStatic("noticias_all", "noticias_all.php", "Notícias", "", "");
$mxiObj->IncludeStatic("professores", "professores.php", "Professores", "", "");
$mxiObj->IncludeStatic("home0", "home_0.php", "Home 0", "", "");
$mxiObj->IncludeStatic("noticias", "noticias.php", "Notícias", "", "");
$mxiObj->IncludeStatic("eventos_full", "eventos_full.php", "Eventos", "", "");
$mxiObj->IncludeStatic("exibir", "exibir.php", "Fotos", "", "");
// End Include Multiple Static Pages
 
mysql_select_db($database_mc_team__bd, $mc_team__bd);
$query_rs_banner_in = "SELECT * FROM banner ORDER BY RAND() LIMIT 4";
$rs_banner_in = mysql_query($query_rs_banner_in, $mc_team__bd) or die(mysql_error());
$row_rs_banner_in = mysql_fetch_assoc($rs_banner_in);
$totalRows_rs_banner_in = mysql_num_rows($rs_banner_in);
 
mysql_select_db($database_mc_team__bd, $mc_team__bd);
$query_rs_endereco = "SELECT * FROM endereco_fone ORDER BY id DESC";
$rs_endereco = mysql_query($query_rs_endereco, $mc_team__bd) or die(mysql_error());
$row_rs_endereco = mysql_fetch_assoc($rs_endereco);
$totalRows_rs_endereco = mysql_num_rows($rs_endereco);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...ransitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $mxiObj->getTitle(); ?></title>
<style type="text/css">
<!--
body {
background-image: url(image/fundo__001a.jpg);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-repeat: repeat;
}
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
a {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
color: #FFFFFF;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
}
.style1 {color: #FFFFFF}
.style4 {
font-size: 12px
}
.style3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
color: #3C0000;
}
.style10 {font-size: 10px}
-->
</style>
<meta name="keywords" content="<?php echo $mxiObj->getKeywords(); ?>" />
<meta name="description" content="<?php echo $mxiObj->getDescription(); ?>" />
<base href="<?php echo mxi_getBaseURL(); ?>" />
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
 
<body onload="MM_preloadImages('image/menu/002_1.png','image/menu/002_2.png','image/menu/002_3.png','image/menu/002_4.png','image/menu/002_5.png','image/menu/002_6.png','image/menu/002_7.png')">
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="269"><img src="image/img___01.gif" width="269" height="238" border="0" usemap="#Map2" /></td>
    <td colspan="2" valign="top"><table width="100%" height="238" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="192" valign="top"><img src="image/img___02.jpg" width="581" height="192" /></td>
      </tr>
      <tr>
        <td bgcolor="#B71E23"><table width="100" border="0" cellpadding="0" cellspacing="5">
          <tr>
            <td width="18%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','image/menu/002_1.png',1)"><img src="image/menu/001_1.png" name="Image12" width="89" height="17" border="0" usemap="#Image12Map" id="Image12" /></a></td>
            <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
            <td width="8%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','image/menu/002_2.png',1)"><img src="image/menu/001_2.png" name="Image13" width="45" height="17" border="0" usemap="#Image13Map" id="Image13" /></a></td>
            <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
            <td width="9%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','image/menu/002_3.png',1)"><img src="image/menu/001_3.png" name="Image14" width="53" height="20" border="0" usemap="#Image14Map" id="Image14" /></a></td>
            <td width="3%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
            <td width="11%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','image/menu/002_4.png',1)"><img src="image/menu/001_4.png" name="Image16" width="63" height="17" border="0" usemap="#Image16Map" id="Image16" /></a></td>
            <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
            <td width="12%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','image/menu/002_5.png',1)"><img src="image/menu/001_5.png" name="Image18" width="68" height="20" border="0" usemap="#Image18Map" id="Image18" /></a></td>
            <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
            <td width="13%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image20','','image/menu/002_6.png',1)"><img src="image/menu/001_6.png" name="Image20" width="101" height="17" border="0" usemap="#Image20Map" id="Image20" /></a></td>
            <td width="4%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
            <td align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','image/menu/002_7.png',1)"><img src="image/menu/001_7.png" name="Image22" width="65" height="17" border="0" usemap="#Image22Map" id="Image22" /></a></td>
            <td width="6%" align="left" valign="bottom"> </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td colspan="3"><div align="center"><img src="admin/img/banner/<?php echo $row_rs_banner_in['banner']; ?>" /></div></td>
  </tr>
  <tr>
    <td height="143" colspan="3" valign="top"> 
    
    
<?php 
if(isset($_GET["team"])){

$incFileName = $mxiObj->getCurrentInclude();

  	if ($incFileName !== null)  {
    	mxi_includes_start($incFileName);
   		require(basename($incFileName)); // require the page content
   		mxi_includes_end();
	}else{

  		//mxi_includes_start("home.php");
  		require(basename("home.php"));
  		mxi_includes_end();
  	}
}
?>

</td>
  </tr>
  <tr>
    <td colspan="3"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="#666666"><img src="image/doc_clean.gif" width="1" height="8" /></td>
      </tr>
      <tr>
        <td bgcolor="#999999"><table width="100%" border="0">
          <tr>
            <td width="1%"><img src="image/doc_clean.gif" width="1" height="111" /></td>
            <td width="99%" valign="top"><table width="98%" border="0">
              <tr>
                <td width="17%" rowspan="5" align="center" valign="middle"><img src="image/logo_bottom.png" width="122" height="122" border="0" usemap="#Map" /></td>
                <td width="83%"><table width="100" border="0" align="center" cellpadding="0" cellspacing="5">
                  <tr>
                    <td width="18%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','image/menu/002_1.png',1)"><img src="image/menu/001_1.png" name="Image1" width="89" height="17" border="0" usemap="#Image12MapMap" id="Image1" /></a></td>
                    <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
                    <td width="8%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','image/menu/002_2.png',1)"><img src="image/menu/001_2.png" name="Image21" width="45" height="17" border="0" usemap="#Image13MapMap" id="Image21" /></a></td>
                    <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
                    <td width="9%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image31','','image/menu/002_3.png',1)"><img src="image/menu/001_3.png" name="Image31" width="53" height="20" border="0" usemap="#Image14MapMap" id="Image31" /></a></td>
                    <td width="3%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
                    <td width="11%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image41','','image/menu/002_4.png',1)"><img src="image/menu/001_4.png" name="Image41" width="63" height="17" border="0" usemap="#Image16MapMap" id="Image41" /></a></td>
                    <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
                    <td width="12%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image51','','image/menu/002_5.png',1)"><img src="image/menu/001_5.png" name="Image51" width="68" height="20" border="0" usemap="#Image18MapMap" id="Image51" /></a></td>
                    <td width="2%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
                    <td width="13%" align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image61','','image/menu/002_6.png',1)"><img src="image/menu/001_6.png" name="Image61" width="101" height="17" border="0" usemap="#Image20MapMap" id="Image61" /></a></td>
                    <td width="4%" align="left" valign="bottom"><img src="image/menu/00001_barra.png" width="3" height="19" /></td>
                    <td align="left" valign="bottom"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image71','','image/menu/002_7.png',1)"><img src="image/menu/001_7.png" name="Image71" width="65" height="17" border="0" usemap="#Image22MapMap" id="Image71" /></a></td>
                    <td width="6%" align="left" valign="bottom"> </td>
                  </tr>
                </table>
                  <map name="Image12MapMap" id="Image12MapMap">
                    <area shape="rect" coords="1,0,84,17" href="index.php?team=academia" />
                  </map>
                  <map name="Image13MapMap" id="Image13MapMap">
                    <area shape="rect" coords="0,0,46,28" href="index.php?team=galeria" />
                  </map>
                  <map name="Image14MapMap" id="Image14MapMap">
                    <area shape="rect" coords="1,1,51,23" href="index.php?team=videos" />
                  </map>
                  <map name="Image16MapMap" id="Image16MapMap">
                    <area shape="rect" coords="1,0,67,32" href="index.php?team=eventos" />
                  </map>
                  <map name="Image18MapMap" id="Image18MapMap">
                    <area shape="rect" coords="0,0,78,35" href="index.php?team=noticias_all" />
                  </map>
                  <map name="Image20MapMap" id="Image20MapMap">
                    <area shape="rect" coords="1,0,109,60" href="index.php?team=professores" />
                  </map>
                  <map name="Image22MapMap" id="Image22MapMap">
                    <area shape="rect" coords="1,1,69,37" href="index.php?team=contato" />
                  </map>                  </td>
              </tr>
              <tr>
                <td><div align="center"><span class="style3">----------------------------------------------------------------------------------------------------------------------------------</span></div></td>
              </tr>
              <tr>
                <td><div align="center" class="style3"></div></td>
              </tr>
              <tr>
                <td><div align="center">
                  <p align="center" class="baseline style4">© Copyright 2013 | Marcelo Costa Team. Todos os Direitos Reservados<br />
                    <?php echo $row_rs_endereco['endereco']; ?> | <?php echo $row_rs_endereco['fone']; ?><br />
                  </p>
                  </div></td>
              </tr>
              
              <tr>
                <td valign="bottom"><div align="center"><span class="style3">desenvolvido por <strong>Solução Publicidade</strong></span></div></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>      </td>
  </tr>
</table>
 
<map name="Map" id="Map"><area shape="circle" coords="15,108,11" href="login.php" target="_blank" />
</map>
<map name="Image12Map" id="Image12Map">
  <area shape="rect" coords="0,0,83,17" href="index.php?team=academia" />
</map>
<map name="Image13Map" id="Image13Map"><area shape="rect" coords="0,0,46,28" href="index.php?team=galeria" />
</map>
<map name="Image14Map" id="Image14Map"><area shape="rect" coords="1,1,51,23" href="index.php?team=videos" />
</map>
<map name="Image16Map" id="Image16Map"><area shape="rect" coords="1,0,67,32" href="index.php?team=eventos" />
</map>
<map name="Image18Map" id="Image18Map"><area shape="rect" coords="0,0,78,35" href="index.php?team=noticias_all" />
</map>
<map name="Image20Map" id="Image20Map"><area shape="rect" coords="1,0,109,60" href="index.php?team=professores" />
</map>
<map name="Image22Map" id="Image22Map"><area shape="rect" coords="1,1,69,37" href="index.php?team=contato" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="15,201,74,228" href="index.php?team=home" />
</map></body>
</html>
<?php
mysql_free_result($rs_banner_in);
 
mysql_free_result($rs_endereco);
?>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.