JavaScript ini_restore function

A JavaScript equivalent of PHP’s ini_restore
function ini_restore (varname) {
  // http://kevin.vanzonneveld.net
  // +   original by: Brett Zamir (http://brett-zamir.me)
  // *     example 1: ini_restore('date.timezone');
  // *     returns 1: 'America/Chicago'
  if (this.php_js && this.php_js.ini && this.php_js.ini[varname]) {
    this.php_js.ini[varname].local_value = this.php_js.ini[varname].global_value;
  }
}

Example 1
ini_restore('date.timezone');

Should return
'America/Chicago'
Теги:
ini_restore
Добавлено: 26 Июля 2018 21:21:56 Добавил: Андрей Ковальчук Нравится 0
Добавить
Комментарии:
Нету комментариев для вывода...