/home/okbakademi/public_html/admin/vendor/josantonius/session/src/Session.php
'use_strict_mode', 'use_trans_sid',
]);
foreach (array_keys($options) as $key) {
if (!isset($validOptions[$key])) {
throw new WrongSessionOptionException($key);
}
}
}
/**
* Throw exception if headers have already been sent.
*
* @throws HeadersSentException if headers already sent.
*/
private function throwExceptionIfHeadersWereSent(): void
{
$headersWereSent = (bool) ini_get('session.use_cookies') && headers_sent($file, $line);
$headersWereSent && throw new HeadersSentException($file, $line);
}
/**
* Throw exception if the session has already been started.
*
* @throws SessionStartedException if session already started.
*/
private function throwExceptionIfSessionWasStarted(): void
{
$methodName = debug_backtrace()[1]['function'] ?? 'unknown';
$this->isStarted() && throw new SessionStartedException($methodName);
}
/**
* Throw exception if the session was not started.
*
* @throws SessionNotStartedException if session was not started.
*/
private function throwExceptionIfSessionWasNotStarted(): void
/home/okbakademi/public_html/admin/vendor/josantonius/session/src/Session.php
* * save_path: ""
* * serialize_handler: "php"
* * sid_bits_per_character: "4"
* * sid_length: "32"
* * trans_sid_hosts: $_SERVER['HTTP_HOST']
* * trans_sid_tags: "a=href,area=href,frame=src,form="
* * use_cookies: "1"
* * use_only_cookies: "1"
* * use_strict_mode: "0"
* * use_trans_sid: "0"
*
* @see https://php.net/session.configuration
*
* @throws HeadersSentException if headers already sent.
* @throws SessionStartedException if session already started.
* @throws WrongSessionOptionException If setting options failed.
*/
public function start(array $options = []): bool
{
$this->throwExceptionIfHeadersWereSent();
$this->throwExceptionIfSessionWasStarted();
$this->throwExceptionIfHasWrongOptions($options);
return session_start($options);
}
/**
* Gets all attributes.
*/
public function all(): array
{
return $_SESSION ?? [];
}
/**
* Checks if an attribute exists in the session.
*/
public function has(string $name): bool
{
return isset($_SESSION[$name]);
/home/okbakademi/public_html/admin/fonksiyonlar.php
'database' => 'okbakademi_db',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci'
]);
$sql_details = array(
'user' => 'okbakademi_user',
'pass' => 'ZeZpsBxMWUT5Bihj',
'db' => 'okbakademi_db',
'host' => 'localhost',
);
$capsules->setAsGlobal();
$capsules->bootEloquent();
$Session = new Session();
$Session->start();
$site_url = "okbakademi.com";
//$_SERVER['HTTP_HOST'];
$izinler = array(
"Panel",
"Kullanıcı Listele",
"Kullanıcı Düzelt",
"Kullanıcı İşlemleri",
"Kullanıcı Logları",
"Kategori Listele",
"Resim Ekle",
"Resim Listele",
"İşlemler",
"İşlem Ekle",
"İşlem Listele",
/home/okbakademi/public_html/admin/model.php
<?php
require_once'fonksiyonlar.php';
function admin_giris_kontrol(){
global $Session;
global $site_url;
$site_url_gelen = $_SERVER['HTTP_HOST'];
if( $site_url == $site_url_gelen){
$takip = get("t");
$yenino = token_uret_yeni() ;
$gelenler = $Session->get('hepsi');
$object = (object)$gelenler;
if(!empty($object->token_uret_yeni)){
$uretilentok = $object->token_uret_yeni ;
}else{
$uretilentok ="";
}
if( $yenino == $uretilentok and $object->giris == 'true' and $object->takip == $takip ){
return true;
}else{
/home/okbakademi/public_html/index.php
<?php
include_once 'admin/model.php';
/*
if (isset($_SESSION['customer_logged_in']) && $_SESSION['customer_logged_in'] === TRUE) {
*/
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="vendor/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.3.0/font/bootstrap-icons.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/custom.css">
<title></title>
</head>
<body>
<div class="container">
<div class="row mt-5">
<div class="col-md-12">
<div class="row">
<div class="col-md-4 logo"><a style="text-decoration: none; color: black;" href="https://www.zeynepozmeydan.com.tr/"><img class="img-responsive" src="images/logo.png" alt=""></a> </div>