Array
(
)

failed: Permission denied (13)

Wb
   - 13 mar 2015

Bom dia pessoal, estou com um erro ao fazer uma postagem em um sistema de postagens que estou criando pra testes que está online.
Ao preencher os campos e clicar em cadastrar ela apresenta o seguinte erro:
#CódigoWarning: session_write_close(): open(/tmp/sess_638e6a31056ade9d8967bbfae4a6a4da, O_RDWR) failed: Permission denied (13) in /home/wandersonwb/public_html/postagem/includes/common/KT_functions.inc.php on line 458
Warning: session_write_close(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /home/wandersonwb/public_html/postagem/includes/common/KT_functions.inc.php on line 458
Warning: Cannot modify header information - headers already sent by (output started at /home/wandersonwb/public_html/postagem/includes/common/KT_functions.inc.php:458) in /home/wandersonwb/public_html/postagem/includes/common/KT_functions.inc.php on line 464

>>o interessante é que pelo que entendi do erro é que eu não teria permissão para acessar ou modificar tal pasta ("tmp" - acho), mas ao retornar a página de cadastro noto que a postagem foi publicada apesar deste erro.
:::Segue o código da minha página de cadastro:
#Código<?php require_once('Connections/conexaoinserircat.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $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;
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO post (id, categoria, titulo, autor, `data`, imagem, texto) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['id'], "int"),
GetSQLValueString($_POST['categoria'], "text"),
GetSQLValueString($_POST['titulo'], "text"),
GetSQLValueString($_POST['autor'], "text"),
GetSQLValueString($_POST['data'], "date"),
GetSQLValueString($_POST['imagem'], "text"),
GetSQLValueString($_POST['texto'], "text"));
mysql_select_db($database_conexaoinserircat, $conexaoinserircat);
$Result1 = mysql_query($insertSQL, $conexaoinserircat) or die(mysql_error());
}
mysql_select_db($database_conexaoinserircat, $conexaoinserircat);
$query_RecordsetinserirCategorias = "SELECT post.categoria FROM post";
$RecordsetinserirCategorias = mysql_query($query_RecordsetinserirCategorias, $conexaoinserircat) or die(mysql_error());
$row_RecordsetinserirCategorias = mysql_fetch_assoc($RecordsetinserirCategorias);
$totalRows_RecordsetinserirCategorias = mysql_num_rows($RecordsetinserirCategorias);
?>
<?php require_once('postagem/Connections/Postagem.php'); ?>
<?php
//MX Widgets3 include
require_once('postagem/includes/wdg/WDG.php');
// Load the common classes
require_once('postagem/includes/common/KT_common.php');
// Load the tNG classes
require_once('postagem/includes/tng/tNG.inc.php');
// Load the KT_back class
require_once('postagem/includes/nxt/KT_back.php');
// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("");
// Make unified connection variable
$conn_Postagem = new KT_connection($Postagem, $database_Postagem);
// Start trigger
$formValidation = new tNG_FormValidation();
$formValidation->addField("titulo", true, "text", "", "", "", "");
$formValidation->addField("autor", true, "text", "", "", "", "");
$formValidation->addField("categoria", true, "text", "", "", "", "");
$formValidation->addField("data", true, "date", "", "", "", "");
$formValidation->addField("imagem", true, "", "", "", "", "");
$formValidation->addField("texto", true, "text", "", "", "", "");
$tNGs->prepareValidation($formValidation);
// End trigger
//start Trigger_FileDelete trigger
//remove this line if you want to edit the code by hand
function Trigger_FileDelete(&$tNG) {
$deleteObj = new tNG_FileDelete($tNG);
$deleteObj->setFolder("postagem/imagens/");
$deleteObj->setDbFieldName("imagem");
return $deleteObj->Execute();
}
//end Trigger_FileDelete trigger
//start Trigger_ImageUpload trigger
//remove this line if you want to edit the code by hand
function Trigger_ImageUpload(&$tNG) {
$uploadObj = new tNG_ImageUpload($tNG);
$uploadObj->setFormFieldName("imagem");
$uploadObj->setDbFieldName("imagem");
$uploadObj->setFolder("postagem/imagens/");
$uploadObj->setResize("false", 380, 150);
$uploadObj->setMaxSize(1500);
$uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png");
$uploadObj->setRename("auto");
return $uploadObj->Execute();
}
//end Trigger_ImageUpload trigger
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$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;
}
}
// Make an insert transaction instance
$ins_post = new tNG_multipleInsert($conn_Postagem);
$tNGs->addTransaction($ins_post);
// Register triggers
$ins_post->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
$ins_post->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$ins_post->registerTrigger("END", "Trigger_Default_Redirect", 99, "postagem/includes/nxt/back.php");
$ins_post->registerTrigger("AFTER", "Trigger_ImageUpload", 97);
// Add columns
$ins_post->setTable("post");
$ins_post->addColumn("titulo", "STRING_TYPE", "POST", "titulo");
$ins_post->addColumn("autor", "STRING_TYPE", "POST", "autor");
$ins_post->addColumn("categoria", "STRING_TYPE", "POST", "categoria");
$ins_post->addColumn("data", "DATE_TYPE", "POST", "data");
$ins_post->addColumn("imagem", "FILE_TYPE", "FILES", "imagem");
$ins_post->addColumn("texto", "STRING_TYPE", "POST", "texto");
$ins_post->setPrimaryKey("id", "NUMERIC_TYPE");
// Make an update transaction instance
$upd_post = new tNG_multipleUpdate($conn_Postagem);
$tNGs->addTransaction($upd_post);
// Register triggers
$upd_post->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1");
$upd_post->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);
$upd_post->registerTrigger("END", "Trigger_Default_Redirect", 99, "includes/nxt/back.php");
$upd_post->registerTrigger("AFTER", "Trigger_ImageUpload", 97);
// Add columns
$upd_post->setTable("post");
$upd_post->addColumn("titulo", "STRING_TYPE", "POST", "titulo");
$upd_post->addColumn("autor", "STRING_TYPE", "POST", "autor");
$upd_post->addColumn("categoria", "STRING_TYPE", "POST", "categoria");
$upd_post->addColumn("data", "DATE_TYPE", "POST", "data");
$upd_post->addColumn("imagem", "FILE_TYPE", "FILES", "imagem");
$upd_post->addColumn("texto", "STRING_TYPE", "POST", "texto");
$upd_post->setPrimaryKey("id", "NUMERIC_TYPE", "GET", "id");
// Make an instance of the transaction object
$del_post = new tNG_multipleDelete($conn_Postagem);
$tNGs->addTransaction($del_post);
// Register triggers
$del_post->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Delete1");
$del_post->registerTrigger("END", "Trigger_Default_Redirect", 99, "includes/nxt/back.php");
$del_post->registerTrigger("AFTER", "Trigger_FileDelete", 98);
// Add columns
$del_post->setTable("post");
$del_post->setPrimaryKey("id", "NUMERIC_TYPE", "GET", "id");
// Execute all the registered transactions
$tNGs->executeTransactions();
// Get the transaction recordset
$rspost = $tNGs->getRecordset("post");
$row_rspost = mysql_fetch_assoc($rspost);
$totalRows_rspost = mysql_num_rows($rspost);
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['titulo'])) {
$loginUsername=$_POST['titulo'];
$password=$_POST['autor'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "cpu.php";
$MM_redirectLoginFailed = "cpu.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_Postagem, $Postagem);

$LoginRS__query=sprintf("SELECT id, titulo FROM post WHERE id=%s AND titulo=%s",
GetSQLValueString($loginUsername, "int"), GetSQLValueString($password, "text"));

$LoginRS = mysql_query($LoginRS__query, $Postagem) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";

//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?><!DOCTYPE html>
<html dir="ltr" lang="en-US"><head>
<meta charset="iso-8859-1">
<title>C.P.U</title>
<!-- ################ INÍCIO DOS DADOS DO MENU VERTICAL -->
<link rel="stylesheet" href="../menu_vertical-CPU/style.css" media="screen">
<!--[if lte IE 7]><link rel="stylesheet" href="style.ie7.css" media="screen" /><![endif]-->
<link rel="stylesheet" href="../menu_vertical-CPU/style.responsive.css" media="all">

<script src="../menu_vertical-CPU/jquery.js"></script>
<script src="../menu_vertical-CPU/script.js"></script>
<script src="../menu_vertical-CPU/script.responsive.js"></script>

<!-- ################ FIM DOS DADOS DO MENU VERTICAL -->
<!-- ################# COMEÇO DOS DADOS DA EXIBIÇÃO DE POSTAGENS-->
<?php require_once('postagem/Connections/Postagem.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$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"];
$maxRows_postagem = 10; //Número de páginas a serem exibidas na tela
$pageNum_postagem = 0;
if (isset($_GET['pageNum_postagem'])) {
$pageNum_postagem = $_GET['pageNum_postagem'];
}
$startRow_postagem = $pageNum_postagem * $maxRows_postagem;
mysql_select_db($database_Postagem, $Postagem);
$query_postagem = "SELECT * FROM post ORDER BY id DESC";//AQUI A DISCRIMINAÇÃO DA CATEGORIA A SER FILTRADA E EXIBIDA NA TELA
$query_limit_postagem = sprintf("%s LIMIT %d, %d", $query_postagem, $startRow_postagem, $maxRows_postagem);
$postagem = mysql_query($query_limit_postagem, $Postagem) or die(mysql_error());
$row_postagem = mysql_fetch_assoc($postagem);
if (isset($_GET['totalRows_postagem'])) {
$totalRows_postagem = $_GET['totalRows_postagem'];
} else {
$all_postagem = mysql_query($query_postagem);
$totalRows_postagem = mysql_num_rows($all_postagem);
}
$totalPages_postagem = ceil($totalRows_postagem/$maxRows_postagem)-1;
$queryString_postagem = "";
if (!empty($_SERVER['QUERY_STRING'])) {
$params = explode("&", $_SERVER['QUERY_STRING']);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, "pageNum_postagem") == false &&
stristr($param, "totalRows_postagem") == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_postagem = "&" . htmlentities(implode("&", $newParams));
}
}
$queryString_postagem = sprintf("&totalRows_postagem=%d%s", $totalRows_postagem, $queryString_postagem);
?>
<!-- ################# FIM DOS DADOS DA EXIBIÇÃO DE POSTAGENS-->
<!-- ################# COMEÇO DOS DADOS DA DIV RETRÁTIL-->
<style type="text/css">
body{
margin:0;
padding:0;
font:12px Arial, Helvetica, sans-serif;
}
#retractable{
margin:3px 18%;
padding:10px;
width:500px;
background:#1787D9;
-webkit-border-radius:6px;
-moz-border-radius:6px;
float:left;
}
#retractable h2{
margin:0 0 10px 0;
padding:0;
font-size:16px;
font-style:italic;
color:#fff;
-webkit-text-shadow:#cccccc 2px 2px 2px;
-moz-text-shadow:#cccccc 2px 2px 2px;
}
#retractable h3 {
margin:0px 0;
}
#retractable .section {
border-bottom:1px solid #ccc;
padding:0 0px;
background:#fff;
}
#retractable h3 a {
display:block;
padding:5px 0;
text-decoration:none;
color:#333;
}
#retractable h3 a:hover {
text-decoration:none;
}
#retractable h3 + div {
height:0;
overflow:hidden;
-webkit-transition:height 0.3s ease-in;
}
#retractable :target h3 a {
text-decoration:none;
color:#0066FF;
}
#retractable :target h3 + div {
height:auto;
}
#retractable .section.large:target h3 + div {
overflow:auto;
}
</style>
<!-- ################# FIM DOS DADOS DA DIV RETRÁTIL-->
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">

