H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
e:
/
home
/
ajudasindico
/
Web
/
16dezoito
/
wp-admin
/
Nama File / Folder
Size
Action
css
--
NONE
images
--
NONE
includes
--
NONE
js
--
NONE
maint
--
NONE
network
--
NONE
user
--
NONE
about.php
17.773KB
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
async-upload.php
4.866KB
Hapus
Edit
Rename
authorize-application.php
10.093KB
Hapus
Edit
Rename
comment.php
11.35KB
Hapus
Edit
Rename
contribute.php
5.593KB
Hapus
Edit
Rename
credits.php
4.113KB
Hapus
Edit
Rename
custom-background.php
0.478KB
Hapus
Edit
Rename
custom-header.php
0.487KB
Hapus
Edit
Rename
customize.php
10.912KB
Hapus
Edit
Rename
edit-comments.php
14.381KB
Hapus
Edit
Rename
edit-form-advanced.php
28.835KB
Hapus
Edit
Rename
edit-form-blocks.php
14.368KB
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
erase-personal-data.php
7.329KB
Hapus
Edit
Rename
export-personal-data.php
7.755KB
Hapus
Edit
Rename
export.php
11.023KB
Hapus
Edit
Rename
freedoms.php
4.536KB
Hapus
Edit
Rename
import.php
7.584KB
Hapus
Edit
Rename
install-helper.php
6.798KB
Hapus
Edit
Rename
link-manager.php
4.259KB
Hapus
Edit
Rename
link-parse-opml.php
2.634KB
Hapus
Edit
Rename
link.php
2.888KB
Hapus
Edit
Rename
load-scripts.php
2.021KB
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
16.967KB
Hapus
Edit
Rename
ms-admin.php
0.191KB
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-users.php
0.21KB
Hapus
Edit
Rename
my-sites.php
4.744KB
Hapus
Edit
Rename
nav-menus.php
48.259KB
Hapus
Edit
Rename
network.php
5.393KB
Hapus
Edit
Rename
options-discussion.php
15.397KB
Hapus
Edit
Rename
options-general.php
21.577KB
Hapus
Edit
Rename
options-head.php
0.606KB
Hapus
Edit
Rename
options-media.php
6.353KB
Hapus
Edit
Rename
options-privacy.php
9.951KB
Hapus
Edit
Rename
options-reading.php
10.025KB
Hapus
Edit
Rename
options-writing.php
9.099KB
Hapus
Edit
Rename
plugin-editor.php
13.663KB
Hapus
Edit
Rename
plugins.php
30.004KB
Hapus
Edit
Rename
post-new.php
2.703KB
Hapus
Edit
Rename
press-this.php
2.34KB
Hapus
Edit
Rename
privacy.php
2.522KB
Hapus
Edit
Rename
profile.php
0.276KB
Hapus
Edit
Rename
setup-config.php
17.484KB
Hapus
Edit
Rename
site-editor.php
11.831KB
Hapus
Edit
Rename
site-health-info.php
3.992KB
Hapus
Edit
Rename
term.php
2.196KB
Hapus
Edit
Rename
theme-editor.php
15.59KB
Hapus
Edit
Rename
theme-install.php
23.365KB
Hapus
Edit
Rename
themes.php
48.121KB
Hapus
Edit
Rename
tools.php
3.432KB
Hapus
Edit
Rename
update.php
12.785KB
Hapus
Edit
Rename
upgrade-functions.php
0.333KB
Hapus
Edit
Rename
upgrade.php
6.325KB
Hapus
Edit
Rename
upload.php
14.843KB
Hapus
Edit
Rename
user-edit.php
39.789KB
Hapus
Edit
Rename
users.php
23.279KB
Hapus
Edit
Rename
widgets-form-blocks.php
4.967KB
Hapus
Edit
Rename
widgets-form.php
19.165KB
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