manager/includes/src/Core.php 1 location
|
@@ 1640-1645 (lines=6) @@
|
| 1637 |
|
case 'uparent': |
| 1638 |
|
case 'up': |
| 1639 |
|
case 'u': |
| 1640 |
|
if (strpos($str, '(') !== false) { |
| 1641 |
|
$top = substr($str, strpos($str, '(')); |
| 1642 |
|
$top = trim($top, '()"\''); |
| 1643 |
|
} else { |
| 1644 |
|
$top = 0; |
| 1645 |
|
} |
| 1646 |
|
$docid = $this->getUltimateParentId($this->documentIdentifier, $top); |
| 1647 |
|
break; |
| 1648 |
|
case 'alias': |
manager/includes/src/Legacy/ManagerApi.php 1 location
|
@@ 192-196 (lines=5) @@
|
| 189 |
|
$rs = $modx->getDatabase()->select('password', $tbl_manager_users, "id='{$uid}'"); |
| 190 |
|
$password = $modx->getDatabase()->getValue($rs); |
| 191 |
|
|
| 192 |
|
if (strpos($password, '>') === false) { |
| 193 |
|
$algo = 'NOSALT'; |
| 194 |
|
} else { |
| 195 |
|
$algo = substr($password, 0, strpos($password, '>')); |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
return strtoupper($algo); |
| 199 |
|
} |
manager/includes/src/Legacy/Modifiers.php 1 location
|
@@ 300-306 (lines=7) @@
|
| 297 |
|
$value = $modx->documentIdentifier; |
| 298 |
|
} |
| 299 |
|
$cmd = $this->parseDocumentSource($cmd); |
| 300 |
|
if (preg_match('@^[1-9][/0-9]*$@', $cmd)) { |
| 301 |
|
if (strpos($cmd, '/') !== false) { |
| 302 |
|
$cmd = $this->substr($cmd, strrpos($cmd, '/') + 1); |
| 303 |
|
} |
| 304 |
|
$opt = $cmd; |
| 305 |
|
$cmd = 'id'; |
| 306 |
|
} |
| 307 |
|
|
| 308 |
|
if (isset($modx->snippetCache["phx:{$cmd}"])) { |
| 309 |
|
$this->elmName = "phx:{$cmd}"; |