REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 2.04 KB
Close
/home/jambtst2015/public_html/ckfinder/core/connector/php/php4/Utils/Security.php
Text
Base64
<?php /* * CKFinder * ======== * http://ckfinder.com * Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved. * * The software, this file and its contents are subject to the CKFinder * License. Please read the license.txt file before using, installing, copying, * modifying or distribute this file or part of its contents. The contents of * this file is part of the Source Code of CKFinder. */ if (!defined('IN_CKFINDER')) exit; /** * @package CKFinder * @subpackage Utils * @copyright CKSource - Frederico Knabben */ /** * @package CKFinder * @subpackage Utils * @copyright CKSource - Frederico Knabben */ class CKFinder_Connector_Utils_Security { /** * Strip quotes from global arrays * @access public */ function getRidOfMagicQuotes() { if (get_magic_quotes_gpc()) { if (!empty($_GET)) { $this->stripQuotes($_GET); } if (!empty($_POST)) { $this->stripQuotes($_POST); } if (!empty($_COOKIE)) { $this->stripQuotes($_COOKIE); } if (!empty($_FILES)) { while (list($k,$v) = each($_FILES)) { if (isset($_FILES[$k]['name'])) { $this->stripQuotes($_FILES[$k]['name']); } } } } } /** * Strip quotes from variable * * @access public * @param mixed $var * @param int $depth current depth * @param int $howDeep maximum depth */ function stripQuotes(&$var, $depth=0, $howDeep=5) { if (is_array($var)) { if ($depth++<$howDeep) { while (list($k,$v) = each($var)) { $this->stripQuotes($var[$k], $depth, $howDeep); } } } else { $var = stripslashes($var); } } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
FileSystem.php
19.90 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Misc.php
12.28 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Security.php
2.04 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XmlNode.php
4.26 KB
lrw-r--r--
2024-11-22 17:53:11
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).