stefan1933
Registered
Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/saita.info/htdocs/index.php:1) in /var/www/virtual/saita.info/htdocs/header.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/saita.info/htdocs/index.php:1) in /var/www/virtual/saita.info/htdocs/header.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/saita.info/htdocs/index.php:1) in /var/www/virtual/saita.info/htdocs/header.php on line 5
Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/saita.info/htdocs/index.php:1) in /var/www/virtual/saita.info/htdocs/header.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at /var/www/virtual/saita.info/htdocs/index.php:1) in /var/www/virtual/saita.info/htdocs/header.php on line 7
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/virtual/saita.info/htdocs/index.php:1) in /var/www/virtual/saita.info/htdocs/header.php on line 11
header.php
Код:
<?php
header("ETag: PUB" . time());
header("Last-Modified: " . gmdate("D, d M Y H:i:s", time()-10) . " GMT");
header("Expires: " . gmdate("D, d M Y H:i:s", time() + 5) . " GMT");
header("Pragma: no-cache");
header("Cache-Control: max-age=1, s-maxage=1, no-cache, must-revalidate");
session_cache_limiter("nocache");
ob_start();
session_start();
function check_input($value)
{
$value = strip_tags($value);
$value = mysql_real_escape_string($value);
//filter all non alphanumeric characters
// allows numbers, letters and spaces only
$value = preg_replace("/[^0-9a-z _-]/i",'', $value);
return $value;
}
ob_start();
if(!isset($__installer_mode)){
require_once("inc/config.php");
// include("email.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"/></meta>
<head>
<meta name="description" content="<?=$config[MetaDesc]?>" />
<meta name="keywords" content="<?=$config[MetaWords]?>" />
<?
if(isset($_COOKIE['cookid'])){
$vid = intval($_COOKIE['cookid']);
$vgid = intval($_COOKIE['cookgid']);
$vname = check_input($_COOKIE['cookname']);
$vpass = check_input($_COOKIE['cookpass']);
$result = mysql_query("select * from users where userid='$vid' and usergid='$vgid' and username='$vname' and password='$vpass'");
if(mysql_num_rows($result) ==0) {
header("Location: logout.php");
exit;
} }
$userid=$_SESSION['userid'];
$usergid=$_SESSION['usergid'];
if (!$userid || empty($userid) || $userid==""){
$userid = $_COOKIE['cookid'];
}
if (!$usergid || empty($usergid) || $usergid==""){
$usergid = $_COOKIE['cookgid'];
}
require_once("inc/limits.php");
?>
<title><?=$site_name?></title>
<link rel="shortcut icon" href="<?=$server_url?>/i/favicon.ico" />
<link href="<?=$server_url?>/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="<?=$server_url?>/lib/cpaint2.inc.js"></script>
<script language="javascript" type="text/javascript" src="<?=$server_url?>/lib/upload.js"></script>
<script language="javascript" type="text/javascript" src="<?=$server_url?>/lib/user.js"></script>
</head>
<body>
<div id="full">
<div id="header">
<img src="<?=$server_url?>/i/logo.jpg" width="250px" alt="logo" align="left"/>
</div>
<div class="nav">
<ul>
<? if ($userid){ // member Links?>
<li><a href="<?=$server_url?>/index.php" title="Home">Начало</a></li>
<? if ($usergid=="1")
{ // admin link
?><li><a href="<?=$server_url?>/admin/index.php">Админ</a></li> <?}?>
<? if ($usergid=="2")
{ // Moderator link
?><li><a href="<?=$server_url?>/admin/index.php">Модератор</a></li> <?}?>
<?}?>
<li class="last"></li>
</ul>
<div class="clr"></div>
</div>
<div id="content">
<?if (($ads == "1" && !$userid) || ($ads == "2") ) { ?> <center> <?=$config[header]?> </center> <br /><br /> <?}?>
index.php
Код:
<? require "header.php";?>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=UTF-8"/></meta>
<div id="showform">
<div id="wrapper">
<p>
<font color="#CC0000"><b><?=$config[SiteName]?></b></font> фгфдгдсд
<font color="#CC0000"><b>Безплаен</b></font>!
</p>
<div class="featured"><br />
<?
$queryx = "select i.filename as filename, i.tn_filename as tn_filename, i.filepath as filepath, i.added as add_dt, i.ip as ip, i.filesize as filesize, sum(ih.kb) as bandwidth, count( ih.filename ) as ctr from images i left outer join imagehits ih on i.filename = ih.filename where i.prv='0' group by filename order by rand() limit 1";
$resultx = mysql_query($queryx) or die("Query failedx."); while ($line = mysql_fetch_array($resultx)) { ?>
<a href="view-<?=$line[filename]?>">
<img src="<?=$line[filepath].$line[tn_filename]?>" alt="<?=$line[filename]?>" title="<?=$line[filename]?>" class="featured" border="0" />
</a>
<?}?>
</div>
<div id="right">
<? if ($uploads == 0) {
echo "<center><b><br><br><br>Uploads are temporarily disabled by the site admin</center></b>";
}
else if ($uploads == 1 && !$userid) {
echo "<center><b><br><br><br>You have to <a href=\"register.php\" title=\"Register\">Register</a> before you will be able to upload photos.</center></b>";
}
else { ?>
<p class="title"><input type="radio" id="url1" name="url" value="1" checked="checked" onClick="return uploadfile('url1');" />From PC
<?if($userid>0 && $config[MemberUpload]=="1"){?><input type="radio" id="url2" name="url" value="2" onClick="return uploadfile('url2');" />From Link<br />
<?}if(!$userid && $config[GuestUpload]=="1"){?>
<input type="radio" id="url2" name="url" value="2" onClick="return uploadfile('url2');" />От Линк<br />
<?}?>
</p><br />
<div id="showfl">
<form name="newupload" id="newupload" method="post" target="formsubmit1" action="inc/uploader.php" enctype="multipart/form-data" onSubmit="return show_loading();">
<input type="hidden" id="countfld" value="" />
<div id="loading" ></div>
<?php /* <div id="loading" name="loading"></div> */ ?>
<iframe name="formsubmit1" width="500" height="100" id="formsubmit1"></iframe>
<div style="display:block;" id="f0"><input type="file" class="input2" size="50" name="thefile0" /><br /></div>
<div style="display:none;" id="f1"><input type="file" class="input2" size="50" name="thefile1" /><br /></div>
<div style="display:none;" id="f2"><input type="file" class="input2" size="50" name="thefile2" /><br /></div>
<div style="display:none;" id="f3"><input type="file" class="input2" size="50" name="thefile3" /><br /></div>
<div style="display:none;" id="f4"><input type="file" class="input2" size="50" name="thefile4" /><br /></div>
<div style="display:none;" id="f5"><input type="file" class="input2" size="50" name="thefile5" /><br /></div>
<div style="display:none;" id="f6"><input type="file" class="input2" size="50" name="thefile6" /><br /></div>
<div style="display:none;" id="f7"><input type="file" class="input2" size="50" name="thefile7" /><br /></div>
<div style="display:none;" id="f8"><input type="file" class="input2" size="50" name="thefile8" /><br /></div>
<div style="display:none;" id="f9"><input type="file" class="input2" size="50" name="thefile9" /><br /></div>
<div style="display:none;" id="f10"><input type="file" class="input2" size="50" name="thefile10" /><br /></div>
<div style="display:none;" id="f11"><input type="file" class="input2" size="50" name="thefile11" /><br /></div>
<div style="display:none;" id="f12"><input type="file" class="input2" size="50" name="thefile12" /><br /></div>
<div style="display:none;" id="f13"><input type="file" class="input2" size="50" name="thefile13" /><br /></div>
<div style="display:none;" id="f14"><input type="file" class="input2" size="50" name="thefile14" /><br /></div>
<br />
<p><font color="#CC0000">Мах гоолемина на файла</font>: <span class="body"><?= $max_file_size_mb ?> MB</span></p>
<br />
<p><font color="#CC0000">Разширени файлови типове</font>: <span class="body"><?= $valid_mime_types_display ?></span></p>
<br> <? if ($config[AcceptTerms]=="1"){ ?>
<p><font color="#CC0000">Условия за ползване</font>: <span class="body"><input type="checkbox" name="tos" value="agree"> Съгласен съм с <a href="terms.php" class="toplinks">Условията за ползване</a></span></p>
<br><? } ?>
<p><font color="#CC0000">Лични</font>: <span class="body"><input type="checkbox" name="prv" value="1" /> Ако избраната снимка, няма да се показват в обществената галерия. </span></p>
<br />
<div class="buttons">
<a href="javascript:void(0);" onClick="return showfile();"><img src="i/+.jpg" alt="+" class="+" title="Add more uploading slots" /></a> <input id="submit1" name="submit" value="Upload" type="image" src="i/upload.jpg" title="Upload selected photos" alt="upload" />
</div>
</form>
</div>
<div id="showurl">
<form name="newupload" id="newupload1" method="post" target="formsubmit" action="inc/uploaderurl.php" enctype="multipart/form-data" onSubmit="return show_loading1();">
<input type="hidden" id="countfldu" value="" />
<?php /* <div id="loading1" name="loading"></div> */ ?>
<div id="loading1"></div>
<iframe name="formsubmit" width="500" height="100" id="formsubmit"></iframe>
<div style="display:block;" id="u0"><b>URL :</b><input type="text" class="input2" size="50" name="thefile0" /><br /></div>
<div style="display:none;" id="u1"><input type="text" class="input2" size="50" name="thefile1" /><br /></div>
<div style="display:none;" id="u2"><input type="text" class="input2" size="50" name="thefile2" /><br /></div>
<div style="display:none;" id="u3"><input type="text" class="input2" size="50" name="thefile3" /><br /></div>
<div style="display:none;" id="u4"><input type="text" class="input2" size="50" name="thefile4" /><br /></div>
<div style="display:none;" id="u5"><input type="text" class="input2" size="50" name="thefile5" /><br /></div>
<div style="display:none;" id="u6"><input type="text" class="input2" size="50" name="thefile6" /><br /></div>
<div style="display:none;" id="u7"><input type="text" class="input2" size="50" name="thefile7" /><br /></div>
<div style="display:none;" id="u8"><input type="text" class="input2" size="50" name="thefile8" /><br /></div>
<div style="display:none;" id="u9"><input type="text" class="input2" size="50" name="thefile9" /><br /></div>
<div style="display:none;" id="u10"><input type="text" class="input2" size="50" name="thefile10" /><br /></div>
<div style="display:none;" id="u11"><input type="text" class="input2" size="50" name="thefile11" /><br /></div>
<div style="display:none;" id="u12"><input type="text" class="input2" size="50" name="thefile12" /><br /></div>
<div style="display:none;" id="u13"><input type="text" class="input2" size="50" name="thefile13" /><br /></div>
<div style="display:none;" id="u14"><input type="text" class="input2" size="50" name="thefile14" /><br /></div>
<br />
<p><font color="#CC0000">Мах гоолемина на файла</font>: <span class="body"><?= $max_file_size_mb ?> MB</span></p>
<br />
<p><font color="#CC0000">Разрешени типове файлове</font>: <span class="body"><?= $valid_mime_types_display ?></span></p>
<br> <? if ($config[AcceptTerms]=="1"){ ?>
<p><font color="#CC0000">Условия за ползване</font>: <span class="body"><input type="checkbox" name="tos" value="agree"> Съгласен съм с <a href="terms.php" class="toplinks"> Условията за ползване</a></span></p>
<br><? } ?>
<p><font color="#CC0000">Private</font>: <span class="body"><input type="checkbox" name="prv" value="1" /> </span></p>
<br />
<div class="buttons">
<a href="javascript:void(0);" onClick="return showfileu();"><img src="i/+.jpg" alt="+" class="+" /></a> <input id="submit" name="submit" value="Upload" type="image" src="i/upload.jpg" alt="upload" />
</div>
</form>
</div>
<?}?>
</div>
<p class="float"></p>
</div>
<?if (($ads == "1" && !$userid) || ($ads == "2") ) { ?> <center><br /><br /><br /> <?=$config[footer]?> </center> <br /><br /> <?}?>
</div>
<div id="showoutput">
</div>
<? require "footer.php"; ?>
+1 за които ми помогне