Changeset 2327 for branches

Show
Ignore:
Timestamp:
12/24/10 17:31:25 (17 months ago)
Author:
petsagouris
Message:

[Branch 1.5] Adding the png hotaru|cms badge as an embeded png. No need for the image to exist in the theme.
Also removing the comment (betrays what the code does).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/Debug.php

    r2315 r2327  
    4545                        echo $h->lang['main_hotaru_hotaru_version'].$h->version; 
    4646                        echo "</p>"; 
    47                 } elseif ($h->pageTemplate && function_exists('file_get_contents')) { 
    48  
    49                         $template = file_get_contents(THEMES.THEME.$h->pageTemplate.'.php'); 
    50  
    51                         $hlink1 = stripos($template, "href='http://hotarucms.org'"); 
    52                         $hlink2 = stripos($template, "href=\"http://hotarucms.org\""); 
    53                         if (($hlink1 === FALSE) && ($hlink2 === FALSE)) { 
    54                                 // Hotaru link removed from footer so put it back in: 
    55                                 echo '<a href="http://hotarucms.org" title="HotaruCMS.org" id="hotaru_homepage_link" style="font-size: 70%;">Powered by HotaruCMS</a>'; 
     47                         
     48                } elseif ($h->pageTemplate) { 
     49                        if (!preg_match('/href\=[\'|"]http\:\/\/hotarucms\.org[\'|"]/', file_get_contents(THEMES.THEME.$h->pageTemplate.'.php'), $m)) { 
     50                                echo '<a href="http://hotarucms.org" title="Powered by HotaruCMS"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAPCAIAAAD8q9/YAAAAiUlEQVRIx2PQcQoZUYgBiP/8+zNC 
     51EMLDgyoSRj086mHaeRguhcxAYyMbh1UWl1FkeBjNDVjtxWMCyR7G6mhcXiJGL0keRvMhpjupE8No 
     529g0GD6PFJ5U9TFIMY3UctZI0LivwZzR6J2laeBgtSvGENZULLZKSNFa9VCy0iNQ+Wi2NEA+PrLb0 
     53iEIARJkqudxxEnsAAAAASUVORK5CYII=" alt="Powered by HotaruCMS" /></a>'; 
    5654                        } 
    5755                }