
Protected Member Functions | |
| __construct ($component, $system, $version) | |
| __clone () | |
| noMagicQuotes () | |
Protected Attributes | |
| $name = '' | |
| $formalname = '' | |
| $barename = '' | |
| $system = '' | |
| $system_version = '' | |
Private Member Functions | |
| & | remove_magic_quotes ($array, $exclude='') |
Definition at line 108 of file aliroComponentManager.php.
| aliroComponentManager::__construct | ( | $ | component, | |
| $ | system, | |||
| $ | version | |||
| ) | [protected] |
Reimplemented in aliroComponentAdminManager.
Definition at line 115 of file aliroComponentManager.php.
References $system, name, and system.
00115 { 00116 $this->name = $component->name; 00117 $this->formalname = $component->option; 00118 $parts = explode('_', $this->formalname); 00119 $this->barename = isset($parts[1]) ? $parts[1] : $this->formalname; 00120 $this->system = $system; 00121 $this->system_version = $version; 00122 if(file_exists($this->absolute_path."/components/$this->formalname/language/".$this->getCfg('lang').'.php')) { 00123 require_once($this->absolute_path."/components/$this->formalname/language/".$this->getCfg('lang').'.php'); 00124 } 00125 else if (file_exists($this->absolute_path."/components/$this->formalname/language/english.php")) { 00126 require_once($this->absolute_path."/components/$this->formalname/language/english.php"); 00127 } 00128 }
| aliroComponentManager::__clone | ( | ) | [protected] |
| aliroComponentManager::noMagicQuotes | ( | ) | [protected] |
Definition at line 134 of file aliroComponentManager.php.
References $_REQUEST, and remove_magic_quotes().
Referenced by aliroComponentUserManager::activate(), and aliroComponentAdminManager::activate().
00134 { 00135 // Is magic quotes on? 00136 if (get_magic_quotes_gpc()) { 00137 // Yes? Strip the added slashes 00138 $_REQUEST = $this->remove_magic_quotes($_REQUEST); 00139 $_GET = $this->remove_magic_quotes($_GET); 00140 $_POST = $this->remove_magic_quotes($_POST); 00141 $_FILES = $this->remove_magic_quotes($_FILES, 'tmp_name'); 00142 } 00143 }
| & aliroComponentManager::remove_magic_quotes | ( | $ | array, | |
| $ | exclude = '' | |||
| ) | [private] |
Definition at line 145 of file aliroComponentManager.php.
Referenced by noMagicQuotes().
00145 { 00146 foreach ($array as $k => &$v) { 00147 if (is_array($v)) $v = $this->remove_magic_quotes($v, $exclude); 00148 // Did apply stripslashes twice, why? Removed to see what happens 00149 elseif ($k != $exclude) $v = stripslashes($v); 00150 } 00151 return $array; 00152 }
aliroComponentManager::$name = '' [protected] |
Reimplemented in aliroComponentAdminManager.
Definition at line 109 of file aliroComponentManager.php.
aliroComponentManager::$formalname = '' [protected] |
Definition at line 110 of file aliroComponentManager.php.
aliroComponentManager::$barename = '' [protected] |
Definition at line 111 of file aliroComponentManager.php.
aliroComponentManager::$system = '' [protected] |
Definition at line 112 of file aliroComponentManager.php.
Referenced by aliroComponentUserManager::__construct(), __construct(), and aliroComponentAdminManager::__construct().
aliroComponentManager::$system_version = '' [protected] |
Definition at line 113 of file aliroComponentManager.php.
1.5.5