I think I can usemade this codestuff copying from Core's block.module :
// MatchThis pathblock ifwill necessary.
not show pages when ifthese ($block->pages)pattern {match
// Convert path to lowercase. This allows comparison of$pages the= same<<< pathEOT
adsense/*
node/ with different case. Ex: add/Page, *
adsense/page, *
contact
privacy
tags/PAGE.*
terms
about
check-for-expired-job
taxonomy/term/*
EOT;
$pages = drupal_strtolower($block->pages$pages);
if ($block->visibility < BLOCK_VISIBILITY_PHP) {
// Convert the Drupal path to lowercase
$path = drupal_strtolower(drupal_get_path_alias($_GET['q']));
// Compare the lowercase internal and lowercase path alias (if any).
$page_match$hide_block = drupal_match_path($path, $pages);
if ($path != $_GET['q']) {
$page_match$hide_block = $page_match$hide_block || drupal_match_path($_GET['q'], $pages);
}
// When $block->visibility has a value of 0 (BLOCK_VISIBILITY_NOTLISTED),
// the block is displayed on all pages except those listed in $block->pages.
// When set to 1 (BLOCK_VISIBILITY_LISTED), it is displayed only on those
// pages listed in $block->pages.
$page_match = !if($block->visibility xor $page_match$hide_block);
}
elseif (module_exists('php')) {
$page_match =return php_eval($block->pages);$hide_block;
}
else {
$page_match = FALSE;
}
//Now do other processing }stuff