Dotclear

Changeset 525


Ignore:
Timestamp:
10/20/08 20:40:23 (15 years ago)
Author:
sacha
google:author:
digimag
Message:

Arlequin : Le paramètre theme disparaît de l'URL

Location:
plugins/arlequin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugins/arlequin/CHANGELOG

    r496 r525  
     12008-10-18  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
     2 
     3 * v2008.10 - Removed theme parameter from URL 
     4 
     5 
    162008-08-21  Oleksandr Syenchuk  <sacha@xn--phnix-csa.net> 
    27 
  • plugins/arlequin/_define.php

    r496 r525  
    2020     /* Description*/    'Allows visitors choose a theme', 
    2121     /* Author */        'Oleksandr Syenchuk', 
    22      /* Version */       '2008.08-r1', 
     22     /* Version */       '2008.10', 
    2323     /* Permissions */   'contentadmin' 
    2424); 
  • plugins/arlequin/_public.php

    r496 r525  
    4141                
    4242               # Redirect if needed 
    43                if (!empty($_SERVER['HTTP_REFERER']) 
    44                && strpos($_SERVER['HTTP_REFERER'],$blog->url) === 0 
    45                && !preg_match('#(&|\?)theme=#',$_SERVER['HTTP_REFERER'])) { 
    46                     http::redirect($_SERVER['HTTP_REFERER']); 
     43               if (isset($_GET['theme'])) { 
     44                    $p = '/(\?|&)theme(=.*)?$/'; 
     45                    http::redirect(preg_replace($p,'',http::getSelfURI())); 
    4746               } 
    4847                
Note: See TracChangeset for help on using the changeset viewer.

Sites map