Extensions/Themes Awaiting Approval

\n"; echo"\n"; echo"\n"; echo"\n"; echo"\n"; echo"\n"; echo"\n"; } ?>
Name Requested by? Last Updated Works with
$i$row[Name] $row[Version]$row2[UserName] - $row2[UserEmail]$date$row[AppName]"; if($row[OSName] != "ALL") { echo" ($row[OSName])"; } echo"
$i) {$authors .=", ";} } $sql = "SELECT `UserName`, `UserEmail`,`date` FROM `t_approvallog` TA INNER JOIN t_userprofiles TU ON TA.UserID=TU.UserID WHERE `ID`='$id' AND `vID`='$_GET[vid]' AND `action`='Approval?' LIMIT 1"; $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $row = mysql_fetch_array($sql_result); $requestedby = $row["UserName"]; $requestedon = $row["date"]; $requestedbyemail = $row["UserEmail"]; ?>

Mozilla Update - Approval Requested:

"> "> "> "> ">
  name          
  author(s)     
  id            
  version       
  supported apps:
                
  requested by: 
  requested on: 
  
  ">Install Now (KB)
  Download
  
  Comments: 
  
   
«« Return to Approval Queue
"; //Firstly, log the comments and action taken.. $_POST["userid"] = $_SESSION["uid"]; $sql = "INSERT INTO `t_approvallog` (`ID`, `vID`, `UserID`, `action`, `date`, `comments`) VALUES ('$_POST[id]', '$_POST[vid]', '$_POST[userid]', '$action', NOW(NULL), '$_POST[comments]');"; $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); //Secondly, let's move the file to it's new home in /ftp/ for staging... $sql = "SELECT `Type`,`Name`,`Version`,`URI` from `t_main` TM INNER JOIN t_version TV ON TM.ID=TV.ID WHERE `vID`='$_POST[vid]' LIMIT 1"; $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $row = mysql_fetch_array($sql_result); $uri = $row["URI"]; $filename = str_replace ("http://$sitehostname", "$websitepath", $uri); if (file_exists($filename)) { if ($row["Type"]=="T") {$type="themes";} else if ($row["Type"]=="E") {$type="extensions";} $name = str_replace(" ","_",$row["Name"]); $path = strtolower("$type/$name"); //http://mozupdates.psychoticwolf.net/files/approval/chatzilla-0.9.63c-ff.xpi $destination = str_replace("/files/approval",strtolower("/files/ftp/$path"),$filename); $dirpath = "$websitepath/files/ftp/$path"; if (!file_exists($dirpath)) { mkdir($dirpath,0775); } if (!file_exists($destination)) { rename("$filename", "$destination"); } $newurl = "http://ftp.mozilla.org/pub/mozilla.org"; $uri = str_replace("$websitepath/files/ftp","$newurl","$destination"); } //Thirdly, update version record... $sql = "UPDATE `t_version` SET `URI`='$uri', `approved`='$approved' WHERE `ID`='$_POST[id]' AND `URI`='$row[URI]' LIMIT 5"; $sql_result = mysql_query($sql, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); @include"mail_approval.php"; echo"Processing Request...
\n"; echo"Approval Flag set to $action, for $_POST[name] $_POST[version]
\n"; echo"E-Mail sent to requestee informing them of the action taken along with your comments
\n"; echo"«« Return to Approval Queue"; echo""; } ?>