Kan iemand me effe helepen

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Angelo Kreikamp

Angelo Kreikamp

06/05/2007 03:27:00
Quote Anchor link
hallo ik heb een paar fouten in mij php kom er neit achter wat het is en hoe ik het moet oplossen deze 2 fouten krijg ik

Warning: Cannot modify header information - headers already sent by (output started at /home/www/onze-hotel.freehostia.com/client.php:1) in /home/www/onze-hotel.freehostia.com/client.php on line 95

Warning: Cannot modify header information - headers already sent by (output started at /home/www/onze-hotel.freehostia.com/client.php:1) in /home/www/onze-hotel.freehostia.com/client.php on line 96

en hier het php script

Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
ob_start();
$closed       = false;
$rule_update  = 3;
$ip           = "XXXXXXXX";
$port         = XXXXXXXXX;
$name         = "OnzeHotel";
$updates      = "EventSystem soon, New Connection(20mb), Big Server Updates!";
$web          = "http://onze-hotel.freehostia.com/";
$loader       = "http://onze-hotel.freehostia.com//client.php";
$client_dcr   = "http://images.habbohotel.co.uk/dcr/release13.2_b9/habbo.dcr";
$external_texts  = "http://onzehotel.nl/hotel/gamedata/external_texts.txt";
$external_variables  = "http://onzehotel.nl/hotel/gamedata/external_variables.txt";
$online       =  @fsockopen($ip, $port, $errno, $errstr, 1);
$ips          = array('193.64.35.220', 'IP2', 'IP3');
if(in_array($REMOTE_ADDR, $ips)){ $banned = true; } else { $banned = false; }
echo "<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title>"
.$name."</title></head>
<link href='http://images.habbohotel.com/web/web-3.0.1-b19/styles/style.css' type='text/css' rel='stylesheet'/>
<script src='http://images.habbohotel.com/web/web-3.0.1-b19/js/habbo.js' language='JavaScript' type='text/javascript'></script>
<script type='text/javascript' language='javascript'>
window.onload = resizeWin;
window.onerror = function() { return true; };
window.onunload = clearOpener;
</script>
</head>"
;
if(isset($_COOKIE['accepted_rules'.$rule_update])) {
 echo "<center>
 <div id='client-topbar' style='display:none;'>
 <div class='logo' valign='center' class='habbocount'></div>
 <div class='habbocount'>
 <b>"
.$name."</b> - "; if($online) { echo "<font color='green'><b>ONLINE</b></font>"; } else { echo "<font color='red'><b>OFFLINE</b></font>"; } echo "
 </div>
 </div>
 </div>
 </center> "
;
}

echo "<body bgcolor='black' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' id='client'>
<div align='center'>"
;
if($_COOKIE['accepted_rules'.$rule_update] && $closed != "true" && $banned != "true") {
echo "
     <object classid='clsid:166B1BCA-3F9C-11CF-8075-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,8,5,1,0' id='habbo' width='720' height='540'>
       <param name='src' value='"
.$client_dcr."'>
       <param name='swRemote' value='swSaveEnabled='true' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swTitle='Habbo Hotel' swContextMenu='true' '>
       <param name='swStretchStyle' value='none'>
       <param name='swText' value=''>
       <param name='bgColor' value='#000000'>
       <param name='sw6' value='external.texts.txt="
.$external_texts."'>
       <param name='sw2' value='connection.info.host="
.$ip.";connection.info.port=".$port."
       <param name='sw4' value='connection.mus.host=game.habbohotel.co.uk;connection.mus.port=30001'>
       <param name='sw3' value='client.reload.url="
.$loader."'>
       <param name='sw1' value='site.url=http://www.habbo.ch;url.prefix="
.$loader."'>
       <param name='sw5' value='external.variables.txt="
.$external_variables."'>
       <embed src='"
.$client_dcr."' bgColor='#000000' width='720' height='540' swRemote='swSaveEnabled='true' swVolume='true' swRestart='false' swPausePlay='false' swFastForward='false' swTitle='Habbo Hotel' swContextMenu='true'' swStretchStyle='none' swText='' type='application/x-director' pluginspage='http://www.macromedia.com/shockwave/download/'
 sw6='external.texts.txt="
.$external_texts."'
 sw2='connection.info.host="
.$ip.";connection.info.port=".$port."'
 sw4='connection.mus.host=game.habbohotel.co.uk;connection.mus.port=30001'
 sw3='client.reload.url="
.$loader."'
 sw1='site.url=http://www.habbo.ch;url.prefix="
.$loader."'
 sw5='external.variables.txt="
.$external_variables."'></embed>
     </object>"
;
}
else if(!$_COOKIE['accepted_rules'.$rule_update] && $closed != "true" && $banned != "true") {
 echo "<b>Terms and Agreement</b><br>";
 echo "<br>";
 echo "You are responsible for any action that you take in use of this website.<br>";
 echo "If your action violates Federal, State, or the law of your residing country we will not be held liable to any extent.<br>";
 echo "You may use the site within the rules expressed by ".$name.", implied or not implied.<br>";
 echo "Any violation of these defined rules may result in legal action.<br>";
 echo "While the site is under construction no rules may be stated, but any laws of your residing country ARE implied.<br>";
 echo "We reserve the right to deny you access to this website and you agree to any and all terms upon using this website.<br>";
 echo "<br>";
 echo "<b>Notice of Usage</b>";
 echo "<br>";
 echo "This website may contain content which you do not agree to or may not understand.<br>";
 echo "If you persist on exploring this web domain be aware that any person or party with relation (association) to Saluke Ltd., is not allowed here.<br>";
 echo "Any person who would disclose information of this websites private features to any corporation/company or any entity (including Saluke Ltd.) are not allowed here.<br>";
 echo "This domain is privately owned and operated with no commercial application or gain.<br>";
 echo "If you use our links or downloads you fully comply and agree to any and all terms on this website.<br>";
 echo "<br>";
 echo "<b>Notice of Legality</b>";
 echo "<br>";
 echo "If any information was disclosed from this website to any corporation/company or any entity.<br>";
 echo "It would violate the terms and agreements to this website.<br>";
 echo "The information would have been obtained illegally and is not admissible in a court of law.<br>";
 echo "<br>";
 echo "<b>Notice of Personal Usage</b>";
 echo "<br>";
 echo "By accepting this agreement you become a guest to this private web domain so long as you do not violate any terms and agreements as listed.";
 echo "<br />";
 echo "<a href='".$loader."?denied=false'>Accept</a> | <a href='".$loader."?denied=true'>Denied</a>";
}

if($_GET['denied'] == "false") {
 setcookie("accepted_rules".$rule_update, "true", time()+3600);
 header("Location: ".$loader);
}
else if($_GET['denied'] == "true") {
 header("Location: http://google.com");
}

if($closed == "true") {
 echo "The server is closed, or just under updating.";
}

if($banned == "true") {
 echo "You are not allowed to see this page.";
}

if($_COOKIE['accepted_rules'.$rule_update]) {
 echo "<br>Updates: ".$updates;
}

echo "</div>
</body>
</html>"
;
ob_end_flush();
?>


ik hoop dat iemand het kan oplossen
 
PHP hulp

PHP hulp

25/12/2024 14:01:36
 
Jan Koehoorn

Jan Koehoorn

06/05/2007 04:34:00
 
Terence Hersbach

Terence Hersbach

06/05/2007 09:30:00
Quote Anchor link
lees eerst de regels eens:
http://www.phphulp.nl/faq/#26

- teveel code
- verkeerde topictitel
- eerst opzoeken

mocht je er echt niet uit komen, dan kan je , zoals de regels het beschrijven, opnieuw een topic openen
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.