Changeset 2338610
- Timestamp:
- 07/10/2020 11:38:52 AM (6 years ago)
- Location:
- esselinknu-settings/trunk
- Files:
-
- 3 edited
-
esselink-nu-settings.php (modified) (1 diff)
-
includes/manage-redirects.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
esselinknu-settings/trunk/esselink-nu-settings.php
r2337932 r2338610 4 4 * Plugin URI: http://www.esselink.nu 5 5 * Description: Settings plugin for customs configuration of Esselink.nu WP websites 6 * Version: 2.6 16 * Version: 2.62 7 7 * Author: Esselink.nu 8 8 * Author URI: http://www.esselink.nu 9 9 **/ 10 $esselink_nu_settings_verson = 2.6 1;10 $esselink_nu_settings_verson = 2.62; 11 11 12 12 // Block access to this file -
esselinknu-settings/trunk/includes/manage-redirects.php
r2066393 r2338610 90 90 $table_redirects = $wpdb->base_prefix . 'esselink_settings_redirects'; 91 91 92 $table_name = $wpdb->prefix . "your-table-name"; 93 if($wpdb->get_var("SHOW TABLES LIKE '$table_redirects'") != $table_redirects) { 94 esselink_settings_install(); 95 } 96 92 97 if ( ($_SERVER['REQUEST_METHOD'] === 'POST') && $_POST['submit'] && wp_verify_nonce($_POST['esselink_nu_settings'],'esselink_nu_settings') ) { 93 98 // Save settings … … 115 120 $sql = "INSERT INTO `" . $table_redirects . "` (`type`,`source`,`destination`, `hits`) VALUES ('" . $type . "', '" . $source . "', '" . $destination . "', 0) ON DUPLICATE KEY UPDATE `type` = '".$type."', `destination` = '" . $destination . "';"; 116 121 117 echo $sql;118 122 $wpdb->query( $sql ); 119 123 } -
esselinknu-settings/trunk/readme.txt
r2337932 r2338610 144 144 = 2.61 = 145 145 * Bugfix protocol relative 146 = 2.62 = 147 * Bugfix redirect links 146 148 147 149 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.