summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorEltrac Koalar <hi@guhub.cn>2020-03-30 21:28:21 +0800
committerGitHub <noreply@github.com>2020-03-30 21:28:21 +0800
commitef908c79dbab19c283dbc22f022c5c59000eddb0 (patch)
treeae4eb4c044e86eea800dcab0677cc4b70f9130df /index.php
parent6812275866e557fd1610d5c1f125ea4ca5f47650 (diff)
parenta7951777aa4316cc8e01345410d699a57ef59f86 (diff)
Merge pull request #42 from outtimes/master
pull
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 016d6f2..1dbb533 100644
--- a/index.php
+++ b/index.php
@@ -27,7 +27,7 @@ $this->need('includes/header.php');
echo $this->fields->banner();
else:
if($this->options->randomBanner==''){
- echo Utils::indexTheme('images/postbg/'); echo mt_rand(1,mt_rand(1,20)); echo '.jpg';
+ echo Utils::indexTheme('images/postbg/'); srand(mb_strlen($this->title));echo rand(1,15).'.jpg';
}
else{
$banner_url = explode(',',$this->options->randomBanner);