📄 widgets.php
字号:
<?php/** * Widgets 渚ц竟鏍忕洰绠$悊 * @copyright (c) 2008, Emlog All Rights Reserved * @version emlog-3.0.0 * $Id: comment.php 654 2008-09-07 10:36:15Z emloog $ */require_once('./globals.php');if($action == ''){ $wgNum = isset($_GET['wg']) ? intval($_GET['wg']) : 1; $widgets = $options_cache['widgets'.$wgNum] ? @unserialize($options_cache['widgets'.$wgNum]) : array(); $widgetTitle = $options_cache['widget_title'] ? @unserialize($options_cache['widget_title']) : array(); $custom_title = $options_cache['custom_title'.$wgNum] ? @unserialize($options_cache['custom_title'.$wgNum]) : array(); $custom_content = $options_cache['custom_content'.$wgNum] ? @unserialize($options_cache['custom_content'.$wgNum]) : array(); $customWgTitle = array(); foreach ($widgetTitle as $key => $val) { if(preg_match("/^.*\s\((.*)\)/", $val, $matchs)) { $customWgTitle[$key] = $matchs[1]; }else{ $customWgTitle[$key] = $val; } } //music $music = @unserialize($options_cache['music']); if(isset($music['auto']) && $music['auto']) { $auto1 = "checked=\"checked\""; $auto2 = ''; }else{ $auto2 = "checked=\"checked\""; $auto1 = ''; } if(isset($music['randplay']) && $music['randplay']) { $randplay1 = "checked=\"checked\""; $randplay2 = ''; }else{ $randplay2 = "checked=\"checked\""; $randplay1 = ''; } $content = ''; if(isset($music['mlinks']) && $music['mlinks']) { foreach($music['mlinks'] as $key=>$val) { $content .= urldecode($val)."\t".$music['mdes'][$key]."\n"; } } include getViews('header'); require_once(getViews('widgets')); include getViews('footer'); cleanPage();}if($action == 'setwg'){ $widgetTitle = @unserialize($options_cache['widget_title']);//褰撳墠鎵
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -