case 'manage': echo manage($pdo); break; case 'sort': echo manage($pdo); break; case 'search': echo manage($pdo); break; case 'edit': edit($pdo); break; case 'status': status($pdo); break; case 'chmail': chmail($pdo); break; case 'logout': logout(); break; case 'chpassword': chpassword($pdo); break; case 'delete': delete($pdo); break; } } else { redirect(BASE_PATH . '/', 1); }
die; } if ($argv[1] == '--checks-created') { ChecksCreated(); die; } if ($argv[1] == '--checks-deletion') { ChecksDeleted(); die; } if ($argv[1] == '--checks-single') { checksSingle($argv[2]); die; } if ($argv[1] == '--chpassword') { chpassword($argv[2]); die; } $mailman = new mailmancontrol(); $mailman->mm_cfg(); return; LoadMailManList(); LoadLdapList(); mm_cfg(); EditMailingLists(); LinkLanguages(); FixUrls(); function LoadLdapList() { $ldap = new clladp(); $filter = "(&(Objectclass=ArticaMailManRobots)(cn=*))";