403Webshell
Server IP : 65.109.86.83  /  Your IP : 37.27.51.148
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/zodiacshare/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/zodiacshare/includes/functions.php
<?php

function custom_social_sharing_buttons($content)
{
    if (is_single()) {
        $social_buttons = '
        <div class="social-sharing">
            <div class="social-button facebook">
                <a href="https://www.facebook.com/sharer/sharer.php?u=' . urlencode(get_permalink()) . '" target="_blank">
                    Share on Facebook
                </a>
            </div>
            <div class="social-button twitter">
                <a href="https://twitter.com/intent/tweet?text=Check%20out%20this%20awesome%20website:%20' . urlencode(get_permalink()) . '" target="_blank">
                    Tweet on Twitter
                </a>
            </div>
            <div class="social-button pinterest">
                <a href="https://www.pinterest.com/pin/create/button/?url=' . urlencode(get_permalink()) . '&media=' . urlencode('https://your-website.com/your-image.jpg') . '&description=' . urlencode('Check out this awesome content on my website!') . '" target="_blank">
                    Pin on Pinterest
                </a>
            </div>
            <div class="social-button whatsapp">
                <a href="whatsapp://send?text=' . rawurlencode(get_the_title() . ' - ' . get_permalink()) . '" data-action="share/whatsapp/share">
                    Share on WhatsApp
                </a>
            </div>
        </div>';

        $content = preg_replace('/<div class="fb-share-button"[^>]*>.*?<\/div>/', '', $content);
        $content = preg_replace('/<a class="twitter-share-button"[^>]*>.*?<\/a>/', '', $content);
        $content = preg_replace('/<a class="whatsapp-button"[^>]*>.*?<\/a>/', '', $content);

        $content .= $social_buttons;
    }
    return $content;
}


add_filter('the_content', 'custom_social_sharing_buttons');

Youez - 2016 - github.com/yon3zu
LinuXploit