-
Notifications
You must be signed in to change notification settings - Fork 1
/
server.php
106 lines (89 loc) · 4.1 KB
/
server.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
/*
THIS SCRIPED IS PART OF THE J-D:SIP PROJECT {PRIVATE} AND SALL NOT BE COPED
THIS IS OWNED and BUILT BY JAY-DESIGNS
MADE BY Jason ******* (OWNER)
BUILT ON MAC OS X Leopard
EDITOR:TextMate
*/
######################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
/*
//////////////
include('server.php');
$JD = new JDSIP();
$JD->att('number-to', 'message', 'subject');
/////////
*/
class JDSIP
{
var $to;
var $message;
var $subject;
var $headers;
var $formatted_number;
var $echo;
public static function att($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@txt.att.net";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an AT&T Mobile Phone";
return $echo;
}
public static function boost_mobile($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@myboostmobile.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an Boost Mobile Phone";
return $echo;
}
public static function cricket($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@mms.mycricket.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an Cricket Mobile Phone";
return $echo;
}
public static function metropcs($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@mymetropcs.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an MetroPCS Phone";
return $echo;
}
public static function tracfone($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@mmst5.tracfone.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an TracFone Phone";
return $echo;
}
public static function virgin($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@vmobl.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an Virgin Mobile Phone";
return $echo;
}
public static function sprint($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@messaging.sprintpcs.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an Sprint Mobile Phone";
return $echo;
}
public static function tmobile($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@tomomail.net";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an T-Mobile Mobile Phone";
return $echo;
}
public static function verizon($to, $message, $subject){
$headers = "From: "."\r\n"."Jay-Designs-SMS \r\n";
$formatted_number = $to."@vtext.com";
mail("$formatted_number", "$subject", "$message", "$headers");
$echo = "Sent To an Verizon Mobile Phone";
return $echo;
}
}
?>