PATH:
home
/
letacommog
/
morandas1
/
wp-content
/
plugins
/
gwolle-gb
<?php /* Plugin Name: Gwolle Guestbook Plugin URI: http://zenoweb.nl Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook. Version: 3.1.8 Author: Marcel Pol Author URI: http://zenoweb.nl License: GPLv2 or later Text Domain: gwolle-gb Domain Path: /lang/ */ /* Copyright 2009 - 2010 Wolfgang Timme (email: gwolle@wolfgangtimme.de) Copyright 2014 - 2020 Marcel Pol (email: marcel@timelord.nl) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ // Plugin Version define('GWOLLE_GB_VER', '3.1.8'); /* * Todo List: * * - Entries Admin page, make columns sortable, add order parameters to get* functions. * - On Page editor, have a postbox with link to the guestbook admin entries. * - BBcode: add width and height to images. * - Add Filter for get_entry_count SQL, like get_entries. * - Add filters similar to pre_get_posts. * - Add proper docblocks to filters in the code. * - Consider a functions/list-view.php refactoring. * - Consider SQL IN when emptying spam/trash. * - Someday, do something with the REST API. Someday. * - Unify statuses in one status column like WP_Posts. * - Add status 'private', only visible for author and moderators. * - Add status 'revision' to support that too. Add metabox to editor to restore old revision. * - More smooth import from third parties. * - Test and possibly add support for Gutenberg editor (shortcode block). * - Support sticky entries. * - Support mark-as-ham for Stop Forum Spam. Needs API key. * - Do something to have less database queries for meta fields in add-on, especially export: * - Use foreign keys for add-on, set meta var (add function). Test with frontend and export and isam db-engine. * - Use foreign keys through a hook with SQL, and add a setter for meta. * - Or add function to prepopulate metas for export. * - Add emoji for Zwarte Piet and Sinterklaas when locale=nl_nl. * - Look into saving a timestamp including offset. Look again at saving from editor. * - Use button for metabox control. * - phase out current_time: * https://make.wordpress.org/core/2019/09/23/date-time-improvements-wp-5-3/ * - Support rewrite API for single entry. * - Use select2 or similar for subscribe/unsubcribe dropdowns. */ /* * Definitions */ define('GWOLLE_GB_FOLDER', plugin_basename(dirname(__FILE__))); define('GWOLLE_GB_DIR', WP_PLUGIN_DIR . '/' . GWOLLE_GB_FOLDER); define('GWOLLE_GB_URL', plugins_url( '/', __FILE__ )); global $wpdb; // Declare database table names $wpdb->gwolle_gb_entries = $wpdb->prefix . 'gwolle_gb_entries'; $wpdb->gwolle_gb_log = $wpdb->prefix . 'gwolle_gb_log'; // Classes include_once( GWOLLE_GB_DIR . '/functions/gb-class-entry.php' ); // Functions for the frontend include_once( GWOLLE_GB_DIR . '/frontend/gb-ajax-infinite-scroll.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-form.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-form-ajax.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-form-posthandling.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-shortcode-widget.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-shortcodes.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-pagination.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-read.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-rss.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-total.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-widget.php' ); include_once( GWOLLE_GB_DIR . '/frontend/gb-widget-search.php' ); // Functions and pages for the backend if ( is_admin() ) { include_once( GWOLLE_GB_DIR . '/admin/gb-ajax-management.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-dashboard-widget.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-add-on.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-editor.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-entries.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-export.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-gwolle-gb.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-import.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-page-settings.php' ); include_once( GWOLLE_GB_DIR . '/admin/gb-pagination.php' ); include_once( GWOLLE_GB_DIR . '/admin/gwolle-gb-hooks.php' ); } include_once( GWOLLE_GB_DIR . '/admin/gb-upgrade.php' ); // Tabs for gb-page-settings.php if ( is_admin() ) { include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-formtab.php' ); include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-readingtab.php' ); include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-admintab.php' ); include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-antispamtab.php' ); include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-emailtab.php' ); include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-debugtab.php' ); include_once( GWOLLE_GB_DIR . '/admin/tabs/gb-uninstalltab.php' ); } // General Functions include_once( GWOLLE_GB_DIR . '/functions/gb-akismet.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-bbcode_emoji.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-book_id.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-cache.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-debug.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-fields.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-formatting.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-get_entries.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-get_entries_from_search.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-log.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-mail.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-messages.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-metabox.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-post-meta.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-privacy.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-settings.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-single-view.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-stop-forum-spam.php' ); include_once( GWOLLE_GB_DIR . '/functions/gb-user.php' ); // General Hooks include_once( GWOLLE_GB_DIR . '/gwolle-gb-hooks.php' ); /* * Trigger an install/upgrade function when the plugin is activated. */ function gwolle_gb_activation( $networkwide ) { global $wpdb; $current_version = get_option( 'gwolle_gb_version' ); if ( function_exists('is_multisite') && is_multisite() ) { $blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs"); foreach ($blogids as $blog_id) { switch_to_blog($blog_id); if ( $current_version == false ) { gwolle_gb_install(); } elseif ($current_version != GWOLLE_GB_VER) { gwolle_gb_upgrade(); } restore_current_blog(); } } else { if ( $current_version == false ) { gwolle_gb_install(); } elseif ($current_version != GWOLLE_GB_VER) { gwolle_gb_upgrade(); } } } register_activation_hook(__FILE__, 'gwolle_gb_activation');
[+]
..
[+]
admin
[-] changelog-v1.txt
[edit]
[-] gwolle-gb-hooks.php
[edit]
[+]
add-on
[+]
frontend
[-] changelog-v0.txt
[edit]
[-] index.html
[edit]
[+]
lang
[-] readme.txt
[edit]
[-] changelog-v2.txt
[edit]
[+]
functions
[-] gwolle-gb.php
[edit]
[+]
docs