Sindbad~EG File Manager

Current Path : /var/www/html/digi.sumar.com.py/wp-content/plugins/wp-job-portal/includes/
Upload File :
Current File : /var/www/html/digi.sumar.com.py/wp-content/plugins/wp-job-portal/includes/wpjobportaldb.php

<?php

if (!defined('ABSPATH'))
    die('Restricted Access');

class wpjobportaldb {

    function __construct() {
        
    }

    public static function get_var($query) {
        $result = wpjobportal::$_db->get_var($query);
        if (wpjobportal::$_db->last_error != null) {
            WPJOBPORTALincluder::getJSModel('systemerror')->addSystemError();
        }
        return $result;
    }

    function setQuery($query){
        $this->_query = $this->parseQuery($query);
    }

    public static function get_row($query) {
        $result = wpjobportal::$_db->get_row($query);
        if (wpjobportal::$_db->last_error != null) {
            WPJOBPORTALincluder::getJSModel('systemerror')->addSystemError();
        }
        return $result;
    }

    public static function get_results($query) {
        $result = wpjobportal::$_db->get_results($query);
        if (wpjobportal::$_db->last_error != null) {
            WPJOBPORTALincluder::getJSModel('systemerror')->addSystemError();
        }
        return $result;
    }

    private function parseQuery($query){
        $query = wpjobportalphplib::wpJP_str_replace('#__', $this->_db->prefix, $query);
        return $query;
    }

    public static function query($query) {
        $result = true;
        wpjobportal::$_db->query($query);
        if (wpjobportal::$_db->last_error != null) {
            WPJOBPORTALincluder::getJSModel('systemerror')->addSystemError();
            $result = false;
        }
        return $result;
    }

}

?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists