Added a Module Config parameter to change the number of columns used to display command buttons in.
---- Changes since 1.270 ----
The contents of uploaded files are no longer logged.
+---- Changes since 1.340 ----
+Removed the Module Config option to control if a shell is used when executing a command as a user, since we can now work this out automatically.
display_mode=0
-su_shell=0
columns=2
display_mode=0
-su_shell=1
columns=2
wrap=File editor wrap mode,1,-Default (Soft),hard-Hard,off-Off
columns=Columns to display commands in,1,2-2,1-1
line2=System configuration,11
-su_shell=<tt>su</tt> command supports -s shell option?,1,1-Yes,0-No
height=Alçada de la finestra de l'editor,3,Defecte (20 caràcters)
wrap=Mode wrap de l'editor,1,-Defecte (Soft),hard-Hard,off-Desactivat
columns=Columnes per mostrar-hi les ordres,1,2-2,1-1
-line2=Configuració del sistema,11
-su_shell=L'ordre <tt>su</tt> suporta l'opció de shell -s,1,1-Sí,0-No
+line1=Konfigurierbare Optionen,11
display_mode=Hauptseite zeigt,1,0-Alle Befehle und Parameter,1-Verknüpfungen zu Befehlen\r
height=Höhe des Dateieditor-Fensters,3,Standard (20 Zeichen)\r
width=Breite des Dateieditor-Fensters,3,Standard (80 Zeichen)\r
-wrap=Zeilenumbruch im Dateieditor,1,-Standard (Weich),hard-Hart,off-Ausschalten
-line1=Konfigurierbare Optionen,11
-line2=Systemkonfiguration,11
-su_shell=Das <tt>su</tt>-Kommando unterstützt die <tt>-s</tt>-Shelloption?,1,1-Ja,0-Nein
\ No newline at end of file
+wrap=Zeilenumbruch im Dateieditor,1,-Standard (Weich),hard-Hart,off-Ausschalten
\ No newline at end of file
width=Anchura de la ventana del editor de archivos,3,Defecto (80 caracteres)
height=Altura de la ventana del editor de archivos,3,Defecto (20 caracteres)
wrap=Modo de palabra del editor de archivos,1,-Defecto (Soft),hard-Hard,off-Off
-line2=Configuración de sistema,11
-su_shell=¿El comando <tt>su</tt> soporta la opción -s shell?,1,1-Sí,0-No
width=Largeur de la fenetre d'edition du fichier,3,Defaut (80 caracteres)
height=Hauteur de la fenetre d'edition du fichier,3,Defaut (20 caracteres)
wrap=wrap mode de l'editeur de fichiers,1,-Defaut (Soft),hard-Hard,off-Off
-line2=Configuration du systeme,11
-su_shell=La commande " <tt>su</tt> " supporte l'otpion " -s " ?,1,1-Oui,0-Non
width=Larghezza della finestra del file editor,3,Predefinita (80 caratteri)
height=Altezza della finestra del file editor,3,Predefinita (20 caratteri)
wrap=Modalità di ritorno a capo del file editor,1,-Predefinita (Soft),hard-Hard,off-Disabilita
-line2=Configurazione di sistema
-su_shell=Il comando <tt>su</tt> supporta l'opzione della shell -s ?,1,1-Si,0-No
width=Breedte van bestands editor venster,3,Standaard (80 chars)
height=Hoogte van bestands editor venster,3,Standaard (20 karakters)
wrap=Bestands editor terugloop modus,1,-Standaard (Zacht),hard-Hard,off-Uit
-line2=Systeem configuratie,11
-su_shell=<tt>su</tt> commando ondersteund -s shell optie?,1,1-Ja,0-Nee
-line2=Systémové nastavenie,11
display_mode=Ana sayfada neler gösterilsin,1,0-Bütün komutlar ve parametreleri,1-Komutlarýn linkleri
width=Dosya düzenleyicisi penceresinin geniþliði,3,Öntanýmlý (80 karakter)
height=Dosya düzenleyicisi penceresinin yüksekliði,3,Öntanýmlý (20 karakter)
-line2=Sistem yapýlandýrmasý,11
-su_shell=<tt>su</tt> komutu -s kabul seçeneðini desteklesin mi?,1,1-Evet,0-Hayýr
&print_tempfile(TEMP, "$str\n");
&close_tempfile(TEMP);
chmod(0755, $temp);
- local $shell = $config{'su_shell'} ? "-s /bin/sh" : "";
$got = &foreign_call("proc", "safe_process_exec",
- "su - $user $shell -c $temp", 0, 0,
+ &command_as_user($user, 1, $temp), 0, 0,
$fh, undef, !$cmd->{'raw'}, 0,
$cmd->{'timeout'});
unlink($temp);