Changeset 8246 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 01/11/07 15:31:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/builddatasets.php
r8241 r8246 511 511 $sequoff.=str_replace("Off", " ", $key); 512 512 } 513 513 514 printf("<input type='submit' value='Get Dataset'><br><br>\n"); 514 515 printf("<input name='submit' type='hidden' value='post'>\n"); … … 614 615 // printf("found %s keys", $numrealkeys); 615 616 617 //check observationmode for on-sequences 618 $query="SELECT fObservationModeKEY FROM Sequences where fSequenceFirst IN ('" . $sequences . "') GROUP BY fObservationModeKEY"; 619 // printf("q: %s <br>", $query); 620 $result = mysql_query($query, $db_id); 621 $numobskeys=mysql_num_rows($result); 622 mysql_free_result($result); 623 616 624 617 625 $runtimelimit=5; … … 680 688 $color["WARN"], "WARN", str_word_count($sourceson)); 681 689 */ 690 $doubleseq=0; 691 // printf("finding: %s<br>", $sequon); 692 foreach(explode(" ", $sequon) as $n => $s) 693 { 694 // printf("finding %s in %s <br>", $s, $sequoff); 695 if (ereg($s, $sequoff)) 696 $doubleseq++; 697 } 698 if ($doubleseq>0) 699 { 700 printf("<li style='color:%s'>%s: You have selected sequences (%s) as On AND Off", 701 $color["ERROR"], "ERROR", $doubleseq); 702 $numerr=$numerr+1; 703 } 682 704 if ($numrealkeys>1) 683 705 { 684 706 printf("<li style='color:%s'>%s: You have selected more than one (%s) on source", 685 $color["ERROR"], "ERROR", $numrealkeays); 707 $color["ERROR"], "ERROR", $numrealkeys); 708 $numerr=$numerr+1; 709 } 710 if ($numobskeys>1) 711 { 712 printf("<li style='color:%s'>%s: You have selected more than one (%s) different observation modes for your on sequences", 713 $color["ERROR"], "ERROR", $numobskeys); 686 714 $numerr=$numerr+1; 687 715 } … … 893 921 if (!isset($_SERVER['PHP_AUTH_USER']) || crypt($_SERVER['PHP_AUTH_PW'], $sitepw)!=$sitepw || $_SERVER['PHP_AUTH_USER']!=$siteuser) 894 922 { 895 header('WWW-Authenticate: Basic realm=" My Realm"');923 header('WWW-Authenticate: Basic realm="Build Datasets"'); 896 924 header('HTTP/1.0 401 Unauthorized'); 897 echo ' Text to send if user hits Cancel button';925 echo 'Cancelled.'; 898 926 return; 899 927 }
Note:
See TracChangeset
for help on using the changeset viewer.