LiteSpeed Linux server2.poyrazhosting.com 3.10.0-962.3.2.lve1.5.77.el7.x86_64 #1 SMP Mon Dec 12 07:06:14 EST 2022 x86_64 safemode : OFF MySQL: OFF | Perl: OFF | cURL: ON | WGet: OFF > / home / cuneytsener53 / kisisel2.snrsoft.com.tr / admin / | Server Ip : 104.21.78.54 |
Filename | /home/cuneytsener53/kisisel2.snrsoft.com.tr/admin/sosyalmedya.php |
Size | 6.43 kb |
Permission | rw-r--r-- |
Owner | |
Create time | 02-Mar-2025 05:46 |
Last modified | 20-Aug-2021 19:29 |
Last accessed | 29-Mar-2025 23:21 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
include("include/baglan.php");
include("include/fonksiyonlar.php");
ob_start();
session_start();
oturumkontrolana();
if($_POST['kaydet']){
$instagram=$_POST['instagram'];
$youtube = $_POST['youtube'];
$linkedin = $_POST['linkedin'];
$facebook = $_POST['facebook'];
$id = 1;
$ekle = $db->prepare("update sosyalmedya set instagram=:instagram,youtube=:youtube,facebook=:facebook,linkedin=:linkedin where id=:id");
$hemen = $ekle->execute(array("instagram"=>$instagram,"facebook"=>$facebook,"youtube"=>$youtube,"linkedin"=>$linkedin,"id"=>$id));
}
$s = $db->query("select * from sosyalmedya where id='1'")->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?=$ayar['site_description']?>">
<meta name="keywords" content="<?=$ayar['site_keyword']?>">
<meta name="author" content="https://www.umuttamirci.com">
<link rel="icon" type="image/png" href="resimler/<?=$ayar['favicon']?>">
<title>Sosyal Medya - <?=$ayar['site_title']?></title>
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,700,800&display=swap" rel="stylesheet">
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/plugins/font-awesome/css/all.min.css" rel="stylesheet">
<link href="assets/plugins/perfectscroll/perfect-scrollbar.css" rel="stylesheet">
<link href="assets/css/main.min.css" rel="stylesheet">
<link href="assets/css/custom.css" rel="stylesheet">
</head>
<body>
<div class="page-container">
<div class="page-header">
<?php include("include/header.php");?>
</div>
<?php include("include/menu.php");?>
<div class="page-content">
<div class="main-wrapper">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">Sosyal Medya</h5>
<p class="card-description">Lütfen boş alan bırakmayın.</p>
<?=$mesaj?>
<form method="post" enctype="multipart/form-data" >
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-facebook"></i></span>
<input type="text" class="form-control" name="facebook" placeholder="Facebook" value="<?=$s['facebook']?>" aria-label="Facebook" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-instagram"></i></span>
<input type="text" class="form-control" name="instagram" placeholder="İnstagram" value="<?=$s['instagram']?>" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-youtube"></i></span>
<input type="text" class="form-control" name="youtube" placeholder="youtube" value="<?=$s['youtube']?>" aria-label="Youtube" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-linkedin"></i></span>
<input type="text" class="form-control" name="linkedin" placeholder="linkedin" value="<?=$s['linkedin']?>" aria-label="Linkedin" aria-describedby="basic-addon1">
</div>
<div class="mb-3">
<input type="submit" name="kaydet" class="btn btn-primary" value="Kaydet">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="ckeditor-2/ckeditor.js"></script>
<script src="assets/plugins/jquery/jquery-3.4.1.min.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="assets/plugins/perfectscroll/perfect-scrollbar.min.js"></script>
<script src="assets/js/main.min.js"></script>
<script src="https://use.fontawesome.com/ca9a29c061.js"></script>
</body>
</html>
include("include/baglan.php");
include("include/fonksiyonlar.php");
ob_start();
session_start();
oturumkontrolana();
if($_POST['kaydet']){
$instagram=$_POST['instagram'];
$youtube = $_POST['youtube'];
$linkedin = $_POST['linkedin'];
$facebook = $_POST['facebook'];
$id = 1;
$ekle = $db->prepare("update sosyalmedya set instagram=:instagram,youtube=:youtube,facebook=:facebook,linkedin=:linkedin where id=:id");
$hemen = $ekle->execute(array("instagram"=>$instagram,"facebook"=>$facebook,"youtube"=>$youtube,"linkedin"=>$linkedin,"id"=>$id));
}
$s = $db->query("select * from sosyalmedya where id='1'")->fetch(PDO::FETCH_ASSOC);
?>
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<?=$ayar['site_description']?>">
<meta name="keywords" content="<?=$ayar['site_keyword']?>">
<meta name="author" content="https://www.umuttamirci.com">
<link rel="icon" type="image/png" href="resimler/<?=$ayar['favicon']?>">
<title>Sosyal Medya - <?=$ayar['site_title']?></title>
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,700,800&display=swap" rel="stylesheet">
<link href="assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/plugins/font-awesome/css/all.min.css" rel="stylesheet">
<link href="assets/plugins/perfectscroll/perfect-scrollbar.css" rel="stylesheet">
<link href="assets/css/main.min.css" rel="stylesheet">
<link href="assets/css/custom.css" rel="stylesheet">
</head>
<body>
<div class="page-container">
<div class="page-header">
<?php include("include/header.php");?>
</div>
<?php include("include/menu.php");?>
<div class="page-content">
<div class="main-wrapper">
<div class="row">
<div class="col">
<div class="card">
<div class="card-body">
<h5 class="card-title">Sosyal Medya</h5>
<p class="card-description">Lütfen boş alan bırakmayın.</p>
<?=$mesaj?>
<form method="post" enctype="multipart/form-data" >
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-facebook"></i></span>
<input type="text" class="form-control" name="facebook" placeholder="Facebook" value="<?=$s['facebook']?>" aria-label="Facebook" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-instagram"></i></span>
<input type="text" class="form-control" name="instagram" placeholder="İnstagram" value="<?=$s['instagram']?>" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-youtube"></i></span>
<input type="text" class="form-control" name="youtube" placeholder="youtube" value="<?=$s['youtube']?>" aria-label="Youtube" aria-describedby="basic-addon1">
</div>
<div class="input-group mb-3">
<span class="input-group-text" id="basic-addon1"><i class=" fa fa-linkedin"></i></span>
<input type="text" class="form-control" name="linkedin" placeholder="linkedin" value="<?=$s['linkedin']?>" aria-label="Linkedin" aria-describedby="basic-addon1">
</div>
<div class="mb-3">
<input type="submit" name="kaydet" class="btn btn-primary" value="Kaydet">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="ckeditor-2/ckeditor.js"></script>
<script src="assets/plugins/jquery/jquery-3.4.1.min.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="assets/plugins/perfectscroll/perfect-scrollbar.min.js"></script>
<script src="assets/js/main.min.js"></script>
<script src="https://use.fontawesome.com/ca9a29c061.js"></script>
</body>
</html>