forked from heyman/mms-decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.php
64 lines (53 loc) · 1.86 KB
/
list.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
<?php
/**
* Copyright (C) 2004 Jonatan Heyman
*
* This file is part of MMS Decoder Example Application.
* List the MMS and their parts.
*
* MMS Decoder is free software; you can redistribute it and/or
* modify it under the terms of the Affero General Public License as
* published by Affero, Inc.; either version 1 of the License, or
* (at your option) any later version.
*
* MMS Decoder is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Affero General Public License for more details.
*
* You should have received a copy of the Affero General Public
* License in the COPYING file that comes with The Affero Project; if
* not, write to Affero, Inc., 510 Third Street, Suite 225, San
* Francisco, CA 94107 USA.
*/
require_once('config.php');
require_once('functions.php');
echo
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>MMS list</title>
</head>
<body>
This is MMS Decoder Example Application running. <br>
To send an MMS to this site, setup your phone MMSC aka. MMS Center/MMS Server/MMS Service Center to <b>http://' . $_SERVER["HTTP_HOST"] . substr($_SERVER["PHP_SELF"], 0, strlen($_SERVER["PHP_SELF"]) - 8) . 'get.php</b> and send an MMS (the number doesn\'t matter). <br><br>
To visit the homepage or download the sourcecode:<br>
<li><a href="http://heyman.info/">MMS Decoder Homepage</a>
<br><br>
Below is a list of the MMS-messages in the database.
<hr>
<br>
';
// generation time
$start = microtime(true);
db_connect();
mms_list();
db_close();
$time = microtime(true) - $start;
echo
<hr>
<i>MMS Decoder Example Aplication 0.78. MMS list generated in ' . $time . ' seconds.</i>
</body>
</html>
';
?>