PHP 8.2.31
Preview: SiteSettings.php Size: 1.31 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/app/SiteSettings.php

<?php

/**
 * Controls Draft
 */

namespace Extendify;

defined('ABSPATH') || die('No direct access.');


/**
 * The controller for interacting with site settings
 */

class SiteSettings
{
    /**
     * Get when the site was created
     *
     * @return string|NULL
     */
    public static function getSiteCreatedAt()
    {
        $cacheKey = 'extendify_site_created_at';
        $cached = \wp_cache_get($cacheKey);
        if ($cached) {
            return $cached;
        }

        $userOne = \get_userdata(1);
        if ($userOne) {
            $createdAt = $userOne->user_registered;
            \wp_cache_set($cacheKey, $createdAt);
            return $createdAt;
        }

        $wpdb = $GLOBALS['wpdb'];
        // phpcs:ignore WordPress.DB.DirectDatabaseQuery
        $result = $wpdb->get_row($wpdb->prepare(
            'SELECT CREATE_TIME
            FROM INFORMATION_SCHEMA.TABLES
            WHERE TABLE_SCHEMA = %s
            AND TABLE_NAME = %s
            LIMIT 1',
            $wpdb->dbname,
            $wpdb->posts
        ));
        if (!property_exists($result, 'CREATE_TIME')) {
            return null;
        }

        $createdAt = gmdate(
            'Y-m-d H:i:s',
            strtotime($result->CREATE_TIME)
        );
        \wp_cache_set($cacheKey, $createdAt);
        return $createdAt;
    }
}

Directory Contents

Dirs: 11 × Files: 6

Name Size Perms Modified Actions
Agent DIR
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
Assist DIR
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
Draft DIR
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
Launch DIR
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
Library DIR
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
Shared DIR
- drwxr-xr-x 2026-04-28 02:40:01
Edit Download
12.72 KB lrw-r--r-- 2026-04-27 23:36:32
Edit Download
2.29 KB lrw-r--r-- 2025-06-09 17:02:32
Edit Download
4.94 KB lrw-r--r-- 2025-08-27 17:47:28
Edit Download
7.15 KB lrw-r--r-- 2026-02-27 04:48:52
Edit Download
11.32 KB lrw-r--r-- 2026-03-19 23:35:18
Edit Download
1.31 KB lrw-r--r-- 2025-05-22 22:26:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).