Revision 1705
Added by Luisehahne about 13 years ago
| functions.php | ||
|---|---|---|
| 3 | 3 |
* |
| 4 | 4 |
* @category frontend |
| 5 | 5 |
* @package framework |
| 6 |
* @author WebsiteBaker Project |
|
| 7 |
* @copyright 2004-2009, Ryan Djurovich |
|
| 8 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
| 6 |
* @author Ryan Djurovich,WebsiteBaker Project |
|
| 7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V. |
|
| 9 | 8 |
* @link http://www.websitebaker2.org/ |
| 10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
| 11 | 10 |
* @platform WebsiteBaker 2.8.x |
| ... | ... | |
| 427 | 426 |
{
|
| 428 | 427 |
$bRetval = true; |
| 429 | 428 |
$iMode = intval($iMode) & 0777; // sanitize value |
| 430 |
if((substr(__FILE__, 0, 1)) == '/')
|
|
| 429 |
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN')
|
|
| 431 | 430 |
{ // Only chmod if os is not windows
|
| 432 | 431 |
$bRetval = false; |
| 433 | 432 |
if(!$iMode) {
|
| ... | ... | |
| 1322 | 1321 |
$replacements = array('!', '*', "'", "(", ")", ";", ":", "@", "&", "=", "+", "$", ",", "/", "?", "%", "#", "[", "]");
|
| 1323 | 1322 |
return str_replace($entities,$replacements, rawurlencode($string)); |
| 1324 | 1323 |
} |
| 1325 |
} |
|
| 1324 |
} |
|
Also available in: Unified diff
! update headerinfo
! change os_version request if os is not windows