XAMINIUA1997
/
home
/
colescyl
/
kaluleriderprint.com
/
wp-admin
/
Nama File / Folder
Size
Action
css
--
NONE
images
--
NONE
includes
--
NONE
js
--
NONE
maint
--
NONE
network
--
NONE
user
--
NONE
about.php
16.075KB
Hapus
Edit
Rename
admin-footer.php
2.768KB
Hapus
Edit
Rename
admin-functions.php
0.468KB
Hapus
Edit
Rename
admin-header.php
9.117KB
Hapus
Edit
Rename
admin-post.php
1.974KB
Hapus
Edit
Rename
admin.php
12.35KB
Hapus
Edit
Rename
async-upload.php
5.473KB
Hapus
Edit
Rename
authorize-application.php
10.093KB
Hapus
Edit
Rename
comment.php
11.35KB
Hapus
Edit
Rename
contribute.php
5.857KB
Hapus
Edit
Rename
credits.php
4.378KB
Hapus
Edit
Rename
custom-background.php
0.478KB
Hapus
Edit
Rename
custom-header.php
0.487KB
Hapus
Edit
Rename
customize.php
11.007KB
Hapus
Edit
Rename
edit-comments.php
14.384KB
Hapus
Edit
Rename
edit-form-advanced.php
28.835KB
Hapus
Edit
Rename
edit-form-blocks.php
14.597KB
Hapus
Edit
Rename
edit-form-comment.php
8.343KB
Hapus
Edit
Rename
edit-link-form.php
6.205KB
Hapus
Edit
Rename
edit-tag-form.php
10.438KB
Hapus
Edit
Rename
edit-tags.php
22.005KB
Hapus
Edit
Rename
edit.php
19.484KB
Hapus
Edit
Rename
erase-personal-data.php
7.329KB
Hapus
Edit
Rename
error_log
126.72KB
Hapus
Edit
Rename
export-personal-data.php
7.755KB
Hapus
Edit
Rename
export.php
11.023KB
Hapus
Edit
Rename
freedoms.php
4.801KB
Hapus
Edit
Rename
import.php
7.584KB
Hapus
Edit
Rename
index.php
7.68KB
Hapus
Edit
Rename
install-helper.php
6.798KB
Hapus
Edit
Rename
link-add.php
0.912KB
Hapus
Edit
Rename
link-manager.php
4.259KB
Hapus
Edit
Rename
link.php
2.888KB
Hapus
Edit
Rename
load-scripts.php
2.021KB
Hapus
Edit
Rename
load-styles.php
2.925KB
Hapus
Edit
Rename
media-new.php
3.199KB
Hapus
Edit
Rename
media-upload.php
3.582KB
Hapus
Edit
Rename
media.php
0.8KB
Hapus
Edit
Rename
menu-header.php
9.823KB
Hapus
Edit
Rename
menu.php
17.461KB
Hapus
Edit
Rename
moderation.php
0.3KB
Hapus
Edit
Rename
ms-admin.php
0.191KB
Hapus
Edit
Rename
ms-delete-site.php
4.505KB
Hapus
Edit
Rename
ms-edit.php
0.211KB
Hapus
Edit
Rename
ms-sites.php
0.21KB
Hapus
Edit
Rename
ms-themes.php
0.212KB
Hapus
Edit
Rename
ms-upgrade-network.php
0.214KB
Hapus
Edit
Rename
my-sites.php
4.744KB
Hapus
Edit
Rename
nav-menus.php
48.188KB
Hapus
Edit
Rename
network.php
5.393KB
Hapus
Edit
Rename
options-discussion.php
15.915KB
Hapus
Edit
Rename
options-general.php
21.647KB
Hapus
Edit
Rename
options-media.php
6.377KB
Hapus
Edit
Rename
options-permalink.php
21.217KB
Hapus
Edit
Rename
options-privacy.php
9.951KB
Hapus
Edit
Rename
options-writing.php
9.104KB
Hapus
Edit
Rename
options.php
13.604KB
Hapus
Edit
Rename
plugin-editor.php
13.752KB
Hapus
Edit
Rename
plugin-install.php
6.957KB
Hapus
Edit
Rename
plugins.php
30.004KB
Hapus
Edit
Rename
post-new.php
2.703KB
Hapus
Edit
Rename
post.php
10.033KB
Hapus
Edit
Rename
press-this.php
2.34KB
Hapus
Edit
Rename
privacy-policy-guide.php
3.668KB
Hapus
Edit
Rename
privacy.php
2.787KB
Hapus
Edit
Rename
revision.php
5.699KB
Hapus
Edit
Rename
site-editor.php
11.983KB
Hapus
Edit
Rename
site-health-info.php
3.992KB
Hapus
Edit
Rename
site-health.php
10.203KB
Hapus
Edit
Rename
theme-editor.php
16.874KB
Hapus
Edit
Rename
theme-install.php
23.384KB
Hapus
Edit
Rename
themes.php
47.925KB
Hapus
Edit
Rename
tools.php
3.432KB
Hapus
Edit
Rename
update-core.php
45.448KB
Hapus
Edit
Rename
update.php
12.785KB
Hapus
Edit
Rename
upgrade-functions.php
0.333KB
Hapus
Edit
Rename
upgrade.php
6.271KB
Hapus
Edit
Rename
upload.php
14.901KB
Hapus
Edit
Rename
user-edit.php
40.359KB
Hapus
Edit
Rename
user-new.php
24.046KB
Hapus
Edit
Rename
users.php
23.287KB
Hapus
Edit
Rename
widgets-form-blocks.php
5.119KB
Hapus
Edit
Rename
widgets-form.php
19.291KB
Hapus
Edit
Rename
widgets.php
1.086KB
Hapus
Edit
Rename
<=Back
<?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; }
Liking