PHP Classes

[function.fopen]: errors

Recommend this page to a friend!

      lang  >  All threads  >  [function.fopen]: errors  >  (Un) Subscribe thread alerts  
Subject: [function.fopen]: errors
Summary:Fix error
Date:2011-02-07 01:37:01

  1. [function.fopen]: errors   Reply   Report abuse  
Picture of andrew andrew - 2011-02-07 01:37:01
i receive errors when someone change manually the lang code. Is there a way not to be possible for someone to change the lang? I have 2 languages en and gr. If someone change the lang lets say to en1 like ?lang=en1 or anything else an error is appearing.
Warning: fopen(languages/en1.lang) [function.fopen]: failed to open stream: No such file or directory in xxxxxxxxxx/lang.class on line 69

Warning: fclose(): supplied argument is not a valid stream resource in /xxxxxxxxxxon/lang.class line 81

How can we make the system ignore anything else except en and gr?