Jump to content


Photo

Pegar Url Q Está


  • Faça o login para participar
15 replies to this topic

#1 Deyvidy Mateus

Deyvidy Mateus

    .."Ainda chego lá"..

  • Usuários
  • 108 posts
  • Sexo:Masculino
  • Localidade:Leopoldina/MG
  • Interesses:Banco de dados, Criação de Websites, Delphi, photoshop e Corel Dral.

Posted 24/07/2004, 01:57

:wacko: (y) Tipow.... eu queria saber.. como q faz pra pegar a pagina visitada.... tipo....

http://www.meusite.com.br?index.php?area=addons

e quando eu entrar nela... E NAO TIVER LOGADO.. ele vai ser redirecionado pra parte de login.. certo? até aki eu sei q tá....
eu quero saber.... COMO Q ELE FAZ PRA IR PRA PRIMEIRA PÁGINA Q EU QUERIA.. SAKARAM???


http://www.meusite.com.br?index.php?area=addons


ae brigado quempuder me ajudar.. Fuizzzzz (y) :wacko:
Venda de um Sistema Boletim Online
Múltiplas áreas:
ÁREA DA MANUTENÇÃO
ÁREA DO PROFESSOR
ÁREA DO ALUNO


MSN: deyvidy20@hotmail.com

#2 naughty

naughty

    2 Links Design e Tecnologia

  • Usuários
  • 334 posts
  • Sexo:Não informado
  • Localidade:São Bento do Sul - SC
  • Interesses:Desenvolvimento em PHP<br />Sistemas Integrados<br />Desenvolvimento WEB Geral

Posted 24/07/2004, 02:29

Explica melhro que não deu pra entender!
Dionei Miodutzki
2 Links Design e Tecnologia
www.2links.com.br
-----------------------------------------------------------------------
Conheça o Planalto Norte, a direção certa para bons negócios.
www.planaltonorte.com.br

#3 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 24/07/2004, 05:16

É um código pronto certo? Se o código redireciona para a página de login, abre o arquivo PHP, procura a página de login (a parte do redirecionamento) e coloca o que você quiser...
Klaus Paiva
Conheça também: Taperás

#4 Deyvidy Mateus

Deyvidy Mateus

    .."Ainda chego lá"..

  • Usuários
  • 108 posts
  • Sexo:Masculino
  • Localidade:Leopoldina/MG
  • Interesses:Banco de dados, Criação de Websites, Delphi, photoshop e Corel Dral.

Posted 24/07/2004, 06:06

:wacko: blz Klaus mas nao é isso...
Eu uso no meu site query strings.. entao.. eu queria buscar na URL passada q eu estava.. sakow?
tipo.. quando eu pedir pra entrar no sitema.php
e eu nao estiver logado.. ele vai pro logar.php ne? isso eu sei.... entao... após estar dentro do logar.php eu quero q ele redirecione pro arquivo q eu tentei entrar e nao estava logado... hehe acho q dessa vez deu pra saka! ;)
aee vlw..


BlIGaDO
Venda de um Sistema Boletim Online
Múltiplas áreas:
ÁREA DA MANUTENÇÃO
ÁREA DO PROFESSOR
ÁREA DO ALUNO


MSN: deyvidy20@hotmail.com

#5 shinagawa

shinagawa

    Novato no fórum

  • Usuários
  • 20 posts
  • Sexo:Não informado

Posted 24/07/2004, 13:31

eu acho q entendi...eu tb tive este problema e resolvi com esta funçao:

function current_url() {
  if (sizeof($_GET) != 0) {
    $pos_url = "?";
    while ($i < sizeof($_GET)) {
      $a = each($_GET);
      if ($i+1 == sizeof($_GET))
        $pos_url = $pos_url.$a[0]."=".$a[1];
      else
        $pos_url = $pos_url.$a[0]."=".$a[1]."&";
      $i++;
    }
  }
  $current_url = $_SERVER["REDIRECT_URL"].$pos_url;
  return $current_url;
}

[]s

#6 Deyvidy Mateus

Deyvidy Mateus

    .."Ainda chego lá"..

  • Usuários
  • 108 posts
  • Sexo:Masculino
  • Localidade:Leopoldina/MG
  • Interesses:Banco de dados, Criação de Websites, Delphi, photoshop e Corel Dral.

Posted 25/07/2004, 00:57

(y) cara vo testar aki e ja ja posto aki falando se funcionou ou nao.. mas mesmo assim vlw pela tentativa... :wacko:
Venda de um Sistema Boletim Online
Múltiplas áreas:
ÁREA DA MANUTENÇÃO
ÁREA DO PROFESSOR
ÁREA DO ALUNO


MSN: deyvidy20@hotmail.com

#7 gifs.kit.net

