manager/includes/extenders/manager.api.class.inc.php 1 location
|
@@ 127-131 (lines=5) @@
|
| 124 |
|
$rs = $modx->db->select('password',$tbl_manager_users,"id='{$uid}'"); |
| 125 |
|
$password = $modx->db->getValue($rs); |
| 126 |
|
|
| 127 |
|
if(strpos($password,'>')===false) $algo = 'NOSALT'; |
| 128 |
|
else |
| 129 |
|
{ |
| 130 |
|
$algo = substr($password,0,strpos($password,'>')); |
| 131 |
|
} |
| 132 |
|
return strtoupper($algo); |
| 133 |
|
} |
| 134 |
|
|
manager/includes/extenders/modifiers.class.inc.php 1 location
|
@@ 205-211 (lines=7) @@
|
| 202 |
|
|
| 203 |
|
if($key==='documentObject') $value = $modx->documentIdentifier; |
| 204 |
|
$cmd = $this->parseDocumentSource($cmd); |
| 205 |
|
if(preg_match('@^[1-9][/0-9]*$@',$cmd)) |
| 206 |
|
{ |
| 207 |
|
if(strpos($cmd,'/')!==false) |
| 208 |
|
$cmd = $this->substr($cmd,strrpos($cmd,'/')+1); |
| 209 |
|
$opt = $cmd; |
| 210 |
|
$cmd = 'id'; |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
if(isset($modx->snippetCache["phx:{$cmd}"])) $this->elmName = "phx:{$cmd}"; |
| 214 |
|
elseif(isset($modx->chunkCache["phx:{$cmd}"])) $this->elmName = "phx:{$cmd}"; |
manager/includes/document.parser.class.inc.php 1 location
|
@@ 1360-1365 (lines=6) @@
|
| 1357 |
|
case 'uparent': |
| 1358 |
|
case 'up': |
| 1359 |
|
case 'u': |
| 1360 |
|
if (strpos($str, '(') !== false) { |
| 1361 |
|
$top = substr($str, strpos($str, '(')); |
| 1362 |
|
$top = trim($top, '()"\''); |
| 1363 |
|
} else { |
| 1364 |
|
$top = 0; |
| 1365 |
|
} |
| 1366 |
|
$docid = $this->getUltimateParentId($this->documentIdentifier, $top); |
| 1367 |
|
break; |
| 1368 |
|
case 'alias': |