??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/servermailblast.com/wp-admin__9dabcd8/install-helper.php
⬅ Kembali
<?php
/**
* Plugins may load this file to gain access to special helper functions
* for plugin installation. This file is not included by WordPress and it is
* recommended, to prevent fatal errors, that this file is included using
* require_once.
*
* These functions are not optimized for speed, but they should only be used
* once in a while, so speed shouldn't be a concern. If it is and you are
* needing to use these functions a lot, you might experience timeouts.
* If you do, then it is advised to just write the SQL code yourself.
*
* check_column( 'wp_links', 'link_description', 'mediumtext' );
*
* if ( check_column( $wpdb->comments, 'comment_author', 'tinytext' ) ) {
* echo "ok\n";
* }
*
* // Check the column.
* if ( ! check_column( $wpdb->links, 'link_description', 'varchar( 255 )' ) ) {
* $ddl = "ALTER TABLE $wpdb->links MODIFY COLUMN link_description varchar(255) NOT NULL DEFAULT '' ";
* $q = $wpdb->query( $ddl );
* }
*
* $error_count = 0;
* $tablename = $wpdb->links;
*
* if ( check_column( $wpdb->links, 'link_description', 'varchar( 255 )' ) ) {
* $res .= $tablename . ' - ok <br />';
* } else {
* $res .= 'There was a problem with ' . $tablename . '<br />';
* ++$error_count;
* }
*
* @package WordPress
* @subpackage Plugin
*/
/** Load WordPress Bootstrap */
require_once dirname( __DIR__ ) . '/wp-load.php';
if ( ! function_exists( 'maybe_create_table' ) ) :
/**
* Creates a table in the database if it doesn't already exist.
*
* @since 1.0.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $table_name Database table name.
* @param string $create_ddl SQL statement to create table.
* @return bool True on success or if the table already exists. False on failure.
*/
function maybe_create_table( $table_name, $create_ddl ) {
global $wpdb;
foreach ( $wpdb->get_col( 'SHOW TABLES', 0 ) as $table ) {
if ( $table === $table_name ) {
return true;
}
}
// Didn't find it, so try to create it.
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query.
$wpdb->query( $create_ddl );
// We cannot directly tell whether this succeeded!
foreach ( $wpdb->get_col( 'SHOW TABLES', 0 ) as $table ) {
if ( $table === $table_name ) {
return true;
}
}
return false;
}
endif;
if ( ! function_exists( 'maybe_add_column' ) ) :
/**
* Adds column to database table, if it doesn't already exist.
*
* @since 1.0.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $table_name Database table name.
* @param string $column_name Table column name.
* @param string $create_ddl SQL statement to add column.
* @return bool True on success or if the column already exists. False on failure.
*/
function maybe_add_column( $table_name, $column_name, $create_ddl ) {
global $wpdb;
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
if ( $column === $column_name ) {
return true;
}
}
// Didn't find it, so try to create it.
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query.
$wpdb->query( $create_ddl );
// We cannot directly tell whether this succeeded!
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
if ( $column === $column_name ) {
return true;
}
}
return false;
}
endif;
/**
* Drops column from database table, if it exists.
*
* @since 1.0.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $table_name Database table name.
* @param string $column_name Table column name.
* @param string $drop_ddl SQL statement to drop column.
* @return bool True on success or if the column doesn't exist. False on failure.
*/
function maybe_drop_column( $table_name, $column_name, $drop_ddl ) {
global $wpdb;
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
if ( $column === $column_name ) {
// Found it, so try to drop it.
// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- No applicable variables for this query.
$wpdb->query( $drop_ddl );
// We cannot directly tell whether this succeeded!
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) {
if ( $column === $column_name ) {
return false;
}
}
}
}
// Else didn't find it.
return true;
}
/**
* Checks that database table column matches the criteria.
*
* Uses the SQL DESC for retrieving the table info for the column. It will help
* understand the parameters, if you do more research on what column information
* is returned by the SQL statement. Pass in null to skip checking that criteria.
*
* Column names returned from DESC table are case sensitive and are as listed:
*
* - Field
* - Type
* - Null
* - Key
* - Default
* - Extra
*
* @since 1.0.0
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $table_name Database table name.
* @param string $col_name Table column name.
* @param string $col_type Table column type.
* @param bool $is_null Optional. Check is null.
* @param mixed $key Optional. Key info.
* @param mixed $default_value Optional. Default value.
* @param mixed $extra Optional. Extra value.
* @return bool True, if matches. False, if not matching.
*/
function check_column( $table_name, $col_name, $col_type, $is_null = null, $key = null, $default_value = null, $extra = null ) {
global $wpdb;
$diffs = 0;
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- Cannot be prepared. Fetches columns for table names.
$results = $wpdb->get_results( "DESC $table_name" );
foreach ( $results as $row ) {
if ( $row->Field === $col_name ) {
// Got our column, check the params.
if ( ( null !== $col_type ) && ( $row->Type !== $col_type ) ) {
++$diffs;
}
if ( ( null !== $is_null ) && ( $row->Null !== $is_null ) ) {
++$diffs;
}
if ( ( null !== $key ) && ( $row->Key !== $key ) ) {
++$diffs;
}
if ( ( null !== $default_value ) && ( $row->Default !== $default_value ) ) {
++$diffs;
}
if ( ( null !== $extra ) && ( $row->Extra !== $extra ) ) {
++$diffs;
}
if ( $diffs > 0 ) {
return false;
}
return true;
} // End if found our column.
}
return false;
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 css
dir
—
2026-06-12 08:08
📁 images
dir
—
2026-06-12 08:08
📁 includes
dir
—
2026-06-18 19:31
📁 js
dir
—
2026-06-12 08:08
📁 maint
dir
—
2026-06-12 08:08
📁 network
dir
—
2026-06-12 08:08
📁 user
dir
—
2026-06-12 08:08
📄 .htaccess
htaccess
420 B
2026-06-12 08:08
📄 .rnd
rnd
1 KB
2026-02-03 14:08
🐘 about.php
php
16 KB
2026-05-21 05:11
🐘 admin-ajax.php
php
5 KB
2024-07-04 11:22
🐘 admin-footer.php
php
2.7 KB
2026-05-21 05:11
🐘 admin-functions.php
php
479 B
2025-01-22 14:06
🐘 admin-header.php
php
9.1 KB
2026-05-21 05:11
🐘 admin-post.php
php
2 KB
2025-01-16 16:18
🐘 admin.php
php
32.3 KB
2026-06-12 08:42
🐘 async-upload.php
php
5.5 KB
2025-12-03 05:04
🐘 authorize-application.php
php
10.1 KB
2023-09-14 00:54
🐘 comment.php
php
11.4 KB
2026-05-21 05:11
🐘 contribute.php
php
5.9 KB
2026-05-21 05:11
🐘 credits.php
php
4.4 KB
2026-05-21 05:11
🐘 custom-background.php
php
489 B
2025-01-22 14:06
🐘 custom-header.php
php
499 B
2025-01-22 14:06
🐘 customize.php
php
11.2 KB
2026-05-21 05:11
🐘 edit-comments.php
php
14.1 KB
2026-05-21 05:11
🐘 edit-form-advanced.php
php
28.8 KB
2026-05-21 05:11
🐘 edit-form-blocks.php
php
14.7 KB
2026-05-21 05:11
🐘 edit-form-comment.php
php
8.3 KB
2026-05-21 05:11
🐘 edit-link-form.php
php
6.2 KB
2025-02-08 11:44
🐘 edit-tag-form.php
php
10.4 KB
2026-05-21 05:11
🐘 edit-tags.php
php
22 KB
2026-05-21 05:11
🐘 edit.php
php
19.5 KB
2024-10-03 22:46
🐘 erase-personal-data.php
php
7.3 KB
2024-04-17 20:21
📄 error_log
file
30.9 KB
2026-06-01 00:17
🐘 export-personal-data.php
php
7.8 KB
2024-04-17 20:21
🐘 export.php
php
11 KB
2026-05-21 05:11
🐘 font-library.php
php
1 KB
2026-05-21 05:11
🐘 freedoms.php
php
4.8 KB
2026-05-21 05:11
🐘 import.php
php
7.6 KB
2025-02-25 18:34
🐘 install-helper.php
php
6.8 KB
2022-11-20 14:10
🐘 install.php
php
17.9 KB
2026-05-21 05:11
🐘 link-add.php
php
934 B
2025-02-08 11:44
🐘 link-manager.php
php
4.3 KB
2025-02-08 11:44
🐘 link-parse-opml.php
php
2.6 KB
2026-05-21 05:11
🐘 link.php
php
2.9 KB
2024-05-01 18:01
🐘 load-scripts.php
php
2 KB
2024-08-25 23:48
🐘 load-styles.php
php
2.9 KB
2024-11-04 15:51
🐘 media-new.php
php
3.2 KB
2026-05-21 05:11
🐘 media-upload.php
php
3.6 KB
2025-02-08 15:53
🐘 media.php
php
819 B
2024-05-01 18:01
🐘 menu-header.php
php
9.8 KB
2025-02-20 21:29
🐘 menu.php
php
17.7 KB
2026-05-21 05:11
🐘 moderation.php
php
307 B
2020-02-06 06:33
🐘 ms-admin.php
php
196 B
2020-02-06 06:33
🐘 ms-delete-site.php
php
4.5 KB
2025-12-03 05:04
🐘 ms-edit.php
php
216 B
2020-02-06 06:33
🐘 ms-options.php
php
229 B
2024-06-22 11:47
🐘 ms-sites.php
php
215 B
2020-02-06 06:33
🐘 ms-themes.php
php
217 B
2020-02-06 06:33
🐘 ms-upgrade-network.php
php
219 B
2020-02-06 06:33
🐘 ms-users.php
php
215 B
2020-02-06 06:33
🐘 my-sites.php
php
4.7 KB
2026-05-21 05:11
🐘 nav-menus.php
php
49.1 KB
2026-05-21 05:11
🐘 network.php
php
5.4 KB
2024-03-08 22:38
🐘 options-connectors.php
php
1.1 KB
2026-05-21 05:11
🐘 options-discussion.php
php
15.9 KB
2025-12-03 05:04
🐘 options-general.php
php
22.3 KB
2026-05-21 05:11
🐘 options-head.php
php
621 B
2025-01-22 14:06
🐘 options-media.php
php
6.4 KB
2025-12-03 05:04
🐘 options-permalink.php
php
21.9 KB
2026-05-21 05:11
🐘 options-privacy.php
php
9.9 KB
2026-05-21 05:11
🐘 options-reading.php
php
10 KB
2026-05-21 05:11
🐘 options-writing.php
php
9.1 KB
2025-12-03 05:04
🐘 options.php
php
13.9 KB
2026-05-21 05:11
🐘 plugin-editor.php
php
13.8 KB
2025-12-03 05:04
🐘 plugin-install.php
php
7 KB
2024-02-20 07:27
🐘 plugins.php
php
30 KB
2025-02-08 11:44
🐘 post-new.php
php
2.7 KB
2024-06-15 12:34
🐘 post.php
php
10 KB
2025-12-03 05:04
🐘 press-this.php
php
2.4 KB
2026-05-21 05:11
🐘 privacy-policy-guide.php
php
3.7 KB
2023-11-22 17:44
🐘 privacy.php
php
2.8 KB
2026-05-21 05:11
🐘 profile.php
php
283 B
2020-02-06 06:33
🐘 revision.php
php
5.7 KB
2025-12-03 05:04
🐘 setup-config.php
php
17.5 KB
2026-05-21 05:11
🐘 site-editor.php
php
12.1 KB
2026-05-21 05:11
🐘 site-health-info.php
php
4.1 KB
2026-05-21 05:11
🐘 site-health.php
php
10.2 KB
2026-05-21 05:11
🐘 term.php
php
2.2 KB
2022-06-01 18:14
🐘 theme-editor.php
php
16.9 KB
2025-12-03 05:04
🐘 theme-install.php
php
23.6 KB
2026-05-21 05:11
🐘 themes.php
php
47.9 KB
2025-12-03 05:04
🐘 tools.php
php
3.4 KB
2023-02-23 10:38
🐘 update-core.php
php
45.1 KB
2026-05-21 05:11
🐘 update.php
php
12.8 KB
2026-05-21 05:11
🐘 upgrade-functions.php
php
341 B
2020-02-06 06:33
🐘 upgrade.php
php
6.2 KB
2026-05-21 05:11
🐘 upload-first.php
php
391 B
2026-05-21 05:11
🐘 upload.php
php
14.9 KB
2026-05-21 05:11
🐘 user-edit.php
php
40.4 KB
2026-05-21 05:11
🐘 user-new.php
php
24.1 KB
2026-05-21 05:11
🐘 users.php
php
23.4 KB
2026-05-21 05:11
🐘 widgets-form-blocks.php
php
5.1 KB
2025-12-03 05:04
🐘 widgets-form.php
php
19.1 KB
2026-05-21 05:11
🐘 widgets.php
php
1.1 KB
2022-03-22 19:59