gifs.kit.net

    Saulo Petri

  • Usuários
  • 457 posts
  • Sexo:Não informado
  • Localidade:Niterói, RJ

Posted 25/07/2004, 01:29

tava lendo este tópico e sem querer "sair do assunto"

tu poderia explicar esse código aí veio?
nome: Saulo Petri
email: saulopetri@gmail.com

Sites:

O melhor Axé do Rio
sakeiaboa


#8 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 25/07/2004, 09:11

A idéia é o seguinte, toda página que o visitante entrar, onde ele deveria estar logado, ao invés de somente redirecionar para: logar.php - deveria redirecionar para: logar.php?retorno=$PHP_SELF - enviando assim a variável da página de retorno.
Klaus Paiva
Conheça também: Taperás

#9 shinagawa

shinagawa

    Novato no fórum

  • Usuários
  • 20 posts
  • Sexo:Não informado

Posted 25/07/2004, 14:08

bom eu sou pessimo pra explicar meus scripts mas vou tentar :lol:

uma funçao :P
function current_url() {

se o tamanho do GET for diferente de 0 (GET sao as variaveis da url tipo: index.php?variavel=valor. Ela eh diferente de 0 quando existe uma ou mais variaveis)
if (sizeof($_GET) != 0) {  

entaum a variavel $pos_url eh igual a ? (para poder comecar)
  $pos_url = "?";

enquanto $i for menor q o tamanho do GET entaum:
  while ($i < sizeof($_GET)) {

a funçao EACH serve para "separar" o nome da variavel do valor dela (isso num array) entaum o valor de $a neste caso eh
$a[0] = 'variavel';
$a[1] = 'valor';
    $a = each($_GET);

para poder separar uma variavel da outra na url se faz da seguinte maneira:
index.php?variavel=valor&variavel2=valor2
entaum se for a ultima variavel naum ira precisar do & no final
    if ($i+1 == sizeof($_GET))
       $pos_url = $pos_url.$a[0]."=".$a[1];
     else
       $pos_url = $pos_url.$a[0]."=".$a[1]."&";

acrescenta + 1 no $i :P
    $i++; 
   }
 }

aki ele pega o endereço ateh o arquivo tipo:
/bin/index.php
e junta com as variaveis e fica assim:
/bin/index.php?variavel=valor&variavel2=valor2
depois retorna o valor :P
$current_url = $_SERVER["REDIRECT_URL"].$pos_url;
 return $current_url;
}

naum sei c fui claro...

abraços,
Shinagawa

#10 Deyvidy Mateus

Deyvidy Mateus

    .."Ainda chego lá"..

  • Usuários
  • 108 posts
  • Sexo:Masculino
  • Localidade:Leopoldina/MG
  • Interesses:Banco de dados, Criação de Websites, Delphi, photoshop e Corel Dral.

Posted 26/07/2004, 01:50

Cara eh isso mesmo q eu queria.. mas veja bem...
Se eu quisesse entrar no arquivo sistema.php e eu teria q tivesse logado... aih eu vou ser redirecionado pro logar.php e apos logar nesse aquivo.. VOLTAR PRA SISTEMA.PHP.. sakow??? ae como q faco isso..??? ehhe ae eu entendi a funcao.. mas nao sei arrumar..
euaueaueaueaueaueauae


function current_url() {
if (sizeof($_GET) != 0) {
$pos_url = "?";
while ($i < sizeof($_GET)) {
$a = each($_GET);
if ($i+1 == sizeof($_GET))
$pos_url = $pos_url.$a[0]."=".$a[1];
else
$pos_url = $pos_url.$a[0]."=".$a[1]."&";
$i++;
}
}
$current_url = $_SERVER["REDIRECT_URL"].$pos_url;
return $current_url;
} :blink:
Venda de um Sistema Boletim Online
Múltiplas áreas:
ÁREA DA MANUTENÇÃO
ÁREA DO PROFESSOR
ÁREA DO ALUNO


MSN: deyvidy20@hotmail.com

#11 Balala

Balala

    What you want for yourself?

  • Ex-Admins
  • 3357 posts
  • Sexo:Não informado
  • Localidade:Jaraguá do Sul - SC
  • Interesses:http://forum.wmonline.com.br/index.php?showtopic=5792

Posted 26/07/2004, 07:50

Você pode fazer um código assim em cada página:

PHP
<?php

if ( NÃO LOGADO )
$_SESSION['pagina'] = $_SERVER['PHP_SELF'];


?>


Não coloque esse código na página de login, hein :D. No login.php faça assim:

PHP
<?php

if ( LOGIN CORRETO ) {
$_SESSION['login'] = $user;
header("Location: $_SESSION['pagina']");
}

?>

