Skip to content

Instantly share code, notes, and snippets.

@igorw
Created September 23, 2009 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorw/192215 to your computer and use it in GitHub Desktop.
Save igorw/192215 to your computer and use it in GitHub Desktop.
preg_match('#^([a-z/_]+)#i', $row['session_page'], $on_page);
if (!sizeof($on_page))
{
$on_page[1] = '';
}
if (strlen($on_page[1]) && $on_page[1][0] === '/')
{
$on_page = explode('/', $row['session_page']);
$on_page = array_diff($on_page, array(''));
array_unshift($on_page, 'website');
array_unshift($on_page, '');
}
// ...
case 'website':
if (phpbbmodders_site::viewonline($on_page, $location, $location_url))
{
break;
}
// no break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment