Foros del Web » Programando para Internet » PHP »

Necesito Ayuda porfavor

Estas en el tema de Necesito Ayuda porfavor en el foro de PHP en Foros del Web. Hola , estoy haciendo una pagina de chats , y me han pasado este codigo , pero no se que tengo que hacer con el ...
  #1 (permalink)  
Antiguo 29/06/2004, 19:23
 
Fecha de Ingreso: junio-2004
Mensajes: 7
Antigüedad: 13 años, 5 meses
Puntos: 0
Necesito Ayuda porfavor

Hola , estoy haciendo una pagina de chats , y me han pasado este codigo , pero no se que tengo que hacer con el , ni como separarlo para hacer los bloques ni nada , aver si alguno me puede ayudar a separarlo ..gracias

<?php
//PHP2MSN Chat Interface
//by Airwalk
//Please read HTML comments below for copyright information.

// Enter your website's namemb_http_input("");
mb_http_output("");
// Example:
// $name = "AirwalkLogik Chat"

$name = "NetworkXu";

// Enter your chatroom server's name
// Examples:
// $chatserver = "192.168.0.1";
// $chatserver = "silentsoftlan.servebeer.com";

$chatserver = "networkxu.no-ip.com";

// Replace the website
// to your website's homepage.

$homepage = "http://www.hwwuk.xpire.co.uk";

// Do you have a logo for your chat service?
// Enturl the URL here.
// Otherwise leave at NO

$logo = "http://www.hwwuk.xpire.co.uk/images/XuChatLogo";

//Where is your Code of Conduct located?

$cocloc = "http://www.hwwuk.xpire.co.uk/XUCOC";

//Leave these variables and code alone.
$conerr = "";
$mode = "0";
$cat = "OF";
$cattype = "(<i>Unlisted</i>)";
$hasocx = "$HTTP_COOKIE_VARS[hasOCX]";
$cocokay = "$HTTP_COOKIE_VARS[cocAgree]";
if ($hasocx != "9,02,0310,2401" && $ocxchk == "yes") {
$dodownloadocx = "YES";
}
if ($createroom != "") {
$room = $createroom;
$cat = "UC";
$mode = "1";
}
if ($customroom != "") {
$room = $customroom;
$cat = "UC";
}
if ($cocokay == "" && $cocagree == "on") {
setcookie("cocAgree", "YES");
$cocokay = "YES";
}
if ($cocokay == "" && $cocchk == "YES") {
$conerr = "You must agree to our code of conduct before joining.";
}
if ($nick == "" && $room != "") {
$conerr = "You must supply a valid nickname.";
}
if ($room == "") {
$title = "Welcome";
}
if ($room != "" && $conerr == "") {
$title = "Chatroom: $room";
} else {
$title = "Welcome";
}

//You can edit the following section:

// ****ROOM CATEGORYS****

// MP == Your chatroom category ID
// MSN2PHP Rooms = Category Discription
// Example:
// if ($cat == "MP") {
// $cattype = "(<i>MSN2PHP Rooms</i>)";
// }

if ($cat == "AD") {
$cattype = "(<i>Adult</i>)";
}

// DO NOT EDIT PAST THIS LINE
if ($cat == "UC") {
$cattype = "(<i>User-Created Room</i>)";
}
if ($cat == "OF") {
$cattype = "(<i>Official Room</i>)";
}
if ($exit == "home") {
header("Location: $homepage");
}
if ($exit == "chat") {
$room == "";
$conerr == "";
}
?>


lo pongo en varias partes por que en una sola no me deja , Por favor ayudarme
  #2 (permalink)  
Antiguo 29/06/2004, 19:27
 
Fecha de Ingreso: junio-2004
Mensajes: 7
Antigüedad: 13 años, 5 meses
Puntos: 0
Segunda parte del codigo :

