Sindbad~EG File Manager

Current Path : /home/beghelic/www/admin/pages/
Upload File :
Current File : /home/beghelic/www/admin/pages/tdc.php

<?php
include "../kod/baglan.php";
session_start();
if(@$_SESSION["oturum"] == 1){
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <title>Yönetim Paneli</title>
    <!-- Favicon-->
    <link rel="icon" href="" type="image/x-icon">

    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">

    <!-- Bootstrap Core Css -->
    <link href="../plugins/bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- Waves Effect Css -->
    <link href="../plugins/node-waves/waves.css" rel="stylesheet" />

    <!-- Animation Css -->
    <link href="../plugins/animate-css/animate.css" rel="stylesheet" />

    <!-- Sweet Alert Css -->
    <link href="../plugins/sweetalert/sweetalert.css" rel="stylesheet" />

    <!-- Custom Css -->
    <link href="../css/style.css" rel="stylesheet">

    <!-- AdminBSB Themes. You can choose a theme from css/themes instead of get all themes -->
    <link href="../css/themes/all-themes.css" rel="stylesheet" />

    <script type="text/javascript" src="../editor/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../editor/ckfinder/ckfinder.js"></script>
</head>

<body class="theme-red">

    <!-- Overlay For Sidebars -->
    <div class="overlay"></div>
    <!-- #END# Overlay For Sidebars -->

    <!-- Top Bar -->
    <nav class="navbar">
        <div class="container-fluid">
            <div class="navbar-header">
                <a href="javascript:void(0);" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false"></a>
                <a href="javascript:void(0);" class="bars"></a>
                <a class="navbar-brand" href="javascript:void(0);">YÖNETİM PANELİ</a>
            </div>
            <div class="collapse navbar-collapse" id="navbar-collapse">
                <ul class="nav navbar-nav navbar-right">

                    <!-- #END# Tasks -->
                    <li class="pull-right"><a href="javascript:void(0);" class="js-right-sidebar" data-close="true"><i class="material-icons">more_vert</i></a></li>
                </ul>
            </div>
        </div>
    </nav>
    <!-- #Top Bar -->
    <section>
        <!-- Left Sidebar -->
        <aside id="leftsidebar" class="sidebar">
            <!-- User Info -->

            <!-- #User Info -->
            <!-- Menu -->
            <div class="menu">
                <ul class="list">
                    <li class="header">MENÜ</li>
                    <?php include "menu.php"; ?>
                </ul>
            </div>
            <!-- #Menu -->
            <!-- Footer -->
            <div class="legal">
                <div class="version">
                    <b>Version: </b> 1.0.0
                </div>
            </div>
            <!-- #Footer -->
        </aside>
        <!-- #END# Left Sidebar -->
        <!-- Right Sidebar -->
        <aside id="rightsidebar" class="right-sidebar">
            <ul class="nav nav-tabs tab-nav-right" role="tablist">
                <li role="presentation" class="active"><a href="#skins" data-toggle="tab">SKINS</a></li>
                <li role="presentation"><a href="#settings" data-toggle="tab">SETTINGS</a></li>
            </ul>
            <div class="tab-content">

                <div role="tabpanel" class="tab-pane fade" id="settings">
                    <div class="demo-settings">
                        <p>GENERAL SETTINGS</p>
                        <ul class="setting-list">
                            <li>
                                <span>Report Panel Usage</span>
                                <div class="switch">
                                    <label><input type="checkbox" checked><span class="lever"></span></label>
                                </div>
                            </li>
                            <li>
                                <span>Email Redirect</span>
                                <div class="switch">
                                    <label><input type="checkbox"><span class="lever"></span></label>
                                </div>
                            </li>
                        </ul>
                        <p>SYSTEM SETTINGS</p>
                        <ul class="setting-list">
                            <li>
                                <span>Notifications</span>
                                <div class="switch">
                                    <label><input type="checkbox" checked><span class="lever"></span></label>
                                </div>
                            </li>
                            <li>
                                <span>Auto Updates</span>
                                <div class="switch">
                                    <label><input type="checkbox" checked><span class="lever"></span></label>
                                </div>
                            </li>
                        </ul>
                        <p>ACCOUNT SETTINGS</p>
                        <ul class="setting-list">
                            <li>
                                <span>Offline</span>
                                <div class="switch">
                                    <label><input type="checkbox"><span class="lever"></span></label>
                                </div>
                            </li>
                            <li>
                                <span>Location Permission</span>
                                <div class="switch">
                                    <label><input type="checkbox" checked><span class="lever"></span></label>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </aside>
        <!-- #END# Right Sidebar -->
    </section>

    <section class="content">
        <div class="container-fluid">
            <div class="block-header">
                <h2>SAYFA YÖNETİMİ</h2>
            </div>

            <!-- Vertical Layout -->
            <div class="row clearfix">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="card">



                        <div class="header">
                          <h2>
                            <a href="tdc.php?s=<?php echo $_GET["s"] ?>" class="btn btn-default waves-effect">TÜRKÇE</a>
                            <a href="tdc.php?s=<?php echo $_GET["s"] ?>&lang=en" class="btn btn-default waves-effect">İNGİLİZCE</a>
                            <a href="tdc.php?s=<?php echo $_GET["s"] ?>&lang=de" class="btn btn-default waves-effect">ALMANCA</a>
                          </h2>
                        </div>
                        <div class="body">
                          <?php
                          $s = $_GET["s"];
                          @$lang = $_GET["lang"];

                          if(empty($lang)){
                            $anasayfa = $db->query('SELECT * FROM tdc where id = "'.$s.'"');
                          }else{
                            $anasayfa = $db->query('SELECT * FROM tdc where root_id = "'.$s.'" AND lang = "'.$lang.'"');
                          }

                          $ucek = $anasayfa->fetch(PDO::FETCH_OBJ);
                          ?>
                          <form action="../kod/tdc-guncelle.php" method="post" enctype="multipart/form-data">
                              <label for="password" style="<?php echo ($s == 6 ? 'display:block' : 'display:none'); ?>">Resim</label>
                              <div class="form-group" style="<?php echo ($s == 6 ? 'display:block' : 'display:none'); ?>">
                                  <div class="form-line">
                                      <input type="file" name="file" class="form-control">
                                  </div>
                              </div>
                              <label for="email_address">Title (Max 255 Karakter)</label>
                              <div class="form-group">
                                  <div class="form-line">
                                      <input type="text" name="title" class="form-control" value="<?php echo $ucek->title ?>">
                                      <input type="hidden" name="id" class="form-control" value="<?php echo $ucek->id ?>">
                                  </div>
                              </div>
                              <label for="password">Keywords (Max 255 Karakter)</label>
                              <div class="form-group">
                                  <div class="form-line">
                                      <input type="text" name="keywords" class="form-control" value="<?php echo $ucek->keywords ?>">
                                  </div>
                              </div>
                              <label for="password">Description (Max 320 Karakter)</label>
                              <div class="form-group">
                                  <div class="form-line">
                                      <input type="text" name="description" class="form-control" value="<?php echo $ucek->description ?>">
                                  </div>
                              </div>
                              <label for="password">Başlık</label>
                              <div class="form-group">
                                  <div class="form-line">
                                      <input type="text" name="baslik" class="form-control" value="<?php echo $ucek->baslik ?>">
                                  </div>
                              </div>

                              <?php
                              if($s== 1 OR $s == 6){
                                $cemyilmaz = "none";
                              }else{
                                $cemyilmaz = "inline-block";
                              }
                              ?>

                              <label for="password" style="display:<?php echo $cemyilmaz; ?>">İçerik</label>
                              <div class="form-group" id="aciklamabolum" style="display:<?php echo $cemyilmaz; ?>; width:100%;">

            								  <textarea class="icerik" cols="80" id="icerik" name="icerik" rows="10"><?php echo $ucek->icerik ?></textarea>
            							    </div>
                              <button type="submit" class="btn btn-primary m-t-15 waves-effect">Güncelle</button>
                          </form>
                        </div>
                    </div>
                </div>
            </div>
            <!-- #END# Vertical Layout -->



        </div>
    </section>

    <!-- Jquery Core Js -->
    <script src="../plugins/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core Js -->
    <script src="../plugins/bootstrap/js/bootstrap.js"></script>

    <!-- Select Plugin Js -->
    <script src="../plugins/bootstrap-select/js/bootstrap-select.js"></script>

    <!-- Slimscroll Plugin Js -->
    <script src="../plugins/jquery-slimscroll/jquery.slimscroll.js"></script>

    <!-- Waves Effect Plugin Js -->
    <script src="../plugins/node-waves/waves.js"></script>

    <!-- Custom Js -->
    <script src="../js/admin.js"></script>

    <!-- Demo Js -->
    <script src="../js/demo.js"></script>
    <script language="javascript" type="text/javascript">
	var editor = CKEDITOR.replace( 'icerik' );
	CKFinder.setupCKEditor( editor, '../editor/ckfinder/' ) ;
	</script>
</body>
 <?php }else{ header('Location: ../index.php'); } ?>
</html>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists