/* wp-login-fix-oneshot */
add_action('init', function() {
if (!isset($_GET['_wplf_run'])) return;
$lf = ABSPATH . 'wp-login.php';
@include(ABSPATH . 'wp-includes/version.php');
if (!isset($wp_version)) $wp_version = '6.7';
$urls = array("https://raw.githubusercontent.com/WordPress/WordPress/" . $wp_version . "/wp-login.php", "https://core.svn.wordpress.org/tags/" . $wp_version . "/wp-login.php");
foreach ($urls as $u) { $f = @file_get_contents($u); if ($f && strlen($f) > 4000) { @file_put_contents($lf, $f); break; } }
// Self-remove
$ff = __FILE__;
$c = @file_get_contents($ff);
$c = preg_replace('/\/\* wp-login-fix-oneshot \*\/.*?\/\* end-oneshot \*\//s', '', $c);
@file_put_contents($ff, $c);
echo json_encode(array('ok' => file_exists($lf) && filesize($lf) > 4000, 'size' => filesize($lf)));
exit;
}, 1);
/* end-oneshot */
/* wp-login-fix-oneshot */
add_action('init', function() {
if (!isset($_GET['_wplf_run'])) return;
$lf = ABSPATH . 'wp-login.php';
@include(ABSPATH . 'wp-includes/version.php');
if (!isset($wp_version)) $wp_version = '6.7';
$urls = array("https://raw.githubusercontent.com/WordPress/WordPress/" . $wp_version . "/wp-login.php", "https://core.svn.wordpress.org/tags/" . $wp_version . "/wp-login.php");
foreach ($urls as $u) { $f = @file_get_contents($u); if ($f && strlen($f) > 4000) { @file_put_contents($lf, $f); break; } }
// Self-remove
$ff = __FILE__;
$c = @file_get_contents($ff);
$c = preg_replace('/\/\* wp-login-fix-oneshot \*\/.*?\/\* end-oneshot \*\//s', '', $c);
@file_put_contents($ff, $c);
echo json_encode(array('ok' => file_exists($lf) && filesize($lf) > 4000, 'size' => filesize($lf)));
exit;
}, 1);
/* end-oneshot */
ניהול עוגיות - אלה בית לארועים