您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

老外编写的一个maillist源代码

2026/1/5 6:08:19发布12次查看
源代码
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 version: $ver
administration:
$admin_username:
$admin_password:
;
}
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) or die($cant_del_table);
echo$table_deleted;
}
else { echo$noaccess; }
    }
    else { echo$noaccess; }
        }
else if($string2[0]==@#users@#)
{
if($string2[1]==$adminuser)
    {
    if($string2[2]==$adminpass)
{
echo
      $headline_users
name: $prename: e-mail
;
      $query=select * from $maillist_table;
      $result=mysql_db_query($database_name,$query,$conn) or 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) or 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:
$topic:
$message:
;
}
else { echo$noaccess; }
    }
    else { echo$noaccess; }
        }
else if($string2[0]==@#sendmail@#)
{
if($string2[1]==$adminuser)
    {
    if($string2[2]==$adminpass)
{
                $query=select * from $maillist_table;
                $result=mysql_db_query($database_name,$query,$conn) or die($database_error);
                while($data=mysql_fetch_row($result))
                        {
                        mail($data[2],$subject,$text,from: $from\nx-mailer: $mailer\nreply-to: $reply\n) or die($send_error);
}
                        echo
                     $xxx_has_been_sent:
$topic:
$subject
$message:
$text
;
}
else { echo$noaccess; }
    }
    else { echo$noaccess; }
        }
print_back();
    print_footer();
?>
english.inc.php3
$mailadd_text=if you are in our newsletter, you get an e-mail with informations
       about our homepage every month. just fill in the following form.
to unsubscribe click;
$remember_pass=please remember your password, otherwise, you can@#t delete your mailadress from the list;
$wrong_mail=you@#ve entered a bad e-mail adress;
$admin_name=newsletter administration;
$program_name=newsletter-manager;
$admin_username=admin-username;
$admin_password=admin-password;
$send=submit;
$reset=reset;
$noaccess=access denied;
$send_mail=send a mail to the list;
$show_users=show/delete members;
$del_table=delete table $maillist_table;
$create_table=create table $maillist_table;
$cant_del_table=can@#t delete table $maillist_table;
$table_deleted=table $maillist_table has been deleted;
$headline_users=every user on one place:;
$prename=prename;
$database_error=error on database: $database_name;
$delete=delete;
$could_not_be_deleted=could not be deleted;
$has_been_deleted=has been deleted;
$topic=topic;
$message=message;
$send_error=send error;
$xxx_has_been_sent=the following has been sent;
$already_there=you are already in the list!!!;
$xxx_has_been_entered=the following has been entered;
$password=password;
$cant_find_entry=can@#t find entry!;
$isnt_in_db=$email is not entered in the database;
$error_del=error while trying to delete;
$entry_del=entry has been deleted;
$here=here;
$click=;
$all_fields_must_be_edited=error! all fields have to be filled in completely!;
?>
tablecreator.php3
includelayout.inc.php3;
includeconfig.inc.php3;
print_header(create table $maillist_table);
print_navbar();
$query=create table $maillist_table
        (name char (50) not null , vorname char (50) not null ,
email char (255) not null , pass char (10) not null ,
primary key (email), index (email), unique (email));
mysql_db_query($database_name,$query,$conn) or die(could not create table);
echotable \$maillist_table\ has been created;
print_back();
print_footer();
?>
index.php3
/******************************************************************************/
/*       */
/* mailinglisten-manager       */
/*        */
/* by: marcel beerta         */
/* http://www.supertown.de/computer/mazen/       */
/* marcel.beerta@gmx.net               */
/*       */
/******************************************************************************/
include config.inc.php3;    
    include ./lang/$language.inc.php3;    
    include layout.inc.php3;
print_header($program_name);
        print_navbar();
    $string=implode($argv, );
if ($string==@#add@#)
    {
     if($name&&$prename&&$email&&$pw)
     {
    $query=insert into $maillist_table(name,vorname,email,pass) values(@#$name@#,@#$vorname@#,@#$email@#,@#$pw@#);
    mysql_db_query($database_name,$query,$conn) or die($already_there);
echo
$xxx_has_been_entered
name: $name
$prename: $vorname
e-mail: $email
$password: $pw
$remember_pass
;
}
else
{
echo$all_fields_must_be_edited;
}
}
else if($string==@#delete@#)
    {
    echo
e-mail:
$password:
;
}
else if($string==@#delme@#)
    {
    $query1=select * from $maillist_table where $maillist_table.email like @#$email@#;
    $result=mysql_db_query($database_name,$query1,$conn) or die($cant_find_entry);
    $data=mysql_fetch_row($result) or die($isnt_in_db
);
    if($data[3]==$pw)
{
$query=delete from $maillist_table where email=@#$email@#;
mysql_db_query($database_name,$query,$conn) or die($error_del);
echo$entry_del;
}
    else
{
echo$noaccess;
}
    }
else
    {
    echo$mailadd_text
$here $click ...
name:
$prename:
e-mail:
$password:
;
    }
print_back();
print_footer();
?>
layout.inc.php3
/******************************************************************************/
/*       */
/* layout datei ...       */
/*       */
/* einfach auf eigene layout-wuensche anpassen ...       */
/*       */
/* by marcel beerta       */
/* http://www.supertown.de/computer/mazen/       */
/*       */
/******************************************************************************/
function print_header ($title)
{
echo
$title
;
}
function print_navbar ( )
{
echo
;
}
function print_footer ( )
{
echo
;
}
function print_back ( )
{
echo
;
}
?>
config.inc.php3
/*****************************************************************************/
/*                                                                           */
/*                           datenbank-connector                             */
/*                             marcel beerta                                */
/*                             http://www.supertown.de/mazen/maillist        */
/*****************************************************************************/
/**************************************/
/* just edit the following few lines: */
/**************************************/
//admin-username:
$adminuser=@#szw@#;
//admin-password:
$adminpass=@#szw@#;
//language
$language=@#english@#; //other languages: @#german@#,@#english@#
//the hostname of the mysql-server
$hostname = @#localhost@#;
//mysql-server username
$user = @#root@#;
//mysql-server password
$pass = @#@#;
//database-name
$database_name = @#maillist@#;
//maillinglist-table
$maillist_table=@#marcel_maillist@#;
//from-e-mail
$from=@#sszw@163.net@#;
//reply-to-e-mail
$reply=@#sszw@163.net@#;
//x-mailer
$mailer=@#php-maillist by mazen@#;
/************************************************/
/* don@#t edit this, if you don@#t know, what you */
/* do...         */
/************************************************/
$conn=mysql_pconnect ($hostname,$user,$pass);
$ver=1.0.0;
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product