示例#1
0
<?php

include 'inc/ayar.php';
include 'inc/kontrol.php';
$ekle = uzanti2($adres2);
if (empty($ekle)) {
    $_SESSION['ayarlar'] = uzanti($adres);
} else {
    $_SESSION['ayarlar'] = uzanti2($adres2);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<link rel="stylesheet" type="text/css" href="css/terminal.css" />
<script type="text/javascript" src="js/jquery-1.4.2.js"></script> 
<title>Otel Yönetim Paneli</title>
</head>

<body>
	<div id="genel">
<?php 
include 'inc/ust.php';
include 'inc/altmenu.php';
?>

        <div class="temizle sol" style="margin-top:25px">
        	<div id="solmenu" class="sol">
<?php 
include 'inc/sol.php';
示例#2
0
文件: ayar.php 项目: Rahajustone/PHP
            if (preg_match('/' . $rw[$b] . '/', $gets)) {
                $temp = key($_GET);
                $_GET[$temp] = '';
                exit('�ans�n� Zorlama');
                continue;
            }
        }
    }
}
define('DB_HOST', 'localhost');
define('DB_USER', 'demo_turizm');
define('DB_PASSWORD', '654123');
define('DB_DATABASE', 'demo_turizm');
include '../inc/database.php';
$siteayarlar = mysql_query("select * from siteayarlari WHERE site_id='1'");
$siteayarlarveri = mysql_fetch_array($siteayarlar);
function uzanti($adres)
{
    $ender = explode("/", $adres);
    $uzanti = $ender[count($ender) - 1];
    return $uzanti;
}
$adres = $_SERVER['REQUEST_URI'];
function uzanti2($adres2)
{
    $ender2 = explode("?", $adres2);
    $uzanti2 = $ender2[count($ender2) - 2];
    return $uzanti2;
}
$adres2 = uzanti($adres);
示例#3
0
{
    $uznt = pathinfo($dosya);
    return $uznt['extension'];
}
$idcek = $db->query("SELECT uye_id FROM uyeler WHERE username='******' ", PDO::FETCH_ASSOC);
if ($idcek->rowCount()) {
    foreach ($idcek as $oku) {
        $veri = $oku['uye_id'];
    }
}
if (file_exists("images/" . $veri . '/' . $veri . '.' . "jpg")) {
    unlink("images/" . $veri . '/' . $veri . '.' . "jpg");
}
$maxboyut = 1 * 1024 * 1024;
/*1MB*/
$uzanti = uzanti($_FILES["admindosyadegis"]["name"]);
$dosya_adi = $veri . '.' . $uzanti;
$dosya_yolu = "C:/wamp/www/bootstrapsite/images/" . $veri . '/' . $dosya_adi;
$tip = $_FILES["admindosyadegis"]["type"];
if ($_FILES["admindosyadegis"]["size"] > $maxboyut) {
    echo "dosya boyutu en fazla 1MB olabilir!!!";
} else {
    if ($tip == "image/jpeg") {
        if (is_uploaded_file($_FILES["admindosyadegis"]["tmp_name"])) {
            $tasi = move_uploaded_file($_FILES["admindosyadegis"]["tmp_name"], $dosya_yolu);
            if ($tasi) {
                echo "Resim güncelleme iþlemi baþarýlý " . $username;
                header("refresh:2;url=index.php");
            } else {
                echo "hata oluþtu";
            }
示例#4
0
     //Ýþlemi durdur
 }
 $olustur = mkdir($klasor_adi, 0700);
 //olusan üyenin id si adýnda bir klasor olusturma
 if ($olustur) {
     /* resim yükleme */
     /* yüklenen dosyanýn veri tipini bulma fonksiyonu*/
     function uzanti($dosya)
     {
         $uznt = pathinfo($dosya);
         return $uznt['extension'];
     }
     /* yüklenen dosyayý uye_id adýndaki klasoru içine uye_id . jpg adýnda kaydetme */
     $maxboyut = 1 * 1024 * 1024;
     /*1MB*/
     $uzanti = uzanti($_FILES["dosya"]["name"]);
     $idcek = $db->query("SELECT uye_id FROM uyeler WHERE username='******' ", PDO::FETCH_ASSOC);
     if ($idcek->rowCount()) {
         foreach ($idcek as $oku) {
             $veri = $oku['uye_id'];
         }
     }
     $dosya_adi = $veri . '.' . $uzanti;
     $dosya_yolu = "images/" . $veri . '/' . $dosya_adi;
     $tip = $_FILES["dosya"]["type"];
     if ($_FILES["dosya"]["size"] > $maxboyut) {
         echo "dosya boyutu en fazla 1MB olabilir!!!";
     } else {
         if ($tip == "image/jpeg") {
             if (is_uploaded_file($_FILES["dosya"]["tmp_name"])) {
                 $tasi = move_uploaded_file($_FILES["dosya"]["tmp_name"], $dosya_yolu);
示例#5
0
$idcek = $db->query("SELECT uye_id FROM uyeler WHERE username='******' ", PDO::FETCH_ASSOC);
if ($idcek->rowCount()) {
    foreach ($idcek as $oku) {
        $veri = $oku['uye_id'];
    }
}
if (!file_exists("images/" . $veri)) {
    $yol = "images/" . $veri;
    mkdir($yol, 0700);
}
if (file_exists("images/" . $veri . '/' . $veri . '.' . "jpg")) {
    unlink("images/" . $veri . '/' . $veri . '.' . "jpg");
}
$maxboyut = 1 * 1024 * 1024;
/*1MB*/
$uzanti = uzanti($_FILES["kullanicidosyadegis"]["name"]);
$dosya_adi = $veri . '.' . $uzanti;
$dosya_yolu = "C:/wamp/www/bootstrapsite/images/" . $veri . '/' . $dosya_adi;
$tip = $_FILES["kullanicidosyadegis"]["type"];
if ($_FILES["kullanicidosyadegis"]["size"] > $maxboyut) {
    echo "dosya boyutu en fazla 1MB olabilir!!!";
} else {
    if ($tip == "image/jpeg") {
        if (is_uploaded_file($_FILES["kullanicidosyadegis"]["tmp_name"])) {
            $tasi = move_uploaded_file($_FILES["kullanicidosyadegis"]["tmp_name"], $dosya_yolu);
            if ($tasi) {
                echo "Resim güncelleme iþlemi baþarýlý " . $username;
                header("refresh:2;url=profil.php");
            } else {
                echo "hata oluþtu";
            }