ソースコード
admin.php3
INCLUDE("layout.inc.php3");
INCLUDE("config.inc.php3");
INCLUDE("./lang/$ language.inc.php3");
print_header("$admin_name");
print_navbar();
$string=implode($argv," ");
$string2=explode("&",$string);
if($string==@#@#)
{
echo"
$program_name バージョン: $ver
管理:
";
}
else if($string==@#admin@#)
{
if($adminuser1 ==$adminuser)
{
if($adminpass1==$adminpass)
{
echo"
$admin_name:
$send_mail $show_users $del_table $create_table ";
}
else { echo"$noaccess"; }
}
else { echo"$noaccess"; }
}
else if($string2[0]==@#delall@#)
{
if($string2[1]==$adminuser)
{
if($string2[2]==$adminpass) )
{
$query="DROP TABLE $maillist_table";
mysql_db_query($database_name,$query,$conn) または die("$cant_del_table");
echo"$table_deleted";
}
else { echo"$アクセスなし"; }
}
else { echo"$noaccess"; }
}
else if($string2[0]==@#users@#)
{
if($string2[1]==$adminuser)
{
if($string2[2]==$adminpass) )
{
echo"
$headline_users
| $prename: | 電子メール | |
";
$query="SELECT * from $maillist_table";
$result=mysql_db_query($database_name,$query,$conn) または die("$database_error");
while($data=mysql_fetch_row($result))
{
echo"$data[0] | $data[1] | $data[2] | $delete |
";
}
echo"
";
}
else { echo"$noaccess"; }
}
else { echo"$noaccess"; }
}
else if($string2[0]==@#deluser@#)
{
if($string2[1]==$adminuser)
{
if($string2[2]==$adminpass) )
{
$query="DELETE FROM $maillist_table WHERE email=@#$string2[3]@#";
mysql_db_query($database_name,$query,$conn) または die("$string2[3] $could_not_be_deleted" );
echo"$string2[3] has_been_deleted";
}
else { echo"$noaccess"; }
}
else { echo"$noaccess"; }
}
else if($string2[0]==@#send@#)
{
if($string2[1]==$adminuser)
{
if($string2[2]==$ adminpass)
{
echo"
$send_mail: