Add css classes for grouplist.php and improve css for header.php and tail.inc.
This commit is contained in:
parent
5ff97edc36
commit
a2bd90b9c2
|
@ -5,8 +5,7 @@ include "../spoolnews/newsportal.php";
|
|||
$title .= ' - Available Newsgroups';
|
||||
include "head.inc";
|
||||
|
||||
echo '<center>';
|
||||
echo '<h3>List of Available Newsgroups:</h3>';
|
||||
echo '<div class="grouplist_header_title">List of Available Newsgroups:</div>';
|
||||
|
||||
// Use cache if new enough
|
||||
if (filemtime($grouplist_cache_filename) > (time() - $grouplist_cache_time)) {
|
||||
|
@ -20,12 +19,12 @@ if (filemtime($grouplist_cache_filename) > (time() - $grouplist_cache_time)) {
|
|||
}
|
||||
|
||||
ob_start();
|
||||
echo '<table border="1">';
|
||||
echo '<table class="grouplist_table">';
|
||||
echo '<tr>';
|
||||
echo '<th>Section</th>';
|
||||
echo '<th>Group</th>';
|
||||
echo '<th>Description</th>';
|
||||
echo '<th>Messages</th>';
|
||||
echo '<th class="grouplist_title_section_name">Section</th>';
|
||||
echo '<th class="grouplist_title_newsgroup_name">Group</th>';
|
||||
echo '<th class="grouplist_title_newsgroup_desc">Description</th>';
|
||||
echo '<th class="grouplist_title_newsgroup_artnum">Messages</th>';
|
||||
echo '</tr>';
|
||||
|
||||
$menulist = get_section_menu_array();
|
||||
|
@ -46,7 +45,6 @@ foreach ($menulist as $menu) {
|
|||
}
|
||||
}
|
||||
}
|
||||
//ksort($groups_array);
|
||||
|
||||
$ns = nntp_open();
|
||||
foreach ($groups_array as $thisgroup) {
|
||||
|
@ -58,13 +56,13 @@ foreach ($groups_array as $thisgroup) {
|
|||
} else {
|
||||
$title = '';
|
||||
}
|
||||
echo '<tr><td style="text-align: center">';
|
||||
echo ' <font size=4>' . $section[0] . '</font> ';
|
||||
echo '</td><td>';
|
||||
echo '<font size=5><a href="/' . $thisgroup . '">' . urldecode($group[1]) . "</a></font><br />\r\n";
|
||||
echo '<tr><td class="grouplist_row_section_name">';
|
||||
echo ' ' . $section[0];
|
||||
echo '</td><td class="grouplist_row_newsgroup_name">';
|
||||
echo '<a href="/' . $thisgroup . '">' . urldecode($group[1]) . "</a><br>\r\n";
|
||||
echo '</td>';
|
||||
echo '<td>' . $title . '</td>';
|
||||
echo '<td>';
|
||||
echo '<td class="grouplist_row_newsgroup_desc">' . $title . '</td>';
|
||||
echo '<td class="grouplist_row_newsgroup_artnum">';
|
||||
# Check if group exists. Open it if it does
|
||||
fputs($ns, "group " . urldecode($group[1]) . "\r\n");
|
||||
$response = line_read($ns);
|
||||
|
@ -77,9 +75,8 @@ foreach ($groups_array as $thisgroup) {
|
|||
}
|
||||
nntp_close($ns);
|
||||
echo '</table>';
|
||||
echo '<br />';
|
||||
echo '<br>';
|
||||
include "../spoolnews/tail.inc";
|
||||
echo '</center>';
|
||||
echo '</body></html>';
|
||||
file_put_contents($grouplist_cache_filename, ob_get_contents());
|
||||
ob_end_flush();
|
||||
|
|
|
@ -60,10 +60,8 @@ echo '</head><body>';
|
|||
class="responsive_image"></a></td>
|
||||
<td class="header_page_title_top">
|
||||
<?php echo $CONFIG['rslight_title']; ?>
|
||||
|
||||
</p>
|
||||
</td>
|
||||
<td align="right">
|
||||
<td class="header_links_text">
|
||||
<?php
|
||||
if (isset($user) && $user && check_unread_mail() == true) {
|
||||
$unread = true;
|
||||
|
@ -135,15 +133,19 @@ if (!isset($OVERRIDES['disable_msgid_search']) || $OVERRIDES['disable_msgid_sear
|
|||
echo '<input name="id" type="text" id="id" size="40" maxlength="120"> ';
|
||||
echo '<input type="submit" name="Submit" value="Lookup"></form></td>';
|
||||
echo '</tr>';
|
||||
echo '</table><br />';
|
||||
echo '</table><br>';
|
||||
}
|
||||
}
|
||||
|
||||
// Soup...Uh, Message of the Day
|
||||
if ($unread) {
|
||||
$motd = '<center>*** You have unread mail. <a href="../spoolnews/mail.php">Click Here</a> ***</center>';
|
||||
$motd = '*** You have unread mail. <a href="../spoolnews/mail.php">Click Here</a> ***';
|
||||
echo '<div class="np_display_motd_new_mail">';;
|
||||
} else {
|
||||
echo '<div class="np_display_motd">';
|
||||
}
|
||||
echo '<div class="np_display_motd">' . $motd . '</div>';
|
||||
echo $motd;
|
||||
echo '</div>';
|
||||
|
||||
function check_unread_mail()
|
||||
{
|
||||
|
|
|
@ -244,6 +244,10 @@
|
|||
background: var(--color-visited);
|
||||
}
|
||||
|
||||
.header_links_text {
|
||||
text-align:right
|
||||
}
|
||||
|
||||
.np_header_bar_top {
|
||||
background: var(--color-header-background);
|
||||
padding: 1px;
|
||||
|
@ -393,6 +397,105 @@ textarea.configuration {
|
|||
resize: none;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.tail_footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.tail_server_pubkey_txt {
|
||||
font-size: 0.5em;
|
||||
}
|
||||
|
||||
.tail_links_text {
|
||||
font-size: 0.4em;
|
||||
}
|
||||
|
||||
/* Grouplist */
|
||||
|
||||
.grouplist_table {
|
||||
text-align: center;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
border-collapse: collapse;
|
||||
border-top: 1px;
|
||||
}
|
||||
|
||||
.grouplist_header_title {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
text-align: center;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.grouplist_title_section_name {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_title_newsgroup_name {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_title_newsgroup_desc {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_title_newsgroup_artnum {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_row_section_name {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
text-align: center;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_row_newsgroup_name {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_row_newsgroup_desc {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.grouplist_row_newsgroup_artnum {
|
||||
font-size: 1.2em;
|
||||
border: 1px solid var(--color-text);
|
||||
border-collapse: collapse;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
/* Mobile Styles */
|
||||
@media only screen and (max-device-width: 480px) {
|
||||
body {
|
||||
|
@ -838,6 +941,19 @@ table.np_results_table {
|
|||
font-size: 0.55em;
|
||||
}
|
||||
|
||||
/* display motd (new mail) */
|
||||
.np_display_motd_new_mail {
|
||||
margin-top: 10;
|
||||
margin-bottom: 10;
|
||||
margin-right: 10;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: var(--color-highlight);
|
||||
text-align: center;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 0.55em;
|
||||
}
|
||||
|
||||
/* unsubscribe/new links in groups page */
|
||||
.np_group_user_tools {
|
||||
margin-top: 3;
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
<?php
|
||||
echo '<center>';
|
||||
echo '<div class="tail_footer">';
|
||||
$pubkeyfile = '../pubkey/server_pubkey.txt';
|
||||
if(is_file($pubkeyfile)) {
|
||||
echo '<font size="1.5em">';
|
||||
echo '<div class="tail_server_pubkey_txt">';
|
||||
echo '<a href="../pubkey/server_pubkey.txt" target=_blank>server_pubkey.txt</a>';
|
||||
echo '<br />';
|
||||
echo '</font>';
|
||||
echo '<br>';
|
||||
echo '</div>';
|
||||
}
|
||||
echo '<font size="1em">';
|
||||
echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank><img src="/common/images/footer.png"></a><br />';
|
||||
echo '<div class="tail_links_text">';
|
||||
echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank><img src="/common/images/footer.png" alt="logo"></a><br>';
|
||||
echo '<i>rocksolid light</i> '.$rslight_version;
|
||||
echo '<br />';
|
||||
echo '<br>';
|
||||
echo '<a href="https://gitlab.com/rslight-public/rocksolid-light" target=_blank>clearnet</a>';
|
||||
echo ' ';
|
||||
echo '<a href="http://git.fwfwqtpi2ofmehzdxe3e2htqfmhwfciwivpnsztv7dvpuamhr72ktlqd.onion/novabbs/rocksolid-light" target=_blank>tor</a>';
|
||||
echo '</font>';
|
||||
echo '</center>';
|
||||
?>
|
||||
echo '</div>';
|
||||
echo '</div>';
|
Loading…
Reference in New Issue