| @@ 137-145 (lines=9) @@ | ||
| 134 | * @since 4.6.025 (2009-08-17) | |
| 135 | * @public static | |
| 136 | */ | |
| 137 | 	public static function set_mqr($mqr) { | |
| 138 | 		if (!defined('PHP_VERSION_ID')) { | |
| 139 | $version = PHP_VERSION; | |
| 140 | 			define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4])); | |
| 141 | } | |
| 142 | 		if (PHP_VERSION_ID < 50300) { | |
| 143 | @set_magic_quotes_runtime($mqr); | |
| 144 | } | |
| 145 | } | |
| 146 | ||
| 147 | /** | |
| 148 | * Gets the current active configuration setting of magic_quotes_runtime (if the get_magic_quotes_runtime function exist) | |
| @@ 153-162 (lines=10) @@ | ||
| 150 | * @since 4.6.025 (2009-08-17) | |
| 151 | * @public static | |
| 152 | */ | |
| 153 | 	public static function get_mqr() { | |
| 154 | 		if (!defined('PHP_VERSION_ID')) { | |
| 155 | $version = PHP_VERSION; | |
| 156 | 			define('PHP_VERSION_ID', (($version[0] * 10000) + ($version[2] * 100) + $version[4])); | |
| 157 | } | |
| 158 | 		if (PHP_VERSION_ID < 50300) { | |
| 159 | return @get_magic_quotes_runtime(); | |
| 160 | } | |
| 161 | return 0; | |
| 162 | } | |
| 163 | ||
| 164 | /** | |
| 165 | * Get page dimensions from format name. | |