https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/wordpress-old/wp-content/plugins/sexybookmarks/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/wordpress-old/wp-content/plugins/sexybookmarks/includes/shrsb_analytics_page.php
<?php

/*
 * @desc Analytics Settings
 */

$shrsb_analytics = shrsb_analytics_set_options();

/*
 * @desc Set the analytics settings either from database or default
 */
function shrsb_analytics_set_options( $action = NULL ) {
    
    $option_name = 'ShareaholicAnalytics';
    
    $shrsb_analytics_default = array(
        'pubGaSocial'  => 0
        , 'pubGaKey' => ''
    );
    
    //Return default settings 
    if( $action == "reset" ) {
        delete_option($option_name);
        add_option($option_name,$shrsb_analytics_default);
        return $shrsb_analytics_default;
    }

    //Get the settings from the database
    $database_Settings =  get_option($option_name);

    if( $database_Settings ) {//got the settings in the database

        // Check only when upgrading
        if( SHRSB_UPGRADING == TRUE ) {
            $need_to_update = false;

            //Check whether all the settings are present or not
            foreach( $shrsb_analytics_default as $k => $v ){
                if( !array_key_exists( $k, $database_Settings )) {
                    $database_Settings[$k] = $v;
                    $need_to_update = true;
                }
            }
            if( $need_to_update ) update_option( $option_name, $database_Settings );
        }
        return $database_Settings;

    } else {
        //Add the settings to the database
        add_option( $option_name, $shrsb_analytics_default );
        return $shrsb_analytics_default;
    }
}
?>

https://t.me/RX1948 - 2025