manager/includes/document.parser.class.inc.php 1 location
|
@@ 1414-1419 (lines=6) @@
|
| 1411 |
|
case 'uparent': |
| 1412 |
|
case 'up': |
| 1413 |
|
case 'u': |
| 1414 |
|
if (strpos($str, '(') !== false) { |
| 1415 |
|
$top = substr($str, strpos($str, '(')); |
| 1416 |
|
$top = trim($top, '()"\''); |
| 1417 |
|
} else { |
| 1418 |
|
$top = 0; |
| 1419 |
|
} |
| 1420 |
|
$docid = $this->getUltimateParentId($this->documentIdentifier, $top); |
| 1421 |
|
break; |
| 1422 |
|
case 'alias': |
manager/includes/extenders/manager.api.class.inc.php 1 location
|
@@ 189-193 (lines=5) @@
|
| 186 |
|
$rs = $modx->db->select('password', $tbl_manager_users, "id='{$uid}'"); |
| 187 |
|
$password = $modx->db->getValue($rs); |
| 188 |
|
|
| 189 |
|
if (strpos($password, '>') === false) { |
| 190 |
|
$algo = 'NOSALT'; |
| 191 |
|
} else { |
| 192 |
|
$algo = substr($password, 0, strpos($password, '>')); |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
return strtoupper($algo); |
| 196 |
|
} |
manager/includes/extenders/modifiers.class.inc.php 1 location
|
@@ 293-299 (lines=7) @@
|
| 290 |
|
$value = $modx->documentIdentifier; |
| 291 |
|
} |
| 292 |
|
$cmd = $this->parseDocumentSource($cmd); |
| 293 |
|
if (preg_match('@^[1-9][/0-9]*$@', $cmd)) { |
| 294 |
|
if (strpos($cmd, '/')!==false) { |
| 295 |
|
$cmd = $this->substr($cmd, strrpos($cmd, '/')+1); |
| 296 |
|
} |
| 297 |
|
$opt = $cmd; |
| 298 |
|
$cmd = 'id'; |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
if (isset($modx->snippetCache["phx:{$cmd}"])) { |
| 302 |
|
$this->elmName = "phx:{$cmd}"; |