diff --git a/lam-0.4/help/help.inc b/lam-0.4/help/help.inc index 3d89c076..95bcc5c7 100644 --- a/lam-0.4/help/help.inc +++ b/lam-0.4/help/help.inc @@ -207,7 +207,7 @@ $helpArray = array ( "Text" => _("If checked account will be deactivated. (Setting D-Flag)")), "433" => array ("ext" => "FALSE", "Headline" => _("Home drive"), "Text" => _("Driveletter assigned on windows workstations as homedirectory.")), - "434" => array ("ext" => "FALSE", "Headline" => _("Script path"), + "434" => array ("ext" => "FALSE", "Headline" => _("Logon script"), "Text" => _("Filename and -path relative to netlogon-share which should be executed on logon. $%s and $%s are replaced with user- and groupname."). ' '. _("Can be left empty."), "variables" => array('user', 'group')), "435" => array ("ext" => "FALSE", "Headline" => _("Profile path"), diff --git a/lam-0.4/lib/pdf.inc b/lam-0.4/lib/pdf.inc index e9621840..00bbf729 100644 --- a/lam-0.4/lib/pdf.inc +++ b/lam-0.4/lib/pdf.inc @@ -204,7 +204,7 @@ function createUserPDF($accounts) { $pdfFile->setFont("times","",10); $pdfFile->Cell(50,5,$account->smb_homedrive,0,1,"L",0); $pdfFile->setFont("times","B",10); - $pdfFile->Cell(50,5,_("Script path") . ":",0,0,"R",0); + $pdfFile->Cell(50,5,_("Logon script") . ":",0,0,"R",0); $pdfFile->setFont("times","",10); $pdfFile->Cell(50,5,$account->smb_scriptPath,0,1,"L",0); $pdfFile->setFont("times","B",10); diff --git a/lam-0.4/templates/config/confsave.php b/lam-0.4/templates/config/confsave.php index a435de39..2b1213be 100644 --- a/lam-0.4/templates/config/confsave.php +++ b/lam-0.4/templates/config/confsave.php @@ -178,7 +178,7 @@ if (!$conf->set_defaultLanguage($lang)) { } if (!$conf->set_scriptpath($scriptpath)) { - echo ("" . _("Script path is invalid!") . ""); + echo ("" . _("Logon script is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } diff --git a/lam-0.4/templates/profedit/profilecreate.php b/lam-0.4/templates/profedit/profilecreate.php index 30c30cff..22cc7114 100644 --- a/lam-0.4/templates/profedit/profilecreate.php +++ b/lam-0.4/templates/profedit/profilecreate.php @@ -53,6 +53,7 @@ echo $_SESSION['header']; echo "\n\n"; echo "\n\n
\n"; +print_r($_POST); // save user profile if ($_GET['type'] == "user") { $acct = new account(); @@ -188,8 +189,7 @@ if ($_GET['type'] == "user") { echo ("

" . _("Back to Profile Editor") . ""); exit; } - // replace double \'s with \ - $_POST['smb_smbhome'] = str_replace('\\\\', '\\', $_POST['smb_smbhome']); + if (get_magic_quotes_gpc() == 1) $_POST['smb_smbhome'] = stripslashes($_POST['smb_smbhome']); if ($_POST['smb_smbhome'] && eregi("^[\][\]([a-z0-9])+([\][a-z0-9_\\-\\$%]+)+$", $_POST['smb_smbhome'])) { $acct->smb_smbhome = $_POST['smb_smbhome']; } @@ -198,8 +198,7 @@ if ($_GET['type'] == "user") { echo ("

" . _("Back to Profile Editor") . ""); exit; } - // replace double \'s with \ - $_POST['smb_profilepath'] = str_replace('\\\\', '\\', $_POST['smb_profilepath']); + if (get_magic_quotes_gpc() == 1) $_POST['smb_profilepath'] = stripslashes($_POST['smb_profilepath']); if ($_POST['smb_profilepath'] && eregi("^[\][\]([a-z0-9])+([\][a-z0-9_\\-\\$%]+)+$", $_POST['smb_profilepath'])) { $acct->smb_profilePath = $_POST['smb_profilepath']; } @@ -208,13 +207,12 @@ if ($_GET['type'] == "user") { echo ("

" . _("Back to Profile Editor") . ""); exit; } - // replace double \'s with \ - $_POST['smb_scriptPath'] = str_replace('\\\\', '\\', $_POST['smb_scriptPath']); + if (get_magic_quotes_gpc() == 1) $_POST['smb_scriptPath'] = stripslashes($_POST['smb_scriptPath']); if ($_POST['smb_scriptPath'] && is_string($_POST['smb_scriptPath'])) { $acct->smb_scriptPath = $_POST['smb_scriptPath']; } elseif ($_POST['smb_scriptPath']) { - StatusMessage("ERROR", _("Script path is invalid!"), $_POST['smb_scriptPath']); + StatusMessage("ERROR", _("Logon script is invalid!"), $_POST['smb_scriptPath']); echo ("

" . _("Back to Profile Editor") . ""); exit; } diff --git a/lam-0.4/templates/profedit/profileuser.php b/lam-0.4/templates/profedit/profileuser.php index 6e11cdba..55b53fcc 100644 --- a/lam-0.4/templates/profedit/profileuser.php +++ b/lam-0.4/templates/profedit/profileuser.php @@ -322,7 +322,7 @@ echo ("\n"); // path to logon scripts echo ("\n"); -echo ("" . _("Script path") . ": \n"); +echo ("" . _("Logon script") . ": \n"); echo ("smb_scriptPath . "\" name=\"smb_scriptPath\">\n"); echo ("" . _("Help") . "\n"); echo ("\n");