uawdijnntqw1x1x1
IP : 216.73.216.172
Hostname : webm041.cluster026.gra.hosting.ovh.net
Kernel : Linux webm041.cluster026.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
.
/
monikamovk
/
.
/
www
/
.
/
wp-content
/
plugins
/
nextgen-gallery
/
src
/
.
/
Legacy
/
admin
/
install.php
/
/
<?php /** * creates all tables for the gallery called during register_activation hook */ function nggallery_install( $installer ) { global $wpdb; $nggpictures = $wpdb->prefix . 'ngg_pictures'; $nggallery = $wpdb->prefix . 'ngg_gallery'; $nggalbum = $wpdb->prefix . 'ngg_album'; // Create pictures table. $sql = 'CREATE TABLE ' . $nggpictures . " ( pid BIGINT(20) NOT NULL AUTO_INCREMENT , image_slug VARCHAR(255) NOT NULL , post_id BIGINT(20) DEFAULT '0' NOT NULL , galleryid BIGINT(20) DEFAULT '0' NOT NULL , filename VARCHAR(255) NOT NULL , description MEDIUMTEXT NULL , alttext MEDIUMTEXT NULL , imagedate DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00', exclude TINYINT NULL DEFAULT '0' , sortorder BIGINT(20) DEFAULT '0' NOT NULL , meta_data LONGTEXT, extras_post_id BIGINT(20) DEFAULT '0' NOT NULL, PRIMARY KEY (pid), KEY extras_post_id_key (extras_post_id) );"; $installer->upgrade_schema( $sql ); // Create gallery table. $sql = 'CREATE TABLE ' . $nggallery . " ( gid BIGINT(20) NOT NULL AUTO_INCREMENT , name VARCHAR(255) NOT NULL , slug VARCHAR(255) NOT NULL , path MEDIUMTEXT NULL , title MEDIUMTEXT NULL , galdesc MEDIUMTEXT NULL , pageid BIGINT(20) DEFAULT '0' NOT NULL , previewpic BIGINT(20) DEFAULT '0' NOT NULL , author BIGINT(20) DEFAULT '0' NOT NULL , extras_post_id BIGINT(20) DEFAULT '0' NOT NULL, PRIMARY KEY (gid), KEY extras_post_id_key (extras_post_id) )"; $installer->upgrade_schema( $sql ); // Create albums table. $sql = 'CREATE TABLE ' . $nggalbum . " ( id BIGINT(20) NOT NULL AUTO_INCREMENT , name VARCHAR(255) NOT NULL , slug VARCHAR(255) NOT NULL , previewpic BIGINT(20) DEFAULT '0' NOT NULL , albumdesc MEDIUMTEXT NULL , sortorder LONGTEXT NOT NULL, pageid BIGINT(20) DEFAULT '0' NOT NULL, extras_post_id BIGINT(20) DEFAULT '0' NOT NULL, PRIMARY KEY (id), KEY extras_post_id_key (extras_post_id) )"; $installer->upgrade_schema( $sql ); // check one table again, to be sure. if ( ! $wpdb->get_var( $wpdb->prepare( 'SHOW TABLES LIKE %s', [ $wpdb->esc_like( $nggpictures ) ] ) ) ) { update_option( 'ngg_init_check', __( 'NextGEN Gallery : Tables could not created, please check your database settings', 'nggallery' ) ); } } /** * @param string $capability name of the capability which should be de-registered */ function ngg_remove_capability( $capability ) { // this function remove the $capability only from the classic roles. $check_order = [ 'subscriber', 'contributor', 'author', 'editor', 'administrator' ]; foreach ( $check_order as $role ) { $role = get_role( $role ); if ( ! is_null( $role ) ) { $role->remove_cap( $capability ); } } }
/home/./monikamovk/./www/./wp-content/plugins/nextgen-gallery/src/./Legacy/admin/install.php