/var/www/vhosts/ihelp.ro/ajutam.ro/wp-admin
NameSizeModeActions
css/-0755rm
images/-0755rm
includes/-0755rm
js/-0755rm
maint/-0755rm
network/-0755rm
user/-0755rm
about.php198040644editdlrm
admin-ajax.php51460644editdlrm
admin-footer.php28340644editdlrm
admin-functions.php4790644editdlrm
admin-header.php93360644editdlrm
admin-post.php20210644editdlrm
admin.php126460644editdlrm
async-upload.php56040644editdlrm
authorize-application.php103350644editdlrm
comment.php116220644editdlrm
contribute.php59980644editdlrm
credits.php44830644editdlrm
custom-background.php4890644editdlrm
custom-header.php4990644editdlrm
customize.php112710644editdlrm
edit-comments.php147290644editdlrm
edit-form-advanced.php295270644editdlrm
edit-form-blocks.php149470644editdlrm
edit-form-comment.php85430644editdlrm
edit-link-form.php63540644editdlrm
edit-tag-form.php106880644editdlrm
edit-tags.php225330644editdlrm
edit.php199520644editdlrm
erase-personal-data.php75050644editdlrm
export-personal-data.php79410644editdlrm
export.php112880644editdlrm
freedoms.php49160644editdlrm
import.php77660644editdlrm
index.php78640644editdlrm
install-helper.php69610644editdlrm
install.php181920644editdlrm
link-add.php9340644editdlrm
link-manager.php43610644editdlrm
link-parse-opml.php27840644editdlrm
link.php29570644editdlrm
load-scripts.php20700644editdlrm
load-styles.php29950644editdlrm
media-new.php32760644editdlrm
media-upload.php36680644editdlrm
media.php8190644editdlrm
menu-header.php100590644editdlrm
menu.php178800644editdlrm
moderation.php3070644editdlrm
ms-admin.php1960644editdlrm
ms-delete-site.php46130644editdlrm
ms-edit.php2160644editdlrm
ms-options.php2290644editdlrm
ms-sites.php2150644editdlrm
ms-themes.php2170644editdlrm
ms-upgrade-network.php2190644editdlrm
ms-users.php2150644editdlrm
my-sites.php48580644editdlrm
nav-menus.php493450644editdlrm
network.php55220644editdlrm
options-discussion.php162970644editdlrm
options-general.php221670644editdlrm
options-head.php6210644editdlrm
options-media.php65300644editdlrm
options-permalink.php217260644editdlrm
options-privacy.php101900644editdlrm
options-reading.php101740644editdlrm
options-writing.php93230644editdlrm
options.php139300644editdlrm
plugin-editor.php140820644editdlrm
plugin-install.php71240644editdlrm
plugins.php307240644editdlrm
post-new.php27680644editdlrm
post.php102740644editdlrm
press-this.php23960644editdlrm
privacy-policy-guide.php37560644editdlrm
privacy.php28540644editdlrm
profile.php2830644editdlrm
revision.php58360644editdlrm
setup-config.php179040644editdlrm
site-editor.php122710644editdlrm
site-health-info.php40880644editdlrm
site-health.php104480644editdlrm
term.php22490644editdlrm
theme-editor.php172790644editdlrm
theme-install.php239450644editdlrm
themes.php490750644editdlrm
tools.php35140644editdlrm
update-core.php465390644editdlrm
update.php130920644editdlrm
upgrade-functions.php3410644editdlrm
upgrade.php64220644editdlrm
upload.php152590644editdlrm
user-edit.php413280644editdlrm
user-new.php246230644editdlrm
users.php238460644editdlrm
widgets-form-blocks.php52420644editdlrm
widgets-form.php197540644editdlrm
widgets.php11120644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-admin/install-helper.php (6961B)
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
'; * } else { * $res .= 'There was a problem with ' . $tablename . '
'; * ++$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; }