Changeset 9357


Ignore:
Timestamp:
02/23/11 10:24:43 (9 years ago)
Author:
plg
Message:

feature 2200 added: clean alias for plugin administration pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r9127 r9357  
    7878// |                            variables init                             | 
    7979// +-----------------------------------------------------------------------+ 
     80 
     81// ?page=plugin-community-pendings is an clean alias of 
     82// ?page=plugin&section=community/admin.php&tab=pendings 
     83if (preg_match('/^plugin-([^-]*)(?:-(.*))?$/', $_GET['page'], $matches)) 
     84{ 
     85  $_GET['page'] = 'plugin'; 
     86  $_GET['section'] = $matches[1].'/admin.php'; 
     87  if (isset($matches[2])) 
     88  { 
     89    $_GET['tab'] = $matches[2]; 
     90  } 
     91} 
    8092 
    8193if (isset($_GET['page']) 
Note: See TracChangeset for help on using the changeset viewer.