HEX
Server: Apache
System: Linux ebs-107629 5.10.0-14-amd64 #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64
User: shredder (65669)
PHP: 8.3.8
Disabled: link,symlink
Upload Files
File: /home/wwwroot/shredder/wwwroot/wp-content/plugins/filebird-pro/includes/Controller/Controller.php
<?php
namespace FileBird\Controller;


defined('ABSPATH') || exit;

class Controller {

  protected $folder_table = 'fbv';
  protected $relation_table = 'fbv_attachment_folder';

  public function __construct() {

  }

  protected function loadView($view, $data = array(), $return_html = false) {
    $viewPath = NJFB_PLUGIN_PATH . 'views/'.$view.'.php';
    if(!file_exists($viewPath)) {
      die('View <strong>'.$viewPath.'</strong> not found!');
    }
    extract($data);
    if($return_html === true) {
      ob_start();
      include_once $viewPath;
      return ob_get_clean();
    }
    include_once $viewPath;
  }
  protected function getTable($table) {
    global $wpdb;
    return $wpdb->prefix . $table;
  }
  protected function getNodeClass($id, $count = 0) {
    return "fbv_$id fbvc_$count";
  }
}