~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to dialup_admin/lib/sql/create_group.php3

  • Committer: Bazaar Package Importer
  • Author(s): Paul Hampson
  • Date: 2006-01-15 13:34:13 UTC
  • mto: (3.1.3 dapper) (4.1.3 sid) (1.1.14 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20060115133413-zo1dslttvdoalqym
Tags: upstream-1.1.0
ImportĀ upstreamĀ versionĀ 1.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
                                $da_abort=1;
27
27
                        }
28
28
                }
 
29
        } else {
 
30
                $res = @da_sql_query($link,$config,
 
31
                "INSERT INTO $config[sql_usergroup_table] (groupname)
 
32
                VALUES ('$login');");
 
33
                if (!$res || !@da_sql_affected_rows($link,$res,$config)){
 
34
                        echo "<b>Unable to create group $login: " . da_sql_error($link,$config) . "</b><br>\n";
 
35
                        $da_abort=1;
 
36
                }
29
37
        }
30
38
        if (!$da_abort){
31
39
                foreach($show_attrs as $key => $attr){