{"version":3,"sources":["../../../src/php/info/ini_get.js"],"names":["module","exports","ini_get","varname","$global","window","global","$locutus","php","ini","local_value","undefined"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,OAAT,CAAkBC,OAAlB,EAA2B;AAAE;AAC5C;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAIC,UAAW,OAAOC,MAAP,KAAkB,WAAlB,GAAgCA,MAAhC,GAAyCC,MAAxD;AACAF,UAAQG,QAAR,GAAmBH,QAAQG,QAAR,IAAoB,EAAvC;AACA,MAAIA,WAAWH,QAAQG,QAAvB;AACAA,WAASC,GAAT,GAAeD,SAASC,GAAT,IAAgB,EAA/B;AACAD,WAASC,GAAT,CAAaC,GAAb,GAAmBF,SAASC,GAAT,CAAaC,GAAb,IAAoB,EAAvC;;AAEA,MAAIF,SAASC,GAAT,CAAaC,GAAb,CAAiBN,OAAjB,KAA6BI,SAASC,GAAT,CAAaC,GAAb,CAAiBN,OAAjB,EAA0BO,WAA1B,KAA0CC,SAA3E,EAAsF;AACpF,QAAIJ,SAASC,GAAT,CAAaC,GAAb,CAAiBN,OAAjB,EAA0BO,WAA1B,KAA0C,IAA9C,EAAoD;AAClD,aAAO,EAAP;AACD;AACD,WAAOH,SAASC,GAAT,CAAaC,GAAb,CAAiBN,OAAjB,EAA0BO,WAAjC;AACD;;AAED,SAAO,EAAP;AACD,CAtBD","file":"ini_get.js","sourcesContent":["module.exports = function ini_get (varname) { // eslint-disable-line camelcase\n // discuss at: http://locutus.io/php/ini_get/\n // original by: Brett Zamir (http://brett-zamir.me)\n // note 1: The ini values must be set by ini_set or manually within an ini file\n // example 1: ini_set('date.timezone', 'Asia/Hong_Kong')\n // example 1: ini_get('date.timezone')\n // returns 1: 'Asia/Hong_Kong'\n\n var $global = (typeof window !== 'undefined' ? window : global)\n $global.$locutus = $global.$locutus || {}\n var $locutus = $global.$locutus\n $locutus.php = $locutus.php || {}\n $locutus.php.ini = $locutus.php.ini || {}\n\n if ($locutus.php.ini[varname] && $locutus.php.ini[varname].local_value !== undefined) {\n if ($locutus.php.ini[varname].local_value === null) {\n return ''\n }\n return $locutus.php.ini[varname].local_value\n }\n\n return ''\n}\n"]}