芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/Application/Model/ModelSettings.php
getCmd('namespace', 'default'); $settings = Request::$REQUEST->getVar('settings'); if ($namespace && $settings) { if ($namespace == 'default') $namespace = 'settings'; if ($namespace == 'font' && Request::$REQUEST->getInt('sliderid')) { $namespace .= Request::$REQUEST->getInt('sliderid'); $helper = new HelperSliderChanged($this); $helper->setSliderChanged(Request::$REQUEST->getInt('sliderid'), 1); } Settings::store($namespace, json_encode($settings)); } return true; } public function saveDefaults($defaults) { if (!empty($defaults)) { foreach ($defaults as $referenceKey => $value) { Section::set('smartslider', 'default', $referenceKey, $value); } } return true; } }