Request Lỗi gì đây các thím ơi

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 5

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 9


Ai biết lỗi gì không ạ? Em cài Script adult mà nó bị lỗi!

Site em đây: beststore.cc (Cê Cê)

Ai sửa đc em hậu ta cái gì cũng ok!
 

BestStore

Banned
Joined
May 16, 2015
Messages
63
Reactions
65
MR
0.000
vãi, vào file config mà sửa lại, sao lại dùng local up lên host mà không sửa


Đâu em download script vvef! chỉnh file cònfig sql. Sau đỏ cài Appserver trên vps win. Nhưng vẫn bị lỗi ở đâu ý

bác cho cái yahoo học hỏi với ạ
 
Upvote 0
config.php copy nội dung nó lên đây


<!-- http://www.SEOto.Work -->
<?php
defined('_VALID') or die('Restricted Access!');

header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

require 'debug.php';
require 'config.paths.php';
require 'config.db.php';
require 'config.local.php';
require 'config.seo.php';
require 'config.language.php';

require $config['BASE_DIR']. '/classes/timer.class.php';
require $config['BASE_DIR']. '/classes/redirect.class.php';

if ($config['splash'] == '1' && !defined('_ENTER') && !defined('_ADMIN') && !defined('_MOBILE') && !defined('_CLI')) {
if (!isset($_COOKIE['splash'])) {
VRedirect::go($config['BASE_URL']. '/enter.php');
}
}

require $config['BASE_DIR']. '/include/security.php';
require $config['BASE_DIR']. '/include/smarty/libs/Smarty.class.php';
require $config['BASE_DIR']. '/include/adodb/adodb.inc.php';
require $config['BASE_DIR']. '/include/dbconn.php';

if ( !defined('_CONSOLE') ) {
require $config['BASE_DIR']. '/include/sessions.php';
}

disableRegisterGlobals();

require $config['BASE_DIR']. '/include/function_language.php';
if (!isset($_SESSION['language'])) {
$_SESSION['language'] = $config['language'];
}

if ($config['multi_language'] && isset($_POST['language'])) {
$language = trim($_POST['language']);
if (isset($languages[$language])) {
$_SESSION['language'] = $language;
}
}
require $config['BASE_DIR']. '/language/'.$_SESSION['language'].'.lang.php';

require $config['BASE_DIR']. '/classes/remember.class.php';
if ( !defined('_CONSOLE') && $config['gzip_encoding'] == 1 ) {
ob_start();
ob_implicit_flush(0);
}

$errors = array();
$messages = array();
if ( isset($_SESSION['message']) ) {
$messages[] = $_SESSION['message'];
unset($_SESSION['message']);
}

if ( isset($_SESSION['error']) ) {
$errors[] = $_SESSION['error'];
unset($_SESSION['error']);
}

$remote_ip = ( isset($_SERVER['REMOTE_ADDR']) && long2ip(ip2long($_SERVER['REMOTE_ADDR'])) ) ? $_SERVER['REMOTE_ADDR'] : NULL;
if ( isset($_SESSION['uid']) ) {
$sid = intval($_SESSION['uid']);
if ( $remote_ip ) {
$sql = "UPDATE signup SET user_ip = '" .mysql_real_escape_string($remote_ip). "' WHERE UID = " .$sid. " LIMIT 1";
$conn->execute($sql);
}
}

if ( $remote_ip ) {
$sql = "SELECT ban_id FROM bans WHERE ban_ip = '" .mysql_real_escape_string($remote_ip). "' LIMIT 1";
$conn->execute($sql);
if ( $conn->Affected_Rows() > 0 ) {
VRedirect::go($config['BASE_URL']. '?msg=You are banned from this site!');
}
}

if ( $config['user_remember'] == '1' ) {
Remember::check();
}

require 'smarty.php';

if ( $config['submenu_tag_scroller'] == '1' ) {
$tags = array();
$sql = "SELECT keyword FROM video WHERE active = '1' ORDER BY viewnumber LIMIT 10";
$rs = $conn->execute($sql);
$rows = $rs->getrows();
foreach ( $rows as $row ) {
$tag_arr = explode(' ', $row['keyword']);
foreach ( $tag_arr as $tag ) {
if ( strlen($tag) > 3 && !in_array($tag, $tags) ) {
$tags[] = $tag;
}
}
}

$smarty->assign('scroller_content', $tags);
}

if ( isset($_SESSION['uid']) ) {
$sid = intval($_SESSION['uid']);
$sql = "UPDATE users_online SET online = '" .time(). "' WHERE UID = " .$sid. " LIMIT 1";
$conn->execute($sql);
$sql = "SELECT COUNT(UID) AS total_requests FROM friends WHERE UID = " .$sid. " AND status = 'Pending'";
$rs = $conn->execute($sql);
$requests_count = $rs->fields['total_requests'];
$sql = "SELECT COUNT(mail_id) AS total_mails FROM mail
WHERE receiver = '" .mysql_real_escape_string($_SESSION['username']). "' AND status = '1' AND readed = '0'";
$rs = $conn->execute($sql);
$mails_count = $rs->fields['total_mails'];
$smarty->assign('requests_count', $requests_count);
$smarty->assign('mails_count', $mails_count);
}

$user_permisions = array(
'watch_normal_videos',
'watch_hd_videos',
'bandwidth',
'sd_downloads',
'hd_downloads',
'mobile_downloads',
'in_player_ads',
'write_in_blog',
'upload_video',
);
$new_permisions = array();
if (!isset($_SESSION['uid'])) {
// user is guest
$type_of_user = "guest";
foreach ($user_permisions as $v) {
$new_permisions[$v] = $config['visitors_'.$v];
}

}
elseif (!isset($_SESSION['uid_premium']) && isset($_SESSION['uid'])) {
// free user
$type_of_user = "free";
foreach ($user_permisions as $v) {
$new_permisions[$v] = $config['free_'.$v];
}

}
else {
// premium user
$type_of_user = "premium";
foreach ($user_permisions as $v) {
$new_permisions[$v] = $config['premium_'.$v];
}

}
?>
 
Upvote 0
tớ thấy cái header không cần thiết bạn có thể disabled nó xem
thêm // trước dòng 5 - 9


Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 6

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at D:\AppServ\www\index.php:2) in D:\AppServ\www\include\config.php on line 8

nó hiển thị còn 3 lỗi nhưng nhấn vào link khác thì nó ra cái này

http://www.yourdomain.com/login
 
Upvote 0
//header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
//header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
//header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
//header("Cache-Control: post-check=0, pre-check=0", false);
//header("Pragma: no-cache");
Bạn mở file config.php bằng notepad ++ xong save lại với định dạng UTF8 - without BOM rồi up lên
thêm ob_start(); sau <? php
 
Upvote 0

emyeusss7

Legendary
Joined
Dec 26, 2010
Messages
2,636
Reactions
1,910
MR
40.466
$587.00
Call me! Call me! Chat with me via Yahoo Messenger Follow me on Facebook Chat with me via Skype
<!-- http://www.SEOto.Work -->
<?php
defined('_VALID') or die('Restricted Access!');

header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

require 'debug.php';
require 'config.paths.php';
require 'config.db.php';
require 'config.local.php';
require 'config.seo.php';
require 'config.language.php';

require $config['BASE_DIR']. '/classes/timer.class.php';
require $config['BASE_DIR']. '/classes/redirect.class.php';

if ($config['splash'] == '1' && !defined('_ENTER') && !defined('_ADMIN') && !defined('_MOBILE') && !defined('_CLI')) {
if (!isset($_COOKIE['splash'])) {
VRedirect::go($config['BASE_URL']. '/enter.php');
}
}

require $config['BASE_DIR']. '/include/security.php';
require $config['BASE_DIR']. '/include/smarty/libs/Smarty.class.php';
require $config['BASE_DIR']. '/include/adodb/adodb.inc.php';
require $config['BASE_DIR']. '/include/dbconn.php';

if ( !defined('_CONSOLE') ) {
require $config['BASE_DIR']. '/include/sessions.php';
}

disableRegisterGlobals();

require $config['BASE_DIR']. '/include/function_language.php';
if (!isset($_SESSION['language'])) {
$_SESSION['language'] = $config['language'];
}

if ($config['multi_language'] && isset($_POST['language'])) {
$language = trim($_POST['language']);
if (isset($languages[$language])) {
$_SESSION['language'] = $language;
}
}
require $config['BASE_DIR']. '/language/'.$_SESSION['language'].'.lang.php';

require $config['BASE_DIR']. '/classes/remember.class.php';
if ( !defined('_CONSOLE') && $config['gzip_encoding'] == 1 ) {
ob_start();
ob_implicit_flush(0);
}

$errors = array();
$messages = array();
if ( isset($_SESSION['message']) ) {
$messages[] = $_SESSION['message'];
unset($_SESSION['message']);
}

if ( isset($_SESSION['error']) ) {
$errors[] = $_SESSION['error'];
unset($_SESSION['error']);
}

$remote_ip = ( isset($_SERVER['REMOTE_ADDR']) && long2ip(ip2long($_SERVER['REMOTE_ADDR'])) ) ? $_SERVER['REMOTE_ADDR'] : NULL;
if ( isset($_SESSION['uid']) ) {
$sid = intval($_SESSION['uid']);
if ( $remote_ip ) {
$sql = "UPDATE signup SET user_ip = '" .mysql_real_escape_string($remote_ip). "' WHERE UID = " .$sid. " LIMIT 1";
$conn->execute($sql);
}
}

if ( $remote_ip ) {
$sql = "SELECT ban_id FROM bans WHERE ban_ip = '" .mysql_real_escape_string($remote_ip). "' LIMIT 1";
$conn->execute($sql);
if ( $conn->Affected_Rows() > 0 ) {
VRedirect::go($config['BASE_URL']. '?msg=You are banned from this site!');
}
}

if ( $config['user_remember'] == '1' ) {
Remember::check();
}

require 'smarty.php';

if ( $config['submenu_tag_scroller'] == '1' ) {
$tags = array();
$sql = "SELECT keyword FROM video WHERE active = '1' ORDER BY viewnumber LIMIT 10";
$rs = $conn->execute($sql);
$rows = $rs->getrows();
foreach ( $rows as $row ) {
$tag_arr = explode(' ', $row['keyword']);
foreach ( $tag_arr as $tag ) {
if ( strlen($tag) > 3 && !in_array($tag, $tags) ) {
$tags[] = $tag;
}
}
}

$smarty->assign('scroller_content', $tags);
}

if ( isset($_SESSION['uid']) ) {
$sid = intval($_SESSION['uid']);
$sql = "UPDATE users_online SET online = '" .time(). "' WHERE UID = " .$sid. " LIMIT 1";
$conn->execute($sql);
$sql = "SELECT COUNT(UID) AS total_requests FROM friends WHERE UID = " .$sid. " AND status = 'Pending'";
$rs = $conn->execute($sql);
$requests_count = $rs->fields['total_requests'];
$sql = "SELECT COUNT(mail_id) AS total_mails FROM mail
WHERE receiver = '" .mysql_real_escape_string($_SESSION['username']). "' AND status = '1' AND readed = '0'";
$rs = $conn->execute($sql);
$mails_count = $rs->fields['total_mails'];
$smarty->assign('requests_count', $requests_count);
$smarty->assign('mails_count', $mails_count);
}

$user_permisions = array(
'watch_normal_videos',
'watch_hd_videos',
'bandwidth',
'sd_downloads',
'hd_downloads',
'mobile_downloads',
'in_player_ads',
'write_in_blog',
'upload_video',
);
$new_permisions = array();
if (!isset($_SESSION['uid'])) {
// user is guest
$type_of_user = "guest";
foreach ($user_permisions as $v) {
$new_permisions[$v] = $config['visitors_'.$v];
}

}
elseif (!isset($_SESSION['uid_premium']) && isset($_SESSION['uid'])) {
// free user
$type_of_user = "free";
foreach ($user_permisions as $v) {
$new_permisions[$v] = $config['free_'.$v];
}

}
else {
// premium user
$type_of_user = "premium";
foreach ($user_permisions as $v) {
$new_permisions[$v] = $config['premium_'.$v];
}

}
?>
thêm dấu @ vào 3 dòng, 6 7 8 rùi save lại là hết
 
Upvote 0

suongmu

Senior
Joined
Aug 10, 2014
Messages
755
Reactions
345
MR
0.000
Chat with me via Skype
=)) giờ mới đóng site kiểu này. Thêm vài tuần ăn banned plugrush nữa mới có tiền được. Cố lên. Plugrush nó không kì thị wordpress đâu. Dùng đi cài thêm super cache cho đỡ sập host là xong. Theme hay dùng chiến PR là detube nhé.
 
Upvote 0

Announcements

Today's birthdays

Forum statistics

Threads
426,423
Messages
7,176,861
Members
178,861
Latest member
jolibet2com

Most viewed of week

Most viewed of week

Back
Top Bottom