H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
e:
/
home
/
ajudasindico
/
Web
/
wp-admin
/
Nama File / Folder
Size
Action
css
--
NONE
images
--
NONE
includes
--
NONE
js
--
NONE
maint
--
NONE
network
--
NONE
user
--
NONE
about.php
15.837KB
Hapus
Edit
Rename
admin-ajax.php
4.832KB
Hapus
Edit
Rename
admin-footer.php
2.757KB
Hapus
Edit
Rename
admin-functions.php
0.396KB
Hapus
Edit
Rename
admin-header.php
8.703KB
Hapus
Edit
Rename
admin-post.php
1.632KB
Hapus
Edit
Rename
admin.php
12.13KB
Hapus
Edit
Rename
async-upload.php
4.579KB
Hapus
Edit
Rename
authorize-application.php
9.603KB
Hapus
Edit
Rename
comment.php
11.236KB
Hapus
Edit
Rename
credits.php
3.667KB
Hapus
Edit
Rename
custom-background.php
0.406KB
Hapus
Edit
Rename
custom-header.php
0.416KB
Hapus
Edit
Rename
customize.php
10.456KB
Hapus
Edit
Rename
edit-comments.php
13.74KB
Hapus
Edit
Rename
edit-form-advanced.php
28.295KB
Hapus
Edit
Rename
edit-form-blocks.php
10.709KB
Hapus
Edit
Rename
edit-form-comment.php
7.969KB
Hapus
Edit
Rename
edit-link-form.php
6.151KB
Hapus
Edit
Rename
edit-tag-form.php
10.18KB
Hapus
Edit
Rename
edit-tags.php
21.693KB
Hapus
Edit
Rename
edit.php
18.793KB
Hapus
Edit
Rename
erase-personal-data.php
7.106KB
Hapus
Edit
Rename
export-personal-data.php
7.079KB
Hapus
Edit
Rename
export.php
10.74KB
Hapus
Edit
Rename
freedoms.php
4.4KB
Hapus
Edit
Rename
import.php
7.384KB
Hapus
Edit
Rename
index.php
7.63KB
Hapus
Edit
Rename
install-helper.php
5.89KB
Hapus
Edit
Rename
install.php
16.503KB
Hapus
Edit
Rename
link-add.php
0.725KB
Hapus
Edit
Rename
link-manager.php
4.15KB
Hapus
Edit
Rename
link-parse-opml.php
2.592KB
Hapus
Edit
Rename
link.php
2.696KB
Hapus
Edit
Rename
load-scripts.php
1.66KB
Hapus
Edit
Rename
load-styles.php
2.467KB
Hapus
Edit
Rename
media-new.php
3.165KB
Hapus
Edit
Rename
media-upload.php
3.486KB
Hapus
Edit
Rename
media.php
5.499KB
Hapus
Edit
Rename
menu-header.php
9.684KB
Hapus
Edit
Rename
menu.php
15.896KB
Hapus
Edit
Rename
moderation.php
0.3KB
Hapus
Edit
Rename
ms-admin.php
0.191KB
Hapus
Edit
Rename
ms-delete-site.php
4.179KB
Hapus
Edit
Rename
ms-edit.php
0.211KB
Hapus
Edit
Rename
ms-options.php
0.218KB
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
ms-users.php
0.21KB
Hapus
Edit
Rename
my-sites.php
4.56KB
Hapus
Edit
Rename
nav-menus.php
45.768KB
Hapus
Edit
Rename
network.php
5.316KB
Hapus
Edit
Rename
options-discussion.php
15.143KB
Hapus
Edit
Rename
options-general.php
14.658KB
Hapus
Edit
Rename
options-head.php
0.48KB
Hapus
Edit
Rename
options-media.php
6.181KB
Hapus
Edit
Rename
options-permalink.php
19.349KB
Hapus
Edit
Rename
options-privacy.php
9.882KB
Hapus
Edit
Rename
options-reading.php
9.664KB
Hapus
Edit
Rename
options-writing.php
8.489KB
Hapus
Edit
Rename
options.php
12.51KB
Hapus
Edit
Rename
plugin-editor.php
13.113KB
Hapus
Edit
Rename
plugin-install.php
6.762KB
Hapus
Edit
Rename
plugins.php
28.56KB
Hapus
Edit
Rename
post-new.php
2.64KB
Hapus
Edit
Rename
post.php
9.871KB
Hapus
Edit
Rename
press-this.php
2.33KB
Hapus
Edit
Rename
privacy-policy-guide.php
3.516KB
Hapus
Edit
Rename
privacy.php
2.417KB
Hapus
Edit
Rename
profile.php
0.276KB
Hapus
Edit
Rename
revision.php
5.427KB
Hapus
Edit
Rename
setup-config.php
16.461KB
Hapus
Edit
Rename
site-editor.php
4.22KB
Hapus
Edit
Rename
site-health-info.php
3.929KB
Hapus
Edit
Rename
site-health.php
9.54KB
Hapus
Edit
Rename
term.php
2.2KB
Hapus
Edit
Rename
theme-editor.php
14.852KB
Hapus
Edit
Rename
theme-install.php
21.801KB
Hapus
Edit
Rename
themes.php
45.282KB
Hapus
Edit
Rename
tools.php
3.412KB
Hapus
Edit
Rename
update-core.php
43.72KB
Hapus
Edit
Rename
update.php
12.426KB
Hapus
Edit
Rename
upgrade-functions.php
0.333KB
Hapus
Edit
Rename
upgrade.php
5.469KB
Hapus
Edit
Rename
upload.php
13.77KB
Hapus
Edit
Rename
user-edit.php
34.192KB
Hapus
Edit
Rename
user-new.php
23.444KB
Hapus
Edit
Rename
users.php
21.027KB
Hapus
Edit
Rename
widgets-form-blocks.php
2.389KB
Hapus
Edit
Rename
widgets-form.php
18.94KB
Hapus
Edit
Rename
widgets.php
1.091KB
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 time outs. 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"; * } * * $error_count = 0; * $tablename = $wpdb->links; * // 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 ); * } * * 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. $wpdb->query( $create_ddl ); // We cannot directly tell that 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; 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. $wpdb->query( $create_ddl ); // We cannot directly tell that whether this succeeded! 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; foreach ( $wpdb->get_col( "DESC $table_name", 0 ) as $column ) { if ( $column === $column_name ) { // Found it, so try to drop it. $wpdb->query( $drop_ddl ); // We cannot directly tell that whether this succeeded! 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 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 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 = null, $extra = null ) { global $wpdb; $diffs = 0; $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 ) && ( $row->Default !== $default ) ) { ++$diffs; } if ( ( null !== $extra ) && ( $row->Extra !== $extra ) ) { ++$diffs; } if ( $diffs > 0 ) { return false; } return true; } // End if found our column. } return false; }
Liking