| Server IP : 10.19.1.101 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64 User : schererimoveisrs ( 170628) PHP Version : 7.4.33 Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/schererimoveisrs/www/pre backup/wp-content/plugins/like-box/includes/ |
Upload File : |
<?php
/// Installing database class
class like_box_install_database{
public $installed_options; // Plugin default options value
private $plugin_url;
/*############ Construct Function ##################*/
function __construct(){
if(isset($params['plugin_url']))
$this->plugin_url=$params['plugin_url'];
else
$this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
$this->installed_options=array(
"sidbar_slide_like_box"=>array(
"like_box_sidebar_slide_mode" => "no",
"like_box_sidebar_slide_title_color" => "#FFFFFF",
"like_box_sidebar_slide_title" => 'Facebook',
"like_box_sidebar_slide_title_font_famely" => 'Times New Roman,Times,Serif,Georgia',
"like_box_sidebar_slide_pntik_height" => "220",
"like_box_sidebar_slide_profile_id" => "",
"like_box_sidebar_slide_width" => "360",
"like_box_sidebar_slide_height" => "450",
"like_box_sidebar_slide_header" => 'small',
"like_box_sidebar_slide_cover_photo" => 'show',
"like_box_sidebar_slide_connections" => 'show',
"like_box_sidebar_slide_locale" => "en_US",
),
"popup_like_box"=>array(
'like_box_enable_like_box' => 'no',
'like_box_popup_title' => 'Facebook Like Box',
'like_box_popup_title_color' => '#000000',
'like_box_popup_title_font_famely' => 'Times New Roman,Times,Serif,Georgia',
"like_box_profile_id" => "",
"like_box_width" => "600",
"like_box_height" => "450",
"like_box_cover_photo" => 'show',
"like_box_header" => 'show',
"like_box_connections" => 'show',
"like_box_locale" => "en_US",
),
);
}
/*############################### Install Like Box Database Function ########################################*/
public function install_databese(){
foreach( $this->installed_options as $key => $option ){
if( get_option($key,FALSE) === FALSE ){
add_option($key,$option);
}
}
}
}