Changeset 7401


Ignore:
Timestamp:
10/26/10 16:00:33 (9 years ago)
Author:
repie38
Message:

Case sensitive url for admin css in some environement.
added anti-hack method in maintain.inc.php

Location:
extensions/Random_Header
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Random_Header/admin/rh_admin.php

    r7358 r7401  
    1919$template->assign("RH_VERSION",RH_VERSION); 
    2020$template->assign("RH_confpanel",realpath( dirname(__FILE__).'/rh_theme_conf.tpl')); 
     21$template->append('head_elements','<link rel="stylesheet" type="text/css" href="'.RH_PATH.'admin/rh_admin.css" />'); 
    2122$rhthemes = new themes(); 
    2223$rh_vierge=0; 
  • extensions/Random_Header/admin/rh_admin.tpl

    r7358 r7401  
    1 {html_head} 
    2 <link rel="stylesheet" type="text/css" href="plugins/random_header/admin/rh_admin.css"> 
    3 {/html_head}  
    4  
    51<div class="titrePage"><h2>Random Header {$RH_VERSION}</h2></div> 
    62<p>{'rh_description'|@translate}</p> 
     
    2319        </fieldset> 
    2420{/if}    
    25          
     21 
    2622        <fieldset> 
    2723                <legend>{'rh_inactive_conf'|@translate} : </legend> 
  • extensions/Random_Header/maintain.inc.php

    r7358 r7401  
    2121// | USA.                                                                  | 
    2222// +-----------------------------------------------------------------------+ 
     23 
     24if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    2325 
    2426function plugin_install() 
Note: See TracChangeset for help on using the changeset viewer.