'Today', 1 => 'Yesterday', 2 => '2 days ago', 3 => '3 days ago', 4 => '4 days ago', 5 => '5 days ago', 6 => '6 days ago', 7 => '7 days ago', 8 => 'Last month', ); static $ignoreThemes = array('twentyten', 'twentyeleven', 'twentytwelve', 'twentythirteen'); static $ignorePlugins = array('akismet', 'hello.php'); /** * Sets the list of files to check for permissions * @return array */ static function getScanFileList() { $_wpsPlugin_base_path = trailingslashit(ABSPATH); $_wpsPluginWpConfigPath = WsdUtil::getWpConfigFilePath(); return array( //@@ Directories 'root directory' => array( 'filePath' => $_wpsPlugin_base_path, 'suggestedPermissions' => '0755'), 'wp-admin' => array( 'filePath' => $_wpsPlugin_base_path.'wp-admin', 'suggestedPermissions' => '0755'), 'wp-content' => array( 'filePath' => $_wpsPlugin_base_path.'wp-content', 'suggestedPermissions' => '0755'), 'wp-includes' => array( 'filePath' => $_wpsPlugin_base_path.'wp-includes', 'suggestedPermissions' => '0755'), //@@ Files '.htaccess' => array( 'filePath' => $_wpsPlugin_base_path.'.htaccess', 'suggestedPermissions' => '0644'), 'readme.html' => array( 'filePath' => $_wpsPlugin_base_path.'readme.html', 'suggestedPermissions' => '0400'), 'wp-config.php' => array( 'filePath' => $_wpsPluginWpConfigPath, 'suggestedPermissions' => '0644'), 'wp-admin/index.php' => array( 'filePath' => $_wpsPlugin_base_path.'wp-admin/index.php', 'suggestedPermissions' => '0644'), 'wp-admin/.htaccess' => array( 'filePath' => $_wpsPlugin_base_path.'wp-admin/.htaccess', 'suggestedPermissions' => '0644'), ); } /** * @TODO: Always keep in sync with methods from WsdSecurity class... * @return array */ static function getSettingsList() { return array( array('name' => 'fix_hideWpVersion', 'text' => 'Hide WordPress version for all users but administrators'), array('name' => 'fix_removeWpMetaGeneratorsFrontend', 'text' => 'Remove various meta tags generators from the blog\'s head tag for non-administrators'), array('name' => 'fix_removeReallySimpleDiscovery', 'text' => 'Remove Really Simple Discovery meta tags from front-end'), array('name' => 'fix_removeWindowsLiveWriter', 'text' => 'Remove Windows Live Writer meta tags from front-end'), array('name' => 'fix_disableErrorReporting', 'text' => 'Disable error reporting (php + db) for all but administrators'), array('name' => 'fix_removeCoreUpdateNotification', 'text' => 'Remove core update notifications from back-end for all but administrators'), array('name' => 'fix_removePluginUpdateNotifications', 'text' => 'Remove plug-ins update notifications from back-end'), array('name' => 'fix_removeThemeUpdateNotifications', 'text' => 'Remove themes update notifications from back-end'), array('name' => 'fix_removeLoginErrorNotificationsFrontEnd', 'text' => 'Remove login error notifications from front-end'), array('name' => 'fix_hideAdminNotifications', 'text' => 'Hide admin notifications for non admins'), array('name' => 'fix_preventDirectoryListing', 'text' => 'Try to create the index.php file in the wp-content, wp-content/plugins, wp-content/themes and wp-content/uploads directories to prevent directory listing'), array('name' => 'fix_removeWpVersionFromLinks', 'text' => 'Remove the version parameter from urls'), array('name' => 'fix_emptyReadmeFileFromRoot', 'text' => 'Empty the content of the readme.html file from the root directory'), ); } static function getJsonRepoUrl(){ $dirPath = WPS_PLUGIN_DIR.'res/json/fscan/'; if(! is_dir($dirPath)){ return null; } return $dirPath; } }