713
بناء مشاريع PHP و MySQL عملية الجزء V
28
case 'subscribe' :
{
}
subscribe(get_email(), $id);
display_items ("Subscribed Lists", get_subscribed_lists(get_email()), 'information', 'show-archive', 'unsubscribe');
break;
case 'unsubscribe' :
{
}
unsubscribe(get_email(), $id);
display_items ("Subscribed Lists", get_subscribed_lists(get_email()), 'information', 'show-archive', 'unsubscribe');
break;
case '':
case 'show-my-lists':
{
}
display_items ("Subscribed Lists", get_subscribed_lists (get_email()), 'information', 'show-archive', 'unsubscribe');
break;
case 'change-password' :
[
display_password_form();
}
break;
case 'store-change-password' :
{
if(change_password(get_email(), $old_passwd,
}
$new_passwd, $new_passwd2))
echo "<p>OK: Password changed. <br><br><br><br><br><br>";
else
echo "<p>Sorry, your password could not be changed."; display_password_form();
}
break;
}
}
}
// The following actions may only be performed by an admin user if(check_admin_user())
switch($action )
case 'create-mail' :
{
display_mail_form(get_email());
}
break;
case 'create-list' :
{
display_list_form(get_email());
break;
ص ٦٩٧