| drhtm wrote: |
| yeah i knew that |
| Code: |
|
function redirect_index($message, $url = "index.php") { //$ThemeSel = pnConfigGetVar('Default_Theme'); $ThemeSel = pnUserGetTheme(); echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=$url\">\n"; if (defined("_CHARSET") && _CHARSET != "") { echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=" . _CHARSET . "\">\n"; } echo "<LINK REL=\"StyleSheet\" href=\"".WHERE_IS_PERSO."themes/$ThemeSel/style/styleNN.css\" type=\"text/css\">\n"; echo "<style type=\"text/css\">"; echo "@import url(\"".WHERE_IS_PERSO."themes/$ThemeSel/style/style.css\"); "; echo "</style>\n"; echo "</head><body bgcolor=\"$GLOBALS[bgcolor1]\" text=\"$GLOBALS[textcolor1]\">\n"; echo "<div style=\"text-align:center\" class=\"pn-title\">\n"; echo "<!-- YOUR ANNOUCE OR CODE HERE -->\n"; echo "It could be an include like this :\n"; include ('yourfile.php"); echo "</div></body></html>"; } |
| Code: |
|
echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=$url\">\n"; |
| drhtm wrote: |
|
by the way, do you think its possible to extend this idea beyond just the login page and say to every 10 pages or so, probably using a cookie of some sort? |