One Hat Cyber Team
Your IP:
216.73.216.58
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
fluxyjvi
/
public_html
/
project
/
app
/
Models
/
View File Name :
Pagesetting.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use function GuzzleHttp\json_decode; class Pagesetting extends Model { protected $fillable = [ 'contact_success', 'contact_email', 'contact_title', 'contact_text', 'street', 'phone', 'fax', 'email', 'site', 'phone_code', 'login_banner', 'login_title', 'login_subtitle', 'side_title', 'side_text', 'review_blog', 'pricing_plan', 'video_subtitle', 'video_title', 'video_text', 'video_link', 'video_image', 'video_background', 'start_title', 'start_text', 'start_photo', 'feature_title', 'feature_text', 'brand_title', 'brand_text', 'brand_photo', 'plan_title', 'plan_subtitle', 'portfolio_subtitle', 'portfolio_title', 'portfolio_text', 'p_subtitle', 'p_title', 'p_text', 'team_subtitle', 'team_title', 'team_text', 'blog_subtitle', 'blog_title', 'blog_text', 'faq_title', 'faq_subtitle', 'banner_title', 'banner_text', 'banner_link1', 'banner_link2', 'about_photo', 'about_title', 'about_text', 'about_details', 'about_link', 'footer_top_photo', 'footer_top_title', 'footer_top_text', 'hero_title', 'hero_subtitle', 'hero_btn_url', 'hero_link', 'hero_photo', 'referral_banner', 'referral_title', 'referral_text', 'referral_percentage', 'profit_banner', 'profit_title', 'profit_text', 'call_title', 'call_subtitle', 'call_link', 'call_bg', 'latitude', 'longitude', 'home_module', ]; public $timestamps = false; public function upload($name,$file,$oldname) { $file->move('assets/images',$name); if($oldname != null) { if (file_exists(public_path().'/assets/images/'.$oldname)) { unlink(public_path().'/assets/images/'.$oldname); } } } public function homeModuleCheck($value) { if($this->home_module == null){ return false; } $sections = json_decode($this->home_module,true); if (in_array($value, $sections)){ return true; }else{ return false; } } }