Ignore:
Timestamp:
Feb 2, 2009, 8:21:34 PM (16 years ago)
Author:
george
Message:
  • Upraveno: Ukládání odkazovaných stránek na bannery pouze v základní ořezané formě na kořenovou složku.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/banners/banner.php

    r43 r55  
    88$Database->SelectDatabase($Config['Database']['Database']);   
    99
    10 //header('Content-Type: image/png');
     10header('Content-Type: image/png');
    1111$Referer = addslashes($_SERVER['HTTP_REFERER']);
     12$Referer = substr($Referer, strpos($Referer, '/') + 2);
     13$Referer = 'http://'.substr($Referer, 0, strpos($Referer, '/')).'/';
    1214$DbResult = mysql_query('SELECT * FROM `banner` WHERE `Web` = "'.$Referer.'"', $Database->id_connection);
    1315if(mysql_num_rows($DbResult) > 0)
Note: See TracChangeset for help on using the changeset viewer.