<?php
///////////////////////////////////////////////////////////////////////////////////
// File: $Id: pnfunc.php,v 1.1.1.1 2003/06/08 08:48:22 //
// el_cuervo Exp Enviar sms 01/06/2006 - 23:43 $Name: Creador de Bloques //
// //
// ----------------------------------------- //
// POST-NUKE Content Management System //
// Copyright (C) 2001 by the Post-Nuke Development Team. //
// //
// http://www.postnuke.com/ //
// ----------------------------------------- //
// Based on: //
// PHP-NUKE Web Portal System - http://phpnuke.org/ //
// Thatware - http://thatware.org/ //
// ----------------------------------------- //
// LICENCIA //
// //
// Este programa es software libre. Puede redistribuirlo y/o modificarlo bajo //
// los terminos de la Licencia Publica General de GNU segun es publicada por la //
// Free Software Foundation, bien de la versiun 2 de dicha Licencia o bien //
// (segun su eleccion) de cualquier version posterior. //
// //
// Este programa se distribuye con la esperanza de que sea util, pero SIN //
// NINGUNA GARANTIA, incluso sin la garantia MERCANTIL implicita o sin //
// garantizar la CONVENIENCIA PARA UN PROPOSITO PARTICULAR. Vease la Licencia //
// Publica General de GNU para mas detalles. //
// //
// Para leer la licencia, por favor visita http://www.gnu.org/copyleft/gpl.html //
// ----------------------------------------- //
// Codigo generado con el modulo dp-Bloques - Generador de Bloques v 1.0. //
// Un modulo creado por el_cuervo. //
// http://www.dev-postnuke.com. //
// ----------------------------------------- //
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////
$blocks_modules['Enviarsms'] =
array(
'func_display' => 'blocks_Enviarsms_block',
'text_type' => 'Enviarsms',
'text_type_long' => 'Enviarsms Bloque [dev-postnuke.com]',
'allow_multiple' => false,
'form_content' => false,
'form_refresh' => false,
'show_preview' => true
);
// Seguridad
pnSecAddSchema('block_Enviarsms::', 'Block title::');
function blocks_Enviarsms_block($row)
{
if (!pnSecAuthAction(0, 'block_Enviarsms::', "$row[title]::", ACCESS_READ)) {
return;
}
$content = '';
$content .="<?";
$content .= "if (($mail)";
$content .= "&& ($numero) && ($mensaje) && ($submit)) {";
$content .= "mail(\"$numero@correo.movistar.net\",\"\",$mensaje,\"From:";
$content .= "";
$content .= "$mail\r\nReply-To: $mail\r\n\");";
$content .= "";
$content .= "echo \"<b>Mensaje enviado al servidor</b>\";";
$content .= "}";
$content .= "";
$content .= "?>";
$content .= "<form method=\"post\" action=\"sms.php\">";
$content .= "";
$content .= "<input type=\"text\" name=\"mail\" value=\"e-mail\">
";
$content .= "<input type=\"text\" name=\"numero\" value=\"numero\">
";
$content .= "";
$content .= "<input type=\"text\" name=\"mensaje\" value=\"mensaje\">
";
$content .= "<input type=\"submit\" value=\"enviar\" name=\"submit\">";
$content .= "";
$content .= "</form> ";
if (empty($row['title'])) {
$row['title'] = "Enviar sms";
}
$row['content'] = $content;
return themesideblock($row);
}
?>