HEX
Server: Apache
System: Linux host60.registrar-servers.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: wwwrenee (3804)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/wwwrenee/public_html/wp-content/plugins/insta-gallery/includes/models/Setting.php
<?php

include_once 'QLIGG_Model.php';

class QLIGG_Setting extends QLIGG_Model
{

  protected $table = 'insta_gallery_settings';

  function get_args()
  {
    return array(
      'insta_flush' => 0,
      'insta_reset' => 8,
      'insta_spinner_image_id' => 666666
    );
  }

  function get_defaults()
  {
    return $this->get_args();
  }

  function get_settings()
  {
    return array_replace_recursive(
      $this->get_args(),
      $this->get_all()
    );
  }

  function save($settings)
  {
    wp_parse_args($settings, $this->get_settings());
    return update_option($this->table, $settings);
  }

  function save_settings($settings_data = null)
  {
    return $this->save_all($settings_data);
  }
}