Skip to content

Instantly share code, notes, and snippets.

@ForestMars
Created February 14, 2014 04:41
Show Gist options
  • Save ForestMars/8995917 to your computer and use it in GitHub Desktop.
Save ForestMars/8995917 to your computer and use it in GitHub Desktop.
<?php
global $user;
global $node;
$pageURL = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://";
$current_nid = $node->nid;
$load_limit = 60;
$add_query_string="";
$query_string="";
$showstoppers_event=false;
$querystr=$_SERVER['QUERY_STRING'];
$event_value = '';
if(substr($querystr,0,8) == 'q=event/') {
$arg = explode('&', $querystr);
$arg = explode('?', $arg[0]);
$arg = explode('/', $arg[0]);
$event_value = $arg[1];
}
else if(isset($_GET['event']))
{
$event_value = $_GET['event'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment