0) { $sqlstr.=" WHERE subsection=$chal_type"; } $sqlstr.=' ORDER BY author;'; $result=mysql_query($sqlstr); if ((!($result))||(mysql_num_rows($result)<1)) { print ''; } $mycount=0; while (($result)&&($a_row=mysql_fetch_array($result))) { if ($mycount%2==0) { print ''; } $mycount+=1; } mysql_close($link); if ($mycount%2==1) { print ' '; } ?>
No Challenges Have Been Added For This Section

'; } print "Author: ".$a_row['author']."
\n"; if (!(file_exists($challenges_dir.'ch'.$a_row['challengeid'].'.zip'))) { print "Challenge Name: " . $a_row['name'] . "
Error: File not found!
\n"; } else { print "Challenge Name: "; print "".$a_row['name']."
\n"; } if ($a_row['subsection']=='1') { print "Type: Cracking
\n"; } else if ($a_row['subsection']=='2') { print "Type: Keygenning
\n"; } else if ($a_row['subsection']=='3') { print "Type: Reversing
\n"; } else if ($a_row['subsection']=='4') { print "Type: Crippled
\n"; } else if ($a_row['subsection']=='5') { print "Type: Riddle
\n"; } else { print "Type: Other
\n"; } print "Difficulty: " . stripslashes($a_row['diff']) . "
\n"; print "Protection: " . stripslashes($a_row['prot']) . "
\n"; print "Description: " . stripslashes($a_row['description']) . "
\n"; $result2=mysql_query("SELECT * FROM solutionstble WHERE challengeid=".$a_row['challengeid']." ORDER BY author"); if ($result2) { print "Solutions:
\n"; } while (($result2)&&($a_row2=mysql_fetch_array($result2))) { if (file_exists($challenges_dir.'sol'.$a_row2['solutionsid'].'.zip')) { print "".$a_row2['author']." "; } } if ($result2) { print "

"; } if ($mycount%2==0) { print '
'; } else { print '