Download a maillist source code compiled by foreigners

Source: Internet
Author: User
Admin. php3? INCLUDE (layout. inc. php3); INCLUDE (config. inc. php3); INCLUDE (. lang $ language. inc. php3); print_header ($ admin_name); print_navbar (); $ stringimplode ($ argv,); $ string2explode (, $ string); if ($ string 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:





";

}



Else if ($ string = 'admin ')

{

If ($ adminuser1 = $ adminuser)

{

If ($ adminpass1 = $ adminpass)

{

Echo"

$ Admin_name:



Admin. php3? Send & $ adminuser1 & $ adminpass1 "> $ send_mail





Admin. php3? Users & $ adminuser1 & $ adminpass1 "> $ show_users





Admin. php3? Delall & $ adminuser1 & $ adminpass1 "> $ del_table





Tablecreator. php3 "> $ 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

























Width = 25%> Name: Width = 25%>? /Td> ";$ Query = "SELECT * from $ maillist_table ";$ Result = mysql_db_query ($ database_name, $ query, $ conn) or die ("$ database_error ");While ($ data = mysql_fetch_row ($ result )){Echo" ";}Echo"
$ Prename: Email
$ Data [0] $ Data [1] $ Data [2]
Href = "admin. php3? Deluser & $ string2 [1] & $ string2 [2] & $ data [2] "> $ delete


";





}

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:





















";



}

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

Index. php3? Delete "> $ here $ click...



































";

}



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"




Content = "">


Content = "">



















$ Title




Style = "font-family: Verdana; color: # FFFFFF"> ";

}



Function print_navbar ()

{

Echo"





";





}





Function print_footer ()

{

Echo"









";

}





Function print_back ()

{

Echo"



<Back



";

}



?>





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 ages: '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 = 'cel _ 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 ";

? & G

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.