<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="style.css" media="screen">
<!--[if lte IE 7]><link rel="stylesheet" href="style.ie7.css" media="screen" /><![endif]-->
<link rel="stylesheet" href="style.responsive.css" media="all">

<script src="jquery.js"></script>
<script src="script.js"></script>
<script src="script.responsive.js"></script>

<style>
.art-content .art-postcontent-0 .layout-item-0 { margin-bottom: 10px; }
.art-content .art-postcontent-0 .layout-item-1 { border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-color:#CFD8E2;border-right-color:#CFD8E2;border-bottom-color:#CFD8E2;border-left-color:#CFD8E2; }
.art-content .art-postcontent-0 .layout-item-2 { padding-right: 10px;padding-left: 10px; }
.ie7 .post .layout-cell {border:none !important; padding:0 !important; }
.ie6 .post .layout-cell {border:none !important; padding:0 !important; }
.style9 {
font-family: Impact;
color: #666666;
}
.style13 {font-size: 21px}
.style14 {
color: #333333;
font-weight: bold;
}
.style15 {
color: #000000;
font-weight: bold;
font-size: 24px;
}
.style17 {
color: #FFFF00;
font-weight: bold;
font-size: 24px;
}
.style25 {color: #FFFF00}
.style33 {color: #000000}
.style34 {font-size: 24px}
.style35 {font-weight: bold; color: #000000;}
</style></head>
<body>
<div align="center"><span class="style17">/ / / / / / / / / / </span><span class="style15">/ / / / / / / / / /</span> <span class="style17">/ / / / / / / / / / </span><span class="style15">/ / / / / / / / / /</span> <span class="style17">/ / / / / / / / / / </span><span class="style15">/ / / / / / / / / /</span><span class="style34"><strong> PÁGINA EM DESENVOLVIMENTO <span class="style25">/ / / / / / / / / / </span><span class="style33">/ / / / / / / / / /</span> <span class="style25">/ / / / / / / / / / </span></strong><span class="style35">/ / / / / / / / / /</span></span> <span class="style17">/ / / / / / / / / / </span><span class="style15">/ / / / / / / / / /</span>
<div id="art-main">
</div>
<header class="art-header clearfix">
<div align="center"><img src="images/wbinformatica.png" width="191" height="117" /></div>
<div class="art-shapes"> </div>
</header>
<div class="art-sheet clearfix">
<nav class="art-nav clearfix">

<div align="center">
<ul class="art-hmenu">
<li><a href="index.html">home</a></li>
<li><a href="tutoriais.html"class="active">Tutoriais</a></li>
<li><a href="servicos.html" >serviços</a>
<ul >
<li><a href="servicos/informatica.html">Informática</a></li>
<li><a href="servicos/grafica.html">Gráfica</a>
<ul>
<li><a href="servicos/grafica/cartoes-de-visita.html">Cartões de visita</a></li>
<li><a href="servicos/grafica/cds-e-dvds.html">CD's e DVD's</a></li>
<li><a href="servicos/grafica/adesivos.html" class="active">ADESIVOS</a>
<li><a href="servicos/grafica/outros.html" class="active">OUTROS</a>
</ul>
</li>
<li><a href="servicos/design-grafico.html">Design Gráfico</a></li>
<li><a href="servicos/web-design.html">Web Design</a></li>
<li><a href="servicos/edicao-de-videos.html">Edição de Vídeos</a></li>
<li><a href="servicos/camisetas.html">Camisetas Personalizadas</a></li>
</ul>
</li>
<li><a href="producoes.html">produções</a>
<ul>
<li><a href="producoes/videos.html">Vídeos</a></li>
<li><a href="producoes/logomarcas.html">Logomarcas</a></li>
<li><a href="producoes/cart_visita.html">Cartões de Visita</a></li>
<li><a href="producoes/sites.html">Websites</a></li>
</ul>
</li>
<li><a href="pergunte.html">pergunte</a></li>
<li><a href="divirta-se.html">divirta-se</a></li>
<li><a href="sobre-nos.html">sobre nós</a>
<ul>
<li><a href="sobre-nos/parcerias.html">parcerias</a></li>
<li><a href="sobre-nos/o-que-e-wb-informatica.html">O que é WB Informática?</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div align="center">
<p><img src="images/cpuART.png" /></p>
<p align="center"><span class="style14">Comércio de Peças Usadas</span></p>
<p align="center">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</p>
<div id="conteudo"><!-- Aqui começa a div conteúdo -->
<div id="inserir-retratil"><!-- Aqui começa a div INSERIR POSTAGENS (RETRÁTIL) -->
<div id="retractable">
<h2>Faça sua Postagem aqui!</h2>
<div id="first" class="section">
<h3>
<a href="#first"><img src="images/plus.png" width="55" height="55" /></a> </h3>
<div>
<link href="postagem/estilo.css" rel="stylesheet" type="text/css" media="all" />
<link href="postagem/includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="postagem/includes/common/js/base.js" type="text/javascript"></script>
<script src="postagem/includes/common/js/utility.js" type="text/javascript"></script>
<script src="postagem/includes/skins/style.js" type="text/javascript"></script>
<?php echo $tNGs->displayValidationRules();?>
<script src="postagem/includes/nxt/scripts/form.js" type="text/javascript"></script>
<script src="postagem/includes/nxt/scripts/form.js.php" type="text/javascript"></script>
<script type="text/javascript">
$NXT_FORM_SETTINGS = {
duplicate_buttons: false,
show_as_grid: true,
merge_down_value: true
}
</script>
<script type="text/javascript" src="postagem/includes/common/js/sigslot_core.js"></script>
<script type="text/javascript" src="postagem/includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="postagem/includes/wdg/classes/MXWidgets.js.php"></script>
<script type="text/javascript" src="postagem/includes/wdg/classes/Calendar.js"></script>
<script type="text/javascript" src="postagem/includes/wdg/classes/SmartDate.js"></script>
<script type="text/javascript" src="postagem/includes/wdg/calendar/calendar_stripped.js"></script>
<script type="text/javascript" src="postagem/includes/wdg/calendar/calendar-setup_stripped.js"></script>
<script src="postagem/includes/resources/calendar.js"></script>
<div id="formulario">
<h2>Faça sua Postagem aqui!</h2>
<?php
echo $tNGs->getErrorMsg();
?>
<div class="KT_tng">

<div class="KT_tngform">
<form method="post" id="form1" action="<?php echo KT_escapeAttribute(KT_getFullUri()); ?>" enctype="multipart/form-data">
<?php $cnt1 = 0; ?>
<?php do { ?>
<?php $cnt1++; ?>
<?php
// Show IF Conditional region1
if (@$totalRows_rspost > 1) {
?>
<h2><?php echo NXT_getResource("Record_FH"); ?> <?php echo $cnt1; ?></h2>
<?php }
// endif Conditional region1
?>
<table cellpadding="2" cellspacing="0" class="KT_tngtable">
<tr>
<td class="KT_th"><label for="titulo_<?php echo $cnt1; ?>">Titulo:</label></td>
<td><input type="text" name="titulo_<?php echo $cnt1; ?>" id="titulo_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($row_rspost['titulo']); ?>" size="32" maxlength="50" />
<?php echo $tNGs->displayFieldHint("titulo");?> <?php echo $tNGs->displayFieldError("post", "titulo", $cnt1); ?>
<input type="hidden" name="id" value="">
<input type="hidden" name="titulo" value="">
<input type="hidden" name="autor" value="">
<input type="hidden" name="data" value="">
<input type="hidden" name="imagem" value="">
<input type="hidden" name="texto" value=""> <input type="hidden" name="MM_insert" value="form1"></td>
</td></tr></tr>
<?php
mysql_free_result($RecordsetinserirCategorias);
?>
<tr>
<td class="KT_th"><label for="autor_<?php echo $cnt1; ?>">Autor:</label></td>
<td><input type="text" name="autor_<?php echo $cnt1; ?>" id="autor_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($row_rspost['autor']); ?>" size="32" maxlength="50" />
<?php echo $tNGs->displayFieldHint("autor");?> <?php echo $tNGs->displayFieldError("post", "autor", $cnt1); ?></td>
</tr>
<!-- *********************************************************************************************** -->
<tr>
<td class="KT_th"><label for="autor_<?php echo $cnt1; ?>">categoria:</label></td>
<td><select name="categoria">
<option value="Processadores/1Geracao/CENTRINO" <?php if (!(strcmp("Processadores/1Geracao/CENTRINO", ""))) {echo "SELECTED";} ?>>Processadores/1ªGeração/CENTRINO</option>
<option value="Processadores/1Geracao/CELERON" <?php if (!(strcmp("Processadores/1Geracao/CELERON", ""))) {echo "SELECTED";} ?>>Processadores/1ªGeração/CELERON</option>
<option value="Processadores/1Geracao/PENTIUM_4" <?php if (!(strcmp("Processadores/1Geracao/PENTIUM_4", ""))) {echo "SELECTED";} ?>>Processadores/1ªGeração/PENTIUM 4</option>
<option value="Processadores/1Geracao/AMD" <?php if (!(strcmp("Processadores/1Geracao/AMD", ""))) {echo "SELECTED";} ?>>Processadores/1ªGeração/AMD</option>
<option value="Processadores/1Geracao/OUTROS" <?php if (!(strcmp("Processadores/1Geracao/OUTROS", ""))) {echo "SELECTED";} ?>>Processadores/1ªGeração/OUTROS</option>
<option value="Processadores/2Geracao/CELERON" <?php if (!(strcmp("Processadores/2Geracao/CELERON", ""))) {echo "SELECTED";} ?>>Processadores/2ªGeração/CELERON</option>
<option value="Processadores/2Geracao/PENTIUM 4" <?php if (!(strcmp("Processadores/2Geracao/PENTIUM 4", ""))) {echo "SELECTED";} ?>>Processadores/2ªGeração/PENTIUM 4</option>
<option value="Processadores/2Geracao/CORE_2_DUO" <?php if (!(strcmp("Processadores/2Geracao/CORE_2_DUO", ""))) {echo "SELECTED";} ?>>Processadores/2ªGeração/CORE 2 DUO</option>
<option value="Processadores/2Geracao/AMD" <?php if (!(strcmp("Processadores/2Geracao/AMD", ""))) {echo "SELECTED";} ?>>Processadores/2ªGeração/AMD</option>
<option value="Processadores/2Geracao/OUTROS" <?php if (!(strcmp("Processadores/2Geracao/OUTROS", ""))) {echo "SELECTED";} ?>>Processadores/2ªGeração/OUTROS</option>
<option value="Processadores/3Geracao/INTEL_i3" <?php if (!(strcmp("Processadores/3Geracao/INTEL_i3", ""))) {echo "SELECTED";} ?>>Processadores/3ªGeração/INTEL i3</option>
<option value="Processadores/3Geracao/INTEL_i5" <?php if (!(strcmp("Processadores/3Geracao/INTEL_i5", ""))) {echo "SELECTED";} ?>>Processadores/3ªGeração/INTEL i5</option>
<option value="Processadores/3Geracao/INTEL_i7" <?php if (!(strcmp("Processadores/3Geracao/INTEL_i7", ""))) {echo "SELECTED";} ?>>Processadores/3ªGeração/INTEL i7</option>
<option value="Processadores/3Geracao/AMD" <?php if (!(strcmp("Processadores/3Geracao/AMD", ""))) {echo "SELECTED";} ?>>Processadores/3ªGeração/AMD</option>
<option value="Processadores/3Geracao/OUTROS" <?php if (!(strcmp("Processadores/3Geracao/OUTROS", ""))) {echo "SELECTED";} ?>>Processadores/3ªGeração/OUTROS</option>
<option value="OUTROS_processadores" <?php if (!(strcmp("OUTROS_processadores", ""))) {echo "SELECTED";} ?>>OUTROS Processadores</option>
<option value="TELAS" <?php if (!(strcmp("TELAS", ""))) {echo "SELECTED";} ?>>TELAS</option>
<option value="CABOS" <?php if (!(strcmp("CABOS", ""))) {echo "SELECTED";} ?>>CABOS</option>
<option value="ADAPTADORES" <?php if (!(strcmp("ADAPTADORES", ""))) {echo "SELECTED";} ?>>ADAPTADORES</option>
<option value="HD/SATA" <?php if (!(strcmp("HD/SATA", ""))) {echo "SELECTED";} ?>>HD/SATA</option>
<option value="HD/IDE" <?php if (!(strcmp("HD/IDE", ""))) {echo "SELECTED";} ?>>HD/IDE</option>
<option value="PLACAS/MAE" <?php if (!(strcmp("PLACAS/MAE", ""))) {echo "SELECTED";} ?>>PLACAS/MÃE</option>
<option value="PLACAS/VIDEO" <?php if (!(strcmp("PLACAS/VIDEO", ""))) {echo "SELECTED";} ?>>PLACAS/VÍDEO</option>
<option value="PLACAS/REDE" <?php if (!(strcmp("PLACAS/REDE", ""))) {echo "SELECTED";} ?>>PLACAS/REDE</option>
<option value="PLACAS/OUTRAS" <?php if (!(strcmp("PLACAS/OUTRAS", ""))) {echo "SELECTED";} ?>>OUTRAS PLACAS</option>
<option value="COOLERS" <?php if (!(strcmp("COOLERS", ""))) {echo "SELECTED";} ?>>COOLERS</option>
<option value="ROTEADORES" <?php if (!(strcmp("ROTEADORES", ""))) {echo "SELECTED";} ?>>ROTEADORES</option>
<option value="CAIXINHAS_DE_SOM" <?php if (!(strcmp("CAIXINHAS_DE_SOM", ""))) {echo "SELECTED";} ?>>CAIXINHAS DE SOM</option>
<option value="TECLADOS" <?php if (!(strcmp("TECLADOS", ""))) {echo "SELECTED";} ?>>TECLADOS</option>
<option value="MOUSES" <?php if (!(strcmp("MOUSES", ""))) {echo "SELECTED";} ?>>MOUSES</option>
<option value="CARCACAS" <?php if (!(strcmp("CARCACAS", ""))) {echo "SELECTED";} ?>>CARCAÇAS</option>
<option value="BATERIAS" <?php if (!(strcmp("BATERIAS", ""))) {echo "SELECTED";} ?>>BATERIAS</option>
<option value="PENDRIVES" <?php if (!(strcmp("PENDRIVES", ""))) {echo "SELECTED";} ?>>PENDRIVES</option>
<option value="CARTOES_DE_MEMORIA" <?php if (!(strcmp("CARTOES_DE_MEMORIA", ""))) {echo "SELECTED";} ?>>CARTÕES DE MEMÓRIA</option>
<option value="CARREGADORES" <?php if (!(strcmp("CARREGADORES", ""))) {echo "SELECTED";} ?>>CARREGADORES</option>
<option value="FONES_DE_OUVIDO" <?php if (!(strcmp("FONES_DE_OUVIDO", ""))) {echo "SELECTED";} ?>>FONES DE OUVIDO</option>
<option value="COMPUTADORES/DESKTOP" <?php if (!(strcmp("COMPUTADORES/DESKTOP", ""))) {echo "SELECTED";} ?>>COMPUTADORES/DESKTOP</option>
<option value="COMPUTADORES/NOTEBOOK" <?php if (!(strcmp("COMPUTADORES/NOTEBOOK", ""))) {echo "SELECTED";} ?>>COMPUTADORES/NOTEBOOK</option>
<option value="COMPUTADORES/NETBOOK" <?php if (!(strcmp("COMPUTADORES/NETBOOK", ""))) {echo "SELECTED";} ?>>COMPUTADORES/NETBOOK</option>
<option value="TABLETS" <?php if (!(strcmp("TABLETS", ""))) {echo "SELECTED";} ?>>TABLETS</option>
<option value="CELULARES/ANDROID" <?php if (!(strcmp("CELULARES/ANDROID", ""))) {echo "SELECTED";} ?>>CELULARES/ANDROID</option>
<option value="CELULARES/JAVA" <?php if (!(strcmp("CELULARES/JAVA", ""))) {echo "SELECTED";} ?>>CELULARES/JAVA</option>
<option value="CELULARES/SYMBIAM_OS" <?php if (!(strcmp("CELULARES/SYMBIAM_OS", ""))) {echo "SELECTED";} ?>>CELULARES/SYMBIAM OS</option>
<option value="CELULARES/iOS_Aparelhos_APPLE" <?php if (!(strcmp("CELULARES/iOS_Aparelhos_APPLE", ""))) {echo "SELECTED";} ?>>CELULARES/iOS (Aparelhos APPLE)</option>
<option value="CELULARES/OUTROS" <?php if (!(strcmp("CELULARES/OUTROS", ""))) {echo "SELECTED";} ?>>OUTROS CELULARES</option>
<option value="DIVERSOS" <?php if (!(strcmp("DIVERSOS", ""))) {echo "SELECTED";} ?>>DIVERSOS</option>
</select><?php echo KT_escapeAttribute($row_rspost['categoria']); ?>
<?php echo $tNGs->displayFieldHint("categoria");?> <?php echo $tNGs->displayFieldError("post", "categoria", $cnt1); ?></td>
</tr>
<!-- ************************************************************************************************** -->
<tr>
<td class="KT_th"><label for="data_<?php echo $cnt1; ?>">Data:</label></td>
<td><input name="data_<?php echo $cnt1; ?>" id="data_<?php echo $cnt1; ?>" value="<?php echo KT_formatDate($row_rspost['data']); ?>" size="10" maxlength="22" wdg:mondayfirst="false" wdg:subtype="Calendar" wdg:mask="<?php echo $KT_screen_date_format; ?>" wdg:type="widget" wdg:singleclick="false" wdg:restricttomask="no" wdg:readonly="true" />
<?php echo $tNGs->displayFieldHint("data");?> <?php echo $tNGs->displayFieldError("post", "data", $cnt1); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="imagem_<?php echo $cnt1; ?>">Imagem:</label></td>
<td><input type="file" name="imagem_<?php echo $cnt1; ?>" id="imagem_<?php echo $cnt1; ?>" size="32" />
<?php echo $tNGs->displayFieldError("post", "imagem", $cnt1); ?></td>
</tr>
<tr>
<td class="KT_th"><label for="texto_<?php echo $cnt1; ?>">Texto:</label></td>
<td><textarea name="texto_<?php echo $cnt1; ?>" cols="32" rows="10" id="texto_<?php echo $cnt1; ?>"><?php echo KT_escapeAttribute($row_rspost['texto']); ?></textarea>
<?php echo $tNGs->displayFieldHint("texto");?> <?php echo $tNGs->displayFieldError("post", "texto", $cnt1); ?></td>
</tr>
</table>
<input type="hidden" name="kt_pk_post_<?php echo $cnt1; ?>" class="id_field" value="<?php echo KT_escapeAttribute($row_rspost['kt_pk_post']); ?>" />
<?php } while ($row_rspost = mysql_fetch_assoc($rspost)); ?>
<div class="KT_bottombuttons">
<div>
<?php
// Show IF Conditional region1
if (@$_GET['id'] == "") {
?>
<input type="submit" name="KT_Insert1" id="KT_Insert1" value="<?php echo NXT_getResource("Insert_FB"); ?>" />
<?php
// else Conditional region1
} else { ?>
<div class="KT_operations">
<input type="submit" name="KT_Insert1" value="<?php echo NXT_getResource("Insert as new_FB"); ?>" onClick="nxt_form_insertasnew(this, 'id')" />
</div>
<input type="submit" name="KT_Update1" value="<?php echo NXT_getResource("Update_FB"); ?>" />
<input type="submit" name="KT_Delete1" value="<?php echo NXT_getResource("Delete_FB"); ?>" onClick="return confirm('<?php echo NXT_getResource("Tem certeza que quer cancelar?"); ?>');" />
<?php }
// endif Conditional region1
?>
<input type="button" name="KT_Cancel1" value="<?php echo NXT_getResource("Cancel_FB"); ?>" onClick="return UNI_navigateCancel(event, 'cpu.php')" />
</div>
</div>
</form>
</div>

<br class="clearfixplain" />
</div>
</div>
</div>
</div>
</div>
</div><!-- Aqui termina a div INSERIR POSTAGENS (RETRÁTIL) -->
<div id="conteudo-left"><!-- Aqui começa a div ESQUERDA -->
<?php do { ?>

<div id="corpo">

<div id="boxPost">

<h2> </h2>
<p align="left"><a class="style9 style13"><?php echo $row_postagem['titulo']; ?></a></p>
<div align="left"><span>por <?php echo $row_postagem['autor']; ?> | <?php echo $row_postagem['data']; ?><br />
<br />
</span><img src="postagem/imagens/<?php echo $row_postagem['imagem']; ?>" width="500" height="400" /><span id="desc"><br />
<?php echo $row_postagem['texto']; ?></span>
<br />
<br />
</div>
</div>
</div>
<?php } while ($row_postagem = mysql_fetch_assoc($postagem)); ?>
<div id="paginas">
<table border="0">
<tr>
<td><?php if ($pageNum_postagem > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_postagem=%d%s", $currentPage, 0, $queryString_postagem); ?>"><img src="images/primeiro.png" width="47" height="41" /></a>
<?php } // Show if not first page ?></td>
<td><?php if ($pageNum_postagem > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_postagem=%d%s", $currentPage, max(0, $pageNum_postagem - 1), $queryString_postagem); ?>"><img src="images/anterior.png" width="47" height="41" /></a>
<?php } // Show if not first page ?></td>
<td><?php if ($pageNum_postagem < $totalPages_postagem) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_postagem=%d%s", $currentPage, min($totalPages_postagem, $pageNum_postagem + 1), $queryString_postagem); ?>"><img src="images/proximo.png" width="47" height="41" /></a>
<?php } // Show if not last page ?></td>
<td><?php if ($pageNum_postagem < $totalPages_postagem) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_postagem=%d%s", $currentPage, $totalPages_postagem, $queryString_postagem); ?>"><img src="images/ultimo.png" width="47" height="41" /></a>
<?php } // Show if not last page ?></td>
</tr>
</table>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center">----------------------------------------------------------------------------------------</p>
<p align="center"><strong>empresa tal © 2015 - Todos os direitos reservados.</strong></p>
</div>
</div><!-- Aqui termina a div ESQUERDA -->

<div id="conteudo-right"><!-- Aqui começa a div DIREITA -->
<style>.art-content .art-postcontent-0 .layout-item-0 { padding-right: 10px;padding-left: 10px; }
.ie7 .art-post .art-layout-cell {border:none !important; padding:0 !important; }
.ie6 .art-post .art-layout-cell {border:none !important; padding:0 !important; }
</style>
<div id="art-main">
<div class="art-sheet clearfix">
<div class="art-layout-wrapper">
<div class="art-content-layout">
<div class="art-content-layout-row">
<div class="art-layout-cell art-sidebar1">
<div class="art-vmenublock clearfix">
<div class="art-vmenublockheader">
<h3 align="left" class="t">Categorias</h3>
</div>
<div class="art-vmenublockcontent">
<ul class="art-vmenu">
<li><a href="processadores.html" class="active">Processadores</a>
<ul class="active">
<li><a href="processadores/1ª-geracao.html">1ª Geração</a>
<ul>
<li><a href="Processadores_1Geracao_CENTRINO.php">Centrino</a></li>
<li><a href="processadores/1ª-geracao/celeron.html">Celeron</a></li>
<li><a href="processadores/1ª-geracao/pentium-4.html">Pentium 4</a></li>
<li><a href="processadores/1ª-geracao/amd.html">AMD</a></li>
</ul>
</li>
<li><a href="processadores/2ª-geracao.html">2ª Geração</a>
<ul>
<li><a href="processadores/2ª-geracao/celeron.html">Celeron</a></li>
<li><a href="processadores/2ª-geracao/penium-4.html">Penium 4</a></li>
<li><a href="processadores/2ª-geracao/core-2-duo-dual-core.html">Core 2 DUO (Dual core)</a></li>
<li><a href="processadores/2ª-geracao/amd.html">AMD</a></li>
</ul>
</li>
<li><a href="processadores/3ª-geracao.html">3ª Geração</a>
<ul>
<li><a href="processadores/3ª-geracao/intel-i3.html">Intel i3</a></li>
<li><a href="processadores/3ª-geracao/intel-i5.html">Intel i5</a></li>
<li><a href="processadores/3ª-geracao/intel-i7.html">Intel i7</a></li>
<li><a href="processadores/3ª-geracao/amd.html">AMD</a></li>
</ul>
</li>
<li><a href="processadores/outros.html">OUTROS</a></li>
</ul>
</li>
<li><a href="telas.html">Telas</a></li>
<li><a href="cabos.html">Cabos</a></li>
<li><a href="adaptadores.html">Adaptadores</a></li>
<li><a href="hds.html">HD's</a>
<ul>
<li><a href="hds/sata.html">SATA</a></li>
<li><a href="hds/ide.html">IDE</a></li>
</ul>
</li>
<li><a href="memorias.html">Memórias</a>
<ul>
<li><a href="memorias/pc-100-dimm.html">PC 100 (DIMM)</a></li>
<li><a href="memorias/ddr-400.html">DDR 400</a></li>
<li><a href="memorias/ddr-2.html">DDR 2</a></li>
<li><a href="memorias/ddr-3.html">DDR 3</a></li>
<li><a href="memorias/outras.html">OUTRAS</a></li>
</ul>
</li>
<li><a href="placas.html">Placas</a>
<ul>
<li><a href="placas/placas-mae.html">Placas Mãe</a></li>
<li><a href="placas/placas-de-video.html">Placas de vídeo</a></li>
<li><a href="placas/placas-de-rede.html">Placas de Rede</a></li>
<li><a href="placas/outras.html">OUTRAS</a></li>
</ul>
</li>
<li><a href="coolers.html">Coolers</a></li>
<li><a href="roteadores.html">Roteadores</a></li>
<li><a href="caixinhas-de-som.html">Caixinhas de som</a></li>
<li><a href="teclados.html">Teclados</a></li>
<li><a href="mouses.html">Mouses</a></li>
<li><a href="carcacas.html">Carcaças</a></li>
<li><a href="baterias.html">Baterias</a></li>
<li><a href="pendrives.html">Pendrives</a></li>
<li><a href="cartoes-de-mem.html">Cartões de Mem.</a></li>
<li><a href="carregadores.html">Carregadores</a></li>
<li><a href="fones-de-ouvido.html">Fones de Ouvido</a></li>
<li><a href="computadores.html">Computadores</a>
<ul>
<li><a href="computadores/desktops.html">Desktops</a></li>
<li><a href="computadores/notebooks.html">Notebooks</a></li>
<li><a href="computadores/netbooks.html">Netbooks</a></li>
</ul>
</li>
<li><a href="tablets.html">Tablets</a></li>
<li><a href="celulares.html">Celulares</a>
<ul>
<li><a href="celulares/android.html">Android</a></li>
<li><a href="celulares/java.html">Java</a></li>
<li><a href="celulares/symbian-os.html">Symbian OS</a></li>
<li><a href="celulares/ios-aparelhos-apple.html">iOS (Aparelhos Apple)</a></li>
<li><a href="celulares/outros.html">OUTROS</a></li>
</ul>
</li>
<li><a href="diversos.html">DIVERSOS</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><!-- Aqui termina a div DIREITA -->
</div>
</div><!-- Aqui termina a div conteúdo -->
</body></html>


Se alguém poder me ajudar eu agradeço muito.