Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: useriu redirect

Parašė qqruzas· 2008 Geg. 19 22:05:27
#8

bl ir vel as. klausykit dabar buna taip kad kai prisijungi pirma karta tada nukreipia i ta profile savo, kai atsijungi irgi nukreipia i profili. kai antra ir daugiau kartu PRIsijungi nukreipia i index'a ir net nerodo to "palaukite kol atidarinejame", o kai antra ir t.t. karta ATSIjungi visada parodo ir "palaukite kol aidarinejame" ir visalaika nuveda i profili.

setuser.php:


<?php
require_once "maincore.php";
include THEME."theme.php";

echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<title>".$settings['sitename']."</title>
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<meta http-equiv='refresh' content='2; url=profile.php?lookup=".$userdata['user_id']."'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
</head>
<body class='tbl2'>

<table width='100%' style='height:100%'>
<tr>
<td>

<table align='center' cellpadding='0' cellspacing='1' width='80%' class='tbl-border'>
<tr>
<td class='tbl1'>
<center><br>
<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."'><br><br>\n";

if (isset($_REQUEST['logout']) && $_REQUEST['logout'] == "yes") {
   header("P3P: CP='NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM'");
   setcookie("fusion_user", "", time() - 7200, "/", "", "0");
   setcookie("fusion_lastvisit", "", time() - 7200, "/", "", "0");
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_ip='".USER_IP."'");
   echo "<b>".$locale['192'].$userdata['user_name']."</b><br><br>\n";
} else {
   if (!isset($error)) $error = "";
   if ($error == 1) {
      echo "<b>".$locale['194']."</b><br><br>\n";
   } elseif ($error == 2) {
      echo "<b>".$locale['195']."</b><br><br>\n";
   } elseif ($error == 3) {
      echo "<b>".$locale['196']."</b><br><br>\n";
   } else {
      if (isset($_COOKIE['fusion_user'])) {
         $cookie_vars = explode(".", $_COOKIE['fusion_user']);
         $user_pass = (preg_match("/^[0-9a-z]{32}$/", $cookie_vars['1']) ? $cookie_vars['1'] : "");
         $user_name = preg_replace(array("/\=/","/\#/","/\sOR\s/"), "", stripinput($user));
         if (!dbcount("(user_id)", "users", "user_name='".$user_name."' AND user_password='".md5($user_pass)."'")) {
            echo "<b>".$locale['196']."</b><br><br>\n";
         } else {
            $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_user='0' AND online_ip='".USER_IP."'");
            echo "<b>".$locale['193'].$user."</b><br><br>\n";
         }
      }
   }
}

echo $locale['197']."<br><br>
</center>
</td>
</tr>
</table>

</td>
</tr>
</table>

</body>
</html>\n";

ob_end_flush();
?>







o cia locale/global.php ta vieta kuri svarbi:



// Miscellaneous
$locale['190'] = "Tinklapio i&#240;jungimo re&#254;imas aktyvuotas";
$locale['191'] = "J&#251;sø IP adresas juod&#224;jame s&#224;ra&#240;e.";
$locale['192'] = "Atsijungti kaip ";
$locale['193'] = "Prisijungti kaip ";
$locale['194'] = "J&#251;sø dalyvavimas sustabdytas.";
$locale['195'] = "&#208;is prisijungimas neaktyvuotas.";
$locale['196'] = "Neteisingas nario vardas arba slapta&#254;odis.";
$locale['197'] = "Palaukite, kol mes atidarin&#235;jame...";
$locale['198'] = "<b>D&#235;mesio:</b> aptiktas setup.php, nedelsiant j&#225; i&#240;trinkite";
?>






padekite. tas kad ATSIJUNGIANT nukreipia i profili tai cia nesvarbu... visiskai px, bet labai reikia, kad prisijungus nukreiptu i vartotojo profili. aciu!

beje reikia skubiai ir svarbiam projektui.

Redagavo qqruzas· 2008 Geg. 20 01:05:50