Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Jul 23, 2018 8:17 PM
Modified: Jul 23, 2018 8:21 PM
Views: 4
Tags: no tags
  1. $lang=$s_alapadatok['lang']; $hu=false; $en=false;
  2. if ($lang=='hu') { $hu=true; } if ($lang=='en') { $en=true; }
  3. define('HU',$hu); define('EN',$en); define('LANG',$lang);
  4. $smarty->assign("hu",$hu); $smarty->assign("en",$en); $smarty->assign("lang",$lang);
  5.  
  6. function lang($utv) {
  7.     return parse_ini_file($utv, true);
  8. }