Kód: Vybrať všetko
ini_set('session.use_trans_sid', 0);
ini_set('session.use_cookies', 1);
ini_set('arg_separator.output', "&");
session_start();
$sid = session_id();
setcookie("lang", "sk");
$lang = "sk";Kód: Vybrať všetko
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data/wwwroot/clients/euronet/durch.sk/_subdomeny/fotopatracka/photo_coment_add.php:2) in /data/wwwroot/clients/euronet/durch.sk/_subdomeny/fotopatracka/header.php on line 8
Warning: Cannot modify header information - headers already sent by (output started at /data/wwwroot/clients/euronet/durch.sk/_subdomeny/fotopatracka/photo_coment_add.php:2) in /data/wwwroot/clients/euronet/durch.sk/_subdomeny/fotopatracka/header.php on line 11Kód: Vybrať všetko
<? include('header.php');
include('funkciephp.php');
?>
<script language="javascript" type="text/javascript">
function emoticon(text) {
text = ' ' + text + ' ';
if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos) {
var caretPos = opener.document.forms['post'].message.caretPos;
caretPos.text = caretPos.string.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
opener.document.forms['post'].message.focus();
} else {
opener.document.forms['post'].message.value += string;
opener.document.forms['post'].message.focus();
}
}
/* function vloz(string)
{
getElementById('vloz').innerHTML = string;
} */
function storeCaret(textEl) {
if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();}
</script>
<table style="margin-bottom:auto">
<tr>
<td>
<form action="photo_card_coment_inc.php" method="post" enctype="application/x-www-form-urlencoded">
<fieldset class="designed-form">
<input type="hidden" name="username" value="<? echo $_SESSION["name"]; ?>" />
<input type="hidden" name="userid" value="<? echo $_SESSION["id"]; ?>" />
<input type="hidden" name="fotoid" value="<? echo $f_u_id; ?>" />
<div>
<a href="javascript:emoticon(':)')"><img src="images/emotikons/emoti/1.gif" border="0" title="Smile" /></a>
.....................................................
<a href="javascript:emoticon('^#(^')"><img src="images/emotikons/emoti/114.gif" border="0" title="" /></a>
</div>
<p><label for="ponuka">Váš text</label><textarea name="message" rows="5" cols="40" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);"></textarea>
</p>
<div style="text-align:right"><input type="submit" value="Pridat Komnetár"></div>
</fieldset>
</form>
</td>
</tr>
</table>
<? include('footer.php');?>