function PclZip::privSwapBackMagicQuotes in Quiz 6.5
Same name and namespace in other branches
- 6.6 includes/moodle/lib/pclzip/pclzip.lib.php \PclZip::privSwapBackMagicQuotes()
6 calls to PclZip::privSwapBackMagicQuotes()
- PclZip::delete in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privAdd in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privCreate in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privExtractByRule in includes/
moodle/ lib/ pclzip/ pclzip.lib.php - PclZip::privList in includes/
moodle/ lib/ pclzip/ pclzip.lib.php
File
- includes/
moodle/ lib/ pclzip/ pclzip.lib.php, line 5377
Class
Code
function privSwapBackMagicQuotes() {
//--(MAGIC-PclTrace)--//PclTraceFctStart(__FILE__, __LINE__, 'PclZip::privSwapBackMagicQuotes', "");
$v_result = 1;
// ----- Look if function exists
if (!function_exists("get_magic_quotes_runtime") || !function_exists("set_magic_quotes_runtime")) {
//--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Functions *et_magic_quotes_runtime are not supported");
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
return $v_result;
}
// ----- Look if something to do
if ($this->magic_quotes_status != -1) {
//--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "magic_quote not modified");
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
return $v_result;
}
// ----- Swap back magic_quotes
if ($this->magic_quotes_status == 1) {
//--(MAGIC-PclTrace)--//PclTraceFctMessage(__FILE__, __LINE__, 3, "Enable back magic_quotes");
@set_magic_quotes_runtime($this->magic_quotes_status);
}
// ----- Return
//--(MAGIC-PclTrace)--//PclTraceFctEnd(__FILE__, __LINE__, $v_result);
return $v_result;
}