Balala - Admin Geral Webfórum - Retired
Twitter
Stop Spreading Lies!
Posted Image

#12 Marcão

Marcão

    Marcãaaaaaaaao

  • Usuários
  • 1754 posts
  • Sexo:Não informado
  • Interesses:Faixa preta de Muay-Thay<br>Faixa Roxa de Jiu-Jitsu<br>:D<br>Um dia eu chego lá

Posted 26/07/2004, 09:59

Creio que esses posts,respodem sua pergunta:
http://forum.wmonlin...showtopic=81187
Marcão -=- PHP é coisa de MESTRE e falo mais nada -=-
Minha Foto
"Não temas,segue adiante,não olhes para trás!!
Segura na mão de
Deus e vai.."

#13 Miguceamma

Miguceamma

    MiguPenjisse

  • Usuários
  • 13201 posts

Posted 26/10/2017, 09:07

Can Amoxicillin Treat Bladder Infections Amoxil Effets viagra Macrobid Mail Order Dove Trovare Dapoxetina Pictures Of Generic Keflex Pills
Cialisis Barato Cialis Cruz Verde viagra Cuanto Cuesta El Cialis Viagra Overnight Newcialispharmacy

#14 napedlok

napedlok

    24 Horas

  • Usuários
  • 409 posts
  • Sexo:Masculino
  • Localidade:Breschya

Posted 26/10/2017, 11:30

Discounts! best hair styling gel progect13.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE Hot large indian mandala tapestry wall hanging boho printed beach throw towel yoga mat table cloth ( 8.78 $)8a brazilian virgin hair body wave 4 bundles unprocessed human hair brazilian hair weave bundles brazilian body wave virgin hair ( 65.00 $)Canvas tote bags striped women handbags patchwork women shoulder bag new fashion sac a main femme de marque casual bolsos mujer ( 30.14 $)Haier G6 MTK2502C Heart Rate Monitor Smart Bluetooth Watch-61.51 $Hot sale 1000pcs new aquarium grass seeds mix water aquatic plant seeds family easy plant seeds ( 0.99 $)Cute Style Animal Vinyl Toy Lovely Cute Cat Kitten Keychain Gift for friends kids ( 1.37 $)Female lingerie Sexy Embroidery minimizer lace Bras plus size push up bras big size bra for women brassiere 40 42 44 D DD E Cup ( 15.98 $)Original cafele phone case for iphone 7 ultra thin cute colors pp cases for apple iphone ( 8.31 $)nike highDOOGEE Y6 Max 3D 4G Phablet-181.22 $The minimalist series small circle stud earrings brand gold plated earrings brand for women WJ-75 2016 new jewelry ( 1.66 $)Casual checked and pu leather design crossbody bag for women ( 14.51 $)Auran Uoters â Game of Thronesдатчик коленвала 405 евро 2New hair style brazilian body wave 3 bundles 100 human hair bundles weave tissage bresilienne brazilian ( 32.60 $) 5bb.jpg
Discounts! best online products

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
angry birds star wars 2
VKWORLD VK800X 3G Smartphone-59.99 $
купить аккаунт бателфилд
Cross body bags bolsas femininas 2014 new women messenger bags bolsos mujer ladies handbags vintage bag crossbody pu mailman bag ( 21.53 $)
Silk Satin Ribbon 15mm 22 Meters Wedding Party Festive Event Decoration Crafts Gifts Wrapping Apparel Sewing Fabric Supplies ( 1.57 $)
Simple hasp and solid color design women's tote bag ( 19.30 $)
Sunuv sun2 48w uv led lamp nail dryer nail polish dryer machine with 3 silicon pads, (perfect hard gel extension solution) ( 49.99 $)
Cobbler legend brand designer 2016 new women s crossbody bag female handbags vintage shoulder bags ladies ( 77.40 $)
ILIFE V7 Super Mute Sweeping Robot Home Vacuum Cleaner Dust Cleaning with 2600mAh Li - battery-151.39 $
Official online store of dishes Taller
DHK HOBBY 8384 18 4WD Off-road RC Racing Truck - RTR-331.00 $
Mastroyanni, Marchello
Cheerlux C6 LCD Projector Home Theater-80.60 $
Waterproof men laptop backpacks women fashion travel backpack notebook school bags for teenagers girls and boys ( 52.00 $)
Military velour mens sneaker wrubber sole ( 200.60 $) N°21


19bb.jpg
Discounts! beauty products best

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
16 x 52 Dual Coated Lens 16X Monocular Telescope ( $9.14 )
Airgracias brand mens winter stretch thicken jeans warm fleece high quality denim biker jean pants trousers size 28-42 ( 40.49 $)
Medical cosmetics Vichy, cosmetics, La Roche Posay and Inneov Center Skin Health
2016 Bikinis Women Swimsuit Halter Hollow Out Low Waist Sexy Bikini Set Summer Style White Pure Color Two Piece Women Swimwear ( 6.98 $)
Solid Pure Silk Satin Silk Tie ( 49.56 $)
Brazilian body wave 3 bundles brazilian virgin hair body wave brazilian hair weave bundles 7a unprocessed human hair bundles ( 45.00 $)
Jasmine leather satchel bag ( 189.37 $) Francesco Biasia
астраханский завод резиновой обуви дюна
Dt2240b flash frequency digital speedometer stroboscope non-contact tachometer 60~40000rpm ( 102.46 $)
7a brazilian virgin hair kinky straight 3bundles 100% human hair brazillian yaki straight hair brazilian virgin hair coarse yaki ( 61.75 $)
I Donât Wanna Live Forever (Fifty Shades Darker) BTS 4 â Glitter Lip [EXTENDED]
коленвал пежо 405
pirate king pack
выставление грм змз 406
топ шоп официальный


110bb.png
Discounts! top facial products progect13.jpg Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked! If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included). buy.png READ MORE тим фортресс 2 продатьLucky queen hair products mink brazilian hair brazilian virgin hair body wave 4 bundles unprocessed human hair weave bundles ( 56.00 $)16 ( 26.24 $)Brazilian Body Wave 3 Bundles Brazilian Virgin Hair Body Wave Wet and Wavy Virgin Brazilian Hair Weave Bundles Remy Human Hair ( 45.00 $)Mingella, Entoniболт гбц 2110Cheap tape hair extenisons 18 ( 25.20 $)10cm length tactical holographic sights 1x40mm cross hari red dot sight scope riflescope with 30mm rail mount for airsoft ( 10.90 $)Official online shop CastrolFashion plaid bling geometric patchwork tote bags for women luxury sac a main shoulder bag designer clutch famous brand handbags ( 36.58 $)2017 women canvas backpacks school bags for teenagers girls large travel rucksack backbag bolsas mochilas femininas ( 20.63 $)Wedding sparkly glitter middle heels for prom rhinestone wedding shoes bridal shoes woman fashion prom dress shoes ( 100.80 $)Yueqi YQ8008 216pcs LED DIY Programmable Bike Spoke Light 83.99$Elizabeth Yellow Gold Plated Bronze Earrings ( 149.00 $)brand winter men outdoor waterproof windproof mountaineering jackets sportswear tad shark skin softshell jacket ( 50.78 $) 44.jpg
Discounts! make up top

progect13.jpg
Products which fall under this return policy can be returned domestically, as long as they are unused and in the original packaging. No questions asked!
If a product that falls under this guarantee is found to be counterfeit, you will get a full refund (shipping costs included).

buy.png

READ MORE
Monterey brown suede belt ( 133.30 $) Moreschi
Black friday deals benifit peerless malaysian virgin hair straight 4 bundles unprocessed virgin human hair aliexpress uk coupon ( 70.00 $)
Touch keypad wireless gsm sms autodial smart home house security burglar alarm system emergency panic button ( 106.71 $)
Cosmopolitan brown leather travel bag ( 599.14 $) The Bridge
Kingsons brand external usb charge computer bag anti-theft notebook backpack 1517 inch waterproof laptop backpack for men women ( 65.00 $)
Newest spot it board game quality paper with metal box best gift for your friend cards game ( 12.99 $)
Oslamp 42inch 3-row 648w led light bar cree chips curved offroad led work light combo beam 12v 24v truck atv suv pickup 4wd 4x4 ( 168.27 $)
Vortice - Pink Murano Glass Swirling Heart Sterling Silver Necklace ( 65.00 $)
Retractable Electronic Light Saber with Sound Kid Toy Christmas Gift-14.29 $
Excelvan CL720 LED Projector with Analog TV Interface ( 132.19 $)
Original Conquest S8 6000mAH Battery Quad Core 5 ( 376.00 $)
Chic women's off-the-shoulder floral print drawstring romper for women ( 17.35 $)
4Piece VW Golf Jetta New Beetle Passat EOS CC GTI Tiguan Wheel Center Hub Cap 65mm 3B7601171 3B7 601 171 ( 8.99 $)
2013 hot crocodile design genuine leather luxurious women short wallet lady purse card package free shipping wbg0802 ( 11.36 $)
New Arrival Fashion Women Jackets Fur Handmade Knit Real Mink Fur Coats Female O Neck Real Fur Sweater Women YC314 ( 320.00 $)


11bb.png

#15 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 26/10/2017, 15:27

Manufacturer Of Zithromax Xenical Prix Discount Canada Prednisolone For Dogs viagra prescription Cialis 20 Coupe Viagra Rezeptfrei Test Generic Cialis Available In Canada




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq