Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8c7e4493

Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt

  • ID 8c7e44938a661e035f62840e1e177353240ace5d
  • Vorgänger 3ced230b
  • Nachfolger ce45d060

Umstellung der Benutzerverwaltung von Dateien im Verzeichnis "users" auf die Verwendung einer Authentifizierungsdatenbank.
Es ist erforderlich, die Dateien doc/UPGRADE und doc/INSTALL/index.html zu lesen und die angesprochenen Punkte auszuführen, um nach einem Upgrade weiter arbeiten zu können.

Unterschiede anzeigen:

bin/mozilla/amtemplates.pl
57 57
sub display_template {
58 58
  $lxdebug->enter_sub();
59 59

  
60
  $auth->assert('config');
61

  
60 62
  $form->{edit} = 0;
61 63
  display_template_form();
62 64

  
......
66 68
sub edit_template {
67 69
  $lxdebug->enter_sub();
68 70

  
71
  $auth->assert('config');
72

  
69 73
  $form->{edit} = 1;
70 74
  display_template_form();
71 75

  
......
75 79
sub save_template {
76 80
  $lxdebug->enter_sub();
77 81

  
82
  $auth->assert('config');
83

  
78 84
  $form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet");
79 85

  
80 86
  my ($filename) = AM->prepare_template_filename(\%myconfig, $form);
......
91 97
sub display_template_form {
92 98
  $lxdebug->enter_sub();
93 99

  
100
  $auth->assert('config');
101

  
94 102
  $form->{"formname"} =~ s|.*/||;
95 103
  my $format = $form->{"format"} eq "html" ? "html" : "tex";
96 104

  
......
98 106

  
99 107
  my %options;
100 108

  
101
  my @hidden = qw(login password type format);
109
  my @hidden = qw(type format);
102 110

  
103 111
  if (($form->{"type"} ne "stylesheet") && !$form->{"edit"}) {
104 112
    $options{"SHOW_EDIT_OPTIONS"} = 1;

Auch abrufbar als: Unified diff