Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-29, 01:37:06

Author Topic: Kloxo-MR login page shows notice on only one background  (Read 3036 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Refresh login page about 50 times and you will see.

This refers to line:

$selimg = $dirs[$selnum];


Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Kloxo-MR login page shows notice on only one background
« Reply #1 on: 2014-02-02, 15:04:06 »
Confirmed, only took 7 ;)
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo-MR login page shows notice on only one background
« Reply #2 on: 2014-02-03, 04:31:36 »
Maybe certain png files.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Kloxo-MR login page shows notice on only one background
« Reply #3 on: 2014-02-03, 16:44:46 »
Maybe certain png files.

Maybe. Do you confirm this issue ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo-MR login page shows notice on only one background
« Reply #4 on: 2014-02-03, 17:19:29 »
Have your login's have content of:
Code: [Select]
// MR -- trick to make random background for login
if ((file_exists($path)) && (!file_exists("./.norandomimage"))) {
try {
$dirs = glob("{$path}/*");

$count = count($dirs);
$selnum = rand(1, $count);

$selimg = $dirs[$selnum];

$bckgrnd = "\tbackground-image: url({$selimg});\n".
"\tbackground-size: cover;\n".
"\tbackground-attachment: fixed;";
} catch (exception $e) {
// no action -- that mean using 'default' bckgrnd
}
}
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.03 seconds with 18 queries.

web stats analysis