░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/cultivarts/wp-content/plugins/wp-mail-smtp/src/Helpers
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: DB.php
<?php namespace WPMailSMTP\Helpers; /** * Class for Database functionality. * * @since 3.6.0 */ class DB { /** * The function is used to check if the given index exists in the given table. * * @since 3.6.0 * * @param string $table The table name. * @param string $index The index name. * * @return bool If index exists then return true else returns false. */ public static function index_exists( $table, $index ) { global $wpdb; $query = $wpdb->prepare( 'SELECT COUNT(1) IndexIsThere FROM INFORMATION_SCHEMA.STATISTICS WHERE table_schema = DATABASE() AND table_name = %s AND index_name = %s', $table, $index ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.NotPrepared $result = $wpdb->get_var( $query ); return $result === '1'; } }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 Crypto.php
PHP
5.1 KB
2026-03-24 05:31
EDIT
📄 DB.php
PHP
841 B
2026-03-24 05:31
EDIT
📄 Helpers.php
PHP
3.6 KB
2026-03-24 05:31
EDIT
📄 PluginImportDataRetriever.php
PHP
10.8 KB
2026-03-24 05:31
EDIT
📄 UI.php
PHP
4 KB
2026-03-24 05:31
EDIT