diff --git a/app/Functions/pelinom.php b/app/Functions/pelinom.php
index 050221e..84d7c19 100644
--- a/app/Functions/pelinom.php
+++ b/app/Functions/pelinom.php
@@ -1,4 +1,4 @@
-
- $data = explode( ',', $base64_string );
+ $data = explode(',', $base64_string);
// we could add validation here with ensuring count( $data ) > 1
- fwrite( $ifp, base64_decode( $data[ 1 ] ) );
+ fwrite($ifp, base64_decode($data[1]));
// clean up the file resource
- fclose( $ifp );
+ fclose($ifp);
- return $output_file;
+ return $output_file;
}
-function admin_delete($id) {
+function admin_delete($id)
+{
?>
- level=="Admin") {
- ?>
-
- level == "Admin") {
+ ?>
+
+
-
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+ where("slug",$slug)->first("title");
- if($sorgu) {
+function slug_to_title($slug)
+{
+ $sorgu = db("contents")->where("slug", $slug)->first("title");
+ if ($sorgu) {
return $sorgu->title;
} else {
return $slug;
}
-
+
}
-function encoder($icerik) {
- // $icerik = utf8_encode($icerik);
+function encoder($icerik)
+{
+ // $icerik = utf8_encode($icerik);
$icerik = strtr($icerik, array(
- '•' => '•',
- '“' => '“',
- 'â€' => '”',
- '‘' => '‘',
- '’' => '’',
- 'ݾ' => 'İ',
- 'Ý' => 'İ',
- 'İ' => 'İ',
- 'Ã' => 'İ',
- '‹' => 'İ',
- 'Ý' => 'İ',
- 'ý' => 'ı',
- 'ı' => 'ı',
- '±' => 'ı',
- 'ý' => 'ı',
- 'Û' => 'ı',
- '›' => 'ı',
- 'ý' => 'ı',
- 'Þ' => 'Ş',
- 'Åž' => 'Ş',
- 'ÅŸ' => 'Ş',
- 'åÿ' => 'Ş',
- 'Þ' => 'Ş',
- 'þ' => 'ş',
- 'Å?' => 'ş',
- 'ÅŸ' => 'ş',
- 'þ' => 'ş',
- 'Ð' => 'Ğ',
- 'Äž' => 'Ğ',
- 'ð' => 'ğ',
- 'Ä?' => 'ğ',
- 'ÄŸ' => 'ğ',
- 'ð' => 'ğ',
- 'Ç' => 'Ç',
- 'Ã?' => 'Ç',
- 'Ç' => 'Ç',
+ '•' => '•',
+ '“' => '“',
+ 'â€' => '”',
+ '‘' => '‘',
+ '’' => '’',
+ 'ݾ' => 'İ',
+ 'Ý' => 'İ',
+ 'İ' => 'İ',
+ 'Ã' => 'İ',
+ '‹' => 'İ',
+ 'Ý' => 'İ',
+ 'ý' => 'ı',
+ 'ı' => 'ı',
+ '±' => 'ı',
+ 'ý' => 'ı',
+ 'Û' => 'ı',
+ '›' => 'ı',
+ 'ý' => 'ı',
+ 'Þ' => 'Ş',
+ 'Åž' => 'Ş',
+ 'ÅŸ' => 'Ş',
+ 'åÿ' => 'Ş',
+ 'Þ' => 'Ş',
+ 'þ' => 'ş',
+ 'Å?' => 'ş',
+ 'ÅŸ' => 'ş',
+ 'þ' => 'ş',
+ 'Ð' => 'Ğ',
+ 'Äž' => 'Ğ',
+ 'ð' => 'ğ',
+ 'Ä?' => 'ğ',
+ 'ÄŸ' => 'ğ',
+ 'ð' => 'ğ',
+ 'Ç' => 'Ç',
+ 'Ã?' => 'Ç',
+ 'Ç' => 'Ç',
'ç' => 'ç',
- 'ç' => 'ç',
- 'Ö' => 'Ö',
- 'Ö' => 'Ö',
- 'ö' => 'ö',
- 'ö' => 'ö',
- 'Ü' => 'Ü',
- 'Ü' => 'Ü',
- 'ü' => 'ü',
- 'ã¼' => 'ü',
- 'ü' => 'ü',
+ 'ç' => 'ç',
+ 'Ö' => 'Ö',
+ 'Ö' => 'Ö',
+ 'ö' => 'ö',
+ 'ö' => 'ö',
+ 'Ü' => 'Ü',
+ 'Ü' => 'Ü',
+ 'ü' => 'ü',
+ 'ã¼' => 'ü',
+ 'ü' => 'ü',
'ü' => 'ü',
- ));
+ ));
return $icerik;
}
-function trk($icerik) {
-// $icerik = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $icerik);
- $encode = mb_detect_encoding($icerik);
- //echo $encode;
- // $icerik = mb_convert_encoding($icerik, "windows-1254", $encode);
- $icerik = @iconv('windows-1254','UTF-8',$icerik);
- $icerik = encoder($icerik);
+function trk($icerik)
+{
+ // $icerik = iconv("ISO-8859-1", "UTF-8//TRANSLIT", $icerik);
+ $encode = mb_detect_encoding($icerik);
+ //echo $encode;
+ // $icerik = mb_convert_encoding($icerik, "windows-1254", $encode);
+ $icerik = @iconv('windows-1254', 'UTF-8', $icerik);
+ $icerik = encoder($icerik);
return $icerik;
}
-function zf($d2){
-$d1 = date('Y-m-d H:i:s');
-//$d1= date('Y-m-d H:i:s', strtotime($d1. "$zaman_dilimi hour"));
+function zf($d2)
+{
+ $d1 = date('Y-m-d H:i:s');
+ //$d1= date('Y-m-d H:i:s', strtotime($d1. "$zaman_dilimi hour"));
//e($d1);
- if(!is_int($d1)) $d1=strtotime($d1);
- if(!is_int($d2)) $d2=strtotime($d2);
- $d=abs($d1-$d2);
-if ($d1-$d2<0) {
-$ifade = "sonra";
-} else {
-$ifade = "önce";
-}
+ if (!is_int($d1))
+ $d1 = strtotime($d1);
+ if (!is_int($d2))
+ $d2 = strtotime($d2);
+ $d = abs($d1 - $d2);
+ if ($d1 - $d2 < 0) {
+ $ifade = "sonra";
+ } else {
+ $ifade = "önce";
+ }
-$once = " ";
- if($d>=(60*60*24*365)) $sonuc = $once . floor($d/(60*60*24*365)) . " yıl $ifade";
- else if($d>=(60*60*24*30)) $sonuc = $once . floor($d/(60*60*24*30)) . " ay $ifade";
- else if($d>=(60*60*24*7)) $sonuc = $once . floor($d/(60*60*24*7)) . " hafta $ifade";
- else if($d>=(60*60*24)) $sonuc = $once . floor($d/(60*60*24)) . " gün $ifade";
- else if($d>=(60*60)) $sonuc = $once . floor($d/(60*60)) . " saat $ifade";
- else if($d>=60) $sonuc = $once . floor($d/60) . " dakika $ifade";
- else $sonuc = "Az $ifade";
+ $once = " ";
+ if ($d >= (60 * 60 * 24 * 365))
+ $sonuc = $once . floor($d / (60 * 60 * 24 * 365)) . " yıl $ifade";
+ else if ($d >= (60 * 60 * 24 * 30))
+ $sonuc = $once . floor($d / (60 * 60 * 24 * 30)) . " ay $ifade";
+ else if ($d >= (60 * 60 * 24 * 7))
+ $sonuc = $once . floor($d / (60 * 60 * 24 * 7)) . " hafta $ifade";
+ else if ($d >= (60 * 60 * 24))
+ $sonuc = $once . floor($d / (60 * 60 * 24)) . " gün $ifade";
+ else if ($d >= (60 * 60))
+ $sonuc = $once . floor($d / (60 * 60)) . " saat $ifade";
+ else if ($d >= 60)
+ $sonuc = $once . floor($d / 60) . " dakika $ifade";
+ else
+ $sonuc = "Az $ifade";
return $sonuc;
}
-function cfg($slug) {
+function cfg($slug)
+{
$c = db("contents")
- ->Where("kid","configuration-".$slug)
- ->get();
+ ->Where("kid", "configuration-" . $slug)
+ ->get();
$cikti = array();
- foreach($c AS $s) {
- array_push($cikti,$s->title);
+ foreach ($c as $s) {
+ array_push($cikti, $s->title);
}
return $cikti;
}
-function logo($size="128",$style="") {
- ?>
- " width="" style=" width: px;" alt="">
-
+ " width=""
+ style=" width: px;" alt="">
+
-
-
-
-
-
-
+
+
+
+
+
-
" width="48" style=" width: 40px;
+
" width="48" style=" width: 40px;
vertical-align: middle" alt="">
-
+
+
+
-
-
- where($col,$val)->get($col);
+function total($tablo, $col, $val)
+{
+ $sorgu = db($tablo)->where($col, $val)->get($col);
return count($sorgu);
}
-function variable($title) {
- $s = db("contents")->where("title",$title)->first();
+function variable($title)
+{
+ $s = db("contents")->where("title", $title)->first();
return $s->html;
}
-function df($date,$format="d.m.Y") {
- return date($format,strtotime($date));
+function df($date, $format = "d.m.Y")
+{
+ return date($format, strtotime($date));
}
-function mailSend($to="",$subject="",$html="") {
+function mailSend($to = "", $subject = "", $html = "")
+{
//VBgDMfu6L5kksh noreply@truncgil.com
-
+
$data = array(
- 'html'=>$html,
+ 'html' => $html,
"subject" => $subject,
- "to" => $to
+ "to" => $to
);
-
+
$title = env("APP_NAME");
try {
- Mail::send("mail-template", $data, function($message) use($to, $subject,$title){
-
+ Mail::send("mail-template", $data, function ($message) use ($to, $subject, $title) {
+
$message->from(env("MAIL_USERNAME"), $title);
$message->to($to);
$message->subject($subject);
});
-
+
} catch (\Throwable $th) {
- // dump($th);
+ // dump($th);
}
-
+
}
-function alert($text,$type="success") {
- ?>
+function alert($text, $type = "success")
+{
+ ?>
- country == "United States") {
+ if ($j->country == "United States") {
$j->country = "USA";
}
return $j;
-
+
}
-function ed($text,$elsetext) {
- if($text=="") return $elsetext;
- else return $text;
+function ed($text, $elsetext)
+{
+ if ($text == "")
+ return $elsetext;
+ else
+ return $text;
}
-function sales_status($y="") {
- if($y=="") {
- return explode(",","Under Negotiate,Due to Payment,Payment Complete,Booking,Shipment,Sold");
+function sales_status($y = "")
+{
+ if ($y == "") {
+ return explode(",", "Under Negotiate,Due to Payment,Payment Complete,Booking,Shipment,Sold");
}
-
+
}
-function status_color($y) {
- $color = array("danger","warning","success");
+function status_color($y)
+{
+ $color = array("danger", "warning", "success");
return $color[$y];
}
-function picture($f,$type="large") {
- $f = str_replace("storage/app/files/","",$f);
- $f = url("cache/$type/".$f);
+function picture($f, $type = "large")
+{
+ $f = str_replace("storage/app/files/", "", $f);
+ $f = url("cache/$type/" . $f);
return $f;
}
-function picture2($f,$size,$storage=1) {
- if($storage==1) {
+function picture2($f, $size, $storage = 1)
+{
+ if ($storage == 1) {
$f = "storage/app/files/$f";
- }
+ }
$f = url("r.php?p=$f&w=$size");
return $f;
}
-function picture3($f,$size) {
-
+function picture3($f, $size)
+{
+
$f = url("r.php?p=$f&w=$size");
return $f;
}
-function price($price,$type="¥") {
- $price = str_replace(",","",$price);
- $price = str_replace(".","",$price);
- $price = str_replace("$","",$price);
- $price = str_replace(" ","",$price);
- // echo $price;
+function price($price, $type = "¥")
+{
+ $price = str_replace(",", "", $price);
+ $price = str_replace(".", "", $price);
+ $price = str_replace("$", "", $price);
+ $price = str_replace(" ", "", $price);
+ // echo $price;
$price = @number_format($price, 0, ',', '.');
return "$type $price";
}
-function nf($price,$type="KG") {
+function nf($price, $type = "KG")
+{
/*
$price = str_replace(",","",$price);
$price = str_replace(".","",$price);
$price = str_replace("$","",$price);
$price = str_replace(" ","",$price);
*/
- // echo $price;
+ // echo $price;
$price = @number_format($price, 2, ',', '.');
return "$price $type";
}
-function clean_price($price) {
- $price = str_replace(",","",$price);
- $price = str_replace(".","",$price);
- $price = str_replace("$","",$price);
- $price = str_replace("¥","",$price);
- $price = str_replace("€","",$price);
- $price = str_replace(" ","",$price);
- // echo $price;
- // $price = @number_format($price, 0, ',', '.');
+function clean_price($price)
+{
+ $price = str_replace(",", "", $price);
+ $price = str_replace(".", "", $price);
+ $price = str_replace("$", "", $price);
+ $price = str_replace("¥", "", $price);
+ $price = str_replace("€", "", $price);
+ $price = str_replace(" ", "", $price);
+ // echo $price;
+ // $price = @number_format($price, 0, ',', '.');
return (float) $price;
}
-function price2($price,$type="¥") {
+function price2($price, $type = "¥")
+{
//$price = str_replace(".","",$price);
$price = @number_format($price, 0, ',', '.');
return "$type $price";
}
-function mile($mile,$type="KM") {
+function mile($mile, $type = "KM")
+{
$type = strtoupper($type);
- $mile = str_replace(".","",$mile);
+ $mile = str_replace(".", "", $mile);
$mile = @number_format($mile, 0, ',', '.');
return "$mile $type";
}
-function currency() {
- return explode(",","Dolar,Euro");
+function currency()
+{
+ return explode(",", "Dolar,Euro");
}
-function simdi() {
+function simdi()
+{
return date("Y-m-d H:i:s");
}
-function fob($price) {
- $fob = str_replace("$ ","",$price);
- $fob = str_replace(",","",$fob);
- return $fob;
+function fob($price)
+{
+ $fob = str_replace("$ ", "", $price);
+ $fob = str_replace(",", "", $fob);
+ return $fob;
}
-function curr($type) {
+function curr($type)
+{
$kur = cfg3("currency-settings");
return $kur[$type];
}
-function cfg2($slug) {
+function cfg2($slug)
+{
$c = db("contents")
- ->Where("kid","configuration-".$slug)
- ->get();
+ ->Where("kid", "configuration-" . $slug)
+ ->get();
$cikti = array();
- foreach($c AS $s) {
- array_push($cikti,$s);
+ foreach ($c as $s) {
+ array_push($cikti, $s);
}
return $cikti;
}
function cfg3($slug)
{
- $c = Contents::where("slug", $slug)->orWhere("type", $slug)->orderBy("id","DESC")->first();
- if($c) {
- $c = json_decode($c->json,true);
+ $c = Contents::where("slug", $slug)->orWhere("type", $slug)->orderBy("id", "DESC")->first();
+ if ($c) {
+ $c = json_decode($c->json, true);
} else {
$c = array();
}
-
+
return $c;
}
-function pic($pic,$type) {
- $pic = str_replace("storage/app/files/","",$pic);
+function pic($pic, $type)
+{
+ $pic = str_replace("storage/app/files/", "", $pic);
return url("cache/$type/$pic");
}
-function product($c) {
+function product($c)
+{
//bu fonk. bir ürün blok tasarımını örnekler
- ?>
-
-
+ ?>
+
+
-
{title}
-
Style: VA33TXRJ5
-
- The Vans All-Weather MTE Collection features footwear and apparel designed to withstand the elements whilst still looking cool.
-
-
- Color
- Green
- Blue
- Red
-
-
- Size
- 41
- 42
- 43
-
-
-
+
{title}
+
Style: VA33TXRJ5
+
+ The Vans All-Weather MTE Collection features footwear and apparel designed to withstand the elements whilst
+ still looking cool.
+
+
+ Color
+ Green
+ Blue
+ Red
+
+
+ Size
+ 41
+ 42
+ 43
+
+
+
+
+
$125
+
+
Add to Cart
+
-
-
+ orWhereRaw("$fonk(JSON_UNQUOTE(json_extract(json, '$.\"$col\"'))) $isaret $val");
return $db;
}
-function tirnakli($text) {
+function tirnakli($text)
+{
return "'$text'";
}
-function chartsByData($db,$labelGroup,$title="",$type="bar",$colorItem="1",$columnSize="col-md-6") {
+function chartsByData($db, $labelGroup, $title = "", $type = "bar", $colorItem = "1", $columnSize = "col-md-6")
+{
$array = array();
$db = db($db)->get();
- foreach($db AS $d) {
- if($labelGroup=="date") {
- $label = date("d.m.Y",strtotime($d->created_at));
+ foreach ($db as $d) {
+ if ($labelGroup == "date") {
+ $label = date("d.m.Y", strtotime($d->created_at));
} else {
$label = $d->{$labelGroup};
}
- if(!isset($array[$label])) $array[$label] = 0;
+ if (!isset($array[$label]))
+ $array[$label] = 0;
$array[$label]++;
- }
- $values = implode(",",$array);
- $labels = implode_key(",",$array);
- ?>
-
+ }
+ $values = implode(",", $array);
+ $labels = implode_key(",", $array);
+ ?>
+
-
+
-
-
-
-
-
+
+
+
-
+ getClientOriginalExtension();
- if($name=="") {
+ if ($name == "") {
$name = str_slug($request[$file]->getClientOriginalName()) . "." . $ext;
} else {
$name = $name . "." . $ext;
}
-
-
+
+
$path = $request[$file]->storeAs("files/$folder", $name);
return "storage/documents/$path";
} else {
return null;
}
-
+
}
function uploadDocument($file, $folder = "", $name = "")
{
$request = \Request::all();
- if(isset($request[$file])) {
+ if (isset($request[$file])) {
$ext = $request[$file]->getClientOriginalExtension();
- if($name=="") {
+ if ($name == "") {
$name = str_slug($request[$file]->getClientOriginalName()) . "." . $ext;
} else {
$name = $name . "." . $ext;
}
-
+
// Dosyayı Storage::put ile kaydet
$path = Storage::putFileAs($folder, $request[$file], $name);
return $path;
} else {
return null;
}
-
+
}
// Loglama fonksiyonu
-function logAction($message) {
+function logAction($message)
+{
$logMessage = $message;
Log::info($logMessage); // Log dosyasına yaz
}
-function upload2($file, $folder = "")
+function upload2($file, $folder = "")
{
$u = u();
- $dizin = str_slug($u->name." ". $u->surname);
+ $dizin = str_slug($u->name . " " . $u->surname);
$request = \Request::all();
- @mkdir("storage/app/$dizin/$folder",true);
+ @mkdir("storage/app/$dizin/$folder", true);
$ext = $request[$file]->getClientOriginalExtension();
$name = str_slug($request[$file]->getClientOriginalName());
- $path = $request[$file]->storeAs("files/$dizin/$folder", $name.".".$ext);
+ $path = $request[$file]->storeAs("files/$dizin/$folder", $name . "." . $ext);
return "storage/app/$path";
}
-function file_get_contents_utf8($fn) {
+function file_get_contents_utf8($fn)
+{
$content = file_get_contents($fn);
- return iconv("ISO-8859-1","UTF-8",$content);
+ return iconv("ISO-8859-1", "UTF-8", $content);
}
-function correct_encoding($text) {
+function correct_encoding($text)
+{
$current_encoding = mb_detect_encoding($text, 'auto');
$text = iconv($current_encoding, 'UTF-8', $text);
return $text;
@@ -811,9 +886,10 @@ function varmi($dizi)
return false;
}
}
-function vehicles() {
+function vehicles()
+{
$s = db("vehicles");
- $s = $s->where("y","1");
+ $s = $s->where("y", "1");
$s = $s->take(10);
return $s;
}
@@ -879,10 +955,10 @@ function sf($id, $ajax = ".ajax", $html = "")
data: data,
dataType: "json",
success: function (data) {
-
- $("").html(d);
+
+ $("").html(d);
- $("").html("");
+ $("").html("");
$(" button").html("");
}
@@ -893,7 +969,7 @@ function sf($id, $ajax = ".ajax", $html = "")
orWhere("id", $slug)->first();
@@ -906,7 +982,7 @@ function contents($type)
return db("contents")
->where("kid", $type)
->orWhere("type", $type)
-// ->orWhere("title",$type)
+ // ->orWhere("title",$type)
->get();
}
function contents2($type)
@@ -914,8 +990,8 @@ function contents2($type)
return db("contents")
->where("kid", $type)
->orWhere("type", $type);
-// ->orWhere("title",$type)
-
+ // ->orWhere("title",$type)
+
}
function kd()
@@ -923,11 +999,12 @@ function kd()
return 0;
}
-function user() {
+function user()
+{
global $_SESSION;
oturumAc();
- if(oturumisset("uid")) {
- $u = (Array) db("users")->where("id",oturum("uid"))->first();
+ if (oturumisset("uid")) {
+ $u = (Array) db("users")->where("id", oturum("uid"))->first();
unset($u['id']);
unset($u['password']);
unset($u['password_hash']);
@@ -940,12 +1017,13 @@ function user() {
} else {
return false;
}
-
+
}
-function usersArray() {
+function usersArray()
+{
$users = db("users")
- ->get();
- $users = dbArray($users,"id");
+ ->get();
+ $users = dbArray($users, "id");
return $users;
}
function users($level)
@@ -963,27 +1041,28 @@ function ksorgu()
return 0;
}
-function createTranslate($key) {
- if($key!="") {
-
+function createTranslate($key)
+{
+ if ($key != "") {
+
$translate = db("translate")->where([
- 'dil'=> App::getLocale(),
+ 'dil' => App::getLocale(),
'icerik' => $key
])->first();
-
- if(is_null($translate)) {
+
+ if (is_null($translate)) {
db("translate")->insert([
- 'dil'=> App::getLocale(),
+ 'dil' => App::getLocale(),
'icerik' => $key
]);
- }
- }
-
+ }
+ }
+
}
function e2($text, $array = [])
{
- if(oturumisset("create-translate")) {
+ if (oturumisset("create-translate")) {
createTranslate($text);
}
return __($text, $array);
@@ -998,62 +1077,64 @@ function set_return($text)
{
return __($text);
}
-function permission() {
+function permission()
+{
oturumAc();
- if(!oturumisset("uid")) {
-
- echo("Bu sayfayı görmek için yetkiniz bulunmamaktadır");
+ if (!oturumisset("uid")) {
+
+ echo ("Bu sayfayı görmek için yetkiniz bulunmamaktadır");
exit();
}
}
function u()
-{
+{
oturumAc();
// Try to get user from session first
$sessionKey = 'cached_user';
$cachedUser = Session::get($sessionKey);
-
+
if ($cachedUser) {
return $cachedUser;
}
-
- if(Auth::check()) {
+
+ if (Auth::check()) {
$u = Auth::user();
$alias = alias_to_ids($u->alias);
$u['alias_ids'] = $alias;
-
+
// Store user data in session
Session::put($sessionKey, $u);
-
+
return $u;
- } elseif(oturumisset("uid")) {
- $uid = db("users")->where("id",oturum("uid"))->first();
-
+ } elseif (oturumisset("uid")) {
+ $uid = db("users")->where("id", oturum("uid"))->first();
+
// Store user data in session
Session::put($sessionKey, $uid);
-
+
return $uid;
}
-
+
return null;
}
function u2($id)
-{
-
- $uid = db("users")->where("id",$id)->first();
- return $uid;
-
-
+{
+
+ $uid = db("users")->where("id", $id)->first();
+ return $uid;
+
+
}
-function alias_to_ids($alias) { //aynı etki alanına sahip kullanıcıların id listesini döndürür.
- $sorgu = db("users")->where("alias",$alias)->get();
+function alias_to_ids($alias)
+{ //aynı etki alanına sahip kullanıcıların id listesini döndürür.
+ $sorgu = db("users")->where("alias", $alias)->get();
$ids = array();
- foreach($sorgu AS $s) {
- array_push($ids,$s->id);
+ foreach ($sorgu as $s) {
+ array_push($ids, $s->id);
}
return $ids;
}
@@ -1061,35 +1142,39 @@ function ekle($dizi, $tablo = "contents")
{
oturumAc();
$uid = "";
- if(isset(u()->id)) {
+ if (isset(u()->id)) {
$uid = u()->id;
}
-
- if($uid=="") $uid = oturum("uid");
+
+ if ($uid == "")
+ $uid = oturum("uid");
$dizi['created_at'] = date("Y-m-d H:i:s");
$dizi['uid'] = $uid;
- if($dizi['uid']=="") unset($dizi['uid']);
- //print_r($dizi);
+ if ($dizi['uid'] == "")
+ unset($dizi['uid']);
+ //print_r($dizi);
return DB::table($tablo)->insertGetId($dizi);
}
function ekle2($dizi, $tablo = "contents") //uid siz ekleme yapar
{
oturumAc();
$dizi['created_at'] = date("Y-m-d H:i:s");
- // $dizi['uid'] = "";
+ // $dizi['uid'] = "";
return DB::table($tablo)->insertGetId($dizi);
}
-function login() {
+function login()
+{
oturumAc();
global $_SESSION;
- if(oturumisset("uid")) {
+ if (oturumisset("uid")) {
return true;
} else {
return false;
}
}
-function kripto($text) {
+function kripto($text)
+{
return Hash::make($text);
}
function guncelle($dizi, $tablo = "contents")
@@ -1097,7 +1182,7 @@ function guncelle($dizi, $tablo = "contents")
oturumAc();
$dizi['updated_at'] = date("Y-m-d H:i:s");
$dizi['uid'] = u()->id;
-// print_r($dizi);
+ // print_r($dizi);
return DB::table($tablo)->update($dizi);
}
@@ -1115,9 +1200,9 @@ function db($tablo)
function db2($tablo)
{
$u = u();
- // $alias_id = implode(",",$u->alias_ids);
+ // $alias_id = implode(",",$u->alias_ids);
- $s = DB::table($tablo)->whereIn("uid",$u->alias_ids);
+ $s = DB::table($tablo)->whereIn("uid", $u->alias_ids);
return $s;
}
@@ -1142,7 +1227,8 @@ function sorgu($tablo, $where = "", $order = "")
}
}
}
- if ($order != "") $s = $s->orderByRaw($order);
+ if ($order != "")
+ $s = $s->orderByRaw($order);
$cache = array();
$sorgu = $s->simplePaginate(15);
$col = array();
@@ -1174,47 +1260,51 @@ function sorgu($tablo, $where = "", $order = "")
return $cache;
}
-function dbArray($db,$key) {
+function dbArray($db, $key)
+{
$dizi = array();
- foreach($db AS $d) {
-
+ foreach ($db as $d) {
+
$dizi[$d->$key] = $d;
}
return $dizi;
}
-function table_to_array($table,$key="id") {
+function table_to_array($table, $key = "id")
+{
$dizi = array();
$db = db($table)->get();
- foreach($db AS $d) {
-
+ foreach ($db as $d) {
+
$dizi[$d->$key] = $d;
}
return $dizi;
}
-function table_to_array2($table,$key="id") {
+function table_to_array2($table, $key = "id")
+{
$dizi = array();
- if($table=="users") {
- $db = db($table)->where("alias",u()->alias)->get();
+ if ($table == "users") {
+ $db = db($table)->where("alias", u()->alias)->get();
} else {
$db = db2($table)->get();
}
-
- foreach($db AS $d) {
-
+
+ foreach ($db as $d) {
+
$dizi[$d->$key] = $d;
}
return $dizi;
}
-function contents_to_array($type,$key="id") {
+function contents_to_array($type, $key = "id")
+{
$dizi = array();
-
- $db = db("contents")->where("type",$type)
- ->whereNotNull("title")
- ->get();
-
-
- foreach($db AS $d) {
-
+
+ $db = db("contents")->where("type", $type)
+ ->whereNotNull("title")
+ ->get();
+
+
+ foreach ($db as $d) {
+
$dizi[$d->$key] = $d;
}
return $dizi;
@@ -1255,29 +1345,31 @@ function dbJson($db, $tablo = "")
}
-function bilgi($text,$type="success", $array = [])
+function bilgi($text, $type = "success", $array = [])
{
- if($type == "danger") $type = "error";
+ if ($type == "danger")
+ $type = "error";
?>
Swal.fire(
- '',
- '',
- ''
- )
+ '',
+ '',
+ ''
+ )
to($url);
- ?>
-
- to($url);
+ ?>
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/assets/citrus-logos/citrus-dikey.png b/assets/citrus-logos/citrus-dikey.png
new file mode 100644
index 0000000..98d76f1
Binary files /dev/null and b/assets/citrus-logos/citrus-dikey.png differ
diff --git a/assets/citrus-logos/citrus-dikey.svg b/assets/citrus-logos/citrus-dikey.svg
new file mode 100644
index 0000000..881168e
--- /dev/null
+++ b/assets/citrus-logos/citrus-dikey.svg
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/assets/citrus-logos/citrus-yatay-dark.png b/assets/citrus-logos/citrus-yatay-dark.png
new file mode 100644
index 0000000..cff34b8
Binary files /dev/null and b/assets/citrus-logos/citrus-yatay-dark.png differ
diff --git a/assets/citrus-logos/citrus-yatay-dark.svg b/assets/citrus-logos/citrus-yatay-dark.svg
new file mode 100644
index 0000000..8bf3f7d
--- /dev/null
+++ b/assets/citrus-logos/citrus-yatay-dark.svg
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/assets/citrus-logos/citrus-yatay.png b/assets/citrus-logos/citrus-yatay.png
new file mode 100644
index 0000000..7712d51
Binary files /dev/null and b/assets/citrus-logos/citrus-yatay.png differ
diff --git a/assets/citrus-logos/citrus-yatay.svg b/assets/citrus-logos/citrus-yatay.svg
new file mode 100644
index 0000000..4a6b90f
--- /dev/null
+++ b/assets/citrus-logos/citrus-yatay.svg
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/assets/citrus-logos/favicon.png b/assets/citrus-logos/favicon.png
new file mode 100644
index 0000000..cc126b6
Binary files /dev/null and b/assets/citrus-logos/favicon.png differ
diff --git a/assets/citrus-logos/yatay.png b/assets/citrus-logos/yatay.png
new file mode 100644
index 0000000..ecca992
Binary files /dev/null and b/assets/citrus-logos/yatay.png differ
diff --git a/assets/citrus-logos/yatay.svg b/assets/citrus-logos/yatay.svg
new file mode 100644
index 0000000..6220e6a
--- /dev/null
+++ b/assets/citrus-logos/yatay.svg
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/views/admin/dashboard/admin.blade.php b/resources/views/admin/dashboard/admin.blade.php
index ec441f1..a631739 100644
--- a/resources/views/admin/dashboard/admin.blade.php
+++ b/resources/views/admin/dashboard/admin.blade.php
@@ -1,167 +1,168 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
\ No newline at end of file
diff --git a/resources/views/admin/dashboard/module/module-relationships.blade.php b/resources/views/admin/dashboard/module/module-relationships.blade.php
index 7494a8f..a631739 100644
--- a/resources/views/admin/dashboard/module/module-relationships.blade.php
+++ b/resources/views/admin/dashboard/module/module-relationships.blade.php
@@ -1,168 +1,168 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
\ No newline at end of file
diff --git a/resources/views/admin/inc/side-overlay.blade.php b/resources/views/admin/inc/side-overlay.blade.php
index b863a44..bfa260a 100644
--- a/resources/views/admin/inc/side-overlay.blade.php
+++ b/resources/views/admin/inc/side-overlay.blade.php
@@ -6,11 +6,12 @@
{{__('Profile Settings')}}
-
+
-
+
{{ Auth::user()->name }} {{ Auth::user()->surname }}
{{ Auth::user()->level }}
diff --git a/resources/views/admin/master.blade.php b/resources/views/admin/master.blade.php
index 8bec5d8..33627e8 100644
--- a/resources/views/admin/master.blade.php
+++ b/resources/views/admin/master.blade.php
@@ -2,34 +2,34 @@
-if(getisset("ajax")) {
+if (getisset("ajax")) {
?>
- @include("admin-ajax.{$_GET['ajax']}")
-
-
- @if(getisset("cache"))
- @includeCache("{$_GET['ajax2']}")
- @else
- @include("{$_GET['ajax2']}")
- @endif
-
-
@php
- $permissions = userPermissions();
+ $permissions = userPermissions();
@endphp
-
+
-
{!! strip_tags($__env->yieldContent('title','')) !!}
+ {!! strip_tags($__env->yieldContent('title', '')) !!}
@@ -38,429 +38,433 @@ if(getisset("ajax")) {
-
-
-@guest
- @yield("content")
-@else
-