This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.
а вот сам код,
<?php
//добавляем товар
define('_IN_JOHNCMS', 1);
$headmod = 'schop';
$textl = 'Добавление товара';
require_once ("../incfiles/core.php");
require_once ("../incfiles/mp3.php");
require_once ("../incfiles/class_pclzip.php");
require_once ("../incfiles/class_upload.php");
require_once ('../incfiles/head.php');
if (isset($_SESSION['vuvod']))
{
echo '<div class="error"><center>' . $_SESSION['vuvod'] .
'</center></div>';
session_unregister('vuvod');
}
if($id){
echo
"<form action='go.php?id=".$id."' method='post' enctype='multipart/form-data'>
Имя:<br/>
<input type='text' name='name'/><br/>
Старая цена:<br />
<input type='text' name='scena' size='2'/><br />
Цена:<br />
<input type='text' name='cena' size='2'/><br />
Копий:<br />
<input type='text' name='coll' size='2'/><br />
Скриншот:<br/>
<input type='file' name='screens'/><hr/>
Пример на сайте:<br /><input type='text' value='' name='prim' /><br />
Выберите товар(max $flsz кб.):<br/>
<input type='file' name='fail'/><br/>
Описание:<br/>
<textarea name='opis'></textarea><br/>
<input type='submit' value='Добавить'/><br/>
</form>";
require_once ('../incfiles/end.php');
exit;
}else{
$_SESSION['vuvod'] = 'Ошибка,файл не существует<br/>';
header("location: index.php");
require_once ('../incfiles/end.php');
exit;
}
?>