예제 #1
0
파일: admin.php 프로젝트: taqsuqs/drydock
     if (count($filters) <= 0) {
         $filters = null;
     }
     $sm->assign("filters", $filters);
     $sm->display("adminfilters.tpl");
 } elseif ($_GET['a'] == "p") {
     if (THdbtype == null) {
         THdie("ADdbfirst");
     }
     // Use the functions provided to us by this class
     $profile_dbi = new ThornProfileDBI();
     //move this over to t=p eventually - tyam
     if (isset($_GET['action']) && $_GET['action'] == "regyes" && isset($_GET['username'])) {
         // Approving an account
         // Use the approvalaction function
         $profile_dbi->approvalaction($_GET['username'], "account", true);
         if (THprofile_emailwelcome) {
             $email = $profile_dbi->getemail($_GET['username']);
             sendWelcome($_GET['username'], $email);
         }
     }
     if (isset($_GET['action']) && $_GET['action'] == "regno" && isset($_GET['username'])) {
         // Denying an account
         // Use the approvalaction function
         $profile_dbi->approvalaction($_GET['username'], "account", false);
         if (THprofile_emailwelcome) {
             $email = $profile_dbi->getemail($_GET['username']);
             sendDenial($_GET['username'], $email);
         }
     }
     if (isset($_GET['action']) && $_GET['action'] == "capyes" && isset($_GET['username'])) {