Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 10th October 2013, 01:08
R0undd R0undd is offline
Member
 
Join Date: Aug 2012
France
Posts: 7
Default changing logos (automatic)
I found this code. This is old tbdev code. Logos changes automatic.

PHP Code:
  <div id='header'>
   <
div class='statusbar'>";
   
$htmlout .= StatusBar();
  
$folder = "{$TBDEV['pic_base_url']}/logos/";
$exts = 'jpg jpeg png gif';
$files = array(); $i = -1; 
if ('' == 
$folder$folder = './';
$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== (
$file = readdir($handle))) {
foreach(
$exts as $ext) { 
if (preg_match('/\.'.
$ext.'$/i', $file$test)) { 
$files[] = $file
++
$i;
}}}
closedir(
$handle); 
mt_srand((double)microtime()*1000000); 
$rand = mt_rand(0, $i); 
  
$htmlout .= "
            
</div>
            <
div class='subheader'>
               <
div class='logo'><img src=".$folder.$files[$rand]." >
               
";
                  
    
$htmlout .= "</div
Is it possible to import this tt 2.08?
__________________
Reply With Quote
Reply

Tags
automatic , changing , logos

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:24. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.