HEX
Server: Apache
System: Linux host.hizmetvakfi.org 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: sinanpasha (1007)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/sinanpasha/public_html/risale/risalepanel/kategori-ekle.php
<?php
//yonetici kontrol dosyasını çagırır.
include ("include-panel/yonetici-kontrol.php");
// Fromdan Bilgileri $_POST ile çek.
$kategori_adi 	= $_POST["kategori_adi"];


?>


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Risale Store</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/font-awesome.min.css" rel="stylesheet">
    <link href="css/prettyPhoto.css" rel="stylesheet">
    <link href="css/price-range.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
	<link href="css/main.css" rel="stylesheet">
	<link href="css/responsive.css" rel="stylesheet">
	<link href="css/amazingslider-1.css" rel="stylesheet">
  
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->       
    <link rel="shortcut icon" href="images/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="images/ico/apple-touch-icon-57-precomposed.png">
   
</head><!--/head-->

<body>
	 <?php include("include-panel/header-top.php")  ?>
      <?php include("include-panel/header.php")  ?>
	
	
    
	<section>
		<div class="container">
			<div class="row">														
				<div class="col-sm-9 padding-right">
					<div class="features_items"><!--features_items-->
						<h2 class="title text-center">Katerori Ekle</h2>
						<div class="col-sm-12">
							<div id="page_content">
    <form name="form1" method="post" action="">
            <table width="450" border="0" align="center" cellpadding="5" cellspacing="5">
              <tr>
                <td width="110" scope="col">Kategori Adı</td>
                <td width="15" scope="col">:</td>
                <td width="176" scope="col"><input name="kategori_adi" type="text" id="kategori_adi" value="<?php echo $kategori_adi;?>" size="25" maxlength="50"></td>
                <td width="84" scope="col">&nbsp;</td>
              </tr>
              <tr>
                <td>yazı alanı</td>
                <td>:</td>
                <td><?php

// Include CKEditor class.

include("ckeditor/ckeditor.php");

$ckeditor = new CKEditor();

//ckeditor klasörümüz eğer klasörümüz aynıysa değiştirmeyelim

$ckeditor->basePath = 'ckeditor/';

//Ckfinder ile ilgili değişkenler eğer dosya ve klasör isimlerinde değişiklik yoksa aynen devam edelim

$ckeditor->config['filebrowserBrowseUrl'] = 'ckfinder/ckfinder.html';

$ckeditor->config['filebrowserImageBrowseUrl'] = 'ckfinder/ckfinder.html?type=Images';

$ckeditor->config['filebrowserImageUploadUrl'] = 'ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';

//ckeditor temamız daha fazlası için ckeditor/skins klasörüne bakın

$ckeditor->config['skin'] = 'office2003';

//Editör genişlik değerimiz

$ckeditor->config['width'] = 700;

//aciklama name yine sahip textarea oluşturuyor

$ckeditor->editor('aciklama',$aciklama);

?></td>
              </tr>
              <tr>
                <td>Durum</td>
                <td>:</td>
                <td><input name="durum" type="checkbox" id="durum" value="1" <?php if ($durum==1) { echo 'checked="CHECKED" '; }?> ></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><input type="submit" name="button" id="button" value="Kategori Ekle"></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td><?php
				if ($_POST ["button"]) {
					// Butona basılmışsa kontrolleri yap
					  if (!$kategori_adi) {
						  echo "kategori adı giriniz";				
					   }else {
					  // kategori ekle başladı
			                $ekle = mysql_query("insert into bolumler set kategori_adi='$kategori_adi',
							durum='$durum' ");
							if ($ekle) {
								echo "Kategori eklendi";
								header("refresh:3;url=kategoriler.php");
							}else {
								echo "Hata: Kategori eklenemedi";
							}
					//-----------------------------------
				}
				//-----------------------------------
				}
				
				 ?></td>
                <td>&nbsp;</td>
              </tr>
            </table>
          </form>
  </div>
						
						</div>
						
					
				</div>
			</div>
		</div>
	</section>
	
	<?php include("include-panel/footer.php") ?>
	
	
    <script src="sliderengine/jquery.js"></script>
    <script src="sliderengine/amazingslider.js"></script>
	 <script src="sliderengine/initslider-1.js"></script>	 
 	<script src="js/bootstrap.min.js"></script>
	<script src="js/jquery.scrollUp.min.js"></script>
	<script src="js/price-range.js"></script>
    <script src="js/jquery.prettyPhoto.js"></script>
    <script src="js/main.js"></script>
</body>
</html>