Warning (2): Missing argument 1 for SponsorsController::visit() [CORE/app/controllers/sponsors_controller.php, line 30]
}
function visit($id) {
$url= ereg_replace('-questionmark-','?',$id);
SponsorsController::visit() - CORE/app/controllers/sponsors_controller.php, line 30
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 353
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 333
[main] - CORE/app/webroot/index.php, line 82
Notice (8): Undefined variable: id [CORE/app/controllers/sponsors_controller.php, line 31]
}
function visit($id) {
$url= ereg_replace('-questionmark-','?',$id);
$url= ereg_replace('-slash-','/',$url);
SponsorsController::visit() - CORE/app/controllers/sponsors_controller.php, line 31
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 353
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 333
[main] - CORE/app/webroot/index.php, line 82
Warning (2): Cannot modify header information - headers already sent by (output started at /home/avg/events_app/cake/basics.php:747) [CORE/app/controllers/sponsors_controller.php, line 35]
Context |
Code$url = ""
$url= ereg_replace('-slash-','/',$url);
//pr($url);
$this->Sponsor->execute("UPDATE sponsors SET hits=hits+1 WHERE website='$url'");
header('location:http://'.$url);
exit();
header - [internal], line ??
SponsorsController::visit() - CORE/app/controllers/sponsors_controller.php, line 35
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 353
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 333
[main] - CORE/app/webroot/index.php, line 82