<!-- DO NOT EDIT ANY CODING BELOW THIS LINE! EVERYTHING IS SET ABOVE -->
<!-- EXCEPT FOR CHATROOMS DEFINED BELOW, LOOK FOR COMMENT TAGS FOR INFO -->
<!--
<html>
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Chat</title>
<meta name="description" content="Chat with all of your buddies at this chat service.">
<meta name="keywords" content="mIRC, IRC, Chat, MSN, TechGear, scripts, Airwalk">
<meta name="author" content="Reid Burke - [email protected]">
<meta http-equiv="content-language" content="en">
<meta http-equiv="Page-Exit" content=blendTrans(Duration=1.0)>
<meta name="robots" content="index,follow">
<meta name="generator" content="Microsoft Notepad">
<meta name="copyright" content="PHP2MSN Copyright © 2003 Reid Burke and Burke Computer Company. All rights reserved. Unauthorized use prohibited.">
<style>
<!--
FONT {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
TD {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
BODY {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px; BACKGROUND: #000000}
P {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
DIV {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
INPUT {
BORDER-TOP-COLOR: #9900CC;
BORDER-LEFT-COLOR: #9900CC;
BORDER-RIGHT-COLOR: #9900CC;
BORDER-BOTTOM-COLOR: #9900CC;
BORDER-TOP-WIDTH: 1px;
BORDER-LEFT-WIDTH: 1px;
FONT-SIZE: 10px;
BORDER-BOTTOM-WIDTH: 1px;
FONT-FAMILY: Verdana,Helvetica;
BORDER-RIGHT-WIDTH: 1px;
color: #9900CC;
background-color: #9900CC;
}
TEXTAREA {
BORDER-TOP-COLOR: #9900CC;
BORDER-LEFT-COLOR: #9900CC;
BORDER-RIGHT-COLOR: #9900CC;
BORDER-BOTTOM-COLOR: #9900CC;
BORDER-TOP-WIDTH: 1px;
BORDER-LEFT-WIDTH: 1px;
FONT-SIZE: 10px;
BORDER-BOTTOM-WIDTH: 1px;
FONT-FAMILY: Verdana,Helvetica;
BORDER-RIGHT-WIDTH: 1px;
background-color: #9900CC;
color: #9900CC;
}
SELECT {
BORDER-TOP-COLOR: #9900CC;
BORDER-LEFT-COLOR: #9900CC;
BORDER-RIGHT-COLOR: #9900CC;
BORDER-BOTTOM-COLOR: #9900CC;
BORDER-TOP-WIDTH: 1px;
BORDER-LEFT-WIDTH: 1px;
FONT-SIZE: 10px;
BORDER-BOTTOM-WIDTH: 1px;
FONT-FAMILY: Verdana,Helvetica;
BORDER-RIGHT-WIDTH: 1px;
background-color: #9900CC;
color: #9900CC;
}
FORM {FONT-FAMILY: Verdana,Helvetica; FONT-SIZE: 10px}
A:link {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:active {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:visited {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
A:hover {BACKGROUND: none; COLOR: #FFFFFF; FONT-SIZE: 10px; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: underline}
body,td,th {
color: #9900CC;
}
-->
</style>
</head>
<body>
<?php
if ($logo != "NO") {
?>
<link href="http://www.hwwuk.xpire.co.uk/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style4 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
.style5 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>
<body bgcolor="#999999">
<span class="style4"><a href="<?php echo $homepage; ?>">
</span>
<center class="style4">
<span class="style5"><img src="<?php echo $logo; ?>" alt="<?php echo $name; ?>">
</span>
</center>
<span class="style5">
<?php
} else {
?>
</span>
<center class="style5"><a href="<?php echo $homepage; ?>"><h1>
<?php echo $name; ?></h1></a></center>
<span class="style5">
<?php
}
?>
</a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
if ($downwnloadocx == "YES") {

if ($room == "") {
$nexturl = "$PHP_SELF?ocxstat=loaded";
}
else {
$nexturl = "$PHP_SELF?nickname=$nick&room=$room&cat=$cat&Join =Join";
}
?>
<script language="javascript">

SetCookie("uid", "");
function SetCookie(name, value) {if (name){var never = new Date();if (value){never.setDate (31);never.setMonth (12);never.setYear (2037);}else{never.setTime(never.getTime() - 1);}
var expString = "; expires=" + never.toGMTString();document.cookie = name + "=" + escape(value) + expString + "; path=/";}}

function nextpage()
{
SetCookie("hasOCX", "9,02,0310,2401");
top.location.href = "<?php echo $nexturl; ?>";
}
</script>
</span>
<table width="100%" border=0><tr><td class="style5">
<B>We are now downloading the latest chat software provided by MSN.
</B><br><br>
If a Security Warning box like this appears, please click its <font color=#009933>
<B>Yes</B></font> button to complete the download.<br><i>
NOTE: If you click <B>No</B>, you will not be able to chat.
</i><br><br>
<font color=#009933><B>
The download is in progress.</B></font><br>
It takes approximately 2 minutes.<br>
(using a 28.8k modem)</td>
<td class="style5"><IMG src="http://chat.msn.com/en-us/images/certificate.jpg" width=206 height=140 alt="Click Yes Download MSN Chat">
<tr><td class="style5">
Click the "I See the Smiley Face" link when you see the smiley face to the right.
This will be your indication that the software has been successfully downloaded
and you are ready to begin using chat. <td class="style5"><span style="font-weight:bold"><b><span class="style5">If
you have already downloaded the software, the smiley face will appear very quickly.
</span></b><br><br>
<td class="style5"><center>
<OBJECT ID="ChatFrame"CLASSID="CLSID:F58E1CEF-A068-4c15-BA5E-587CAF3EE8C6" codebase="http://fdl.msn.com/public/chat/msnchat45.cab#Version=9,02,0310,2401" CONTROLNAME="MSNChat" WIDTH="64" HEIGHT="64" VIEWASTEXT>
<param name="ChatMode" value=3>
</OBJECT>
<br>
<A style="" href="javascript:nextpage();">I See the Smiley Face!</A><BR></center><br><br></td></tr></table>
<span class="style5">
<?php
}

if ($room != "" && $conerr == "" && $create != "true" && $dodownloadocx != "YES") {
?>
<strong>Chatting in:</strong> <?PHP echo $room; ?> <?PHP echo $cattype; ?> | <strong><a href='<?php echo "$PHP_SELF?exit=chat"; ?>'>Change Room</a></strong> | <strong><a href='<?php echo "$PHP_SELF?create=true"; ?>'>Create Room</a></strong> | <strong><a href="javascript:window.open('chatoptions.html','_ blank','toolbar=0,location=0,directories=0,status= 0,menubar=0,scrollbars=1,resizable=0,height=420,wi dth=630'); void('');">Chatroom Options</a></strong> | <strong><a href="<?php echo $homepage; ?>">Exit Chat</a></strong>
</div>
<OBJECT ID="ChatFrame" CLASSID="CLSID:F58E1CEF-A068-4c15-BA5E-587CAF3EE8C6" width="100%" standby="Loading the MSN Chat Controls..." CODEBASE="http://fdl.msn.com/public/chat/msnchat45.cab#Version=9,02,0310,2401">
<PARAM name="_cx" value="19368">
<PARAM name="_cy" value="12330">
<PARAM name="RoomName" value="<?php echo $room; ?>">
<PARAM name="NickName" value="<?php echo $nick; ?>">
<PARAM name="Server" value="<?php echo $chatserver; ?>">
<PARAM name="Category" value="<?php echo $cat; ?>">
<PARAM name="CreationModes" value="nt">
<PARAM name="BaseURL" value="<?php echo $homepage; ?>">
<PARAM name="URLBack" value='<?php echo "$PHP_SELF?exit=chat"; ?>'>
<PARAM name="ChatHome" value="<?php echo $homepage; ?>">
<PARAM name="CreateRoom" value='<?php echo "$PHP_SELF?create=true"; ?>'>
<PARAM name="WhisperContent" value="">
<PARAM name="UpSell" value="">
<PARAM name="ResDLL" value="">
<PARAM name="ButtonTextColor" value="0">
<PARAM name="ButtonBackColor" value="16350833">
<PARAM name="ButtonFrameColor" value="16750949">
<PARAM name="BackColor" value="16518264">
<PARAM name="InputBorderColor" value="13505365">
<PARAM name="BackHighlightColor" value="15159425">
<PARAM name="TopBackHighlightColor" value="16777215">
<PARAM name="MessageOfTheDay" value="<B>Welcome to the <?php echo $name; ?> chat service!</B> We do not monitor or endorse any activities on this server. Use at your own risk.
<?php
if ($cocchk == "YES" ) {
?>
Your use of this server constitutes agreement of our Code of Conduct at <?php echo $cocloc; ?>">
<?php
} else {
?>
">
<?php
}
?>
<PARAM name="AuditMessage" value="The MSN Chat Control has detected you are connecting from <B>%1</B>.[/color][/color]">
<PARAM name="ChatMode" value="<?php echo $mode; ?>">
<PARAM name="Feature" value="4">
<strong>Error:</strong> You are using a browser that does not support ActiveX. You must use Microsoft Internet Explorer to use webchat. <i>If you're on IE, the control isn't downloading or you canceled the download. <a href='<?php echo"$PHP_SELF?dosownloadocx=yes"; ?>'>Click here to retry the download process</a></i>
</OBJECT>
<!-- END GENERATED CHAT CONTROL -->
<script language="JavaScript">
function fnResize() {
iAdj = 90;
newheight=document.body.clientHeight-iAdj;if (newheight<252)newheight=252;document.all("ChatFra me").style.pixelHeight=newheight;}window.onresize= fnResize;fnResize();
</script>
<?php
}
if ($room == "" && $create != "true" && $dodownloadocx != "YES") {
?>
<br>
</span>
<center class="style5">
<h3>Welcome to the <u><?php echo $name; ?> Chat Service</u>.</h3>
<?php
if ($conerr != "") {
echo "<br><font color=red><strong>Error:</strong> $conerr</font>";
}
?>
</center>
<span class="style5"><br>
Select a room and a nickname and click Join, or <a href='<?php echo "$PHP_SELF?create=true"; ?>'>Create a New Chatroom</a>.<br>
</span>
<form action="<?php echo $PHP_SELF; ?>" method="post" name="join" class="style5">
<table border=0 bgcolor="#CCCCCC">
<tr><td bgcolor="#CCCCCC">
<p>Select Chatroom:
<td bgcolor="#CCCCCC">
<select name="room">
  #3 (permalink)  
Antiguo 29/06/2004, 19:28
 
Fecha de Ingreso: junio-2004
Mensajes: 7
Antigüedad: 13 años, 5 meses
Puntos: 0
tercera parte del codigo :

<!-- ************************************************** ************************************************** ****************

DEFINE OFFICIAL LISTED CHAT ROOMS HERE
************************************************** ************************************************** **************** -->
<!-- To list a chatroom, use the following format

<option value="ActualChannel">The Actual Channel Name
Where ActualChannel is the IRC channel (ie %#AcutalChannel)
and "The Actual Channel Name" is the discriptive name of the chatroom

Note chats listed here will appear as "registered" in the chatroom.
-->
<option value="XuLobby">XuLobby
<option value="HWWUK">Hot Wet Wild UK
<option value="XuTeens" selected>Xu Teen Chat
<!-- <option value="Cafe">The Cafe
<!-- <option value="PoolParty">Pool Party>
<!-- <option value="HelpDesk">Help Desk
<!-- ************************************************** ************************************************** ****************
END OF DEFINED OFFICIAL LISTED CHAT ROOMS
DO NOT EDIT BELOW THIS LINE!!
************************************************** ************************************************** **************** -->
</select>
<tr><td bgcolor="#CCCCCC">
Enter a User-Created Chat Name here:<td bgcolor="#CCCCCC"><input name="customroom" type="text" id="customroom" value="<?php if ($cat != "WC") { echo $room; } ?>">
<a href="javascript:alert('Use the box to enter the name of a user-created chatroom')">What's This?</a>
<tr><td bgcolor="#CCCCCC">
Nickname:
<td bgcolor="#CCCCCC">
<input name="nick" type="text" id="nick" value="<?php echo $nick; ?>">
<tr bgcolor="#CCCCCC"><td colspan=2>
<?php
if ($cocchk != "NO") {
?>
<input type=checkbox name="cocagree" id="cocagree"> I agree to the terms of <?php echo $name; ?>'s Code of Conduct available <a href="<?php echo $cocloc; ?>">here</a>.
<?php
}
?>
<br><center><input name="Join" type="submit" id="Join" value="Join">
</center>
</td></tr></table>
</p>
</form>
<span class="style5"><br>
<?php
}

if ($create == "true") {
?>
<b>Create your own chatroom!</b><br>
<br>

<form name="create" action="<?php echo $PHP_SELF; ?>">
</span>
<table border=0>
<tr><td bgcolor="#CCCCCC" class="style5">
Enter your new Chatroom's Name:
<td bgcolor="#CCCCCC" class="style5"> <input name="createroom" type="text" id="createroom">
<a href="javascript:alert('Simply fill in the name of your new chatroom in this box, select a nickname and click Join. You chatroom will be instantly created. If you want others to join your room, tell them to go to this website and fill in your chatroom\'s name in the Enter a Custom Chatroom Name box.\n\nTo become owner in a script/webchat, use your UD1 registry key. For help with this, please join the room HelpDesk')">Need Help?</a>
<tr><td bgcolor="#CCCCCC" class="style5">
Nickname:
<td bgcolor="#CCCCCC" class="style5">
<input name="nick" type="text" id="nick" value="">
<tr bgcolor="#CCCCCC"><td colspan=2 class="style5">
<?php
if ($cocchk != "NO") {
?>
<input type=checkbox name="cocagree" id="cocagree"> I agree to the terms of <?php echo $name; ?>'s Code of Conduct available <a href="<?php echo $cocloc; ?>">here</a>.
<?php
}
?>
<br>
<center><input name="Join" type="submit" id="Join" value="Create Chatroom"></center>
</td></tr></table>
<span class="style5"><br>
<a href="<?php echo $PHP_SELF; ?>?exit=chat">Go Back</a><br>
<br>
<?php
}
?>
</span>
<center class="style5"><a href="javascript:alert('PHP2MSN\nignitionServer Chatroom Interface\n\nMade by Airwalk aka Reid Burke ([email protected])\nCopyright © 2003 Reid Burke and/or Burke Computer. All rights reserved.\n\nThis service uses the MSN Chat Control. Used with permission. Copyright © 1997-2003 Microsoft Coproration.\nThe MSN butterfly logo is a trademark of Microsoft Corporation.\n\nThis service is powered by the IRC Server ignitionServer by SilentSoft.')">Powered by the PHP2MSN Chat Interface</a> and <a href="http://www.silentsoft.net">ignitionServer</a>. | <a href="<?php echo $homepage; ?>">Back to Home</a></center>
</body>
</html>


Por favor ai alguien sabe como ayudarme que me agregue al messenger o que me diga como separarlo todo , este es mi messenger : [email protected]

Gracias
  #4 (permalink)  
Antiguo 29/06/2004, 20:44
 
Fecha de Ingreso: enero-2002
Mensajes: 4.156
Antigüedad: 15 años, 11 meses
Puntos: 21
weeeeeekkkkk !!! quede mareado de tanta cosa, por que no mejor nos das el link de donde lo bajaste para que analicemos, tal véz haya instrucciones o algun how to, y sobre eso porderte orientar.

Saludos.
  #5 (permalink)  
Antiguo 30/06/2004, 04:00
 
Fecha de Ingreso: junio-2004
Mensajes: 7
Antigüedad: 13 años, 5 meses
Puntos: 0
Hola , aqui esta el link de donde lo saque :

http://www.airwalklogik.com/forums/viewtopic.php?t=6

Gracias por ayudarme Elalux
  #6 (permalink)  
Antiguo 30/06/2004, 04:13
Avatar de yeta  
Fecha de Ingreso: enero-2004
Mensajes: 148
Antigüedad: 13 años, 10 meses
Puntos: 0
pero si te dice todo lo que tienes que hacer!!!
mira los comentarios, no hay mas truco...leete algun manual....un readme...leeme.....cosas de esas....
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 03:19.