Mine sisusse
Otsi siit
  • Rohkem valikuid...
Otsi tulemusi mis sisaldab...
Otsi tulemusi...

Soovitatud postitused

Külaline misterx

Siis ei oska öelda, ilmselt on mingi moodul puudu. Olen kuulnud mingist output bufferingust, kui leiad midagi taolist siis võid proovida. Täpne error oleks ka abiks.

Jaga seda postitust


Postituse link
Share on other sites

session_start on vajalik, et login töötaks. Pane see tagasi ja pane error mis siis tuleb siia.


"What is happening to our young people? They disrespect their elders, they disobey their parents. They ignore the law. They riot in the streets inflamed with wild notions. Their morals are decaying. What is to become of them?"

Plato, 4th Century BC

Jaga seda postitust


Postituse link
Share on other sites
Author of the topic Postitas

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data02/virt33832/domeenid/www.estrp.eu/ucp/index.php:1) in /data02/virt33832/domeenid/www.estrp.eu/ucp/index.php on line 6 siuke siis täpne error

Jaga seda postitust


Postituse link
Share on other sites
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data02/virt33832/domeenid/www.estrp.eu/ucp/index.php:1) in /data02/virt33832/domeenid/www.estrp.eu/ucp/index.php on line 6 siuke siis täpne error

 

Enne session_start'i (kui ma mäletan) ei tohi olla ei mingit HTML koodi, isegi tühikuid.

Jaga seda postitust


Postituse link
Share on other sites
Author of the topic Postitas
ļ»æ
include_once ('inc/ez_sql_core.php');
include_once ('inc/ez_sql_mysql.php');
include ('inc/config.inc.php');
session_start();
include ('inc/check.inc.php'); 
flush();
check();
include ('inc/strip.inc.php');  
$obj = new Stuff();
?>




	$leht = addslashes($_GET['page']);
	$query = $db->get_row('SELECT link, pagetitle FROM `pages` WHERE pagename = "'.$db->Escape($leht).'" LIMIT 1');
	if($db->num_rows == 0)
	{
		$msg = 'Estonian Style Roleplay avaleht';
	}
/*	else
	{
		$msg = "Reallife ".$query->pagetitle;
	}*/
?>









<br />
		Cufon.replace('h1, h2, h3, h4, h5', { fontFamily: 'Andika Basic' });<br />
		$(document).ready(function(){$(".field").focus(function(){if($(this).val()==$(this).attr("title")){$(this).val("")}});$(".field").blur(	function(){if($(this).val()==""){$(this).val($(this).attr("title"))}})});<br />
	






Tere tulemast kasutaja kontrollpaneeli if($_SESSION['loggedin'] == true) { echo ", ".$obj->Kasutajanimi($_SESSION['id']).""; } ?>.










Avaleht
Foorum
Abi
Kuidas alustada?
Tƶƶkohad
Uuendused
MƤngijad

			if($_SESSION['loggedin'] == false)
			{
				echo 'Registreeri kasutaja';
			}
			?>


