Source
370 }
371
372 /**
373 * Opens geoip database at filename and with specified flags.
374 *
375 * @param string $filename
376 * @throws Exception - if unable to open specified file or shared memory.
377 */
378 private function open( $filename ) {
379 if( ! is_file( $filename ) || ! is_readable( $filename ) ) {
380 throw new Exception( "Unable to open file: $filename" );
381 }
382 $this->filehandle = @fopen( $filename, 'rb' );
383 if( ! $this->filehandle ) {
384 throw new Exception( 'Unable to open file: ' .$filename );
385 }
Trace
- is_file(/usr/share/GeoIP/GeoIPCity.dat)
GeoLocation.php:379
- GeoLocation->open(/usr/share/GeoIP/GeoIPCity.dat)
GeoLocation.php:165
- GeoLocation->__construct(/usr/share/GeoIP/GeoIPCity.dat)
GeoTargeting.php:55
- GeoTargeting::detect_country_state_code()
GeoTargeting.php:35
- GeoTargeting::set_country_state_code()
GeoTargeting.php:22
- GeoTargeting::get_country_code()
USARegulatedPartnerReviewPage.php:17
- USARegulatedPartnerReviewPage->disableTargetedOutclicks()
USARegulatedPartnerReviewPage.php:7
- USARegulatedPartnerReviewPage->beforeCallActionHandler(SS_HTTPRequest,index,,,,,)
Object.php:1063
- Object->extend(beforeCallActionHandler,SS_HTTPRequest,index)
Controller.php:192
- Controller->handleAction(SS_HTTPRequest,index)
RequestHandler.php:200
- RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:158
- Controller->handleRequest(SS_HTTPRequest,DataModel)
ContentController.php:174
- ContentController->handleRequest(SS_HTTPRequest,DataModel)
Page.php:328
- Page_Controller->handleRequest(SS_HTTPRequest,DataModel)
ModelAsController.php:75
- ModelAsController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:385
- Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:149
- Director::direct(/lotto-booker,DataModel)
main.php:191