Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102444323
20151130.phurl.mailkey.2.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Feb 20, 19:22
Size
408 B
Mime Type
text/x-php
Expires
Sat, Feb 22, 19:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24358302
Attached To
rPH Phabricator
20151130.phurl.mailkey.2.php
View Options
<?php
$table
=
new
PhabricatorPhurlURL
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$url
)
{
$id
=
$url
->
getID
();
echo
pht
(
'Adding mail key for Phurl %d...'
,
$id
);
echo
"
\n
"
;
queryfx
(
$conn_w
,
'UPDATE %T SET mailKey = %s WHERE id = %d'
,
$table
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
20
),
$id
);
}
Event Timeline
Log In to Comment