diff -u mysql-webadmin/auth.inc mysql/webadmin/auth.inc --- mysql-webadmin/auth.inc Sun May 11 11:28:00 1997 +++ mysql/webadmin/auth.inc Thu May 29 20:36:00 1997 @@ -1,17 +1,43 @@ rawauth) + new["HTTP_AUTHORIZATION"] = id->rawauth; ++ if(id->realauth) ++ new["REMOTE_USER"] = (id->realauth/":")[0]; + if(QUERY(clearpass) && id->realauth) + new["REMOTE_PASSWORD"] = (id->realauth/":")[1]; + + */ + + + $PHP_AUTH_USER = $REMOTE_USER; + $PHP_AUTH_PW = $REMOTE_PASSWORD; + if(!$PHP_AUTH_USER) { + Header("status: 401 Unauthorized"); + Header("http/1.0 401 Unauthorized"); Header("WWW-authenticate: basic realm=\"MYSQL WEBADMIN\""); - Header("HTTP/1.0 401 Unauthorized"); + Header("kiss me: $PHP_AUTH_USER $PHP_AUTH_PW"); exit; } else { mysql_connect("$hostname","$standarduser","$standarduser_pw"); $rs=mysql("mysql","select User,Password from user where User='$PHP_AUTH_USER' having Password=password('$PHP_AUTH_PW')"); if (mysql_numrows($rs)<=0); $PHP_AUTH_USER=""; - Header("WWW-authenticate: basic realm=\"MYSQL WEBADMIN\""); + Header("status: 401 Unauthorized"); Header("HTTP/1.0 401 Unauthorized"); + Header("WWW-authenticate: basic realm=\"MYSQL WEBADMIN\""); exit; endif; echo "user: $PHP_AUTH_USER"; diff -u mysql-webadmin/edit_data.inc mysql/webadmin/edit_data.inc --- mysql-webadmin/edit_data.inc Fri May 9 20:03:00 1997 +++ mysql/webadmin/edit_data.inc Thu May 29 18:19:00 1997 @@ -3,16 +3,19 @@ $nf=mysql_numrows($rs); echo "\n"; $j=0; - echo ""; diff -u mysql-webadmin/search.phtml mysql/webadmin/search.phtml --- mysql-webadmin/search.phtml Fri May 9 20:48:04 1997 +++ mysql/webadmin/search.phtml Thu May 29 17:40:14 1997 @@ -99,8 +99,8 @@ endwhile; $i++; if ($show_buttons){ - echo "\n\t\n\t"; diff -u mysql-webadmin/update.phtml mysql/webadmin/update.phtml --- mysql-webadmin/update.phtml Fri May 9 19:02:18 1997 +++ mysql/webadmin/update.phtml Thu May 29 18:18:14 1997 @@ -25,17 +25,19 @@ $qr += "$fn = "; + $data = urldecode($$fn); + $funct="function$j"; if ($$funct); $$funct=substr($$funct,0,strlen($$funct)-2); echo $funct; if ($$fn); - $qr += "$$funct('$$fn')"; + $qr += "$$funct('$data')"; else; $qr += "$$funct()"; endif; else; - $qr += "'$$fn'"; + $qr += "'$data'"; endif;
$table_font_tag Fieldname $table_font_tag Type $table_font_tag Key $table_font_tag extra $table_font_tag function"; + echo " $table_font_tag Fieldname $table_font_tag Type $table_font_tag Key $table_font_tag extra $table_font_tag function\n\n"; while($j<$nf); $fn = mysql_result($rs,$j,"Field"); $tt="old$fn"; $$tt=$$fn; - echo ""; $ft = mysql_result($rs,$j,"Type"); $fk = mysql_result($rs,$j,"Key"); $fe = mysql_result($rs,$j,"Extra"); - echo "\n\t
$table_font_tag $fn $table_font_tag $ft $table_font_tag $fk $table_font_tag $fe "; + + $use_textarea=0; + if (ereg("char",$ft)) { $use_textarea=1 ; }; + if (ereg("blob",$ft)) { $use_textarea=1 ; }; + echo "\n\t
$table_font_tag $fn $table_font_tag $ft $table_font_tag $fk $table_font_tag $fe \n"; echo " "; + $temp = urlencode($$tt); + echo ""; + if ($use_textarea) { + echo "\n"; + } else { + echo "\n"; + } $j++; endwhile; echo "
\n
\n"; - echo "
\n"; + echo "
\n\n"; + echo "\n"; echo "\n"; } echo "