Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/app/library/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/app/library/InjectService.php
<?php 
namespace App\library;
use App\Shop\MenuBars\MenuBar;
use App\Shop\Buttons\Button;
use App\Shop\EmailSettings\EmailSetting;
use App\Shop\InvoiceSettings\InvoiceSetting;
use App\Shop\GDPR\CookieListOption;
  
class InjectService
{
	function getMenuBarList($typeMenu)
	{
		return MenuBar::where('type_menu', $typeMenu)->where('status','active')->orderBy('position', 'ASC')->get();
	}

	function getChildMenuList($menu_name, $typeMenu)
	{
		return MenuBar::where('menu_name', $menu_name)->where('type_menu', $typeMenu)->where('status','active')->where('parent','No')->groupBy('label')->orderBy('position', 'ASC')->get();
	}

	function getExternalWSInfo()
	{
		return Button::first();
	}

	function getEmailContent($key)
	{
		return EmailSetting::where("key",$key)->first();
	}

	function getInvoiceContent($key)
	{
		return InvoiceSetting::where("key",$key)->first();
	}
	
	function getCookieListOption($categoryName)
	{
		return CookieListOption::where("cookie_category", $categoryName)->get();
	}
}

Spamworldpro Mini