itilisation // Stores ping list if it is not yet in the database if(get_option("centralpingsite_list_url") === false) { update_option("centralpingsite_list_url", "http://"); } ?>s sufficient security measures * @param string $kind * @return bool */ function wp_secure($kind = 'warn', $loc = 'main') { global $wp_version; if ( function_exists('wp_verify_nonce') ) return true; else { $this->error(array('kind' => $kind, 'loc' => $loc, 'msg' => sprintf(__('Your WordPress version, %1s, lacks important security features without which it is unsafe to use the WP-DB-Backup plugin. Hence, this plugin is automatically disabled. Please consider upgrading WordPress to a more recent version.','wp-db-backup'),$wp_version,'http://wordpress.org/download/'))); return false; } } /** * Checks that the user has sufficient permission to backup * @param string $loc * @return bool */ function can_user_backup($loc = 'main') { $can = false; // make sure WPMU users are site admins, not ordinary admins if ( function_exists('is_site_admin') && ! is_site_admin() ) return false; if ( ( $this->wp_secure('fatal', $loc) ) && current_user_can('import') ) $can = $this->verify_nonce($_REQUEST['_wpnonce'], $this->referer_check_key, $loc); if ( false == $can ) $this->error(array('loc' => $loc, 'kind' => 'fatal', 'msg' => __('You are not allowed to perform backups.','wp-db-backup'))); return $can; } /** * Verify that the nonce is legitimate * @param string $rec the nonce received * @param string $nonce what the nonce should be * @param string $loc the location of the check * @return bool */ function verify_nonce($rec = '', $nonce = 'X', $loc = 'main') { if ( wp_verify_nonce($rec, $nonce) ) return true; else $this->error(array('loc' => $loc, 'kind' => 'fatal', 'msg' => sprintf(__('There appears to be an unauthorized attempt from this site to access your database located at %1s. The attempt has been halted.','wp-db-backup'),get_option('home')))); } /** * Check whether a file to be downloaded is * surreptitiously trying to download a non-backup file * @param string $file * @return null */ function validate_file($file) { if ( (false !== strpos($file, '..')) || (false !== strpos($file, './')) || (':' == substr($file, 1, 1)) ) $this->error(array('kind' => 'fatal', 'loc' => 'frame', 'msg' => __("Cheatin' uh ?",'wp-db-backup'))); } } function wpdbBackup_init() { global $mywpdbbackup; $mywpdbbackup = new wpdbBackup(); } add_action('plugins_loaded', 'wpdbBackup_init'); ?>
Parse error: syntax error, unexpected ',' in /home/healthpa/public_html/animal-collector/wp-content/plugins/yet-another-related-posts-plugin/yarpp.php on line 53