/[BackupPC]/trunk/lib/BackupPC/CGI/BurnMedia.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/lib/BackupPC/CGI/BurnMedia.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 147 by iklaric, Fri Oct 7 12:03:56 2005 UTC revision 148 by iklaric, Fri Oct 7 12:06:35 2005 UTC
# Line 47  EOF Line 47  EOF
47                          }                          }
48                  }                  }
49    
                 # create new archive  
                 my $sth = $dbh->prepare(q{  
                                 INSERT INTO archive (  
                                         id,  
                                         dvd_nr,  
                                         note,  
                                         username,  
                                         date  
                                 ) VALUES (  
                                         nextVal('archive_id_seq'),  
                                         nextVal('dvd_nr'),  
                                         ?,  
                                         ?,  
                                         NOW()  
                                 )  
                 });  
   
                 # FIXME insert user here  
                 $sth->execute($In{'note'}, 'dummy_user');  
50    
51                  if ($total_size > $Conf{MaxArchiveSize}) {                  if ($total_size > $Conf{MaxArchiveSize}) {
52                          $cont .= eval( q{ ${h2(Error)}});                          $cont .= eval( q{ ${h2(Error)}});
53                          $cont .= "Selected backups exceed max archive size.";                          $cont .= "Selected backups exceed max archive size.";
54                  } else {                  } else {
55    
56                            # create new archive
57                            my $sth = $dbh->prepare(q{
58                                                            INSERT INTO archive (
59                                                                    id,
60                                                                    dvd_nr,
61                                                                    note,
62                                                                    username,
63                                                                    date
64                                                            ) VALUES (
65                                                                    nextVal('archive_id_seq'),
66                                                                    nextVal('dvd_nr'),
67                                                                    ?,
68                                                                    ?,
69                                                                    NOW()
70                                                            )
71                                                    });
72    
73                            # FIXME insert user here
74                            $sth->execute($In{'note'}, 'dummy_user');
75    
76                          foreach my $backup_id (@selected_backup_ids) {                          foreach my $backup_id (@selected_backup_ids) {
77    

Legend:
Removed from v.147  
changed lines
  Added in v.148

  ViewVC Help
Powered by ViewVC 1.1.26