- web: fix typo in sandbox feature

This commit is contained in:
David Anderson 2013-01-09 23:17:39 -08:00 committed by Oliver Bock
parent 8b25f8ccdc
commit 4ce26192b3
3 changed files with 13 additions and 14 deletions

View File

@ -129,7 +129,7 @@ echo "<form action='$self' method='POST'>\n";
start_table("align='center'"); start_table("align='center'");
echo "<TR><TH>ID #</TH> echo "<TR><TH>ID #</TH>
<TH>Application</TH> <TH align=left>Application</TH>
<TH>Version</TH> <TH>Version</TH>
<TH>Platform</TH> <TH>Platform</TH>
<TH>Plan Class</TH> <TH>Plan Class</TH>
@ -153,32 +153,32 @@ for($j=1;$j<=$Nrow;$j++){
} }
echo "<tr> "; echo "<tr> ";
echo " <TD align='center'>$f1 $id $f2</TD>\n"; echo " <TD>$f1 $id $f2</TD>\n";
$i=$item->appid; $i=$item->appid;
echo " <TD align='center'>$f1 $app[$i] $f2</TD>\n"; echo " <TD>$f1 $app[$i] $f2</TD>\n";
echo " <TD align='center'>$f1 $item->version_num $f2</TD>\n"; echo " <TD>$f1 $item->version_num $f2</TD>\n";
$i=$item->platformid; $i=$item->platformid;
echo " <TD align='center'>$f1 $platform[$i] $f2</TD>\n"; echo " <TD>$f1 $platform[$i] $f2</TD>\n";
echo " <td align=center>$f1 $item->plan_class $f2</td>\n"; echo " <td>$f1 $item->plan_class $f2</td>\n";
$field="min_core_version_".$id; $field="min_core_version_".$id;
$v=$item->min_core_version; $v=$item->min_core_version;
echo " <TD align='center'> echo " <TD>
<input type='text' size='4' name='$field' value='$v'></TD>\n"; <input type='text' size='4' name='$field' value='$v'></TD>\n";
$field="max_core_version_".$id; $field="max_core_version_".$id;
$v=$item->max_core_version; $v=$item->max_core_version;
echo " <TD align='center'> echo " <TD>
<input type='text' size='4' name='$field' value='$v'></TD>\n"; <input type='text' size='4' name='$field' value='$v'></TD>\n";
$field="deprecated_".$id; $field="deprecated_".$id;
$v=''; $v='';
if($item->deprecated) $v=' CHECKED '; if($item->deprecated) $v=' CHECKED ';
echo " <TD align='center'> echo " <TD>
<input name='$field' type='checkbox' $v></TD>\n"; <input name='$field' type='checkbox' $v></TD>\n";
echo "</tr> "; echo "</tr> ";
@ -187,7 +187,7 @@ mysql_free_result($result);
echo "<tr><td colspan=7> </td> echo "<tr><td colspan=7> </td>
<td align='center' colspan=2 bgcolor='#FFFF88'> <td colspan=2 bgcolor='#FFFF88'>
<input type='submit' value='Update'></td> <input type='submit' value='Update'></td>
</tr> </tr>
"; ";

View File

@ -117,7 +117,7 @@ function upload_file($user) {
$notice = "<strong>Notice:</strong> Invalid Upload<br/>"; $notice = "<strong>Notice:</strong> Invalid Upload<br/>";
$notice .= "You are trying to upload file <strong>$name</strong><br/>"; $notice .= "You are trying to upload file <strong>$name</strong><br/>";
$notice .= "Another file <strong>$elf</strong> with the same content(md5: $md5) already exist!<br/>"; $notice .= "Another file <strong>$elf</strong> with the same content(md5: $md5) already exist!<br/>";
} else{ } else {
// move file to download dir // move file to download dir
// //
$phys_path = sandbox_physical_path($user, $md5); $phys_path = sandbox_physical_path($user, $md5);
@ -128,8 +128,7 @@ function upload_file($user) {
$dir = sandbox_dir($user); $dir = sandbox_dir($user);
$link_path = "$dir/$name"; $link_path = "$dir/$name";
sandbox_write_link_file($link_path, $size, $md5); sandbox_write_link_file($link_path, $size, $md5);
$notice = "Successfully uploaded file <strong>$name</strong>!<br/>"; $notice = "Successfully uploaded file <strong>$name</strong>!<br/>";
}
} }
list_files($user, $notice); list_files($user, $notice);
} }

View File

@ -435,7 +435,7 @@ static bool scan_work_array(vector<DB_WORK_ITEM> &work_items) {
int app_index; int app_index;
int nadditions=0, ncollisions=0; int nadditions=0, ncollisions=0;
for (i=0; i<napps; i++) { for (i=0; i<napps; i++) {
if (work_items[i].cursor.active) { if (work_items[i].cursor.active) {
enum_phase[i] = ENUM_FIRST_PASS; enum_phase[i] = ENUM_FIRST_PASS;
} else { } else {