You are here

function PclZip::privSwapBackMagicQuotes in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php \PclZip::privSwapBackMagicQuotes()
6 calls to PclZip::privSwapBackMagicQuotes()
PclZip::delete in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
PclZip::privAdd in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
PclZip::privCreate in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
PclZip::privExtractByRule in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php
PclZip::privList in vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php

... See full list

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/PCLZip/pclzip.lib.php, line 5361

Class

PclZip

Code

function privSwapBackMagicQuotes() {
  $v_result = 1;

  // ----- Look if function exists
  if (!function_exists("get_magic_quotes_runtime") || !function_exists("set_magic_quotes_runtime")) {
    return $v_result;
  }

  // ----- Look if something to do
  if ($this->magic_quotes_status != -1) {
    return $v_result;
  }

  // ----- Swap back magic_quotes
  if ($this->magic_quotes_status == 1) {
    @set_magic_quotes_runtime($this->magic_quotes_status);
  }

  // ----- Return
  return $v_result;
}