Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F512865
20140113.legalpadsig.2.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
20140113.legalpadsig.2.php
View Options
<?php
echo
pht
(
'Adding secretkeys to legalpad document signatures.'
).
"
\n
"
;
$table
=
new
LegalpadDocumentSignature
();
$conn_w
=
$table
->
establishConnection
(
'w'
);
$iterator
=
new
LiskMigrationIterator
(
$table
);
foreach
(
$iterator
as
$sig
)
{
$id
=
$sig
->
getID
();
echo
pht
(
'Populating signature %d...'
,
$id
).
"
\n
"
;
if
(!
$sig
->
getSecretKey
())
{
queryfx
(
$conn_w
,
'UPDATE %T SET secretKey = %s WHERE id = %d'
,
$table
->
getTableName
(),
Filesystem
::
readRandomCharacters
(
20
),
$id
);
}
}
echo
pht
(
'Done.'
).
"
\n
"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 12:21 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
104978
Default Alt Text
20140113.legalpadsig.2.php (545 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment