Help with this code

Started on the old forum in November 2011 · view the original in the archive · old links redirect here

4 replies · 323 views · started 15 years ago · 1 min read

4 participants
Wintch Developer · 68 posts #1

Coderz i wanted redirect user to the previ0us page auth0matically, but am l0zt. My c0de

$curl=http://javascript:history.back();"; forward2($curl,"3");

mFreak Developer · 66 posts #2

Just use

header("Location:$_SERVER['HTTP_REFERER']");
$("#mfreak").find(".head brain").clone();

Progress:

[|||___________________________] : 5%

Output:

Memory limit reached, unable to complete operation.

Support answer:

Try using a super uber strong mega computer to reach at least 10%.

👋

metulj Super moderator Principal · 1,726 posts #3

also you could use Meta Tag:

[INDENT]<meta http-equiv="refresh" content="[COLOR=#ff0000][B]x[/B][/COLOR]; url=http://target_site.com/">[/INDENT]
 

where x= time in seconds => after how many seconds user will be redirected

also JavaScript:

[INDENT]<html>[/INDENT]
 [INDENT=2]<head>
[/INDENT]
 [INDENT=3]<script type="text/javascript">[/INDENT]
[INDENT=4]function redirectUser()
[/INDENT]
[INDENT=4]{   window.location = "[COLOR=#FF0000][B]your_link_here[/B][/COLOR]"; }
[/INDENT]
[INDENT=3]</script>
[/INDENT]
[INDENT=2]</head>[/INDENT]
[INDENT=2]<body onload="setTimeout('redirectUser()', [COLOR=#FF0000][B]5000[/B][/COLOR])">
[/INDENT]
[INDENT=3][COLOR=#FF0000][B]Some note for user here...[/B][/COLOR][/INDENT]
[INDENT=2]</body>[/INDENT]
[INDENT]</html>
[/INDENT]

keep in mind that number 5000 means approx 5 seconds

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

razzbee Developer · 130 posts #4

you can also use the javascript <meta http-equiv='refresh' content='5; url='javascript:history.back();'> where the 5 means user should be redirected in 5sec and javascript:history.back() means user be redirected back

Wintch Developer · 68 posts #5

Tanx all for ynur c0ntributi0n... I finally w0rk it out thiz way...

 function forward($uri,$time="2"){
if($uri){
print "<meta http-equiv=\"refresh\" CONTENT=\"$time; URL=".$uri."\">";
}

$curl=$_SERVER['HTTP_REFERER'];

forward($curl,"3");
 

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close