index bd2580b44d89b8d6a0bb2b1dd97abd6d7e44e6c2..fd6e394c5741de41e01464f7b31d84668c226ffe 100644 (file)
var $organization = "";
var $eMail = "";
var $name = "";
var $organization = "";
var $eMail = "";
var $name = "";
- var $subscribe = TRUE;
- var $use_gosa_announce = TRUE;
+ var $subscribe = FALSE;
+ var $use_gosa_announce = FALSE;
- var $feedback_url = "https://oss.gonicus.de/feedback/send.php";
+ var $feedback_url = "http://oss.gonicus.de/gosa-feedback/";
var $get_started = TRUE;
var $problems_encountered = "";
var $get_started = TRUE;
var $problems_encountered = "";
$this->features_used['asterisk'] = array("USED" => isset($oc['goFonAccount']),
"NAME" => _("Asterisk administration"));
$this->features_used['inventory'] = array("USED" => isset($oc['glpiAccount']) ,
$this->features_used['asterisk'] = array("USED" => isset($oc['goFonAccount']),
"NAME" => _("Asterisk administration"));
$this->features_used['inventory'] = array("USED" => isset($oc['glpiAccount']) ,
- "NAME" => _("System invetory"));
+ "NAME" => _("System inventory"));
$this->features_used['system'] = array("USED" => FALSE ,
"NAME" => _("System-/Configmanagement"));
$this->features_used['addressbook'] = array("USED" => FALSE ,
$this->features_used['system'] = array("USED" => FALSE ,
"NAME" => _("System-/Configmanagement"));
$this->features_used['addressbook'] = array("USED" => FALSE ,
if(isset($_POST['send_feedback'])){
if(isset($_POST['send_feedback'])){
- $msgs = $this->check();
+ $msgs = $this->check_feedback();
if(count($msgs)){
foreach($msgs as $msg){
print_red($msg);
if(count($msgs)){
foreach($msgs as $msg){
print_red($msg);
while($ret && !feof($ret)){
$ret_value.= fgets($ret,256);
}
while($ret && !feof($ret)){
$ret_value.= fgets($ret,256);
}
- if(!preg_match("/successfully/i",$ret_value)){
- print_red(sprintf(_("Could not send feedback. Script said '%s'."),$ret_value));
+ if(!preg_match("/successful/i",$ret_value)){
+ print_red(_("Error while sending your feedback. The service is possible temporary unavailable"));
}else{
$additional_info = "<font color='green'>"._("Feedback sucessfully send")."</font>";
}
}else{
$additional_info = "<font color='green'>"._("Feedback sucessfully send")."</font>";
}
}
}
- function check()
+ function check_feedback()
{
$msgs = array();
if(!is_email($this->eMail) || empty($this->eMail)){
$msgs[] = _("Please specify a valid email address.");
}
{
$msgs = array();
if(!is_email($this->eMail) || empty($this->eMail)){
$msgs[] = _("Please specify a valid email address.");
}
+
+ if(!$this->subscribe && !$this->use_gosa_announce){
+ $msgs[] = _("You should have enabled at least one option, to subscribe or send your feedback.");
+ }
+
return($msgs);
}
return($msgs);
}