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_recommendations_page.php
<?php

/*
 * @desc recommendations Settings
 */

$shrsb_recommendations = shrsb_recommendations_set_options();

/*
 * @desc Set the recommendations settings either from database or default
 */
function shrsb_recommendations_set_options( $action = NULL ) {
    
    $option_name = 'ShareaholicRecommendations';
    
    $shrsb_recommendations_default = array(
        'recommendations'  => '1'
        , 'pageorpost' => 'postpageindexcategory'
        , 'style' => 'image'
    );
    
    //Return default settings 
    if( $action == "reset" ) {
        delete_option($option_name);
        add_option($option_name,$shrsb_recommendations_default);
        return $shrsb_recommendations_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_recommendations_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_recommendations_default );
        return $shrsb_recommendations_default;
    }
}
?>

https://t.me/RX1948 - 2025