�EPHP���g���閳���T�[�o���
�T�[�o�� | ���� |
�o�^ | �e�� |
FTP | �o�i�[ |
CGI | DB | ���ڽ |
�ް�ޮ� | �X�V |
require ('mydb.inc.php');
mysql_connect($server,$user,$password);
@mysql_select_db($db) or die( "Unable to select database");
/*
if(isset($_POST['submit'])){
$ftp = array_map('htmlspecialchars', $_POST['ftp']);
$cgi = array_map('htmlspecialchars', $_POST['ftp']);
unset($_POST['ftp']);
unset($_POST['cgi']);
$_POST = array_map('htmlspecialchars', $_POST);
extract($_POST);
if(!$name) die("�T�[�o�[�������͂���Ă܂���");
$regurl = ereg_replace("^http://", "", $regurl);
$url = ereg_replace("^http://", "", $url);
if (preg_match("/html?|org$/", $url)) exit;
if(!$url) die("�T�[�o�[��URL�����͂���Ă܂���");
if($ftp) $ftp=implode(",", $ftp);
if($cgi) $cgi=implode(",", $cgi);
if($version2) $version=$version . '+' . $version2;
if($space2) $space = $space2;
$updata = gmdate("y-m-d",time()+9*3600);
$query="insert into $table values('','$name','$lang','$url','$regurl','$ftp','$space','$banner','$cgi','$sql','$adress','$version','$sample','$com','$updata')";
$result = mysql_query($query);
}
*/
/*Search database for name*/
$query="select * from $table group by name";
$result=mysql_query($query) or die ("Invalid query");
$total= mysql_numrows($result);
while ($row = mysql_fetch_assoc($result)) {
$row = array_map('htmlspecialchars', $row);
if($row[space]=="0") $row[space]="??";
if(!$row[cgi]) $row[cgi]="�|";
//Alternate row colors in our table
echo ($i % 2) ? "" : " ";
echo '';
echo ''.$row[name].'';
echo ' | '.$row[lang].' | ';
echo ($row[regurl]) ? '�o�^' : '�|';
echo ' | '.$row[space].'MB | '.$row[ftp].' | ';
echo ''.$row[banner].' | '.$row['cgi'].' | ';
echo ''.$row[sql].' | '.$row[adress].' | ';
echo ($row[sample]) ? ''.$row[version].'' : $row[version];
echo ' | '.update.' | ';
$i++;
}
echo "\n ";
?>
|