Changeset 2477

Show
Ignore:
Timestamp:
02/18/09 19:21:25 (13 months ago)
Author:
nahuel
Message:

Update the script to be compatible with new alternc version
Closes: #1044

Location:
alternc/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • alternc/trunk/quota_init

    r1798 r2477  
    5454        $s=mysql_query("SELECT name FROM quotas WHERE uid='$c[uid]' AND name='$name';"); 
    5555        if (!mysql_num_rows($s)) { 
    56                 mysql_query("INSERT INTO quotas (uid,name,total,used) VALUES ('$c[uid]','$name','$value',0);"); 
     56                mysql_query("INSERT INTO quotas (uid,name,total) VALUES ('$c[uid]','$name','$value');"); 
    5757        } 
    5858} 
  • alternc/trunk/src/quota_init

    r1798 r2477  
    5454        $s=mysql_query("SELECT name FROM quotas WHERE uid='$c[uid]' AND name='$name';"); 
    5555        if (!mysql_num_rows($s)) { 
    56                 mysql_query("INSERT INTO quotas (uid,name,total,used) VALUES ('$c[uid]','$name','$quota',0);"); 
     56                mysql_query("INSERT INTO quotas (uid,name,total) VALUES ('$c[uid]','$name','$quota');"); 
    5757        } 
    5858}