203 //$o = static::convertToObject('ct_event', $id, 'invalid_event');204 $o = new \Crave\Model\ct_event($id);205 elapsed('after get ct_event');206 }207 // make sure this id is valid208 $ct_event_id = $o->getID();209 if (!$ct_event_id) {210 static::error('invalid_event');211 }212 // verify seller argument213 try {214 elapsed('before getSellerFromArgs');215 $this->seller__ct_promoter = ct_promoter::convertToObject(216 static::getSellerFromArgs(217 $this->identity,
3435 $event = \mem($keynew) ;3637 if (!$event || $_GET['refresh']) {38 if($_GET['debug_event_details']){39 d("LOADING EVENT FROM DB ({$keynew})");40 }41 $event = new \Crave\Api\Event($params);42 $event->getDescription(['get_all' => 1 ]);43 \mem($keynew, $event, '1 week') ;44 }4546 $this->event = $event ;47 }48
10 class EventDetails {1112 function __construct ($params){13 if (is_numeric($params)) { // assuming id14 $this->loadEvent(['id' => $params, 'no_tickets' => true ]);15 } else if (!is_array($params)) { // assuming ide16 $id = decrypt($params,'ct_event');17 $this->loadEvent(['id' => $id, 'no_tickets' => true ]);18 }192021 }222324
112 if(count($event_ids)) {113 $venue_id = $event_ids[0];114 \mem($key , $venue_id, '1 hour');115 }116 }117118119 return new \Crave\EventDetails($venue_id);120 }121122123124 function cleanData($obj) {125 $arr = $obj->dataToArray();126
1 <?php2 if ($p->uri == "/washington-dc/parties_washington-hilton_1919-connecticut-avenue-nw-washington-dc"){3 redirect('/washington-dc/parties_washington-dc-hilton_1919-connecticut-ave-nw-washington-dc');4 }5 $a = unParseEventUrl($p->urlpath.'/'.$p->ide);6 if ($a['slug_type'] == 'venue') {78 $event_details = \Crave\EventDetails::fromVenueSlug($a);9 } else {10 $event_details = \Crave\EventDetails::fromEventSlug($a['slug']);11 }121314 $event = $event_details->event;15
(venue.slug = 'union-square-ballroom' OR ct_event.slug ILIKE 'union-square-ballroom')
55 require_once("templates/website/website.php");5657 /**58 * it's an event url59 */60 $market_slug =$page->vars['market_slug'];61 if((strpos(strtolower($p->uri), '/'. $market_slug .'/')!== FALSE) &&($page->ide) &&($page->ide!='events') &&($page->ide!='hotels') && ($page->ide!='bar-crawls') &&($page->ide!='timesquare')){62 include('pages/events/events.php');63 die();64 } else if (strpos(strtolower($p->uri), '/barcrawl_')!== FALSE ){65 include('pages/events/events.php');66 die();67 }6869
319320 // push data array into the file's scope321 foreach ($__d as $__k => $__v) $$__k = $__v;322 unset($__d, $__k, $__v);323324 // for backwards compatibility325 $p = $this;326 include $__p;327328 // removing $__p, otherwise it will be in defined_vars()329 unset($__p);330 return get_defined_vars();331 }332333 /**
214 // set constants215 $this->setConstants();216217 // map input stream to $_POST if applicable218 $this->checkInputStream();219220 // execute run first221 $vars = $this->includePath('pages/run-first.php', $vars);222223 // execute script files224 foreach (array_keys($this->script_files) as $file) {225 $vars = $this->includePath($file, $vars);226 }227228 // add page_css/page_js
/newyork/parties_union-square-ballroom_27-union-square-west-new-york-ny
parties_union-square-ballroom_27-union-square-west-new-york-ny
parties_union-square-ballroom_27-union-square-west-new-york-ny
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
website_page { end_mmdd, nickname, page_path, start_mmdd, url, website_id, [website_page_data]s as fields } website { domain name as website_name, }
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
website_page { end_mmdd, nickname, page_path, start_mmdd, url, website_id, [website_page_data]s as fields } website { domain name as website_name, }
/newyork/parties_union-square-ballroom_27-union-square-west-new-york-ny
parties_union-square-ballroom_27-union-square-west-new-york-ny
parties_union-square-ballroom_27-union-square-west-new-york-ny
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
website_page { end_mmdd, nickname, page_path, start_mmdd, url, website_id, [website_page_data]s as fields } website { domain name as website_name, }
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
*DEPTH TOO GREAT*
website_page { end_mmdd, nickname, page_path, start_mmdd, url, website_id, [website_page_data]s as fields } website { domain name as website_name, }
131132 # $access_groups to global (for authenticate hook)133 # authentication hook134 $access_groups = $router->settings['access_groups'];135 include 'includes/hooks/login-authenticate.php';136137 # run the page138 $p->run();139140 # output the error if the master is down141 if ($db_host && !$dbw && !$p->is_ajax_request) {142 echo $master_db_connect_error;143 } else {144 // no problems with the master db145 // make sure our php-cron-daemon is running only on one host
28 $codebase_path . 'cms/',29 $codebase_path . 'jb-inc/',30 $skyphp_codebase_path31 );32 */333435 include $skyphp_codebase_path . 'sky.php';