In template programming, you should first tell php which variables will be replaced. You need to assign/connect php variable and template variable. Since it is fixed and hard coded, you must change codes if you want to move template variable from 'content' file to 'header' file.
With indexu you can assign using this command:
PHP Code:
DisplayTemplate($theme_path."index.html",
"\$category,\$new_links,\$hot_links,\$login_box,".
"\$rec_links,\$recomended_listing,".
"\$total_online,\$members_online,\$guess_online,\$username_online,".
"\$total_link,\$total_hits,\$total_category,\$total_member,\$total_milis");
The above example you found in index.php, in case you want to use header, just cange index.html to header.html
But if you want display "Who is online" and "Statistics" in all pages using header.html, it does not as simple as above example. You need to copy/paste php code that generate result / calculate for "Who is online" and "Statistics". It may not so difficult, just copy line 200-230 to other files.
You also need to make those variables as global
PHP Code:
global $total_online, $members_online, $guess_online, $username_online;
global $total_link, $total_hits, $total_category, $total_member, $total_milis