PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: system_test.php Size: 3.61 KB
/home/ankaservis/.trash/system_test.php

<?php
echo "<h1>🔍 Sistem Bağlantı Testi</h1>";

echo "<h2>1. Ayarlar.php Yükleme Testi</h2>";

try {
    // Ayarlar.php'yi yükle (sistem bağlantısını kullan)
    require_once("muhasebe/sistem/ayarlar.php");
    echo "<p style='color:green'>✅ ayarlar.php başarıyla yüklendi!</p>";
    
    // Global bağlantı değişkenini kontrol et
    if (isset($baglanti) && $baglanti) {
        echo "<p style='color:green'>✅ MySQL bağlantısı mevcut!</p>";
        
        // Bağlantı tipini kontrol et
        echo "<p><strong>Bağlantı Tipi:</strong> " . gettype($baglanti) . "</p>";
        
        if (is_resource($baglanti) || is_object($baglanti)) {
            echo "<p style='color:green'>✅ Bağlantı objesi geçerli!</p>";
            
            // Test sorgusu çalıştır
            $test_query = "SELECT 1 as test";
            $result = mysql_query($test_query);
            
            if ($result) {
                echo "<p style='color:green'>✅ Test sorgusu başarılı!</p>";
                $row = mysql_fetch_assoc($result);
                echo "<p><strong>Test Sonucu:</strong> " . $row['test'] . "</p>";
            } else {
                echo "<p style='color:red'>❌ Test sorgusu başarısız: " . mysql_error() . "</p>";
            }
            
            // SMTP ayarlarını kontrol et
            if (isset($smtpayarlargetir) && is_array($smtpayarlargetir)) {
                echo "<p style='color:green'>✅ SMTP ayarları yüklendi!</p>";
                echo "<p><strong>SMTP Host:</strong> " . ($smtpgsunucu ?? 'Tanımsız') . "</p>";
            } else {
                echo "<p style='color:orange'>⚠️ SMTP ayarları yüklenemedi</p>";
            }
            
            // API ayarlarını kontrol et
            if (isset($api_ayarlar_getir) && is_array($api_ayarlar_getir)) {
                echo "<p style='color:green'>✅ API ayarları yüklendi!</p>";
                echo "<p><strong>SMS API:</strong> " . ($apismsusername ?? 'Tanımsız') . "</p>";
            } else {
                echo "<p style='color:orange'>⚠️ API ayarları yüklenemedi</p>";
            }
            
        } else {
            echo "<p style='color:red'>❌ Bağlantı objesi geçersiz!</p>";
        }
        
    } else {
        echo "<p style='color:red'>❌ MySQL bağlantısı bulunamadı!</p>";
    }
    
} catch (Exception $e) {
    echo "<p style='color:red'>❌ Hata: " . $e->getMessage() . "</p>";
}

echo "<h2>2. Veritabanı Bilgileri</h2>";
if (isset($sunucu, $kullanici, $veritabani)) {
    echo "<p><strong>Sunucu:</strong> $sunucu</p>";
    echo "<p><strong>Kullanıcı:</strong> $kullanici</p>";
    echo "<p><strong>Veritabanı:</strong> $veritabani</p>";
    echo "<p><strong>Şifre:</strong> " . (empty($parola) ? "Boş" : "Dolu") . "</p>";
}

echo "<h2>3. Session Bilgileri</h2>";
if (isset($kullanici_id, $kullanici_adi)) {
    echo "<p><strong>Kullanıcı ID:</strong> $kullanici_id</p>";
    echo "<p><strong>Kullanıcı Adı:</strong> $kullanici_adi</p>";
} else {
    echo "<p style='color:orange'>⚠️ Session bilgileri yok</p>";
}

echo "<h2>4. Fonksiyon Testleri</h2>";
if (function_exists('temizle')) {
    echo "<p style='color:green'>✅ temizle() fonksiyonu mevcut</p>";
    $test_str = "test(123)-data";
    echo "<p><strong>Test:</strong> '$test_str' → '" . temizle($test_str) . "'</p>";
} else {
    echo "<p style='color:red'>❌ temizle() fonksiyonu bulunamadı</p>";
}

?>

<style>
body { font-family: Arial, sans-serif; margin: 20px; }
h1, h2 { color: #333; }
p { margin: 5px 0; }
</style>

Directory Contents

Dirs: 0 × Files: 15

Name Size Perms Modified Actions
1.04 KB lrw------- 2025-11-14 06:31:49
Edit Download
33.24 KB lrw-r--r-- 2025-08-29 14:12:44
Edit Download
33.24 KB lrw-r--r-- 2025-08-29 14:12:44
Edit Download
33.46 MB lrw-r--r-- 2025-11-13 15:09:42
Edit Download
16.25 MB lrw-r--r-- 2025-11-13 12:29:23
Edit Download
16.25 MB lrw-r--r-- 2025-11-13 12:30:16
Edit Download
8.81 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
2.53 KB lrw-r--r-- 2025-08-30 02:18:32
Edit Download
1.05 KB lrw-r--r-- 2025-08-29 13:29:28
Edit Download
2.21 KB lrw-r--r-- 2025-08-29 13:33:36
Edit Download
3.61 KB lrw-r--r-- 2025-08-29 13:31:38
Edit Download
703 B lrw-r--r-- 2025-08-30 03:31:04
Edit Download
3.23 KB lrw-r--r-- 2025-08-29 13:29:04
Edit Download
1.46 KB lrw-r--r-- 2025-08-29 13:01:24
Edit Download
2.82 KB lrw-r--r-- 2025-08-29 13:35:36
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI