|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 24.06 GB of 70.42 GB (34.17%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
http/
yalagina/
libraries/
joomla/
string/
- drwxr-xr-x
|
Viewing file: normalise.php (3.48 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
<?php /** * @package Joomla.Platform * @subpackage String * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */
defined('JPATH_PLATFORM') or die;
/** * Joomla Platform String Normalize Class * * @package Joomla.Platform * @subpackage String * @since 11.3 * @deprecated 12.1 */ abstract class JStringNormalize extends JStringNormalise {
}
/** * Joomla Platform String Normalise Class * * @package Joomla.Platform * @subpackage String * @since 11.3 */ abstract class JStringNormalise { /** * Method to convert a string into camel case. * * @param string $input The string input. * * @return string The camel case string. * * @since 11.3 */ public static function toCamelCase($input) { // Convert words to uppercase and then remove spaces. $input = self::toSpaceSeparated($input); $input = JString::ucwords($input); $input = JString::str_ireplace(' ', '', $input);
return $input; }
/** * Method to convert a string into dash separated form. * * @param string $input The string input. * * @return string The dash separated string. * * @since 11.3 */ public static function toDashSeparated($input) { // Convert spaces and underscores to dashes. $input = JString::str_ireplace(array(' ', '_'), '-', $input);
// Remove duplicate dashes. $input = preg_replace('#-+#', '-', $input);
return $input; }
/** * Method to convert a string into space separated form. * * @param string $input The string input. * * @return string The space separated string. * * @since 11.3 */ public static function toSpaceSeparated($input) { // Convert underscores and dashes to spaces. $input = JString::str_ireplace(array('_', '-'), ' ', $input);
// Remove duplicate spaces. $input = preg_replace('#\s+#', ' ', $input);
return $input; }
/** * Method to convert a string into underscore separated form. * * @param string $input The string input. * * @return string The underscore separated string. * * @since 11.3 */ public static function toUnderscoreSeparated($input) { // Convert spaces and dashes to underscores. $input = JString::str_ireplace(array(' ', '-'), '_', $input);
// Remove duplicate underscores. $input = preg_replace('#_+#', '_', $input);
return $input; }
/** * Method to convert a string into variable form. * * @param string $input The string input. * * @return string The variable string. * * @since 11.3 */ public static function toVariable($input) { // Remove dashes and underscores, then convert to camel case. $input = self::toSpaceSeparated($input); $input = self::toCamelCase($input);
// Remove leading digits. $input = preg_replace('#^[0-9]+.*$#', '', $input);
// Lowercase the first character. $first = JString::substr($input, 0, 1); $first = JString::strtolower($first);
// Replace the first character with the lowercase character. $input = JString::substr_replace($input, $first, 0, 1);
return $input; }
/** * Method to convert a string into key form. * * @param string $input The string input. * * @return string The key string. * * @since 11.3 */ public static function toKey($input) { // Remove spaces and dashes, then convert to lower case. $input = self::toUnderscoreSeparated($input); $input = JString::strtolower($input);
return $input; } }
|