Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
feat: SnapCAD Studio'yu YakHub deposuna taşı
- DWG/DXF içe aktarma ve .skf yeniden açma düzeltmeleri - YakNet Bulut eşitlemede boş/eski kopya koruması ve yerel-only proje bildirimi - Panelden içe aktarma duyuruları ve erişilebilir Türkçe hata mesajları - AGPL-3.0 lisansı, README ve YakHub bağlantıları
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* SnapCAD — YakNet SSO Oturum Durumu (/api/sync_session.php)
|
||||
*
|
||||
* Güvenlik notu: Bu uç nokta istemciden gelen kullanıcı verisini ASLA kabul etmez.
|
||||
* Oturum yalnızca sunucu taraflı OAuth callback'i (/callback.php) ile kurulur.
|
||||
* Eski istemci taraflı SSO senkronizasyonu kaldırılmıştır.
|
||||
*/
|
||||
require_once __DIR__ . '/../snap-config.php';
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
|
||||
|
||||
$action = $_GET['action'] ?? '';
|
||||
$user = $_SESSION['yaknet_user'] ?? null;
|
||||
|
||||
if ($action === 'logout') {
|
||||
snapcad_logout();
|
||||
echo json_encode([
|
||||
'ok' => true,
|
||||
'success' => true,
|
||||
'authenticated' => false,
|
||||
'user' => null,
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($action === 'status' || $action === '') {
|
||||
echo json_encode([
|
||||
'ok' => true,
|
||||
'success' => true,
|
||||
'authenticated' => $user !== null,
|
||||
'user' => $user,
|
||||
'guest_student' => $_SESSION['snapcad_guest_student'] ?? null,
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
exit;
|
||||
}
|
||||
|
||||
http_response_code(403);
|
||||
echo json_encode([
|
||||
'ok' => false,
|
||||
'success' => false,
|
||||
'authenticated' => $user !== null,
|
||||
'error' => 'İstemci taraflı oturum senkronizasyonu devre dışı. Lütfen YakNet hesabınızla giriş yapın.',
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
Reference in New Issue
Block a user