This commit has been accessed 563 times via Git panel.
commit fc0995adbb2cee77386358a4816ec4d4d06430ae
tree fdcf5d31c4175985328bc85897655d60d7e09365
parent 220f5d71bbce3597c2306c1b2f12c9ea11e76e9e
author Engels Antonio <engels@majcms.org> 1279503243 +0800
committer Engels Antonio <engels@majcms.org> 1279503243 +0800
Fix archives display toggle
diff --git a/index.php b/index.php
index 33100b1..b449098 100644
--- a/index.php
+++ b/index.php
@@ -5711,7 +5711,7 @@ if ($maj_count_albums > 0) {
}
}
-if (!file_exists("data/xrand.txt")) {
+if (!file_exists("data/xrand.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
shuffle($maj_random);
reset($maj_random);
@@ -5765,7 +5765,7 @@ if (!file_exists("data/xrand.txt")) {
<?php
-if (($maj_count_archives > 0) and ($maj_count_latest > $maj_increase) and ($maj_count_latest > 0) and (!file_exists("data/xarc.txt") or isset($_SESSION['logged_in']))) {
+if (($maj_count_archives > 0) and ($maj_count_latest > $maj_increase) and ($maj_count_latest > 0) and (!file_exists("data/xarc.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt")))) {
$maj_archive_entries = implode(" ",$maj_archives);
diff --git a/rel.txt b/rel.txt
index 9a8e6af..b6285cd 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201007190757
+201007190908
tree fdcf5d31c4175985328bc85897655d60d7e09365
parent 220f5d71bbce3597c2306c1b2f12c9ea11e76e9e
author Engels Antonio <engels@majcms.org> 1279503243 +0800
committer Engels Antonio <engels@majcms.org> 1279503243 +0800
Fix archives display toggle
diff --git a/index.php b/index.php
index 33100b1..b449098 100644
--- a/index.php
+++ b/index.php
@@ -5711,7 +5711,7 @@ if ($maj_count_albums > 0) {
}
}
-if (!file_exists("data/xrand.txt")) {
+if (!file_exists("data/xrand.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt"))) {
shuffle($maj_random);
reset($maj_random);
@@ -5765,7 +5765,7 @@ if (!file_exists("data/xrand.txt")) {
<?php
-if (($maj_count_archives > 0) and ($maj_count_latest > $maj_increase) and ($maj_count_latest > 0) and (!file_exists("data/xarc.txt") or isset($_SESSION['logged_in']))) {
+if (($maj_count_archives > 0) and ($maj_count_latest > $maj_increase) and ($maj_count_latest > 0) and (!file_exists("data/xarc.txt") or ($_SESSION['logged_in'] == file_get_contents("data/username.txt")))) {
$maj_archive_entries = implode(" ",$maj_archives);
diff --git a/rel.txt b/rel.txt
index 9a8e6af..b6285cd 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-201007190757
+201007190908