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}"; |
manager/includes/src/Core.php 1 location
|
@@ 1633-1638 (lines=6) @@
|
1630 |
|
case 'uparent': |
1631 |
|
case 'up': |
1632 |
|
case 'u': |
1633 |
|
if (strpos($str, '(') !== false) { |
1634 |
|
$top = substr($str, strpos($str, '(')); |
1635 |
|
$top = trim($top, '()"\''); |
1636 |
|
} else { |
1637 |
|
$top = 0; |
1638 |
|
} |
1639 |
|
$docid = $this->getUltimateParentId($this->documentIdentifier, $top); |
1640 |
|
break; |
1641 |
|
case 'alias': |