gaim/www
Clone
Summary
Browse
Changes
Graph
Add a FAQ about the popular status and remove some stuff that should either
2006-01-24, Mark Doliner
07556e91c45a
Add a FAQ about the popular status and remove some stuff that should either
be self-evident or should be covered elsewhere in the FAQ (file transfer)
<?php
require
"base.inc.php"
;
require
"themes.inc.php"
;
require
"Table.inc.php"
;
setup_site
(
-
1
);
if
(
!
$users
->
logged_in
())
{
header
(
"Location: login.php"
);
exit
;
}
setup_site
(
"Members Area"
);
start_section
(
"The Water Cooler"
);
start_table
(
array
(
"cellspacing"
=>
0
,
"cellpadding"
=>
10
,
"border"
=>
0
));
start_tr
();
start_td
(
array
(
"valign"
=>
"top"
));
print
"<img src=
\"
/images/cool.png
\"
width=
\"
51
\"
height=
\"
76
\"
"
;
print
" border=
\"
0
\"
alt=
\"
Cool
\"
align=
\"
left
\"
/>"
;
end_td
();
start_td
();
?>
<p>
You're
here
because
you're
cool.
You
have
an
account
on
the
gaim
website.
Go
have
fun.
</p>
<ul>
<li><a
href=
"plugins.php"
>
Plugins
</a></li>
<li><a
href=
"themes.php"
>
Themes
</a></li>
</ul>
<?php
end_td
();
end_tr
();
end_table
();
end_section
();
start_section
(
"Your Themes"
);
$themes
=
new
Themes
();
$user_themes
=
$themes
->
get_users_themes
(
$users
->
get_active_user_id
());
if
(
$user_themes
==
""
)
{
print
"<i>You have no themes.</i>"
;
}
else
{
$table
=
new
Table
(
array
(
""
,
"Name"
,
"Brief Description"
,
"Version"
,
"Page Views"
,
"Downloads"
),
true
,
true
);
$table
->
set_widths
(
array
(
"20"
,
"20%"
,
"50%"
,
"10%"
,
"10%"
,
"10%"
));
$table
->
set_header_align
(
5
,
"right"
);
while
(
list
(
$id
,
$theme
)
=
each
(
$user_themes
))
{
$icon
=
$themes
->
get_icon
(
$theme
[
"THEME_ID"
]);
if
(
$icon
!=
""
)
$icon
=
"<img src=
\"
/themes/icons/
$icon
\"
border=
\"
0
\"
/>"
;
$table
->
add_row
(
array
(
$icon
,
"<a href=
\"
themes.php?action=showtheme&id=
$id
\"
>"
.
$theme
[
"NAME"
]
.
"</a>"
,
$theme
[
"BRIEF"
],
$theme
[
"VERSION"
],
$theme
[
"VIEW_COUNT"
],
$theme
[
"DOWNLOAD_COUNT"
]
),
array
(
0
,
array
(
"valign"
=>
"top"
),
array
(
"valign"
=>
"top"
),
array
(
"valign"
=>
"top"
),
array
(
"valign"
=>
"top"
,
"align"
=>
"right"
),
array
(
"valign"
=>
"top"
,
"align"
=>
"right"
)
));
}
$table
->
output_html
();
}
end_section
();
site_shutdown
();
?>