View file panel/lich.php

File size: 853B
<?php
session_start();

include "../header/config.inc.php";
include "../header/function.inc.php";
include "../header/header.inc.php";
include "../header/connect.inc.php";
include "../header/click-club.class.php";
include '../header/enter.inc.php';

$tema = htmlspecialchars(mysql_escape_string($_POST['tema']));
$message = mysql_escape_string($_POST['message']);
$mess = htmlspecialchars($message);
$mess = stripslashes($mess);
$xfile = mysql_query("SELECT * FROM `cclub_users`");
$datamsg=date("d.m.Y H:i");
do
{
 mysql_query("insert into cclub_lichka (loginot,loginto,date,status,tema,mess) VALUES ('Admin','".$udata['login']."','$datamsg','0','$tema','$mess'") or die (mysql_info());
}
while ($udata = mysql_fetch_array($xfile));

echo "Рассылка успешно завершена!<br/>";

echo "xx1111x";
include '../header/end.inc.php';
?>