Changeset 3355815
- Timestamp:
- 09/04/2025 06:52:29 AM (6 months ago)
- Location:
- autoreply-ai
- Files:
-
- 29 added
- 4 edited
-
tags/1.8 (added)
-
tags/1.8/LICENSE.txt (added)
-
tags/1.8/about.php (added)
-
tags/1.8/admin.php (added)
-
tags/1.8/ai-generator.php (added)
-
tags/1.8/assets (added)
-
tags/1.8/assets/css (added)
-
tags/1.8/assets/css/llms-admin.css (added)
-
tags/1.8/assets/css/style.css (added)
-
tags/1.8/assets/js (added)
-
tags/1.8/assets/js/auto_reply_ai.js (added)
-
tags/1.8/assets/js/llms-admin.js (added)
-
tags/1.8/assets/logo.png (added)
-
tags/1.8/assets/replypilot-ai.png (added)
-
tags/1.8/assets/sales-logo.png (added)
-
tags/1.8/autoreply-ai.php (added)
-
tags/1.8/autoreply-comments.php (added)
-
tags/1.8/custom-handle-ai-reply.php (added)
-
tags/1.8/forum-autoreply (added)
-
tags/1.8/forum-autoreply/Asgaros-Forum.php (added)
-
tags/1.8/forum-autoreply/ForumWP.php (added)
-
tags/1.8/forum-autoreply/bbpress-auto-reply.php (added)
-
tags/1.8/forum-autoreply/buddypress-auto-reply.php (added)
-
tags/1.8/forum-autoreply/wpForo-Forum.php (added)
-
tags/1.8/includes (added)
-
tags/1.8/includes/class-generate-llms.php (added)
-
tags/1.8/includes/functions.php (added)
-
tags/1.8/index.php (added)
-
tags/1.8/readme.txt (added)
-
trunk/autoreply-ai.php (modified) (2 diffs)
-
trunk/includes/class-generate-llms.php (modified) (3 diffs)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
autoreply-ai/trunk/autoreply-ai.php
r3348595 r3355815 4 4 Plugin URI: https://plugins.techbeeps.com/ 5 5 Description: A plugin that enables automatic replies using AI, allowing admins to configure API keys, word limits, and user selection. 6 Version: 1. 76 Version: 1.8 7 7 Author: Techbeeps 8 8 Author URI: https://techbeeps.co.in/ … … 14 14 if (! defined('ABSPATH')) { exit; } 15 15 16 define('AUTO_REPLY_AI_TBS', '1. 7');16 define('AUTO_REPLY_AI_TBS', '1.8'); 17 17 define('AUTO_REPLY_AI_TBS_PATH', plugin_dir_path(__FILE__)); 18 18 define('AUTO_REPLY_AI_TBS_URL', __FILE__); -
autoreply-ai/trunk/includes/class-generate-llms.php
r3348595 r3355815 178 178 global $wp_filesystem; 179 179 180 $file_path = ABSPATH . 'llms.txt'; 180 $upload_dir = wp_upload_dir(); 181 $dir = trailingslashit($upload_dir['basedir']) . 'autoreply-llms-txt/'; 182 $file_path = $dir . 'llms.txt'; 181 183 182 184 if ($wp_filesystem->exists($file_path)) { … … 188 190 } 189 191 } else { 190 if (! $wp_filesystem->is_writable( ABSPATH)) {192 if (! $wp_filesystem->is_writable($dir)) { 191 193 echo '<div class="notice notice-error">'; 192 194 echo '<p>Warning: Cannot create llms.txt - the root directory is not writable. Please set permissions to 755 .</p>'; … … 641 643 global $wp_filesystem; 642 644 643 $file_path = ABSPATH . 'llms.txt'; 645 $upload_dir = wp_upload_dir(); 646 $dir = trailingslashit($upload_dir['basedir']) . 'autoreply-llms-txt/'; 647 $file_path = $dir . 'llms.txt'; 648 649 if (! file_exists($dir)) { 650 wp_mkdir_p($dir); 651 } 644 652 $content = $this->generate_content(); 645 653 -
autoreply-ai/trunk/includes/functions.php
r3338962 r3355815 29 29 } 30 30 add_action('admin_enqueue_scripts', 'autoreply_ai_css_plugin'); 31 32 add_action( 'template_redirect', function() { 33 $request_uri = ''; 34 if ( isset( $_SERVER['REQUEST_URI'] ) ) { 35 $request_uri = sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 36 } 37 38 if ( $request_uri && preg_match( '/llms\.txt$/', $request_uri ) ) { 39 $upload_dir = wp_upload_dir(); 40 $file_path = trailingslashit( $upload_dir['basedir'] ) . 'autoreply-llms-txt/llms.txt'; 41 42 if ( file_exists( $file_path ) ) { 43 global $wp_filesystem; 44 if ( ! $wp_filesystem ) { 45 require_once ABSPATH . 'wp-admin/includes/file.php'; 46 WP_Filesystem(); 47 } 48 $content = $wp_filesystem->get_contents( $file_path ); 49 if ( $content !== false ) { 50 header( 'Content-Type: text/html; charset=utf-8' ); 51 header( 'Content-Disposition: inline; filename="llms.txt"' ); 52 echo "<pre>"; 53 echo esc_textarea($content); 54 echo "</pre>"; 55 exit; 56 } 57 } 58 } 59 }); -
autoreply-ai/trunk/readme.txt
r3348595 r3355815 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1. 77 Stable tag: 1.8 8 8 License: GPL-2.0+ 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 170 170 171 171 == Changelog == 172 = 1.8 = 173 * Fixed some llms.txt issues 174 172 175 = 1.7 = 173 176 * Introduced LLMS.txt Generator (auto/manual site summary generation for AI models) … … 185 188 * screenshot or Banner update 186 189 187 = =1.4==190 =1.4= 188 191 * Increase Response Word Limit 189 192 * Tested up to WordPress 6.8
Note: See TracChangeset
for help on using the changeset viewer.