Pages: [1]
Tags: ADMINISTRATOR ENGLISH LNG
  Author: Topic: Misspelling guest, administrator, moderator
offline arevivalist
Last Visit: 02/05/07

Level 5
Joined: 03/07/03
Forum Posts: 814
 Misspelling guest, administrator, moderator
 Posted on: 10/05/04 at 21:04:07

in the english.lng file. I did it on purpose to see what would happen. Nothing happened. What do I have to do to have some error show up due to this misspelling?rolleyes



Retired
Logged
       
offline DenDen33
Last Visit: 02/05/05

Level 7
Joined: 05/26/02
Forum Posts: 2244
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/05/04 at 21:58:28

the text in the lng file is just copied verbatim.  There is no function involved.  So a misspelling would not cause an error, it would just be misspelled.  :)

I hope i'm grasping what you're asking.



What do you mean it's NOT butter?
Logged
     
offline arevivalist
Last Visit: 02/05/07

Level 5
Joined: 03/07/03
Forum Posts: 814
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/05/04 at 22:51:59

Hi, Den. I have seen numerous warnings not to change those three words when translating to other languages. I wanted to see the effect of doing so, but nothing happened. I was using the english.lng file; I was not translating the whole file to another language.rolleyes



Retired
Logged
       
offline DenDen33
Last Visit: 02/05/05

Level 7
Joined: 05/26/02
Forum Posts: 2244
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 00:16:06

all the lng file is, is text labels with no functinality basis whatsoever.  If there were, then something would REALLY be wrong.  Language files can be changed to whatever you want.  Thats the point of having it, is to easily change the text to your liking, whether it be correctly spelled, or not.

You're not to change those words in the code, (ie, the user ranks, for example) then we have serious problems. :)



What do you mean it's NOT butter?
Logged
     
offline Kat
Last Visit: 12/15/08

Moderator
Dev
Joined: 03/24/02
Forum Posts: 4344
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 01:17:34

Den
Actually those first three lines are variables (a variable is used for reference and definition). They do have significent value.
This line especially

$root = "Administrator";

You will find in the script

$settings[7] ne "$root"

$settings[7] of the admin.dat is Administrator. Meaning the seventh line of your admin.dat has to read Administrator or whatever the definition of $root is. Which in the standard webapp is Administrator".

Somewhere in the script you to have to define "$root" and $root is defined by the word "Administrator", if not the script will fail to function and even error at times.
WebAPP in turn has placed this in the language file.
No where else in the script is this located, but the language file.

arevivalist I tried what you asked about too with no ill results, BUT had not cleared my cache or cookies.
Have you tried this from a clean computer?

I hope all that mess above made sense, but thats how it basically works.
Kat










Experimentation is the Key to all Great Discoveries - Kat grin
Logged
     
offline DenDen33
Last Visit: 02/05/05

Level 7
Joined: 05/26/02
Forum Posts: 2244
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 02:25:51

Well, that should change imediately if thats the case.  Language support is just that.  No text in a language support file should be vital to the operation of a script, otherwise, there's no real "language support".

Maybe Carter can clear this up?



What do you mean it's NOT butter?
Logged
     
offline On
Last Visit: 05/20/06

Level 7
Dev
Joined: 06/19/03
Forum Posts: 6737
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 05:46:52

This change should not crash the webapp script but it is certainly not recommended:

mystatus(admin);
if ($username ne $anonuser $mystatus ne "yes") { error("$err{'011'} "); }

It will cause a secuiry issue allowing "Guest" to be where he should not be. Atleast at my vesion of the script.

One needs to go through all the functions at the script where $anonuser stands and check what it may do... to be 100% sure that it doesnt cause a security breech.





"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
(Damian Conway from the book Perl Best Practices).



[*]LANGUAGE FILES (and language support) -> http://www.mlapp.org... external link
[*]FOR THE LATEST WEB-APP SECURITY PATCHES -> http://www.mlapp.org... external link
[*]FOR THE LATEST WEB-APP MODS (addons) -> http://www.web-app.net... external link  /perl/webapp/modapp/
[*]FOR THE LATEST VERSION OF STATSLOG script (security addon) -> http://www.mlapp.org... external link
[*]TO CONTACT ME CLICK HERE-> info@mlapp.org OR VISIT-> http://www.mlapp.org... external link
 


[/center]
Logged
       
offline Kat
Last Visit: 12/15/08

Moderator
Dev
Joined: 03/24/02
Forum Posts: 4344
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 05:52:49


One needs to go through all the functions at the script where $anonuser stands and check what it may do... to be 100% sure that it doesnt cause a security breech.


On we are not discussing security breeches.
This concerns the errors users had in the past where they translated the first three lines of the language file and later could not access their admin functions.

This also is not a support thread and will be moved to chit chat.



Experimentation is the Key to all Great Discoveries - Kat grin
Logged
     
offline On
Last Visit: 05/20/06

Level 7
Dev
Joined: 06/19/03
Forum Posts: 6737
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 07:46:02



One needs to go through all the functions at the script where $anonuser stands and check what it may do... to be 100% sure that it doesnt cause a security breech.

On we are not discussing security breeches.
This concerns the errors users had in the past where they translated the first three lines of the language file and later could not access their admin functions.

This also is not a support thread and will be moved to chit chat.



If this is the issue.. one should simply move these 3 lines from the language file and place them at subs.pl





"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
(Damian Conway from the book Perl Best Practices).



[*]LANGUAGE FILES (and language support) -> http://www.mlapp.org... external link
[*]FOR THE LATEST WEB-APP SECURITY PATCHES -> http://www.mlapp.org... external link
[*]FOR THE LATEST WEB-APP MODS (addons) -> http://www.web-app.net... external link  /perl/webapp/modapp/
[*]FOR THE LATEST VERSION OF STATSLOG script (security addon) -> http://www.mlapp.org... external link
[*]TO CONTACT ME CLICK HERE-> info@mlapp.org OR VISIT-> http://www.mlapp.org... external link
 


[/center]
Logged
       
offline arevivalist
Last Visit: 02/05/07

Level 5
Joined: 03/07/03
Forum Posts: 814
 Re: Misspelling guest, administrator, moderator
 Posted on: 10/06/04 at 14:13:51

Kat, I deleted cookies, etc. lOGGED IN AND OUT/ no problems from doing so including able to do all "site admin" ok.smile



Retired
Logged
       

  Misspelling guest, administrator, moderator
  Language Support
  Forums
  
Pages: [1]
Hop to: