This commit has been accessed 288 times via Git panel.
commit d64ede449500ec053aa4dbcea1c0526aeb3c922c
tree e61478e49e3051b8c44fbfd6590f528c0a61b9a6
parent cc4b590988ab2ec3fbbd3d34c9dceca66be9e0e2
author Engels Antonio <engels@majcms.org> 1277314197 +0800
committer Engels Antonio <engels@majcms.org> 1277314197 +0800
maj-0.14-20080509-bb.zip
diff --git a/edit.php b/edit.php
index b6a8c7f..6daf675 100644
--- a/edit.php
+++ b/edit.php
@@ -116,15 +116,7 @@ p, td {
}
a {
- font-weight: <?php
- if (file_exists("data/xbold.txt")) {
- echo "normal";
- }
- else {
- echo "bold";
- }
- ?>;
-
+ font-weight: bold;
text-decoration: none;
}
diff --git a/index.php b/index.php
index 19557f0..4d8511d 100644
--- a/index.php
+++ b/index.php
@@ -691,15 +691,7 @@ p, td {
}
a {
- font-weight: <?php
- if (file_exists("data/xbold.txt")) {
- echo "normal";
- }
- else {
- echo "bold";
- }
- ?>;
-
+ font-weight: bold;
text-decoration: none;
}
@@ -751,6 +743,11 @@ a:active {
?>;
}
+a.navlink:link, a.navlink:visited, a.navlink:active, a.navlink:hover {
+ font-weight: normal;
+ text-decoration: none;
+}
+
#panel_title {
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
@@ -1225,7 +1222,7 @@ else {
?>
Profile</div>
-<div id=panel_body>
+<div id="panel_body">
<?php
if (file_exists("images/profile.gif")) {
$profile_gif_image_size = getimagesize("images/profile.gif");
@@ -1307,22 +1304,22 @@ else {
Navigation</div>
<div id=panel_body>
-<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
+<a class=navlink href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
<?php
if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
- echo '<a href=member.php?id=all>Members</a><br>';
+ echo '<a class=navlink href=member.php?id=all>Members</a><br>';
}
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo '<a href=add.php>Add Entry</a><br>';
- echo '<a href=settings.php>Settings</a><br>';
- echo '<a href=panels.php>Panels</a><br>';
- echo '<a href=cat.php>Categories</a><br>';
- echo '<a href=colors.php>Colors</a><br>';
- echo '<a href=fonts.php>Fonts</a><br>';
- echo '<a href=login.php>Logout</a>';
+ echo '<a class=navlink href=add.php>Add Entry</a><br>';
+ echo '<a class=navlink href=settings.php>Settings</a><br>';
+ echo '<a class=navlink href=panels.php>Panels</a><br>';
+ echo '<a class=navlink href=cat.php>Categories</a><br>';
+ echo '<a class=navlink href=colors.php>Colors</a><br>';
+ echo '<a class=navlink href=fonts.php>Fonts</a><br>';
+ echo '<a class=navlink href=login.php>Logout</a>';
} elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
if (file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt")) {
@@ -1333,16 +1330,16 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt")) {
- echo '<a href=add.php>Add Entry</a><br>';
+ echo '<a class=navlink href=add.php>Add Entry</a><br>';
}
- echo '<a href=options.php>Options</a><br>';
- echo '<a href=login.php>Logout</a>';
+ echo '<a class=navlink href=options.php>Options</a><br>';
+ echo '<a class=navlink href=login.php>Logout</a>';
}
else {
if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
- echo '<a href=reg.php>Register</a><br>';
+ echo '<a class=navlink href=reg.php>Register</a><br>';
}
- echo '<a href=login.php>Login</a>';
+ echo '<a class=navlink href=login.php>Login</a>';
}
?>
@@ -1396,7 +1393,7 @@ if (file_exists("data/sticky")) {
echo 'Quick Links</div>';
echo '<div id=panel_body>';
foreach ($show_sticky_list as $sticky_list_entry) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
+ echo '<a class=navlink href=' . $_SERVER['PHP_SELF'] . '?entry=';
echo $sticky_list_entry;
echo '>';
readfile("data/items/$sticky_list_entry/title.txt");
@@ -3627,7 +3624,7 @@ if (($start >= $increase) and ($start != 0)) {
if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
echo "find=filedrop&";
}
- echo "start=" . ($start-$increase) . "\"><b>previous</b></a></p></td>";
+ echo "start=" . ($start-$increase) . "\">previous</a></p></td>";
}
if ($end < sizeof($items)) {
@@ -3665,7 +3662,7 @@ if ($end < sizeof($items)) {
if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
echo "find=filedrop&";
}
- echo "start=" . ($start+$increase) . "\"><b>next</b></a></p></td>";
+ echo "start=" . ($start+$increase) . "\">next</a></p></td>";
}
?>
@@ -3736,9 +3733,9 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
if ($entry_list_pending_comment_flags != "." && $entry_list_pending_comment_flags != ".." && fnmatch("*", $entry_list_pending_comment_flags)) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments><b>';
+ echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments>';
readfile("data/items/$entry_list_pending_comment_flags/title.txt");
- echo '</b></a><br><font style="font-size: 10px; color: #999999;">';
+ echo '</a><br><font style="font-size: 10px; color: #999999;">';
$fp_comment_count_txt = fopen("data/comments/pending/$entry_list_pending_comment_flags/count.txt","r");
$comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$entry_list_pending_comment_flags/count.txt"));
fclose($fp_comment_count_txt);
@@ -3878,7 +3875,7 @@ if (($count_latest_items > 0) and (!file_exists("data/xrecent.txt") or isset($_S
}
while ($increment_recent_entries <= $show_recent_entries) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
+ echo '<a class=navlink href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
readfile("$dir/$show_latest_items[$increment_recent_entries]/title.txt");
echo '</a><br>';
$increment_recent_entries = $increment_recent_entries + 1;
@@ -3983,8 +3980,8 @@ else {
Search</div>
<form enctype="multipart/form-data" action="dig.php" method="post">
-<div id=panel_body>
-<input type=text class=search name=search autocomplete=off maxlength=55>
+<div id="panel_body">
+<input type="text" class="search" name="search" autocomplete="off" maxlength="55">
</form>
</div>
@@ -4004,15 +4001,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
echo "Find Entries</div><div id=panel_body>";
- echo "<a href=index.php?find=private>Private</a>";
+ echo "<a class=navlink href=index.php?find=private>Private</a>";
if (file_exists("data/bb.txt")) {
- echo "<br><a href=index.php?find=member>Members-Only</a>";
+ echo "<br><a class=navlink href=index.php?find=member>Members-Only</a>";
}
- echo "<br><a href=index.php?find=unfiled>Unfiled</a>";
- echo "<br><a href=index.php?find=passwd>Password Protected</a>";
- echo "<br><a href=index.php?find=comments>With Comments</a>";
- echo "<br><a href=index.php?find=filedrop>With Attached Files</a>";
- echo "<br><a href=index.php?find=album>With Photo Album</a>";
+ echo "<br><a class=navlink href=index.php?find=unfiled>Unfiled</a>";
+ echo "<br><a class=navlink href=index.php?find=passwd>Password Protected</a>";
+ echo "<br><a class=navlink href=index.php?find=comments>With Comments</a>";
+ echo "<br><a class=navlink href=index.php?find=filedrop>With Attached Files</a>";
+ echo "<br><a class=navlink href=index.php?find=album>With Photo Album</a>";
echo "</div>";
if (file_exists("data/round.txt")) {
@@ -4056,7 +4053,7 @@ if (file_exists("data/categories")) {
echo 'Categories</div><div id=panel_body>';
foreach ($show_categories as $category) {
- echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
+ echo "<a class=navlink href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
if (file_exists("data/categories/$category/title.txt")) {
$category_title = file_get_contents("data/categories/$category/title.txt");
}
@@ -4161,7 +4158,7 @@ if (file_exists("data/albums")) {
echo 'Albums</div>';
echo '<div id=panel_body>';
foreach ($show_album_list as $album_list_entry) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
+ echo '<a class=navlink href=' . $_SERVER['PHP_SELF'] . '?entry=';
echo $album_list_entry;
echo '&show=album>';
readfile("data/items/$album_list_entry/title.txt");
@@ -4233,7 +4230,7 @@ if (!file_exists("data/xrand.txt")) {
}
while ($increment_random_post_entries <= $show_random_post_entries) {
- echo "<a href=index.php?entry={$show_random_post_items[$increment_random_post_entries]}>";
+ echo "<a class=navlink href=index.php?entry={$show_random_post_items[$increment_random_post_entries]}>";
readfile("$dir/$show_random_post_items[$increment_random_post_entries]/title.txt");
echo "</a><br>";
@@ -4301,17 +4298,16 @@ if (file_exists("data/items")) {
}
echo "Archives ($count_archive_list)</div>";
- echo "<div id=panel_body>";
+ echo "<div id=\"panel_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
foreach ($unique_archive_list as $archive_list_entry) {
$archive_list_value = substr($archive_list_entry,0,6);
$archive_list_year = substr($archive_list_entry,0,4);
$archive_list_month = substr($archive_list_entry,4,2);
$archive_list_month = date("F",mktime(0,0,0,$archive_list_month));
- echo "<a href=\"index.php?archive=$archive_list_value\">$archive_list_month $archive_list_year</a> (";
- echo substr_count($archive_entries,$archive_list_entry);
- echo ")<br>";
+ $archive_list_num = substr_count($archive_entries,$archive_list_entry);
+ echo "<tr><td><a class=navlink href=\"index.php?archive=$archive_list_value\"><nobr>$archive_list_month $archive_list_year</nobr></a></td><td align=right>$archive_list_num</td></tr>";
}
- echo "</div>";
+ echo "</table></div>";
if (file_exists("data/round.txt")) {
echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
diff --git a/settings.php b/settings.php
index 8fb90bc..7565bc5 100644
--- a/settings.php
+++ b/settings.php
@@ -213,18 +213,6 @@ if (!isset($_POST['xrecent']) or empty($_POST['xrecent'])) {
}
}
-if (isset($_POST['xbold']) and !empty($_POST['xbold']) and ($_POST['xbold'] == "on") and !file_exists("data/xbold.txt")) {
- touch("data/xbold.txt");
-}
-
-if (!isset($_POST['xbold']) or empty($_POST['xbold'])) {
- if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
- if (file_exists("data/xbold.txt")) {
- unlink("data/xbold.txt");
- }
- }
-}
-
if (isset($_POST['round']) and !empty($_POST['round']) and ($_POST['round'] == "on") and !file_exists("data/round.txt")) {
touch("data/round.txt");
}
@@ -1014,10 +1002,10 @@ a:active {
<tr><td><p>ping on content change</p></td><td><input autocomplete=off class=input type=text name=ping value="<?php readfile("data/ping.txt"); ?>"></td></tr>
<tr><td rowspan=<?php
if (file_exists("data/email.txt")) {
- echo "12";
+ echo "11";
}
else {
- echo "11";
+ echo "10";
}
?>
><p>toggles</p></td><td><p><input type=checkbox name=nocomment <?php if (file_exists("data/nocomment.txt")) { echo checked; } ?>> Do not allow visitors to post comments.</p></td></tr>
@@ -1030,7 +1018,6 @@ a:active {
<tr><td><p><input type=checkbox name=xarc <?php if (file_exists("data/xarc.txt")) { echo checked; } ?>> Do not show archives panel.</p></td></tr>
<tr><td><p><input type=checkbox name=xcat <?php if (file_exists("data/xcat.txt")) { echo checked; } ?>> Do not show categories panel.</p></td></tr>
<tr><td><p><input type=checkbox name=nocat <?php if (file_exists("data/nocat.txt")) { echo checked; } ?>> Do not show categorized items with unfiled entries.</p></td></tr>
-<tr><td><p><input type=checkbox name=xbold <?php if (file_exists("data/xbold.txt")) { echo checked; } ?>> Do not make hyperlinks bold.</p></td></tr>
<tr><td><p><input type=checkbox name=round <?php if (file_exists("data/round.txt")) { echo checked; } ?>> Use round corners.</p></td></tr>
<tr><td><p><input type=checkbox name=center <?php if (file_exists("data/center.txt")) { echo checked; } ?>> Display <?php
tree e61478e49e3051b8c44fbfd6590f528c0a61b9a6
parent cc4b590988ab2ec3fbbd3d34c9dceca66be9e0e2
author Engels Antonio <engels@majcms.org> 1277314197 +0800
committer Engels Antonio <engels@majcms.org> 1277314197 +0800
maj-0.14-20080509-bb.zip
diff --git a/edit.php b/edit.php
index b6a8c7f..6daf675 100644
--- a/edit.php
+++ b/edit.php
@@ -116,15 +116,7 @@ p, td {
}
a {
- font-weight: <?php
- if (file_exists("data/xbold.txt")) {
- echo "normal";
- }
- else {
- echo "bold";
- }
- ?>;
-
+ font-weight: bold;
text-decoration: none;
}
diff --git a/index.php b/index.php
index 19557f0..4d8511d 100644
--- a/index.php
+++ b/index.php
@@ -691,15 +691,7 @@ p, td {
}
a {
- font-weight: <?php
- if (file_exists("data/xbold.txt")) {
- echo "normal";
- }
- else {
- echo "bold";
- }
- ?>;
-
+ font-weight: bold;
text-decoration: none;
}
@@ -751,6 +743,11 @@ a:active {
?>;
}
+a.navlink:link, a.navlink:visited, a.navlink:active, a.navlink:hover {
+ font-weight: normal;
+ text-decoration: none;
+}
+
#panel_title {
font-family: <?php
if (file_exists("data/fonts/panel-title.txt")) {
@@ -1225,7 +1222,7 @@ else {
?>
Profile</div>
-<div id=panel_body>
+<div id="panel_body">
<?php
if (file_exists("images/profile.gif")) {
$profile_gif_image_size = getimagesize("images/profile.gif");
@@ -1307,22 +1304,22 @@ else {
Navigation</div>
<div id=panel_body>
-<a href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
+<a class=navlink href="<?php echo $_SERVER['PHP_SELF']; ?>">Home</a><br>
<?php
if (file_exists("data/bb.txt") and file_exists("data/members/active")) {
- echo '<a href=member.php?id=all>Members</a><br>';
+ echo '<a class=navlink href=member.php?id=all>Members</a><br>';
}
if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username)) {
- echo '<a href=add.php>Add Entry</a><br>';
- echo '<a href=settings.php>Settings</a><br>';
- echo '<a href=panels.php>Panels</a><br>';
- echo '<a href=cat.php>Categories</a><br>';
- echo '<a href=colors.php>Colors</a><br>';
- echo '<a href=fonts.php>Fonts</a><br>';
- echo '<a href=login.php>Logout</a>';
+ echo '<a class=navlink href=add.php>Add Entry</a><br>';
+ echo '<a class=navlink href=settings.php>Settings</a><br>';
+ echo '<a class=navlink href=panels.php>Panels</a><br>';
+ echo '<a class=navlink href=cat.php>Categories</a><br>';
+ echo '<a class=navlink href=colors.php>Colors</a><br>';
+ echo '<a class=navlink href=fonts.php>Fonts</a><br>';
+ echo '<a class=navlink href=login.php>Logout</a>';
} elseif (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] != $login_username) and file_exists("data/members/active/{$_SESSION['logged_in']}") and file_exists("data/bb.txt")) {
if (file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt")) {
@@ -1333,16 +1330,16 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
if (file_exists("data/members/active/{$_SESSION['logged_in']}/rw.txt") or file_exists("data/members/active/{$_SESSION['logged_in']}/category.txt")) {
- echo '<a href=add.php>Add Entry</a><br>';
+ echo '<a class=navlink href=add.php>Add Entry</a><br>';
}
- echo '<a href=options.php>Options</a><br>';
- echo '<a href=login.php>Logout</a>';
+ echo '<a class=navlink href=options.php>Options</a><br>';
+ echo '<a class=navlink href=login.php>Logout</a>';
}
else {
if (file_exists("data/bb.txt") and file_exists("data/reg.txt")) {
- echo '<a href=reg.php>Register</a><br>';
+ echo '<a class=navlink href=reg.php>Register</a><br>';
}
- echo '<a href=login.php>Login</a>';
+ echo '<a class=navlink href=login.php>Login</a>';
}
?>
@@ -1396,7 +1393,7 @@ if (file_exists("data/sticky")) {
echo 'Quick Links</div>';
echo '<div id=panel_body>';
foreach ($show_sticky_list as $sticky_list_entry) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
+ echo '<a class=navlink href=' . $_SERVER['PHP_SELF'] . '?entry=';
echo $sticky_list_entry;
echo '>';
readfile("data/items/$sticky_list_entry/title.txt");
@@ -3627,7 +3624,7 @@ if (($start >= $increase) and ($start != 0)) {
if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
echo "find=filedrop&";
}
- echo "start=" . ($start-$increase) . "\"><b>previous</b></a></p></td>";
+ echo "start=" . ($start-$increase) . "\">previous</a></p></td>";
}
if ($end < sizeof($items)) {
@@ -3665,7 +3662,7 @@ if ($end < sizeof($items)) {
if (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
echo "find=filedrop&";
}
- echo "start=" . ($start+$increase) . "\"><b>next</b></a></p></td>";
+ echo "start=" . ($start+$increase) . "\">next</a></p></td>";
}
?>
@@ -3736,9 +3733,9 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
if ($dh_list_pending_comment_flags = opendir("data/comments/pending")) {
while (($entry_list_pending_comment_flags = readdir($dh_list_pending_comment_flags)) !== false) {
if ($entry_list_pending_comment_flags != "." && $entry_list_pending_comment_flags != ".." && fnmatch("*", $entry_list_pending_comment_flags)) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments><b>';
+ echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' .$entry_list_pending_comment_flags . '&show=comments>';
readfile("data/items/$entry_list_pending_comment_flags/title.txt");
- echo '</b></a><br><font style="font-size: 10px; color: #999999;">';
+ echo '</a><br><font style="font-size: 10px; color: #999999;">';
$fp_comment_count_txt = fopen("data/comments/pending/$entry_list_pending_comment_flags/count.txt","r");
$comment_count_value = fread($fp_comment_count_txt,filesize("data/comments/pending/$entry_list_pending_comment_flags/count.txt"));
fclose($fp_comment_count_txt);
@@ -3878,7 +3875,7 @@ if (($count_latest_items > 0) and (!file_exists("data/xrecent.txt") or isset($_S
}
while ($increment_recent_entries <= $show_recent_entries) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
+ echo '<a class=navlink href=' . $_SERVER['PHP_SELF'] . '?entry=' . $show_latest_items[$increment_recent_entries] . '>';
readfile("$dir/$show_latest_items[$increment_recent_entries]/title.txt");
echo '</a><br>';
$increment_recent_entries = $increment_recent_entries + 1;
@@ -3983,8 +3980,8 @@ else {
Search</div>
<form enctype="multipart/form-data" action="dig.php" method="post">
-<div id=panel_body>
-<input type=text class=search name=search autocomplete=off maxlength=55>
+<div id="panel_body">
+<input type="text" class="search" name="search" autocomplete="off" maxlength="55">
</form>
</div>
@@ -4004,15 +4001,15 @@ if (isset($_SESSION['logged_in']) and ($_SESSION['logged_in'] == $login_username
}
echo "Find Entries</div><div id=panel_body>";
- echo "<a href=index.php?find=private>Private</a>";
+ echo "<a class=navlink href=index.php?find=private>Private</a>";
if (file_exists("data/bb.txt")) {
- echo "<br><a href=index.php?find=member>Members-Only</a>";
+ echo "<br><a class=navlink href=index.php?find=member>Members-Only</a>";
}
- echo "<br><a href=index.php?find=unfiled>Unfiled</a>";
- echo "<br><a href=index.php?find=passwd>Password Protected</a>";
- echo "<br><a href=index.php?find=comments>With Comments</a>";
- echo "<br><a href=index.php?find=filedrop>With Attached Files</a>";
- echo "<br><a href=index.php?find=album>With Photo Album</a>";
+ echo "<br><a class=navlink href=index.php?find=unfiled>Unfiled</a>";
+ echo "<br><a class=navlink href=index.php?find=passwd>Password Protected</a>";
+ echo "<br><a class=navlink href=index.php?find=comments>With Comments</a>";
+ echo "<br><a class=navlink href=index.php?find=filedrop>With Attached Files</a>";
+ echo "<br><a class=navlink href=index.php?find=album>With Photo Album</a>";
echo "</div>";
if (file_exists("data/round.txt")) {
@@ -4056,7 +4053,7 @@ if (file_exists("data/categories")) {
echo 'Categories</div><div id=panel_body>';
foreach ($show_categories as $category) {
- echo "<a href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
+ echo "<a class=navlink href=\"" . $_SERVER['PHP_SELF'] . "?category=" . $category . "\">";
if (file_exists("data/categories/$category/title.txt")) {
$category_title = file_get_contents("data/categories/$category/title.txt");
}
@@ -4161,7 +4158,7 @@ if (file_exists("data/albums")) {
echo 'Albums</div>';
echo '<div id=panel_body>';
foreach ($show_album_list as $album_list_entry) {
- echo '<a href=' . $_SERVER['PHP_SELF'] . '?entry=';
+ echo '<a class=navlink href=' . $_SERVER['PHP_SELF'] . '?entry=';
echo $album_list_entry;
echo '&show=album>';
readfile("data/items/$album_list_entry/title.txt");
@@ -4233,7 +4230,7 @@ if (!file_exists("data/xrand.txt")) {
}
while ($increment_random_post_entries <= $show_random_post_entries) {
- echo "<a href=index.php?entry={$show_random_post_items[$increment_random_post_entries]}>";
+ echo "<a class=navlink href=index.php?entry={$show_random_post_items[$increment_random_post_entries]}>";
readfile("$dir/$show_random_post_items[$increment_random_post_entries]/title.txt");
echo "</a><br>";
@@ -4301,17 +4298,16 @@ if (file_exists("data/items")) {
}
echo "Archives ($count_archive_list)</div>";
- echo "<div id=panel_body>";
+ echo "<div id=\"panel_body\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">";
foreach ($unique_archive_list as $archive_list_entry) {
$archive_list_value = substr($archive_list_entry,0,6);
$archive_list_year = substr($archive_list_entry,0,4);
$archive_list_month = substr($archive_list_entry,4,2);
$archive_list_month = date("F",mktime(0,0,0,$archive_list_month));
- echo "<a href=\"index.php?archive=$archive_list_value\">$archive_list_month $archive_list_year</a> (";
- echo substr_count($archive_entries,$archive_list_entry);
- echo ")<br>";
+ $archive_list_num = substr_count($archive_entries,$archive_list_entry);
+ echo "<tr><td><a class=navlink href=\"index.php?archive=$archive_list_value\"><nobr>$archive_list_month $archive_list_year</nobr></a></td><td align=right>$archive_list_num</td></tr>";
}
- echo "</div>";
+ echo "</table></div>";
if (file_exists("data/round.txt")) {
echo '<b class="rbbottom"><b class="rb4b"></b><b class="rb3b"></b><b class="rb2b"></b><b class="rb1b"></b></b>';
diff --git a/settings.php b/settings.php
index 8fb90bc..7565bc5 100644
--- a/settings.php
+++ b/settings.php
@@ -213,18 +213,6 @@ if (!isset($_POST['xrecent']) or empty($_POST['xrecent'])) {
}
}
-if (isset($_POST['xbold']) and !empty($_POST['xbold']) and ($_POST['xbold'] == "on") and !file_exists("data/xbold.txt")) {
- touch("data/xbold.txt");
-}
-
-if (!isset($_POST['xbold']) or empty($_POST['xbold'])) {
- if (isset($_POST['edit']) and ($_POST['edit'] == "on")) {
- if (file_exists("data/xbold.txt")) {
- unlink("data/xbold.txt");
- }
- }
-}
-
if (isset($_POST['round']) and !empty($_POST['round']) and ($_POST['round'] == "on") and !file_exists("data/round.txt")) {
touch("data/round.txt");
}
@@ -1014,10 +1002,10 @@ a:active {
<tr><td><p>ping on content change</p></td><td><input autocomplete=off class=input type=text name=ping value="<?php readfile("data/ping.txt"); ?>"></td></tr>
<tr><td rowspan=<?php
if (file_exists("data/email.txt")) {
- echo "12";
+ echo "11";
}
else {
- echo "11";
+ echo "10";
}
?>
><p>toggles</p></td><td><p><input type=checkbox name=nocomment <?php if (file_exists("data/nocomment.txt")) { echo checked; } ?>> Do not allow visitors to post comments.</p></td></tr>
@@ -1030,7 +1018,6 @@ a:active {
<tr><td><p><input type=checkbox name=xarc <?php if (file_exists("data/xarc.txt")) { echo checked; } ?>> Do not show archives panel.</p></td></tr>
<tr><td><p><input type=checkbox name=xcat <?php if (file_exists("data/xcat.txt")) { echo checked; } ?>> Do not show categories panel.</p></td></tr>
<tr><td><p><input type=checkbox name=nocat <?php if (file_exists("data/nocat.txt")) { echo checked; } ?>> Do not show categorized items with unfiled entries.</p></td></tr>
-<tr><td><p><input type=checkbox name=xbold <?php if (file_exists("data/xbold.txt")) { echo checked; } ?>> Do not make hyperlinks bold.</p></td></tr>
<tr><td><p><input type=checkbox name=round <?php if (file_exists("data/round.txt")) { echo checked; } ?>> Use round corners.</p></td></tr>
<tr><td><p><input type=checkbox name=center <?php if (file_exists("data/center.txt")) { echo checked; } ?>> Display <?php