'elasticsearch' => null,
'index' => 'new',//"new" or "list"
'perPage' => 10,
+ 'randomIds' => false,
'defaultListPage' => 'last',//a number or "last"
'notificator' => array(
/* send out pingback/webmentions when a remote paste is forked */
//$GLOBALS['phorkie']['cfg']['elasticsearch'] = 'http://localhost:9200/phorkie/';
//$GLOBALS['phorkie']['cfg']['setupcheck'] = false;
//$GLOBALS['phorkie']['cfg']['perPage'] = 10;
+//$GLOBALS['phorkie']['cfg']['randomIds'] = false;
//$GLOBALS['phorkie']['auth']['securityLevel'] = 0;
//$GLOBALS['phorkie']['auth']['listedUsersOnly'] = false;
}
);
sort($dirs, SORT_NUMERIC);
- $n = end($dirs) + mt_rand(65536, 16777216);
+ if ($GLOBALS['phorkie']['cfg']['randomIds']) {
+ $n = end($dirs) + mt_rand(65536, 16777216);
+ } else {
+ $n = end($dirs) + 1;
+ }
chdir($this->workDir);
$dir = $this->workDir . '/' . $n . '/';