function star_menu_settings() { if (isset($_POST['gdsr_preview_scan'])) { $this->g->g = gdsrAdmFunc::gfx_scan(); update_option('gd-star-rating-gfx', $this->g->g); } $recalculate_articles = $recalculate_comment = $recalculate_reviews = $recalculate_cmm_reviews = false; $gdsr_options = $this->g->o; $gdsr_bots = $this->g->bots; $gdsr_root_url = $this->g->plugin_url; $gdsr_gfx = $this->g->g; $gdsr_wpr8 = $this->g->wpr8_available; $extra_folders = $this->g->extra_folders; $safe_mode = $this->g->safe_mode; $wpv = $this->g->wp_version; $ginc_sizes = $this->g->ginc[0]; $ginc_stars = $this->g->ginc[1]; $wpr8 = $this->g->wpr8; include STARRATING_PATH . 'options/settings.php'; if ($recalculate_articles) { gdsrAdmDB::recalculate_articles($gdsr_oldstars, $gdsr_newstars); } if ($recalculate_comment) { gdsrAdmDB::recalculate_comments($gdsr_cmm_oldstars, $gdsr_cmm_newstars); } if ($recalculate_reviews) { gdsrAdmDB::recalculate_reviews($gdsr_review_oldstars, $gdsr_review_newstars); } if ($recalculate_cmm_reviews) { gdsrAdmDB::recalculate_comments_reviews($gdsr_cmm_review_oldstars, $gdsr_cmm_review_newstars); } }