Exemple #1
0
<?php

session_start();
error_reporting(0);
include '../../library/Elkatek_Connection.php';
include '../../library/guvenlik.php';
include '../../library/functions.php';
$fonks = new yeniyol();
$sec = new Yeniyol_Guvenlik();
$fonks->home_lang('../../library/lang/');
if (!isset($_POST['ekayit']) || empty($_POST['ekayit'])) {
    exit;
} else {
    $posta = $sec->metin($_POST['ekayit']);
    if (!filter_var($posta, FILTER_VALIDATE_EMAIL)) {
        echo "<script>alert('" . BULTEN_ERR . "');</script>";
    } else {
        $sql = mysql_query("SELECT posta FROM bulten WHERE posta='" . $posta . "' LIMIT 1");
        if (mysql_num_rows($sql) > 0) {
            echo "<script>alert('" . BULTEN_OLD . "');</script>";
        } else {
            $ip = $_SERVER['REMOTE_ADDR'];
            $tarih = date("Y-n-d H:i:s");
            $kayit = mysql_query("INSERT INTO bulten VALUES(NULL,'" . $ip . "','" . $tarih . "','" . $posta . "')");
            echo "<script type=\"text/javascript\">\r\n\t\t\t\$(document).ready(function(){\r\n\t\t\talert('" . BULTEN_OK . "');\r\n\t\t\tdocument.getElementById('ekayit').value='" . BULTEN_INPUT . "';\r\n\t\t\t});\r\n\t\t\t</script>";
        }
    }
}
$baglan->kapat();
Exemple #2
0
ob_start();
error_reporting(0);
define('ELKATEK_ELEKTRONIK_YENIYOL', false);
include 'library/Elkatek_Connection.php';
include 'library/guvenlik.php';
include 'library/functions.php';
include 'library/sayfa.php';
include 'library/seo.php';
include 'library/case.php';
$sec = new Yeniyol_Guvenlik();
$pages = new Pager_Yeniyol();
$fonks = new yeniyol();
$mains = new icerik_yonetimi();
$fonks->lang(intval($_GET['dil']), strip_tags($_GET['url']));
$fonks->home_lang('library/lang/');
$page = $sec->metin($_GET['ym']);
$incs = $mains->icerik($page, $sec->sayi($_GET['id']));
$cont = $fonks->data_yaz('adres,tel,fax,eposta,sanal', 'ayarlar', '');
?>
<!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=utf-8" />
<title><?php 
echo $incs['title'];
?>
</title>
<meta name="description" content="<?php 
echo $incs['desc'];
?>
" />
Exemple #3
0
<?php

session_start();
error_reporting(0);
include '../../library/Elkatek_Connection.php';
include '../../library/guvenlik.php';
include '../../library/functions.php';
$fonks = new yeniyol();
$sec = new Yeniyol_Guvenlik();
$fonks->home_lang('../../library/lang/');
if (isset($_POST['isim'])) {
    $sorgu = mysql_query("SELECT iletisim_mail FROM ayarlar");
}
$yaz = mysql_fetch_assoc($sorgu);
$isim = $sec->metin($_POST['isim']);
$telefon = $sec->metin($_POST['telefon']);
$posta = $sec->metin($_POST['posta']);
$firma = $sec->metin($_POST['firma']);
$vdairesi = $sec->metin($_POST['vdairesi']);
$vnumarasi = $sec->metin($_POST['vnumarasi']);
$fax = $sec->metin($_POST['fax']);
$gsm = $sec->metin($_POST['gsm']);
$ktalep = $sec->metin($_POST['ktalep']);
$adres = $sec->metin($_POST['adres']);
$mesaj = $sec->metin($_POST['mesaj']);
$tarih = date("d-m-Y H:i:s");
$ip = $_SERVER['REMOTE_ADDR'];
$ileti = '<hr /><strong>İsim : </strong>' . $isim . '<br>';
$ileti .= '<strong>Telefon : </strong>' . $telefon . '<br>';
$ileti .= '<strong>E-Posta : </strong>' . $posta . '<br>';
$ileti .= '<strong>Firma : </strong>' . $firma . '<br>';