slitaz-forge view people/index.php @ rev 42

people: improve main page and add profile.php info
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 30 22:33:58 2011 +0200 (2011-03-30)
parents b770976fff5d
children e2cd0a468c21
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>SliTaz People</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz people" />
8 <meta name="keywords" lang="en" content="slitaz network, slitaz developpers, slitaz contributors" />
9 <meta name="robots" content="index, follow, all" />
10 <meta name="modified" content="<?php echo (date( "Y-m-d H:i:s", getlastmod())); ?>" />
11 <meta name="author" content="Christophe Lincoln"/>
12 <link rel="shortcut icon" href="favicon.ico" />
13 <link rel="stylesheet" type="text/css" href="slitaz.css" />
14 </head>
15 <body>
17 <!-- Header -->
18 <div id="header">
19 <div id="logo"></div>
20 <div id="network">
21 <a href="http://www.slitaz.org/">
22 <img src="images/network.png" alt="network.png" /></a>
23 <a href="http://scn.slitaz.org/">Community</a>
24 <a href="http://doc.slitaz.org/">Doc</a>
25 <a href="http://forum.slitaz.org/">Forum</a>
26 <a href="http://labs.slitaz.org/issues">Bugs</a>
27 <a href="http://hg.slitaz.org/">Hg</a>
28 </div>
29 <h1><a href="http://people.slitaz.org/">SliTaz People</a></h1>
30 </div>
32 <!-- Block -->
33 <div id="block">
34 <!-- Navigation -->
35 <div id="block_nav">
36 <h4><img src="images/development.png" alt="development.png" />Developers Corner</h4>
37 <ul>
38 <li><a href="http://www.slitaz.org/en/devel/">Website devel</a></li>
39 <li><a href="http://scn.slitaz.org/">Community</a></li>
40 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
41 <li><a href="http://hg.slitaz.org/">Mercurial Repos</a></li>
42 <li><a href="http://bb.slitaz.org/">Build Bot</a></li>
43 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
44 </ul>
45 </div>
46 <!-- Information/image -->
47 <div id="block_info">
48 <h4>People</h4>
49 <p>
50 Each contributor who has access to the project main server,
51 code name <a href="http://tank.slitaz.org/">Tank</a>, can
52 have a public directory to put personal stuff related to SliTaz.
53 This Public directory can be reached with URLs in the form of:
54 http://people.slitaz.org/~name/. More information on
55 <a href="http://www.slitaz.org/">SliTaz Website</a> and
56 <a href="http://labs.slitaz.org/">SliTaz Labs</a>.
57 </p>
58 </div>
59 </div>
61 <!-- Content -->
62 <div id="content">
64 <h2>SliTaz people</h2>
66 <style type="text/css">
67 ul span {
68 color: #666;
69 font-size: 11px;
70 font-weight: normal;
71 display: block;
72 padding: 2px 0;
73 }
74 ul { list-style-type: square; }
75 ul span a { color: #666; }
76 </style>
78 <ul>
79 <?php
80 if ($handle = opendir('/home')) {
81 $scn_url = 'http://scn.slitaz.org/members';
82 while (false !== ($dir = readdir($handle))) {
83 if ($dir != "." && $dir != "..") {
84 $pub = "/home/$dir/Public";
85 $user = "$dir";
86 if (file_exists($pub)) {
87 echo " <li><a href=\"/~$user/\">$user</a>\n";
88 if (file_exists("$pub/profile.php")) {
89 require_once("$pub/profile.php");
90 echo "<span>Name: $name";
91 if (! empty($location)) {
92 echo " | Location: $location";
93 }
94 if (! empty($scn_user)) {
95 echo " | <a href=\"$scn_url/$scn_user/\">SCN activity</a>";
96 }
97 if (! empty($skills)) {
98 echo " | Skills: $skills";
99 }
100 echo "</span>";
101 if (! empty($wall)) {
102 echo "<span>$wall</span>";
103 }
104 }
105 echo "</li>";
106 }
108 }
109 }
110 closedir($handle);
111 }
112 ?>
113 </ul>
115 <!-- End of content -->
116 </div>
118 <div style="margin-top: 100px;"></div>
120 <!-- Footer -->
121 <div id="footer">
122 Copyright &copy; <span class="year"></span>
123 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
124 <a href="http://scn.slitaz.org/">Community</a>
125 <a href="http://doc.slitaz.org/">Doc</a>
126 <a href="http://forum.slitaz.org/">Forum</a>
127 <a href="http://pkgs.slitaz.org/">Packages</a>
128 <a href="http://labs.slitaz.org/issues">Bugs</a>
129 <a href="http://hg.slitaz.org/">Hg</a>
130 <p>
131 SliTaz @
132 <a href="http://twitter.com/slitaz">Twitter</a>
133 <a href="http://www.facebook.com/slitaz">Facebook</a>
134 <a href="http://distrowatch.com/slitaz">Distrowatch</a>
135 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
136 <a href="http://flattr.com/profile/slitaz">Flattr</a>
137 </p>
138 </div>
140 </body>
141 </html>