PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/flavoredfog.co.uk/wp-content/plugins/revslider/inc_php/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : /home/trave494/flavoredfog.co.uk/wp-content/plugins/revslider/inc_php/revslider_params.class.php

<?php

	/**
	 * 
	 * get / update params in db
	 *
	 */

	class RevSliderParams extends UniteElementsBaseRev{
		
		
		/**
		 * 
		 * update settign in db
		 */		
		public function updateFieldInDB($name,$value){
			
			$arr = $this->db->fetch(GlobalsRevSlider::$table_settings);
			if(empty($arr)){	//insert to db
				$arrInsert = array();
				$arrInsert["general"] = "";
				$arrInsert["params"] = "";
				$arrInsert[$name] = $value;
				
				$this->db->insert(GlobalsRevSlider::$table_settings,$arrInsert);
			}else{	//update db
				$arrUpdate = array();
				$arrUpdate[$name] = $value;
				
				$id = $arr[0]["id"];
				$this->db->update(GlobalsRevSlider::$table_settings,$arrUpdate,array("id"=>$id));
			}
		}
		
		
		/**
		 * 
		 * get field from db
		 */
		public function getFieldFromDB($name){
			
			$arr = $this->db->fetch(GlobalsRevSlider::$table_settings);
						
			if(empty($arr))
				return("");
				
			
			$arr = $arr[0];
			
			if(array_key_exists($name, $arr) == false)
				UniteFunctionsRev::throwError("The settings db should cotnain field: $name");
			
			$value = $arr[$name];
			return($value);
		}
		
		
	}

?>