/** * Get the rating from a file */ function getRating() { global $imSettings; $xml = new imXML(); $rating = $xml->parse_file($imSettings['general']['dir'] . "/" . $imSettings['guestbook']['file_prefix'] . "sr" . $this->id); if ($rating['scale'] == "" || $rating['scale'] == null) { $rating['scale'] = $this->scale; } if (is_array($rating)) { return $rating; } else { return FALSE; } }