[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Completely pointless example!
--------------060202020501050702010004
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Well yes, but I did think of that and added some small filters and it
stopped. Nearly all website spam includes </a> or some other
similar
marker so just filtering on that works.
(probably shouldn't of said that. awaiting incoming spam!)
James
Paul Gale wrote:
> A great way of sending SPAM ;)
>
> What happens if you're not there - does it queue them up?
>
> Paul.
>
>
>> -----Original Message-----
>> From: xap_automation@xxxxxxx
>> [mailto:xap_automation@xxxxxxx] On
Behalf Of Tim Hawes
>> Sent: 05 March 2007 09:44
>> To: xap_automation@xxxxxxx
>> Subject: Re: [xap_automation] Completely pointless example!
>>
>> James,
>>
>> What a cool feature!
>> I sent you a couple of test messages over the weekend, did you
receive
>> them?
>> The webpage on mi4 said "Failed to Send" or similar, but
the bit of
>> text underneath said "this is what just happened" and
described the
>> process you list below.
>>
>> I'm happy to test again if that helps.
>>
>> Cheers,
>>
>> Tim.
>>
>> On 3/3/07, James Traynor <james@xxxxxxx> wrote:
>>
>>> This is just little example of what could be done with xAP,
Floorplan
>>> and a bit of HTML.
>>>
>>> I have added a form to the homepage of mi4.biz where you can
enter a
>>> message for me. When you click send that message appears
instantly on
>>>
>> my
>>
>>> SLIMP3 above my monitor and this is how it works:
>>>
>>> This is the html form on the homepage:
>>>
>>> <form
action="modules.php?name=Messageexample&file=index&func=send"
>>> method="post">
>>> <input size="20"
name="stuff"><input value="Send"
>>>
>> type="submit"></form>
>>
>>> This sends the data collected from the input box to a php page
on the
>>> same server. That php page receives the data and sends it to
my home
>>>
>> via
>>
>>> another http request. The reason for doing this rather than
just
>>>
>> sending
>>
>>> the data straight to my home is that it hides my home IP
address,
>>>
>> which
>>
>>> is a good thing!
>>>
>>>
>>>
>>
$curl_handle=curl_init('<HomeIP>/custom/On_FromWeb/index.xsp?'.urlencod
>> e($stuff));
>>
>>> curl_setopt($curl_handle,CURLOPT_PORT,<Floorplan Web
Port>);
>>> curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,5);
>>> curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER,1);
>>> curl_setopt($curl_handle, CURLOPT_HEADER, false);
>>> $x=curl_exec($curl_handle);
>>>
>>>
>>> On my xAP Floorplan I have made a custom web page to receive
the data
>>> and then send the xAP.
>>>
>>> st=replace(getdata,"+"," ")
>>> msg=replace(st,"\'","'")
>>> if msg<>"" then
>>> 'send the message.display message
>>> body="display.text" & chr(10)
>>> body=body & "{" & chr(10)
>>> body=body & "Line1=Message from the web"
& chr(10)
>>> body=body & "Line2=" & msg & chr(10)
>>> body=body & "Priority=3" & chr(10)
>>> body=body & "Duration=20" & chr(10)
>>> body=body & "}" & chr(10)
>>>
x=xap.sendxap(body,"message.display","ersp.slim.server:monitor")
>>> end if
>>>
>>>
>>> Hopefully it gives a little taster of what can be done and how
easy
>>>
>> it
>>
>>> would be to extend this to send other messages and do other
>>>
>> functions.
>>
>>> So next time you're on mi4 you can say hi!
>>>
>>> Cheers
>>>
>>> James
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
--------------060202020501050702010004
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Well yes, but I did think of that and added some small filters and it
stopped. Nearly all website spam includes </a> or
some other
similar marker so just filtering on that works.<br>
(probably shouldn't of said that. awaiting incoming spam!)<br>
<br>
James<br>
<br>
Paul Gale wrote:
<blockquote
cite="mid:239FFCCB86EEA04DA6757977FA6F63B402285F@xxxxxxx"
type="cite">
<pre wrap="">A great way of sending SPAM ;)
What happens if you're not there - does it queue them up?
Paul.
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</a>
[<a class="moz-txt-link-freetext" href="mailto:xap_automation@xxxxxxx">mailto:xap_automation@xxxxxxx</a>]
On Behalf Of Tim Hawes
Sent: 05 March 2007 09:44
To: <a class="moz-txt-link-abbreviated" href="mailto:xap_automation@xxxxxxx">xap_automation@xxxxxxx</a>
Subject: Re: [xap_automation] Completely pointless example!
James,
What a cool feature!
I sent you a couple of test messages over the weekend, did you receive
them?
The webpage on mi4 said "Failed to Send" or similar, but the bit
of
text underneath said "this is what just happened" and described
the
process you list below.
I'm happy to test again if that helps.
Cheers,
Tim.
On 3/3/07, James Traynor <a class="moz-txt-link-rfc2396E"
href="mailto:james@xxxxxxx"><james@xxxxxxx></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">This is just little example of what could be
done with xAP, Floorplan
and a bit of HTML.
I have added a form to the homepage of mi4.biz where you can enter a
message for me. When you click send that message appears instantly on
</pre>
</blockquote>
<pre wrap="">my
</pre>
<blockquote type="cite">
<pre wrap="">SLIMP3 above my monitor and this is how it
works:
This is the html form on the homepage:
<form
action="modules.php?name=Messageexample&file=index&func=send"
method="post">
<input size="20"
name="stuff"><input value="Send"
</pre>
</blockquote>
<pre
wrap="">type="submit"></form>
</pre>
<blockquote type="cite">
<pre wrap="">This sends the data collected from the input
box to a php page on the
same server. That php page receives the data and sends it to my home
</pre>
</blockquote>
<pre wrap="">via
</pre>
<blockquote type="cite">
<pre wrap="">another http request. The reason for doing
this rather than just
</pre>
</blockquote>
<pre wrap="">sending
</pre>
<blockquote type="cite">
<pre wrap="">the data straight to my home is that it hides
my home IP address,
</pre>
</blockquote>
<pre wrap="">which
</pre>
<blockquote type="cite">
<pre wrap="">is a good thing!
</pre>
</blockquote>
<pre
wrap="">$curl_handle=curl_init('<HomeIP>/custom/On_FromWeb/index.xsp?'.urlencod
e($stuff));
</pre>
<blockquote type="cite">
<pre
wrap="">curl_setopt($curl_handle,CURLOPT_PORT,<Floorplan
Web Port>);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,5);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl_handle, CURLOPT_HEADER, false);
$x=curl_exec($curl_handle);
On my xAP Floorplan I have made a custom web page to receive the data
and then send the xAP.
st=replace(getdata,"+"," ")
msg=replace(st,"\'","'")
if msg<>"" then
'send the message.display message
body="display.text" & chr(10)
body=body & "{" & chr(10)
body=body & "Line1=Message from the web" &
chr(10)
body=body & "Line2=" & msg & chr(10)
body=body & "Priority=3" & chr(10)
body=body & "Duration=20" & chr(10)
body=body & "}" & chr(10)
x=xap.sendxap(body,"message.display","ersp.slim.server:monitor")
end if
Hopefully it gives a little taster of what can be done and how easy
</pre>
</blockquote>
<pre wrap="">it
</pre>
<blockquote type="cite">
<pre wrap="">would be to extend this to send other messages
and do other
</pre>
</blockquote>
<pre wrap="">functions.
</pre>
<blockquote type="cite">
<pre wrap="">So next time you're on mi4 you can say hi!
Cheers
James
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|