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
|
@@ 265-271 (lines=7) @@
|
| 262 |
|
|
| 263 |
|
if($key==='documentObject') $value = $modx->documentIdentifier; |
| 264 |
|
$cmd = $this->parseDocumentSource($cmd); |
| 265 |
|
if(preg_match('@^[1-9][/0-9]*$@',$cmd)) |
| 266 |
|
{ |
| 267 |
|
if(strpos($cmd,'/')!==false) |
| 268 |
|
$cmd = $this->substr($cmd,strrpos($cmd,'/')+1); |
| 269 |
|
$opt = $cmd; |
| 270 |
|
$cmd = 'id'; |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
if(isset($modx->snippetCache["phx:{$cmd}"])) $this->elmName = "phx:{$cmd}"; |
| 274 |
|
elseif(isset($modx->chunkCache["phx:{$cmd}"])) $this->elmName = "phx:{$cmd}"; |