manager/includes/extenders/manager.api.class.inc.php 1 location
|
@@ 190-194 (lines=5) @@
|
| 187 |
|
$rs = $modx->db->select('password', $tbl_manager_users, "id='{$uid}'"); |
| 188 |
|
$password = $modx->db->getValue($rs); |
| 189 |
|
|
| 190 |
|
if (strpos($password, '>') === false) { |
| 191 |
|
$algo = 'NOSALT'; |
| 192 |
|
} else { |
| 193 |
|
$algo = substr($password, 0, strpos($password, '>')); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
return strtoupper($algo); |
| 197 |
|
} |
manager/includes/extenders/modifiers.class.inc.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}"; |
manager/includes/document.parser.class.inc.php 1 location
|
@@ 1365-1370 (lines=6) @@
|
| 1362 |
|
case 'uparent': |
| 1363 |
|
case 'up': |
| 1364 |
|
case 'u': |
| 1365 |
|
if (strpos($str, '(') !== false) { |
| 1366 |
|
$top = substr($str, strpos($str, '(')); |
| 1367 |
|
$top = trim($top, '()"\''); |
| 1368 |
|
} else { |
| 1369 |
|
$top = 0; |
| 1370 |
|
} |
| 1371 |
|
$docid = $this->getUltimateParentId($this->documentIdentifier, $top); |
| 1372 |
|
break; |
| 1373 |
|
case 'alias': |