*/ function fortunate_load() { register_hook('page_end', 'addon/fortunate/fortunate.php', 'fortunate_fetch'); } function fortunate_unload() { unregister_hook('page_end', 'addon/fortunate/fortunate.php', 'fortunate_fetch'); } function fortunate_module(){} function fortunate_fetch(&$a,&$b) { $fort_server = get_config('fortunate','server'); if(! $fort_server) return; $a->page['htmlhead'] .= '' . "\r\n"; $s = z_fetch_url('http://' . $fort_server . '/cookie.php?numlines=4&equal=1&rand=' . mt_rand()); if($s['success']) $b .= '