Location: PHPKode > scripts > Linker IMG > linker-img/mailling.php
<?php

//=====================================
// LINKER Category Engine
//=====================================
// Filename : mailling.php
// Path  : Main directory
// last update : 2002/03/13
// Desc : Mailling List
//=====================================

//=====================================
// Info File include
//=====================================

include ("./function/base_info.php");
include ("./function/main_func.php");
include ("./function/$Sdb_type.php");

$lan_dir = $HTTP_COOKIE_VARS[cook_lan];
if ($lan_dir && file_exists("./$lan_dir/u_common.php")) 
include ("./$lan_dir/u_common.php"); 
else include ("./$Slang/u_common.php"); 

//=====================================
// DB_LAYER
//=====================================

$db = new DB_Sql($Sdb_host,$Sdb_user,$Sdb_pass,$Sselect_db);

//=====================================
// Input data
//=====================================

$email = trim($mailaddr);
$uptime = time();
if (!$email) errmsg($l_noaddr);


if ($m_subtype == "join") {
if (!check_email($email)) errmsg($l_error_8);
$db->query("insert into LINKER_MAIL SET email = '$email', uptime = '$uptime' ");
errmsg ($l_join_success);
}

else {
$db->query("delete from LINKER_MAIL where email='$email'");
errmsg ($l_out_success);
}

?>
Return current item: Linker IMG