Add skeleton of script to clean email database
This commit is contained in:
parent
31fcf12643
commit
d9beced0e3
@ -67,24 +67,36 @@ if (!empty($login))
|
|||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
// Loop on the entry file to get the 100 first entries
|
|
||||||
|
// TODO Loop on the entry file to get the 100 first entries
|
||||||
|
|
||||||
$groupofemails = array();
|
$groupofemails = array();
|
||||||
|
|
||||||
|
|
||||||
// For each groupofemail, we update tables to set email field to empty
|
// For each groupofemail, we update tables to set email field to empty
|
||||||
if (empty($type) || $type == 'thirdparty')
|
if ($type == 'all' || $type == 'thirdparty')
|
||||||
{
|
{
|
||||||
// Loop on each thirdparty and update the email to null if email into $groupofemails
|
// Loop on each record and update the email to null if email into $groupofemails
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($type) || $type == 'contact')
|
if ($type == 'all' || $type == 'contact')
|
||||||
{
|
{
|
||||||
// Loop on each thirdparty and update the email to null if email into $groupofemails
|
// Loop on each record and update the email to null if email into $groupofemails
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($type == 'all' || $type == 'user')
|
||||||
|
{
|
||||||
|
// Loop on each record and update the email to null if email into $groupofemails
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($type == 'all' || $type == 'member')
|
||||||
|
{
|
||||||
|
// Loop on each record and update the email to null if email into $groupofemails
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user