芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/modern-admin/includes/dashboard_icons.php
prefix.'modern_admin_dashboard_widget_registered'); if($dw==false){ $dw=array('dashboard_right_now','dashboard_plugins','dashboard_plugins','dashboard_quick_press','dashboard_recent_drafts'); $d=get_option("dashboard_widget_options"); if(is_array($d)) foreach($d as $key =>$v) array_push($dw,$key); } $Options = $this->getOptions(); if(!in_array("custom_db_widget",$dw)) array_push($dw,"custom_db_widget"); if(!in_array("custom_rss_db_widget",$dw)) array_push($dw,"custom_rss_db_widget"); if (isset($_POST['save_dashboard_widget'])){ $custom_db_widget=array(); if(isset($_POST['custom_db_widget'])){ foreach($_POST['custom_db_widget'] as $key => $value){ $custom_db_widget[$key]=stripslashes($value); } $Options['custom_db_widget'] = $custom_db_widget; update_option($this->OptionsName, $Options); } ?>
.
$value){ $custom_rss_db_widget[$key]=stripslashes($value); } $Options['custom_rss_db_widget'] = $custom_rss_db_widget; update_option($this->OptionsName, $Options); } ?>
.
$value){ $icon=(isset($value["icon"]))?$value["icon"]:''; $show=(isset($value["show"]))? $value["show"]:0; $dashboard_icons[$key]['icon']=$icon; $dashboard_icons[$key]['show']=$show; } $Options['dashboard_icons'] = $dashboard_icons; } update_option($this->OptionsName, $Options); ?>
.
OptionsName, $Options); ?>
.
OptionsName, $Options); ?>
.
OptionsName, $Options); ?>
.
Icons
Custom Dashboard Widget
Custom RSS Dashboard Widget
</textarea>
</textarea>
Show
Name
Icon
>
Welcome widget
>