# SendSQL("select login_name from profiles,groups where groups.name='$GroupName' and profiles.groupset & groups.bit = groups.bit and profiles.login_name=\'$Name\'");
# my $NewName = FetchOneColumn();
# if ( $NewName eq $Name ) {
#return $Name;
#return $Name;
# } else {
#return;
#return;
# }
# my $query = "SELECT login_name FROM profiles WHERE profiles.login_name=\'$Name\'";
# SendSQL($query);
...
...
@@ -219,9 +219,9 @@ sub CheckProduct {
SendSQL("select name from products where name = ".SqlQuote($Product));
my$Result=FetchOneColumn();
if(lc($Result)eqlc($Product)){
return$Result;
return$Result;
}else{
return"";
return"";
}
}
...
...
@@ -234,9 +234,9 @@ sub CheckComponent {
SendSQL("select components.name from components, products where components.product_id = products.id AND products.name=".SqlQuote($Product)." and components.name=".SqlQuote($Component));
my$Result=FetchOneColumn();
if(lc($Result)eqlc($Component)){
return$Result;
return$Result;
}else{
return"";
return"";
}
}
...
...
@@ -249,9 +249,9 @@ sub CheckVersion {
SendSQL("select value from versions, products where versions.product_id = products.id AND products.name=".SqlQuote($Product)." and value=".SqlQuote($Version));