Zou fijn zijn als iemand me helpt
en ik wil neit doorgelinkt woorden naar jullie FAQ
want die snap ik neit en ik weet niks van php
ik weet aleen dat ik graag hulp wil en niet een faq
word door gestuurd want dan weet in nog niks!
en die XXXXX is geheim die zijn van mij
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)
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
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();
?>
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();
?>
en ik wil neit doorgelinkt woorden naar jullie FAQ
want die snap ik neit en ik weet niks van php
ik weet aleen dat ik graag hulp wil en niet een faq
word door gestuurd want dan weet in nog niks!
want ik wil gewoon de oplossing help me gewoon en ik snap
Die FAQ neit.
Staat er een enter of een spatie of iets dergelijks bovenaan het script?
Zo ja, haal deze eens weg.
ok en hij werkt nog niet :S
FAQ #2
Je verzend output voordat de headers zijn verzonden. Dat mag niet, eerst alle headers verzamelen en dan pas versturen. Ob_start() vind ik persoonlijk geen mooie oplossing om dat te omzeilen.
edit:
Zonder naar je opbouw gekeken te hebben, probeer het volgende stuk code eens helemaal bovenaan te plaatsen, vlak onder of in de plaats van ob_start():
Vergeet dat stukje code ook niet weg te halen (in de buurt van regel 90).
Als dat niet werkt, moet je alle echo's weghalen. Dat kan je pas doen als je, zoals ik al zei, de headers heb verzonden.
Je verzend output voordat de headers zijn verzonden. Dat mag niet, eerst alle headers verzamelen en dan pas versturen. Ob_start() vind ik persoonlijk geen mooie oplossing om dat te omzeilen.
edit:
Zonder naar je opbouw gekeken te hebben, probeer het volgende stuk code eens helemaal bovenaan te plaatsen, vlak onder of in de plaats van ob_start():
Code (php)
Vergeet dat stukje code ook niet weg te halen (in de buurt van regel 90).
Als dat niet werkt, moet je alle echo's weghalen. Dat kan je pas doen als je, zoals ik al zei, de headers heb verzonden.
Gewijzigd op 01/01/1970 01:00:00 door Winston Smith
dit laat geen errors meer zien
zet dit bovenaan je pagina's
Gewijzigd op 01/01/1970 01:00:00 door menno
menno schreef op 06.05.2007 19:09:
of je doet
dit laat geen errors meer zien
zet dit bovenaan je pagina's
dit laat geen errors meer zien
zet dit bovenaan je pagina's
a) Verschrikkelijk lelijke en verkeerde oplossing. Zo leer je de verkeerde manier van programmeren aan.
b) Dan zal zijn script nog niet werken, want de headers worden nog steeds niet gewijzigd/verzonden.
en dan nog iets nu doet hij het aar dat online oflin e ding niet alss is open en hij geef aan ofline
setcookie("accepted_rules".$rule_update, "true", time()+3600);
header("Location: ".$loader);
} else if($_GET['denied'] == "true") {
header("Location: http://google.com");
}
dit moet voor een 'echo' komen.
hoebedoel je dit
Angelo Kreikamp schreef op 06.05.2007 19:23:
en dan nog iets nu doet hij het aar dat online oflin e ding niet alss is open en hij geef aan ofline
Ik hoop voor je dat er mensen zijn die snappen wat je hier bedoelt, maar ik snap er echt niets van.
Andersom wil wel.
Nu zou je als test het volgende kunnen doen:
Jan Koehoorn schreef op 06.05.2007 20:09:
Ik hoop voor je dat er mensen zijn die snappen wat je hier bedoelt, maar ik snap er echt niets van.
Angelo Kreikamp schreef op 06.05.2007 19:23:
en dan nog iets nu doet hij het aar dat online oflin e ding niet alss is open en hij geef aan ofline
Ik hoop voor je dat er mensen zijn die snappen wat je hier bedoelt, maar ik snap er echt niets van.
Misschien een idee om eens een spellingchecker te implementeren die ook leestekens plaatst op de juiste plaats, hoofdletters etc.
Het nederlandse taalniveau vliegt hier duidelijk omlaag.. ;-(
Gewijzigd op 01/01/1970 01:00:00 door Marcel K
dat online offline script bedoel ik die werkt nu niet