}
} else {
/* Create a random identifier for this file. */
- $id = base_convert($file_name . microtime(), 10, 36);
+ $id = uniqid(mt_rand());
$res = $vfsroot->writeData($full_path, $file_name . '.notify' , $id, true);
if (is_a($res, 'PEAR_Error')) {
Horde::logMessage($res, __FILE__, __LINE__, PEAR_LOG_ERR);
/* Set up the base template now. */
$t = new IMP_Template();
$t->setOption('gettext', true);
-$t->set('post_action', Util::addParameter(Horde::applicationUrl('compose.php'), 'uniq', base_convert(microtime(), 10, 36)));
+$t->set('post_action', Util::addParameter(Horde::applicationUrl('compose.php'), 'uniq', uniqid(mt_rand())));
$t->set('allow_compose', !$compose_disable);
if ($has_js) {
$t->set('loading_img', Horde::img('loading.gif', _("Loading...")));
(empty($GLOBALS['conf']['hooks']['disable_compose']) ||
Horde::callHook('_imp_hook_disable_compose', array(true), 'imp'))) {
- $items[Util::addParameter(Horde::applicationUrl('compose-mimp.php'), 'u', base_convert(microtime() . mt_rand(), 10, 36))] = _("New Message");
+ $items[Util::addParameter(Horde::applicationUrl('compose-mimp.php'), 'u', uniqid(mt_rand()))] = _("New Message");
}
if ($page != 'folders') {