Server IP : 103.119.228.120 / Your IP : 18.223.237.218 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/hendraso/public_html/old/wp-content/plugins/multicons/ |
Upload File : |
<?php /* Plugin Name: Multicons Plugin URI: http://www.doc4design.com/plugins/multicons Description: Auto generates code for both a favicon and an apple favicon into the header of your website Version: 5.1 Author: Doc4 Author URI: http://www.doc4design.com */ // install the options pages function multicons_menu_page() { add_options_page( __( 'Multicons', 'multicons-mulitple-favicons' ), __( 'Multicons', 'multicons-mulitple-favicons' ), 'manage_options', 'mmf', 'mmf_options_page' ); } add_action( 'admin_menu', 'multicons_menu_page' ); // admin function mmf_admin_init() { add_settings_section( 'mmf-section', __( 'Website Favicon', 'multicons-mulitple-favicons' ), 'mmf_section_callback', 'mmf' ); add_settings_field( 'mmf-field', __( 'Favicon URL', 'multicons-mulitple-favicons' ), 'mmf_field_callback', 'mmf', 'mmf-section' ); register_setting( 'mmf-options', 'mmf-setting', 'sanitize_text_field' ); add_settings_section( 'mmf-section-admin', __( 'Dashboard Favicon', 'multicons-mulitple-favicons' ), 'mmf_section_callback_admin', 'mmf' ); add_settings_field( 'mmf-field-admin', __( 'Favicon URL', 'multicons-mulitple-favicons' ), 'mmf_field_callback_admin', 'mmf', 'mmf-section-admin' ); register_setting( 'mmf-options', 'mmf-setting-admin', 'sanitize_text_field' ); add_settings_section( 'mmf-section-ios', __( 'Apple Touch Original Icon', 'multicons-mulitple-favicons' ), 'mmf_section_callback_ios', 'mmf' ); add_settings_field( 'mmf-field-ios', __( 'Favicon URL', 'multicons-mulitple-favicons' ), 'mmf_field_callback_ios', 'mmf', 'mmf-section-ios' ); register_setting( 'mmf-options', 'mmf-setting-ios', 'sanitize_text_field' ); add_settings_section( 'mmf-section-iosflat', __( 'Apple Touch Precomposed Icon', 'multicons-mulitple-favicons' ), 'mmf_section_callback_iosflat', 'mmf' ); add_settings_field( 'mmf-field-iosflat', __( 'Favicon URL', 'multicons-mulitple-favicons' ), 'mmf_field_callback_iosflat', 'mmf', 'mmf-section-iosflat' ); register_setting( 'mmf-options', 'mmf-setting-iosflat', 'sanitize_text_field' ); add_settings_section( 'mmf-section-androidhirez', __( 'Android High Resolution Icon', 'multicons-mulitple-favicons' ), 'mmf_section_callback_androidhirez', 'mmf' ); add_settings_field( 'mmf-field-androidhirez', __( 'Favicon URL', 'multicons-mulitple-favicons' ), 'mmf_field_callback_androidhirez', 'mmf', 'mmf-section-androidhirez' ); register_setting( 'mmf-options', 'mmf-setting-androidhirez', 'sanitize_text_field' ); add_settings_section( 'mmf-section-androidreg', __( 'Android Regular Icon', 'multicons-mulitple-favicons' ), 'mmf_section_callback_androidreg', 'mmf' ); add_settings_field( 'mmf-field-androidreg', __( 'Favicon URL', 'multicons-mulitple-favicons' ), 'mmf_field_callback_androidreg', 'mmf', 'mmf-section-androidreg' ); register_setting( 'mmf-options', 'mmf-setting-androidreg', 'sanitize_text_field' ); } add_action( 'admin_init', 'mmf_admin_init' ); function mmf_section_callback() { echo __( '• Upload your favicon file in .ico format to the media library and paste the link below.<br/>• Dimensions: 16 x 16 pixels or Multi-Size<br/>• Sample File Included', 'multicons-mulitple-favicons' ); } function mmf_section_callback_admin() { echo __( '• Upload your favicon file in .ico format to the media library and paste the link below.<br/>• Dimensions: 16 x 16 pixels or Multi-Size<br/>• Sample File Included', 'multicons-mulitple-favicons' ); } function mmf_section_callback_ios() { echo __( '• Upload your icon in .png format to the media library and paste the link below.<br/>• <strong>Only use one Apple Touch Icon link (Do not add a url to both Original and Precomposed)</strong><br/>• Name your Apple Touch Original Icon [apple-touch-icon.png]<br/>• Dimensions: 180 x 180 pixels<br/>• Sample File Included', 'multicons-mulitple-favicons' ); } function mmf_section_callback_iosflat() { echo __( '• Upload your icon in .png format to the media library and paste the link below.<br/>• <strong>Only use one Apple Touch Icon link (Do not add a url to both Original and Precomposed)</strong><br/>• Name your Apple Touch Precomposed Icon [apple-touch-icon-precomposed.png]<br/>• Dimensions: 180 x 180 pixels<br/>• Sample File Included', 'multicons-mulitple-favicons' ); } function mmf_section_callback_androidhirez() { echo __( '• Upload your icon in .png format to the media library and paste the link below.<br/>• <strong>You may use both options for Android (High Resolution and Regular Icons)</strong><br/>• Name your Android High Resolution Icon [icon-hires.png]<br/>• Dimensions: 192 x 192 pixels<br/>• Sample File Included', 'multicons-mulitple-favicons' ); } function mmf_section_callback_androidreg() { echo __( '• Upload your icon in .png format to the media library and paste the link below.<br/>• <strong>You may use both options for Android (High Resolution and Regular Icons)</strong><br/>• Name your Android Regular Icon [icon-regular.png]<br/>• Dimensions: 128 x 128 pixels<br/>• Sample File Included', 'multicons-mulitple-favicons' ); } // fields function mmf_field_callback() { $mmf_setting = esc_url( get_option( 'mmf-setting' ) ); echo "<input type='text' size='60' maxlength='150' name='mmf-setting' value='$mmf_setting' /><br/><br/><br/><br/>"; } function mmf_field_callback_admin() { $mmf_setting_admin = esc_url( get_option( 'mmf-setting-admin' ) ); echo "<input type='text' size='60' maxlength='150' name='mmf-setting-admin' value='$mmf_setting_admin' /><br/><br/><br/><br/>"; } function mmf_field_callback_ios() { $mmf_setting_ios = esc_url( get_option( 'mmf-setting-ios' ) ); echo "<input type='text' size='60' maxlength='150' name='mmf-setting-ios' value='$mmf_setting_ios' /><br/><br/><br/><br/>"; } function mmf_field_callback_iosflat() { $mmf_setting_iosflat = esc_url( get_option( 'mmf-setting-iosflat' ) ); echo "<input type='text' size='60' maxlength='150' name='mmf-setting-iosflat' value='$mmf_setting_iosflat' /><br/><br/><br/><br/>"; } function mmf_field_callback_androidhirez() { $mmf_setting_androidhirez = esc_url( get_option( 'mmf-setting-ios' ) ); echo "<input type='text' size='60' maxlength='150' name='mmf-setting-androidhirez' value='$mmf_setting_androidhirez' /><br/><br/><br/><br/>"; } function mmf_field_callback_androidreg() { $mmf_setting_androidreg = esc_url( get_option( 'mmf-setting-androidreg' ) ); echo "<input type='text' size='60' maxlength='150' name='mmf-setting-androidreg' value='$mmf_setting_androidreg' /><br/><br/><br/><br/>"; } // display function mmf_options_page() { ?> <div class="wrap"> <h1><?php _e( 'Multicons [ Multiple Favicons ]', 'multicons-mulitple-favicons' ); ?></h1> <hr> <form action="options.php" method="POST"> <?php settings_fields( 'mmf-options' ); ?> <?php do_settings_sections( 'mmf' ); ?> <?php submit_button(__('Save Changes', 'multicons-mulitple-favicons')); ?> </form> <hr> <p><?php _e( 'Note: When no link is provided, a default regular favicon will be used - this is to ensure the plugin is working properly.', 'multicons-mulitple-favicons' ); ?></p> </div> <?php } // add to the website header function mmf_display_favicon() { $mmf_custom_favicon = esc_url( get_option( 'mmf-setting' ) ); $mmf_default_favicon = plugins_url( 'images/favicon.ico', __FILE__ ); if (empty( $mmf_custom_favicon )) { echo '<link rel="shortcut icon" href="'.$mmf_default_favicon.'" />'."\n"; } else { echo '<link rel="shortcut icon" href="'.$mmf_custom_favicon.'" />'."\n"; } } add_action( 'wp_head', 'mmf_display_favicon' ); // add to the website admin header function mmf_display_icon_admin() { $mmf_custom_favicon_admin = esc_url( get_option( 'mmf-setting-admin' ) ); $mmf_default_favicon_admin = plugins_url( 'images/favicon.ico', __FILE__ ); if (empty( $mmf_custom_favicon_admin )) { echo ''; } else { echo '<link rel="shortcut icon" href="'.$mmf_custom_favicon_admin.'" />'."\n"; } } add_action( 'admin_head', 'mmf_display_icon_admin' ); // add apple original icon to website header function mmf_display_icon_ios() { $mmf_custom_icon_ios = esc_url( get_option( 'mmf-setting-ios' ) ); $mmf_default_icon_ios = plugins_url( 'images/apple-touch-icon.png', __FILE__ ); if (empty( $mmf_custom_icon_ios )) { echo ''; } else { echo '<link rel="apple-touch-icon" href="'.$mmf_custom_icon_ios.'" />'."\n"; } } add_action( 'wp_head', 'mmf_display_icon_ios' ); // add apple precomposed icon to website header function mmf_display_icon_iosflat() { $mmf_custom_icon_iosflat = esc_url( get_option( 'mmf-setting-iosflat' ) ); $mmf_default_icon_iosflat = plugins_url( 'images/apple-touch-icon.png', __FILE__ ); if (empty( $mmf_custom_icon_iosflat )) { echo ''."\n"; } else { echo '<link rel="apple-touch-icon" href="'.$mmf_custom_icon_iosflat.'" />'."\n"; } } add_action( 'wp_head', 'mmf_display_icon_iosflat' ); // add android high-rez icon to website header function mmf_display_icon_androidhirez() { $mmf_custom_icon_androidhirez = esc_url( get_option( 'mmf-setting-androidhirez' ) ); $mmf_default_icon_androidhirez = plugins_url( 'images/icon-hires.png', __FILE__ ); if (empty( $mmf_custom_icon_androidhirez )) { echo ''."\n"; } else { echo '<link rel="icon" href="'.$mmf_custom_icon_androidhirez.'" />'."\n"; } } add_action( 'wp_head', 'mmf_display_icon_androidhirez' ); // add android regular icon to website header function mmf_display_icon_androidreg() { $mmf_custom_icon_androidreg = esc_url( get_option( 'mmf-setting-androidreg' ) ); $mmf_default_icon_androidreg = plugins_url( 'images/icon-regular.png', __FILE__ ); if (empty( $mmf_custom_icon_androidreg )) { echo ''."\n"; } else { echo '<link rel="icon" href="'.$mmf_custom_icon_androidreg.'" />'."\n"; } } add_action( 'wp_head', 'mmf_display_icon_androidreg' ); ?>