* experiments on user creation... not yet ready, but maybe helpfull to others.
[citadel.git] / ctdlphp / myinfo.php
1 <?PHP
2
3         include "ctdlheader.php";
4         bbs_page_header();
5
6         echo    "This is an example of the use of " .
7                 "ctdl_get_registration_info() to display " .
8                 "your personal data.<BR><BR>\n" ;
9
10         echo    "<TABLE border=1>" .
11                 "<TR>" .
12                 "<TD><B>User</B></TD>" .
13                 "<TD><B>Room</B></TD>" .
14                 "<TD><B>Host</B></TD>" .
15                 "</TR>" ;
16
17         ctdl_goto("My Citadel Config");
18         list($num_msgs, $response, $msgs) = ctdl_msgs($_REQUEST["mode"],
19                                                         $_REQUEST["count"] );
20
21         echo "num_msgs: " . $num_msgs . "<BR>\n" ;
22         echo "response: " . htmlspecialchars($response) . "<BR>\n" ;
23
24         if ($num_msgs > 0) foreach ($msgs as $msgnum) {
25                 print_r($msgnum);
26                 $result = get_message_partlist($msgnum);
27                 if (is_array($result) &&
28                     ($result[4]=="text/vcard"))
29                 {
30                         $vcard = downoad_attachment($msgnum, $result[2]);
31
32
33                 }
34         }
35
36 ///phpinfo();
37 ///     list($num_users, $wholist) =
38 // ctdl_get_registration_info();
39 /*
40         if ($num_users > 0) foreach ($wholist as $x) {
41                 echo "<TR>";
42                 echo "<TD>", htmlspecialchars($x["user"]), "</TD>";
43                 echo "<TD>", htmlspecialchars($x["room"]), "</TD>";
44                 echo "<TD>", htmlspecialchars($x["host"]), "</TD>";
45                 echo "</TR>\n";
46         }
47 */
48         echo "</TABLE>\n";
49
50 ?>
51
52 <BR>Sample links<BR>
53 <a href="welcome.php">Page One</a><BR>
54 <a href="page3.php">Page Three</a><BR>
55
56 <?PHP
57         bbs_page_footer();
58 ?>