Access Denied\n"; echo"You do not have access to the Approval Queue."; include"$page_footer"; echo"\n"; exit; } ?> Processing changes to approval queue, please wait...\n"; //echo"
"; print_r($_POST); echo"
\n"; for ($i=1; $_POST["maxvid"]>=$i; $i++) { $type = escape_string($_POST["type_$i"]); $testos = escape_string($_POST["testos_$i"]); $testbuild = escape_string($_POST["testbuild_$i"]); $comments = escape_string($_POST["comments_$i"]); $approval = escape_string($_POST["approval_$i"]); $file = escape_string($_POST["file_$i"]); if ($_POST["installation_$i"]) { $installation = escape_string($_POST["installation_$i"]); } else { $installation = "NO";} if ($_POST["uninstallation_$i"]) { $uninstallation = escape_string($_POST["uninstallation_$i"]); } else { $uninstallation = "NO";} if ($_POST["appworks_$i"]) { $appworks = escape_string($_POST["appworks_$i"]); } else { $appworks = "NO";} if ($_POST["cleanprofile_$i"]) { $cleanprofile = escape_string($_POST["cleanprofile_$i"]); } else { $cleanprofile = "NO";} if ($type=="E") { if ($_POST["newchrome_$i"]) { $newchrome = escape_string($_POST["newchrome_$i"]); } else { $newchrome = "NO";} if ($_POST["worksasdescribed_$i"]) { $worksasdescribed = escape_string($_POST["worksasdescribed_$i"]); } else { $worksasdescribed = "NO";} } else if ($type=="T") { if ($_POST["visualerrors_$i"]) { $visualerrors = escape_string($_POST["visualerrors_$i"]); } else { $visualerrors = "NO";} if ($_POST["allelementsthemed_$i"]) { $allelementsthemed = escape_string($_POST["allelementsthemed_$i"]); } else { $allelementsthemed = "NO";} } if ($approval !="noaction") { if ($type=="T") { if ($approval=="YES") { if ($installation=="YES" and $uninstallation=="YES" and $appworks=="YES" and $cleanprofile=="YES" and $visualerrors=="YES" and $allelementsthemed=="YES" and $testos and $testbuild) { $approval_result = process_approval($type, $file, "approve"); } else { echo"Error: Approval cannot be processed because of missing data. Fill in the required fields and try again.
\n"; } } else { if ($testos and $testbuild and $comments) { $approval_result = process_approval($type, $file, "deny"); } else { echo"Error: Denial cannot be processed because of missing data. Fill in the required fields and try again.
\n"; } } } else if ($type=="E") { if ($approval=="YES") { if ($installation=="YES" and $uninstallation=="YES" and $appworks=="YES" and $cleanprofile=="YES" and $newchrome=="YES" and $worksasdescribed=="YES" and $testos and $testbuild) { $approval_result = process_approval($type, $file, "approve"); } else { echo"Error: Approval cannot be processed because of missing data. Fill in the required fields and try again.
\n"; } } else { if ($testos and $testbuild and $comments) { $approval_result = process_approval($type, $file, "deny"); } else { echo"Error: Denial cannot be processed because of missing data. Fill in the required fields and try again.
\n"; } } } //Approval for this file was successful, print the output message. $name = escape_string($_POST["name_$i"]); $version = escape_string($_POST["version_$i"]); if ($approval_result) { if ($approval=="YES") { echo"$name $version was granted approval
\n"; } else if ($approval=="NO") { echo"$name $version was denied approval
\n"; } } } } } ?>

Extensions/Themes Awaiting Approval

Approval Log History
$j) { $authors .=", "; } } $categories = ""; $j=""; $sql2 = "SELECT `CatName` from `categoryxref` TCX INNER JOIN `categories` TC ON TCX.CategoryID = TC.CategoryID WHERE TCX.ID='$row[ID]' ORDER BY `CatName` ASC"; $sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); if (mysql_num_rows($sql_result2)=="1") {$categories = "Category: "; } else { $categories = "Categories: "; } while ($row2 = mysql_fetch_array($sql_result2)) { $j++; $categories .="$row2[CatName]"; if (mysql_num_rows($sql_result2) > $j) { $categories .=", "; } } $sql2 = "SELECT `PreviewID` FROM `previews` WHERE `ID`='$id' AND `preview`='YES' LIMIT 1"; $sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); if (mysql_num_rows($sql_result2)=="1") { $listpreview="(View Previews)"; } else { $listpreview="(No Previews)"; } $sql2 = "SELECT `UserName`,`UserEmail`,`date` FROM `approvallog` TA INNER JOIN `userprofiles` TU ON TA.UserID = TU.UserID WHERE `ID`='$row[ID]' AND `vID`='$row[vID]' and `action`='Approval?' ORDER BY `date` DESC LIMIT 1"; $sql_result2 = mysql_query($sql2, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); $row2 = mysql_fetch_array($sql_result2); if ($row2[date]) {$date = $row2[date]; } else { $date = $row[DateUpdated]; } $date = date("l, F d, Y, g:i:sa", strtotime("$date")); echo"\n"; echo""; echo"\n"; echo"\n"; echo"\n"; echo"\n"; if ($row2[UserName]) { echo"\n"; } else { echo"\n"; } echo"\n"; //Approval Form for this Extension Item echo"\n"; echo"\n"; echo"\n"; echo"\n"; } echo"\n"; ?> "0") { ?>

$row[Name] $row[Version] by $authors

Works with: "; $sql3 = "SELECT `shortname`, `MinAppVer`, `MaxAppVer` FROM `version` TV INNER JOIN `applications` TA ON TV.AppID = TA.AppID WHERE `URI`='$row[URI]' ORDER BY `AppName` ASC"; $sql_result3 = mysql_query($sql3, $connection) or trigger_error("MySQL Error ".mysql_errno().": ".mysql_error()."", E_USER_NOTICE); while ($row3 = mysql_fetch_array($sql_result3)) { echo"".ucwords($row3[shortname])." $row3[MinAppVer]-$row3[MaxAppVer] \n"; } if($row[OSName] != "ALL") { echo" ($row[OSName])"; } if ($type=="T") { $installink = "javascript:void(InstallTrigger.installChrome(InstallTrigger.SKIN,'$row[URI]','$row[Name] $row[Version]'))"; } else if ($type=="E") { $installink = "javascript:void(InstallTrigger.install({'$row[Name] $row[Version]':'$row[URI]'}))"; } echo"( Install Now )\n"; echo"
".nl2br($row[Description])." ($categories) $listpreview
Requested by: $row2[UserName] on $date

Tested On:

\n"; echo"\n"; echo"\n"; echo"\n"; echo"\n"; echo"OSes: \n"; echo"Apps: \n"; echo"Comments (to author): "; echo"
\n"; echo"Install?\n"; echo"Uninstall?\n"; echo"App Works? \n"; echo"Clean Profile?\n"; if ($type=="E") { echo"New Chrome?\n"; echo"Works?\n"; } else if ($type=="T") { echo"Visual Errors?\n"; echo"Theme Complete?\n"; } echo"
Action: \n"; echo"Approve  "; echo"Deny  "; echo"No Action\n"; echo"
Before pressing submit, please make sure all the information you entered above is complete and correct. For themes, a preview screenshot is required for approval. A preview image is recommended for extensions.
  
No items are pending approval at this time

Approval History Log

Incomplete Basic UI for the Approval History Log. Bug 255305. \n"; } ?>
ID vID uID Action Date Install? Unistall? New Chrome? App Works? Visual Errors? All Elements Themed? Clean Profile? Works As Described? Test Build: Test OS: Comments:
$i. $id $vid $userid $action $date $installation $uninstallation $newchrome $appworks $visualerrors $allelementsthemed $cleanprofile $worksasdescribed $testbuild $testos $comments