The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make additional $user variables?
#4
The way I formerly did it was this:

switch ($lang) {
case 0:
include_once 'lang/spanish.php';]

break;
case 1:
include_once 'lang/english.php';

break;


This way it didn't require any difference in coding as $lang[23] was the same string, in both files. Any way I can use my scripts to do this? The site I'm designing won't use much of the US interface.
  Reply


Messages In This Thread
Make additional $user variables? - by Katronix - 09-12-2017, 05:33 PM
Make additional $user variables? - by Katronix - 09-12-2017, 06:40 PM
Make additional $user variables? - by karsen - 09-12-2017, 07:28 PM
Make additional $user variables? - by Katronix - 09-12-2017, 07:49 PM
Make additional $user variables? - by karsen - 09-12-2017, 08:25 PM
Make additional $user variables? - by Katronix - 09-12-2017, 10:21 PM
Make additional $user variables? - by Brandin - 09-13-2017, 09:32 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)