Cita de: RedZer en 1 Enero 2011, 19:33 PM
tengo dudael servicio por SMS no tiene ningun costo
funciona para todos las compañias de cel, telcel,movistar etc etc
Tengo la misma duda de RedZer?...
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCita de: RedZer en 1 Enero 2011, 19:33 PM
tengo dudael servicio por SMS no tiene ningun costo
funciona para todos las compañias de cel, telcel,movistar etc etc
<title><? echo $titulo ?>-Enviar Boletin</title>
<?php
if (isset ($enviar)) {
if($enviar) {
function quitar($texto) {
$texto = trim($texto) ;
$texto = htmlspecialchars($texto) ;
return $texto ;
}
$fecha = time() - 25200 ;
$mensaje = quitar($mensaje) ;
include ("conexion.php");
$resp = mysql_query ("SELECT nick FROM usuarios where boletin='si'",$conexion);
while ($row = mysql_fetch_array ($resp)) {
$nick = $row ["nick"];
$mensaje = $_POST ["mensaje"];
}
}
else {
$remitente =Boletin ;
mysql_query("insert into mensajes (fecha,destinatario,remitente,asunto,mensaje) values ('$fecha','$nick','$remitente','Boletin','$mensaje')") ;
echo "<p>El Boletin ha sido enviado con éxito. Haz click <a href=index.php>aquí</a> para regresar." ;
}
}
else {
?>
<form action="<?php $PHP_SELF ?>" method="post">
Introduce el mensaje:<br><br>
<textarea name="mensaje" cols=30 rows=5 class="form"></textarea>
<br><br>
<input type="submit" name="enviar" value="Enviar Boletin" class="form">
</form>
<?php
}
?>
Citarcreo que deberías de re-estructurar esos campos con caracteres especiales en la base de datos...
<title><? echo $titulo; ?>-Entrar</title>
<?
include("config.php") ;
if($entrar) {
function quitar($texto) {
$texto = trim($texto) ;
$texto = htmlspecialchars($texto) ;
return $texto ;
}
$nick = quitar($nick) ;
$contrasena = quitar($contrasena) ;
$tema = quitar($tema) ;
$resp = mysql_query("select contrasena,tema from usuarios where nick='$nick'") ;
$datos = mysql_fetch_array($resp) ;
if(mysql_num_rows($resp) != 0) {
if($datos[contrasena] == $contrasena) {
setcookie("npnick",$nick,time()+3600) ;
setcookie("nptema",$tema,time()+3600) ;
header("location: index.php") ;
}
else {
echo "La contraseña es incorrecta. Haz click <a href=javascript:history.back()>aquí</a> para regresar." ;
}
}
else {
echo "Este usuario no existe en la base de datos." ;
}
}
else {
echo "
<form method=post action=index.php?id=entrar>
<b>Nick:</b><br>
<input type=text name=nick maxlength=20 class=form><br>
<b>Contraseña:</b><br>
<input type=password name=contrasena maxlength=20 class=form><br><br>
<input type=submit name=entrar value=Entrar class=form>
</form>
" ;
}
?>
<?
if($id == "") {
include("principal.php");
}
else {
if(file_exists("$id.php")) {
include("$id.php"); }
else {
include("error.php");
}
}
?>
include("principal.php");
if(file_exists("$id.php")) {
include("$id.php"); }
include("error.php");
<?
for($ienlaces=1;$ienlaces<11;$ienlaces++)
{if(file_exists("enlaces/$ienlaces.php"))
{
include ("enlaces/$ienlaces.php");
echo "<a href='enlaces.php?e=$ienlaces' target='_blank'>· $titulo_enlace</a> ($hits_enlace)<br>";
}
}
?>
for($ienlaces=1;$ienlaces<11;$ienlaces++)
{if(file_exists("enlaces/$ienlaces.php"))
include ("enlaces/$ienlaces.php");
echo "<a href='enlaces.php?e=$ienlaces' target='_blank'>· $titulo_enlace</a>
($hits_enlace)<br>";