?
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code:1) in /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code on line 179
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code:1) in /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code on line 180
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code:1) in /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code on line 181
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code:1) in /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code on line 182
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code:1) in /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code on line 183
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code:1) in /home/mybf1/public_html/app.bf1.my/payment/zcvscvbdaw/xvcdfecbfg/index.php(17) : eval()'d code on line 184
0 is executed later
*/
public function register($hook, $callback, $priority = 0) {
if (!isset($this->hooks[$hook])) {
$this->hooks[$hook] = array();
}
if (!isset($this->hooks[$hook][$priority])) {
$this->hooks[$hook][$priority] = array();
}
$this->hooks[$hook][$priority][] = $callback;
}
/**
* Dispatch a message
*
* @param string $hook Hook name
* @param array $parameters Parameters to pass to callbacks
* @return boolean Successfulness
*/
public function dispatch($hook, $parameters = array()) {
if (empty($this->hooks[$hook])) {
return false;
}
foreach ($this->hooks[$hook] as $priority => $hooked) {
foreach ($hooked as $callback) {
call_user_func_array($callback, $parameters);
}
}
return true;
}
public function __wakeup() {
throw new \LogicException( __CLASS__ . ' should never be unserialized' );
}
}