载转老外编写的一个maillist源代码_PHP
admin.php3 $program_name Version: $ver $admin_name:
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"
Administration:
.php3?admin">
$admin_username:
$admin_password:
$send">
";
}
else if($string==’admin’)
{
if($adminuser1==$adminuser)
{
if($adminpass1==$adminpass)
{
echo"
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
";
}
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:
?>
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
INCLUDE"layout.inc.php3";
INCLUDE"config.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");
echo"Table "$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"
.php3?delme">
E-Mail:
$password:
$send">
";
}
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-Type" content="text/html; charset=ISO-8859-1">
description"
content="">
keywords"
content="">
distribution" content="global">
robots" content="index">
robots" content="follow">
revisit-after" CONTENT="1 days">
language" content="">
author" content="">
copyright" content="">
programmer" content="Marcel Beerta (www.game-center.de)">
0" leftmargin="0" bgColor=#040732 link=#ffc600 text=#ffffff vLink=#ffc600
style="font-family: Verdana; color: #FFFFFF">";
}
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";
?&g

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











Linux에서 컬 버전을 업데이트하려면 다음 단계를 따르세요. 현재 컬 버전을 확인하세요. 먼저 현재 시스템에 설치된 컬 버전을 확인해야 합니다. 터미널을 열고 다음 명령을 실행합니다. 컬 --version 이 명령은 현재 컬 버전 정보를 표시합니다. 사용 가능한 컬 버전 확인: 컬을 업데이트하기 전에 사용 가능한 최신 버전을 확인해야 합니다. 최신 버전의 컬을 찾으려면 컬의 공식 웹사이트(curl.haxx.se)나 관련 소프트웨어 소스를 방문하세요. 컬 소스 코드 다운로드: 컬 또는 브라우저를 사용하여 선택한 컬 버전의 소스 코드 파일(일반적으로 .tar.gz 또는 .tar.bz2)을 다운로드합니다.

C 언어에서 if 문은 일반적으로 단일 조건에 따라 특정 코드 블록을 실행하는 데 사용됩니다. 그러나 여러 조건을 결합하여 &&, || 및 !와 같은 논리 연산자를 사용하여 결정을 내릴 수 있습니다. 여러 조건을 판단하기 위해 논리적 AND(&&)를 사용하고, 하나 이상의 조건을 판단하기 위해 논리적 OR(||)를 사용하고, 단일 조건의 부정을 판단하기 위해 논리적 NOT(!)을 사용하고, if 문을 중첩하고 괄호를 사용하는 것을 포함합니다. 우선순위를 명확히 하기 위해.

C언어에서 지수함수 작성법 지수화(exponential)는 수학에서 흔히 사용되는 연산으로, 숫자 자체를 여러 번 곱하는 연산을 나타냅니다. C 언어에서는 거듭제곱 함수를 작성하여 이 함수를 구현할 수 있습니다. 다음은 C 언어로 거듭제곱 함수를 작성하는 방법을 자세히 소개하고 구체적인 코드 예제를 제공합니다. 함수의 입력과 출력을 결정합니다. 거듭제곱 함수의 입력에는 일반적으로 밑수와 지수라는 두 가지 매개변수가 포함되며 출력은 계산된 결과입니다. 그러므로 우리는

C#을 사용하여 Bloom 필터 알고리즘을 작성하는 방법 Bloom Filter(BloomFilter)는 요소가 집합에 속하는지 확인하는 데 사용할 수 있는 매우 공간 효율적인 데이터 구조입니다. 기본 아이디어는 여러 개의 독립적인 해시 함수를 통해 요소를 비트 배열로 매핑하고 해당 비트 배열의 비트를 1로 표시하는 것입니다. 원소가 집합에 속하는지 판단할 때 해당 비트 배열의 비트가 모두 1인지 여부만 판단하면 된다. 비트 중 하나라도 0이면 해당 원소가 집합에 속하지 않는 것으로 판단할 수 있다. 블룸 필터는 빠른 쿼리와

C#을 사용하여 동적 프로그래밍 알고리즘을 작성하는 방법 요약: 동적 프로그래밍은 최적화 문제를 해결하기 위한 일반적인 알고리즘이며 다양한 시나리오에 적합합니다. 이 기사에서는 C#을 사용하여 동적 프로그래밍 알고리즘을 작성하는 방법을 소개하고 특정 코드 예제를 제공합니다. 1. 동적 프로그래밍 알고리즘이란 무엇입니까? DP(동적 프로그래밍)는 중첩되는 하위 문제 및 최적의 하위 구조 속성 문제를 해결하는 데 사용되는 알고리즘 아이디어입니다. 동적 프로그래밍은 문제를 여러 하위 문제로 분해하여 해결하고 각 하위 문제에 대한 솔루션을 기록합니다.

오늘날 급속한 기술 발전의 시대에 프로그래밍 언어는 비가 내린 뒤 버섯처럼 솟아오르고 있습니다. 많은 주목을 받고 있는 언어 중 하나가 바로 Go 언어인데, 단순성, 효율성, 동시성 안전성 등 다양한 기능으로 많은 개발자들에게 사랑을 받고 있습니다. Go 언어는 뛰어난 오픈 소스 프로젝트가 많이 포함된 강력한 생태계로 유명합니다. 이 기사에서는 선택된 Go 언어 오픈 소스 프로젝트 5개를 소개하고 독자가 Go 언어 오픈 소스 프로젝트의 세계를 탐색하도록 안내합니다. KubernetesKubernetes는 자동화를 위한 오픈 소스 컨테이너 오케스트레이션 엔진입니다.

"Go 언어 개발 필수 사항: 5가지 인기 프레임워크 권장 사항" 빠르고 효율적인 프로그래밍 언어인 Go 언어는 점점 더 많은 개발자들이 선호하고 있습니다. 개발 효율성을 높이고 코드 구조를 최적화하기 위해 많은 개발자는 프레임워크를 사용하여 애플리케이션을 빠르게 구축하는 방법을 선택합니다. Go 언어의 세계에는 선택할 수 있는 훌륭한 프레임워크가 많이 있습니다. 이 기사에서는 인기 있는 Go 언어 프레임워크 5개를 소개하고 독자가 이러한 프레임워크를 더 잘 이해하고 사용할 수 있도록 구체적인 코드 예제를 제공합니다. 1.GinGin은 빠른 속도를 갖춘 경량 웹 프레임워크입니다.

호텔 예약 시스템은 호텔을 보다 효율적으로 관리하고 더 나은 서비스를 제공할 수 있도록 돕는 중요한 정보 관리 시스템입니다. C++를 사용하여 간단한 호텔 예약 시스템을 작성하는 방법을 배우고 싶다면 이 기사에서 기본 프레임워크와 자세한 구현 단계를 제공할 것입니다. 호텔 예약 시스템의 기능적 요구 사항 호텔 예약 시스템을 개발하기 전에 구현을 위한 기능적 요구 사항을 결정해야 합니다. 기본적인 호텔 예약 시스템은 최소한 다음 기능을 구현해야 합니다. (1) 객실 정보 관리: 객실 유형, 객실 번호, 객실 포함
