HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/panomity.de/panomity.com/wp-content/plugins/chatbot-openai-addon/OpenAi_WPBot_Menu.php
<?php

function openai_menu_text(){

    // if(qcld_wpbot_is_active_white_label() && get_option('open_ai_wpbot_word')!=''){
    //     return get_option('open_ai_wpbot_word');
    // }else{
        return 'Open Ai';
  //  }

}
class OpenAi_WPBot_Menu
{
    function  __construct(){
        add_action('admin_menu',[$this,'chatbot_menu']);
    }
    public function chatbot_menu()
    {
		global $custom_hook, $submenu;
        add_menu_page( openai_menu_text(), 'Bot - OpenAI License', 'manage_options','openai-panel_dashboard', [$this, 'qcld_wb_chatbot_admin_page_help'],'dashicons-admin-network',7);
    //    add_submenu_page( 'openai-panel_dashboard', 'Training Model', 'Training Model', 'manage_options','openai-panel_file', [$this, 'qcld_wb_chatbot_openai_file'] );
      //  add_submenu_page( 'openai-panel_dashboard', 'Help and License', 'Help and License', 'manage_options','openai-panel_help', [$this, 'qcld_wb_chatbot_admin_page_help'] );
      //  echo '<pre>'; print_r( $submenu['openai-panel_dashboard'] ); echo '</pre>'; exit();
    }
  
    public function qcld_wb_chatbot_admin_page_help()
    {
      
      $action = 'admin.php?page=openai-panel_help';
       require_once( QCLD_openai_addon_PLUGIN_DIR_PATH . "includes/admin/help.php" );
    }
    public function screen_option(){
		global $custom_hook;
		$screen = get_current_screen();
	
        $option = 'per_page';
		$args   = [
			'label'   => 'Response',
			'default' => 25,
			'option'  => 'str_responses_per_page'
		];
		add_screen_option( $option, $args );
		qcld_wpbot()->set_response_list();
    }
}


//fire off the plugin
 new OpenAi_WPBot_Menu();