芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/smart-slider-3/Nextend/SmartSlider3/PublicApi/Project.php
getApplicationTypeFrontend(); $sliderModal = new ModelSliders($applicationType); $sliderModal->refreshCache($projectID); } /** * @param string $pathToFile * @param integer $groupID * * @return bool|int projectID on success. false on failure. * * @example \Nextend\SmartSlider3\PublicApi\Project::import('/path/to/project.ss3'); */ public static function import($pathToFile, $groupID = 0) { if (!is_admin()) { require_once(ABSPATH . 'wp-admin/includes/file.php'); } $application = ApplicationSmartSlider3::getInstance(); $applicationType = $application->getApplicationTypeAdmin(); $import = new ImportSlider($applicationType); $projectID = $import->import($pathToFile, $groupID); if ($projectID !== false) { return $projectID; } return false; } }