commit 862eb4728df22db940ee9b12d1d1e3d56250691e
Author: Francis Whittle <francis@agileware.com.au>
Date:   Fri Jun 21 12:34:36 2013 +1000

    Support standard drupal path match in splashify page lists

diff --git a/admin/splashify.admin.where.inc b/admin/splashify.admin.where.inc
index 3354bc2..bafbd4d 100644
--- a/admin/splashify.admin.where.inc
+++ b/admin/splashify.admin.where.inc
@@ -61,7 +61,8 @@ function splashify_admin_where_form($form, &$form_state) {
       '#type' => 'textarea',
       '#title' => t('List Pages'),
       '#default_value' => variable_get('splashify_where_desktop_listpages', ''),
-      '#description' => t('Enter the paths of the pages where you want the splash page to show up (one per line).<br />The path needs to be the original source url and NOT the alias for the page. Example: node/12'),
+      '#description' => t(
+        "Enter the paths of the pages where you want the splash page to appear. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>')),
     );
   }
 
diff --git a/splashify.display.inc b/splashify.display.inc
index 501f1cc..6c77584 100644
--- a/splashify.display.inc
+++ b/splashify.display.inc
@@ -91,35 +91,15 @@ function splashify_init() {
       break;
 
     case 'list':
-      $list_paths = preg_split('/[\n\r]+/', $where_listpages);
-      if ($where_opposite) {
-
-        // Display the splash on every page except the following pages.
-        $splash_correct_page = TRUE;
-        foreach ($list_paths as $list_path) {
-          $list_path = trim($list_path);
-          if ($list_path == $_GET['q']) {
-            $splash_correct_page = FALSE;
-            break;
-          }
-        }
-
+      $list_pages = drupal_strtolower($where_listpages);
+      $path = drupal_strtolower(drupal_get_path_alias($_GET['q']));
+      $splash_correct_page = drupal_match_path($path, $list_pages);
+      if ($path != $_GET['q']){
+	$splash_correct_page = $splash_correct_page || drupal_match_path($_GET['q'], $list_paths);
       }
-      else {
 
-        // Display the splash on the provided list of pages. Loop through the
-        // paths.
-        foreach ($list_paths as $list_path) {
-          $list_path = trim($list_path);
-          if ($list_path != $_GET['q'] && $where_opposite) {
-          }
-          else if ($list_path == $_GET['q']) {
-            $splash_correct_page = TRUE;
-            break;
-          }
-        }
+      $splash_correct_page = ($splash_correct_page xor $where_opposite);
 
-      }
       break;
   }
 
