<?php
require __DIR__ . '/core/config.php';
require __DIR__ . '/core/db.php';
$pdo = cms_db_connect(__DIR__);
foreach ($pdo->query('SHOW COLUMNS FROM settings')->fetchAll(PDO::FETCH_ASSOC) as $row) {
    echo $row['Field'], PHP_EOL;
}