/[projects]/misc/horsensspejder-web/send.php
ViewVC logotype

Annotation of /misc/horsensspejder-web/send.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2125 - (hide annotations) (download)
Wed Mar 12 19:30:05 2014 UTC (10 years, 3 months ago) by torben
File size: 510 byte(s)
initial import
1 torben 2125 <?php
2    
3     require("inc/mysql.php");
4     require("inc/sendmessages.php");
5     require("header.php");
6    
7     $to = trim( $_POST["to"] );
8     $msg = trim( $_POST["msg"] );
9    
10     if ($to == "")
11     die(" modtager ikke angivet");
12    
13     if ($msg == "")
14     die(" besked ikke angivet");
15    
16     $cc = substr($to,0,2);
17    
18     if ( $cc != "45") {
19     $to = "45" . $to;
20     }
21    
22     $msg = escape_string($msg);
23     $sql = "insert into outbox(receiver,message,status,statustime) values('$to','$msg','NEW', now() )";
24     squery($sql);
25    
26     sendmessages();
27    
28     echo "ok";
29    
30     require("footer.php");
31    
32     ?>

  ViewVC Help
Powered by ViewVC 1.1.20