|
@@ 5354-5379 (lines=26) @@
|
| 5351 |
|
// Parameters :
|
| 5352 |
|
// Return Values :
|
| 5353 |
|
// --------------------------------------------------------------------------------
|
| 5354 |
|
function privDisableMagicQuotes()
|
| 5355 |
|
{
|
| 5356 |
|
$v_result=1;
|
| 5357 |
|
|
| 5358 |
|
// ----- Look if function exists
|
| 5359 |
|
if ( (!function_exists("get_magic_quotes_runtime"))
|
| 5360 |
|
|| (!function_exists("set_magic_quotes_runtime"))) {
|
| 5361 |
|
return $v_result;
|
| 5362 |
|
}
|
| 5363 |
|
|
| 5364 |
|
// ----- Look if already done
|
| 5365 |
|
if ($this->magic_quotes_status != -1) {
|
| 5366 |
|
return $v_result;
|
| 5367 |
|
}
|
| 5368 |
|
|
| 5369 |
|
// ----- Get and memorize the magic_quote value
|
| 5370 |
|
$this->magic_quotes_status = @get_magic_quotes_runtime();
|
| 5371 |
|
|
| 5372 |
|
// ----- Disable magic_quotes
|
| 5373 |
|
if ($this->magic_quotes_status == 1) {
|
| 5374 |
|
@set_magic_quotes_runtime(0);
|
| 5375 |
|
}
|
| 5376 |
|
|
| 5377 |
|
// ----- Return
|
| 5378 |
|
return $v_result;
|
| 5379 |
|
}
|
| 5380 |
|
// --------------------------------------------------------------------------------
|
| 5381 |
|
|
| 5382 |
|
// --------------------------------------------------------------------------------
|
|
@@ 5388-5410 (lines=23) @@
|
| 5385 |
|
// Parameters :
|
| 5386 |
|
// Return Values :
|
| 5387 |
|
// --------------------------------------------------------------------------------
|
| 5388 |
|
function privSwapBackMagicQuotes()
|
| 5389 |
|
{
|
| 5390 |
|
$v_result=1;
|
| 5391 |
|
|
| 5392 |
|
// ----- Look if function exists
|
| 5393 |
|
if ( (!function_exists("get_magic_quotes_runtime"))
|
| 5394 |
|
|| (!function_exists("set_magic_quotes_runtime"))) {
|
| 5395 |
|
return $v_result;
|
| 5396 |
|
}
|
| 5397 |
|
|
| 5398 |
|
// ----- Look if something to do
|
| 5399 |
|
if ($this->magic_quotes_status != -1) {
|
| 5400 |
|
return $v_result;
|
| 5401 |
|
}
|
| 5402 |
|
|
| 5403 |
|
// ----- Swap back magic_quotes
|
| 5404 |
|
if ($this->magic_quotes_status == 1) {
|
| 5405 |
|
@set_magic_quotes_runtime($this->magic_quotes_status);
|
| 5406 |
|
}
|
| 5407 |
|
|
| 5408 |
|
// ----- Return
|
| 5409 |
|
return $v_result;
|
| 5410 |
|
}
|
| 5411 |
|
// --------------------------------------------------------------------------------
|
| 5412 |
|
|
| 5413 |
|
}
|