Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Neatsijungia is web

Parašė shalonyi· 2010 Rugs. 17 17:09:42
#1

taigi,iskilo tokia beda,neatsijungia is webo,kai spaudziu atsijungti stai ka ismeta ir imeta atgal i weba ir buna prisijunges:





stai setuser.php


<?php
/*---------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit <a href='http://gnu.org' target='_blank'><span style='color:005C5B'>http://gnu.org</span></a>
+----------------------------------------------------*/
require_once "maincore.php";
include THEME."theme.php";
 
echo "<!DOCTYPE <span style="border-bottom: 1px dotted black;">HTML</span> PUBLIC '-//W3C//DTD <span style="border-bottom: 1px dotted black;">HTML</span> 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=index.php'>
<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();
?>

Redagavo ozzWANTED· 2010 Rugs. 17 23:09:21

Parašė shalonyi· 2010 Rugs. 17 20:09:52
#2

UP^^^ Tai kasnors gali padeti ar nea?

Parašė Mange· 2010 Rugs. 17 20:09:24
#3

čia tavo blogosios eilutės...

 
	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");

Parašė shalonyi· 2010 Rugs. 17 22:09:10
#4

jau susitvarkiau,galite rakinti

Parašė zilvinas11711· 2010 Rugs. 18 09:09:33
#5

Nice, gerai kad man tai nera :D

Parašė shalonyi· 2010 Rugs. 18 09:09:37
#6

tesiog is naujo ikeliau originalu setuser :)