if ($_SESSION['loggedin'] == true && $_SESSION['AdminLevel'] >= 1)
		{ ?>






} ?>








			if($_SESSION['loggedin'] == true)
			{
				$q111 = $db->get_row('SELECT id, Name, Sugu, Banned FROM players WHERE LOWER(Name) = LOWER("'.$_SESSION['Name'].'")');
				if($db->num_rows == 1)
				{
					if($q111->Sugu == 0)
					{
						echo '
								Sinu karakteril pole sugu mƤƤratud. Vajuta siia, et karakteri sugu valida.
';
					}
				}
				$q222 = $db->get_row('SELECT Username, accept FROM elulood WHERE LOWER(Username) = LOWER("'.$_SESSION['Name'].'")');
				if($db->num_rows == 1)
				{
					if($q222->accept == 0) 
					{
						echo '
								Sinu rollimƤngu testi pole veel Ć¼le kontrollitud.
';
					}
					if($q222->accept == 2) 
					{
						echo '
								Sinu rollimƤngutest ei sobinud. Vajuta siia, et test uuesti esitada.
';
					}
				}
			}
			$page = addslashes($_GET['page']);
			$query = $db->get_row('SELECT link FROM `pages` WHERE pagename = "'.$db->Escape($page).'" LIMIT 1');
			if($db->num_rows == 0)
			{
				echo ' top.document.location="index.php?page=home"; ';
			}
			else
			{
				$page_link = $query->link; 
				if($_SESSION['loggedin'] == true && $q111->Banned == 1)
				{
					echo '
						Sinu konto on blokeeritud!
';
				}
		//		echo $page_link;
				include ($page_link);
			}		
			if (isset($_POST['Login']))
			{
				$nimi = $db->Escape($_POST['Nick']);
				$parool = $db->Escape($_POST['Password']);
				$_POST['Nick'] = strip_html_tags(addslashes($_POST['Nick'])); 
				$_POST['Password'] = strip_html_tags(addslashes($_POST['Password']));
				$userid = new UserControl();
				if ($userid->check_user($_POST['Nick'],$_POST['Password']) != 0)
				{
					if(preg_match("/^[A-Z][a-z]+_[A-Z][a-z]{1,3}[A-Z]?[a-z]*+$/", $nimi))
					{
						$userid->login($userid->user->id);
					}
					else
					{
						echo '

							Kasutajanimi ei vasta nƵuetele!
';
					}
				}
				else
				{	
					if($nimi != 'Kasutaja_Nimi')
					{
						if(preg_match("/^[A-Z][a-z]+_[A-Z][a-z]{1,3}[A-Z]?[a-z]*+$/", $nimi))
						{
							$test = $db->get_row('SELECT Name, active FROM backup WHERE Name = "'.$nimi.'"');
							if($db->num_rows == 0)
							{
								echo '

									Sellist kasutajat ei leitud!
';
							}
							else
							{
								if(md5($parool) != $test->Password)
								{
									echo '

										Sisestasid vale parooli!
';
								}
								if($test->active == 0)
								{
									echo '

										Sa pead kasutaja emailil oleva lingiga aktiveerima!
';
								}
							}
						}
						else
						{
							echo '

								Kasutajanimi ei vasta nƵuetele!
';
						}
					}
				}
			}
			if(isset($_POST['Logout']))
			{
				if($_SESSION['loggedin'] == true)
				{
					$_SESSION['loggedin'] = false;
					session_destroy();
					echo 'Sa oled edukalt vƤlja loginud, palun oota.. ';
					echo ' top.document.location=self.document.location;  ';
				}
				else
				{
					echo ' top.document.location=self.document.location;  ';
				}
			}
		?>





				if ($_SESSION['loggedin'] == false)
				{
				?>

Registreeri kasutaja
Kuidas alustada?
Tƶƶkohad
Abi


				}
				else
				{
					echo '';
					echo 'Sinu profiil';
					echo 'Sinu rollimƤngu test';
					echo 'Muuda sugu';
					if ($_SESSION['DonateRank'] > 0)
					{
						echo 'Muuda vanust';
					}
					echo 'Muuda parool';
					echo '';
				}
				?>


			if ($_SESSION['loggedin'] == true && $_SESSION['AdminLevel'] > 1)
			{
			?>



					if($_SESSION['AdminLevel'] >= 1337)
					{
						echo 'vLogid';
					}
					if($_SESSION['AdminLevel'] >= 1338)
					{
						echo 'vAdminid';
					}
					if($_SESSION['AdminLevel'] >= 5)
					{
						echo 'RollimƤngu testid';
						echo 'Kontrollimata testid'; 
						echo 'Otsi mƤngijat';
						echo 'Autod';
					}
					if($_SESSION['AdminLevel'] >= 1340)
					{
						echo '1000+ level';
						echo 'Lisa uudis';
						echo 'Logi!'; 
						echo 'Annetajad';
					}
					?>



			}
			?>


		if ($_SESSION['loggedin'] == true)
		{
		?>



Logi vƤlja

		



		}
		if ($_SESSION['loggedin'] == false)
		{
			$page = addslashes($_GET['page']);
			if($page == "home")
			{
			?>





Logi sisse

	


			}
			else
			{
				?>
			}
		}
		?>


			$query = $db->get_row("SELECT COUNT(id) AS `test` FROM `players` WHERE Linked = 1 AND Banned = 0 AND ConnectTime > 10 LIMIT 1");
			$db->query("SET character_set_results = 'utf8'");
			$nimi = $db->get_row("SELECT id, Name FROM `players` ORDER BY id DESC LIMIT 1");
			?>
Aktiivseid kasutajaid kokku:  echo $query->test; ?>
Viimati regas:


				echo $obj->Kasutajanimi($nimi->id); 
			?>

Serveri ip:  echo $config->game; ?>
Mumble:  echo $config->voice; ?>




 
	© Margus
 


Jaga seda postitust


Postituse link
Share on other sites

Mul sama mure, palun aidake :/

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/apache/domains/www.motofoorum.eu/htdocs/CCUCP/index.php:1) in /www/apache/domains/www.motofoorum.eu/htdocs/CCUCP/index.php on line 6

 

Mul mingi teine viga, index.php-s seda asja pole..

Muudetud liikme d0ne'i poolt

Jaga seda postitust


Postituse link
Share on other sites
Mul sama mure, palun aidake :/

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/apache/domains/www.motofoorum.eu/htdocs/CCUCP/index.php:1) in /www/apache/domains/www.motofoorum.eu/htdocs/CCUCP/index.php on line 6

 

Mul mingi teine viga, index.php-s seda asja pole..

 

Viska koodi algusesse

 

session_start();

 

ja kui see ka ei aita siis

 

ob_start();

session_start();

Jaga seda postitust


Postituse link
Share on other sites
Külaline
This topic is now closed to further replies.

×
×
  • Loo uus...

Oluline informatsioon

Selle veebisaidi paremaks muutmiseks oleme teie seadmesse paigutanud küpsised . Võite kohandada oma küpsiste seadeid , vastasel juhul eeldame, et te olete küpsiste kasutamisega nõus kui jätkate veebisaidil sirvimist.. Palun lugege läbi Kasutustingimused ja Privaatsuspoliitika.