• 19-09-2013, 22:12:43
    #1
    Üyeliği durduruldu
    Arkadaşlar bir admin panel login temasını mevcut sistemime giydirmeye çalışıyorum, herşey normal fakat oturum aç dediğimde index.php sayfasına gitmek yerine login.php de kalmaya devam ediyor, fakat ben manuel olarak siteadı.com/admin/index.php dediğimde oturum açmış olarak giril yapabiliyorum

    Kodlarım şu şekilde, Nerde hata yapıyorum ?

    <?php
    
    
    	require_once( '../Connections/sitedb.php' );
    
    	if (!isset( $_SESSION )) {
    		session_start(  );
    	}
    
    	$loginFormAction = $_SERVER['PHP_SELF'];
    
    	if (isset( $_GET['accesscheck'] )) {
    		$_SESSION['PrevUrl'] = $_GET['accesscheck'];
    	}
    
    
    	if (isset( $_POST['loginname'] )) {
    		$loginUsername = $_POST['loginname'];
    		$password = $_POST['loginpass'];
    		$MM_fldUserAuthorization = '';
    		$MM_redirectLoginSuccess = 'index.php';
    		$MM_redirectLoginFailed = 'login.php';
    		$MM_redirecttoReferrer = true;
    		mysql_select_db( $database_sitedb, $sitedb );
    		$LoginRS__query = sprintf( 'SELECT loginname, loginpass FROM pw WHERE loginname=\'%s\' AND loginpass=\'%s\'', (get_magic_quotes_gpc(  ) ? $loginUsername : addslashes( $loginUsername )), (get_magic_quotes_gpc(  ) ? $password : addslashes( $password )) );
    
    		if (!( $LoginRS = mysql_query( $LoginRS__query, $sitedb ))) {
    			exit( mysql_error(  ) );
    			
    		}
    
    		$loginFoundUser = mysql_num_rows( $LoginRS );
    
    		if ($loginFoundUser) {
    			$loginStrGroup = 'adminis';
    			$_SESSION['MM_Username'] = $loginUsername;
    			$_SESSION['MM_UserGroup'] = $loginStrGroup;
    
    			if (( isset( $_SESSION['PrevUrl'] ) && true )) {
    				$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
    			}
    
    			header( 'Location: ' . $MM_redirectLoginSuccess );
    		}
    		
    		header( 'Location: ' . $MM_redirectLoginSuccess );
    	}
    
    ?>
    <!DOCTYPE html>
    <html lang="tr">
    <head>
    
    	<meta charset="utf-8">
    	<title>Admin Panel</title>
    	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
    	<meta name="author" content="Muhammad Usman">
    
    	<!-- The styles -->
    	<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
    	<style type="text/css">
    	  body {
    		padding-bottom: 40px;
    	  }
    	  .sidebar-nav {
    		padding: 9px 0;
    	  }
    	</style>
    	<link href="css/bootstrap-responsive.css" rel="stylesheet">
    	<link href="css/charisma-app.css" rel="stylesheet">
    	<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
    	<link href='css/fullcalendar.css' rel='stylesheet'>
    	<link href='css/fullcalendar.print.css' rel='stylesheet'  media='print'>
    	<link href='css/chosen.css' rel='stylesheet'>
    	<link href='css/uniform.default.css' rel='stylesheet'>
    	<link href='css/colorbox.css' rel='stylesheet'>
    	<link href='css/jquery.cleditor.css' rel='stylesheet'>
    	<link href='css/jquery.noty.css' rel='stylesheet'>
    	<link href='css/noty_theme_default.css' rel='stylesheet'>
    	<link href='css/elfinder.min.css' rel='stylesheet'>
    	<link href='css/elfinder.theme.css' rel='stylesheet'>
    	<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
    	<link href='css/opa-icons.css' rel='stylesheet'>
    	<link href='css/uploadify.css' rel='stylesheet'>
    
    	<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    	<!--[if lt IE 9]>
    	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    	<![endif]-->
    
    	<!-- The fav icon -->
    	<link rel="shortcut icon" href="img/favicon.ico">
    		
    </head>
    
    <body>
    		<div class="container-fluid">
    		<div class="row-fluid">
    		
    			<div class="row-fluid">
    				<div class="span12 center login-header">
    					<h2>Turizm Acente v1 Pro PHPScript.</h2>
    				</div><!--/span-->
    			</div><!--/row-->
    			
    			<div class="row-fluid">
    			
    				<div class="well span5 center login-box">
    					<div class="alert alert-info">
    						Admin Paneline Hoş Geldiniz
    					</div>
    					<form id="form1" action="<?php echo $loginFormAction; ?>" name="form1" method="post" class="form-horizontal">
    						<fieldset>
    							<div class="input-prepend" title="Username" data-rel="tooltip">
    								<span class="add-on"><i class="icon-user"></i></span><input autofocus class="input-large span10" name="loginname" id="loginname" type="text" value="" />
    							</div>
    							<div class="clearfix"></div>
    
    							<div class="input-prepend" title="Password" data-rel="tooltip">
    								<span class="add-on"><i class="icon-lock"></i></span><input class="input-large span10" name="loginpass" id="loginpass" type="password" value="" />
    							</div>
    							<div class="clearfix"></div>
    
    							
    							<div class="clearfix"></div>
    
    							<p class="center span5">
    							<input type="submit" value="Oturum Aç" name="goButton" /> 
    							</p>
    						</fieldset>
    					</form>
    				</div><!--/span-->
    			</div><!--/row-->
    				</div><!--/fluid-row-->
    		
    	</div><!--/.fluid-container-->
    
    	<!-- external javascript
    	================================================== -->
    	<!-- Placed at the end of the document so the pages load faster -->
    
    	<!-- jQuery -->
    	<script src="js/jquery-1.7.2.min.js"></script>
    	<!-- jQuery UI -->
    	<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
    	<!-- transition / effect library -->
    	<script src="js/bootstrap-transition.js"></script>
    	<!-- alert enhancer library -->
    	<script src="js/bootstrap-alert.js"></script>
    	<!-- modal / dialog library -->
    	<script src="js/bootstrap-modal.js"></script>
    	<!-- custom dropdown library -->
    	<script src="js/bootstrap-dropdown.js"></script>
    	<!-- scrolspy library -->
    	<script src="js/bootstrap-scrollspy.js"></script>
    	<!-- library for creating tabs -->
    	<script src="js/bootstrap-tab.js"></script>
    	<!-- library for advanced tooltip -->
    	<script src="js/bootstrap-tooltip.js"></script>
    	<!-- popover effect library -->
    	<script src="js/bootstrap-popover.js"></script>
    	<!-- button enhancer library -->
    	<script src="js/bootstrap-button.js"></script>
    	<!-- accordion library (optional, not used in demo) -->
    	<script src="js/bootstrap-collapse.js"></script>
    	<!-- carousel slideshow library (optional, not used in demo) -->
    	<script src="js/bootstrap-carousel.js"></script>
    	<!-- autocomplete library -->
    	<script src="js/bootstrap-typeahead.js"></script>
    	<!-- tour library -->
    	<script src="js/bootstrap-tour.js"></script>
    	<!-- library for cookie management -->
    	<script src="js/jquery.cookie.js"></script>
    	<!-- calander plugin -->
    	<script src='js/fullcalendar.min.js'></script>
    	<!-- data table plugin -->
    	<script src='js/jquery.dataTables.min.js'></script>
    
    	<!-- chart libraries start -->
    	<script src="js/excanvas.js"></script>
    	<script src="js/jquery.flot.min.js"></script>
    	<script src="js/jquery.flot.pie.min.js"></script>
    	<script src="js/jquery.flot.stack.js"></script>
    	<script src="js/jquery.flot.resize.min.js"></script>
    	<!-- chart libraries end -->
    
    	<!-- select or dropdown enhancer -->
    	<script src="js/jquery.chosen.min.js"></script>
    	<!-- checkbox, radio, and file input styler -->
    	<script src="js/jquery.uniform.min.js"></script>
    	<!-- plugin for gallery image view -->
    	<script src="js/jquery.colorbox.min.js"></script>
    	<!-- rich text editor library -->
    	<script src="js/jquery.cleditor.min.js"></script>
    	<!-- notification plugin -->
    	<script src="js/jquery.noty.js"></script>
    	<!-- file manager library -->
    	<script src="js/jquery.elfinder.min.js"></script>
    	<!-- star rating plugin -->
    	<script src="js/jquery.raty.min.js"></script>
    	<!-- for iOS style toggle switch -->
    	<script src="js/jquery.iphone.toggle.js"></script>
    	<!-- autogrowing textarea plugin -->
    	<script src="js/jquery.autogrow-textarea.js"></script>
    	<!-- multiple file upload plugin -->
    	<script src="js/jquery.uploadify-3.1.min.js"></script>
    	<!-- history.js for cross-browser state change on ajax -->
    	<script src="js/jquery.history.js"></script>
    	<!-- application script for Charisma demo -->
    	<script src="js/charisma.js"></script>
    	
    		
    </body>
    </html>


    --R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 22:12:43 -->-> Daha önceki mesaj 21:10:49 --

    yokmu yardımcı olabilecek bir arkadaşımız ?
  • 19-09-2013, 22:23:28
    #2
    bence bilgileri dosyadan almak daha güvenli ve daha kolay hocam onu denemenizi öneririm..
  • 19-09-2013, 22:34:26
    #3
    Üyeliği durduruldu
    $MM_redirectLoginSuccess = 'index.php'; calışmayan foksiyon bu ama neden çözemedim
  • 19-09-2013, 23:39:27
    #4
    dosyanın bom'suz olduğuna emin misin?
  • 20-09-2013, 09:08:13
    #5
    Üyeliği durduruldu
    Erden35 adlı üyeden alıntı: mesajı görüntüle
    dosyanın bom'suz olduğuna emin misin?
    Teşekkür ederim @Erden35 bu küçük ayrıntıyı nasıl atladım ve nasıl aklıma gelmedi Teşekkür ederim sorun çözüldü konu kilit lütfen