Login   Register  
PHP Classes
elePHPant
Icontem

File: uda_iskariot.test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kaurov Eugene  >  Uda Iskariot  >  uda_iskariot.test.php  >  Download  
File: uda_iskariot.test.php
Role: Example script
Content type: text/plain
Description: test now how it works
Class: Uda Iskariot
Show email addresses as images to avoid harvesting
Author: By
Last change:
Date: 9 years ago
Size: 606 bytes
 

Contents

Class file image Download
<?
//check for installing test table
require "./tr_inc.php";
require 
"./tr_dbaccess.php";
if (@
mysql_result(mysql_query("SELECT count(f_mail) FROM tr_firms"),0)==0)
{
    
mysql_query
    
("
    CREATE TABLE tr_firms
    (
        id int(12)   NOT NULL auto_increment,
        f_mail       varchar(120) default NULL,
        PRIMARY KEY (id)
    )
    "
);
    
mysql_query("INSERT INTO tr_firms(f_mail) VALUES ('test@trader.poltav.com')");
}

print
"<a href='./hide_mail.php?id=1&action=send' target=mailto_frame><img src='./hide_mail.php?id=1' border=0></a><IFRAME NAME='mailto_frame' width='0' height='0'></IFRAME>";
?>