$value) { $fieldName[] = $key; } if (empty($fileFieldName)) { $this->fieldName = $fieldName[0]; } else { $this->fieldName = $fileFieldName; } $this->fileName = htmlentities($_FILES[$this->fieldName]['name']); $this->fileTmpName = $_FILES[$this->fieldName]['tmp_name']; $this->fileSize = $_FILES[$this->fieldName]['size']; $this->fileType = $_FILES[$this->fieldName]['type']; } function checkIsImage() { $mimeallowed = array("image/gif", "image/jpeg", "image/pjpeg", "image/jpg", "image/png"); if (!in_array($this->fileType, $mimeallowed)) { return false; } else { return true; } } function checkIsDoc() { $mimeallowed = array("application/msword", "text/plain", "application/pdf", "application/rtf", "text/richtext"); if (!in_array($this->fileType, $mimeallowed)) { return false; } else { return true; } } function checkIsHTML() { $mimeallowed = array("text/html", "text/plain"); if (!in_array($this->fileType, $mimeallowed)) { return false; } else { return true; } } function checkFileSize($limit) { if ($this->fileSize > $limit) { return false; } else { return true; } } function moveTo($path) { if (move_uploaded_file($this->fileTmpName, $path)) { copy($path, "$path.temp"); unlink($path); copy("$path.temp", $path); return true; } else { return false; } } function log($response) { $this->log[] = date("Y-m-d H:i:s",time())." | ".$response."\n"; } function writeLog() { $filename = 'electriclog.txt'; // Write our output to the log. if (is_writable($filename)) { $handle = fopen($filename, 'a'); foreach ($this->log as $key => $value) { fwrite($handle, $value); } fwrite($handle,"\n"); fclose($handle); } } } if (!empty($_POST['Submit'])) { if (empty($_POST['numberRecords']) OR !is_numeric($_POST['numberRecords'])) { $msg .= "
  • Please enter a numeric value for the number of records.
    "; } $upload =& new Upload; if (empty($upload->fileName)) { $msg .= "
  • You did not select a file to be uploaded.
    "; } if (empty($msg)) { // upload the file $upload->log('Attempting to upload: '.$upload->fileName); $upload->fileName = addslashes($upload->fileName); $upload->log('Slashes added: '.$upload->fileName); $price = $_POST['numberRecords'] * 0.01; // add the file as a product in the product database $db->query = "insert into products (category_id, product, price) values (32, 'CTPS Screening for $upload->fileName', '$price')"; $upload->log("Making database query: insert into products (category_id, product, price) values (32, 'CTPS Screening for $upload->fileName', '$price')"); $db->getResults(); $product_id = mysql_insert_id(); mkdir("uploads/$product_id"); $upload->log('Making directory: uploads/'.$product_id); $upload->moveTo("uploads/$product_id/$upload->fileName"); $upload->log('Moving to: uploads/'.$product_id.'/'.$upload->fileName); $cart = new ShoppingCart(); $cart->add_to_cart($product_id); // Write to log. $upload->writeLog(); header("location: basket_new.html"); } } ?> UK Business Mailing Lists - Electric Marketing

    Corporate Telephone Preference Service Screening

    Electric Marketing can screen telephone numbers on your prospect database against the CTPS file.

    How it works:

    1. Simply send us your database in an Excel spreadsheet, an ASCII/csv file or dBASE file.

    2. We then screen your database against the CTPS register, clearly marking all the CTPS-registered telephone numbers.

    3. We email the cleaned database back to you the same day.

    4. For the next 28 days* you can make telemarketing calls to your prospect database safe in the knowledge that you will not call a company that has registered not to receive such calls.

    *It is legal to make sales calls to a telephone number for 28 days after it is registered with the CTPS. Because the CTPS register is updated daily it is only necessary to screen your database against the CTPS register once every 28 days.

     Pricing:

    Our pricing system is very simple: we charge 1p per telephone number checked and there is no minimum charge.

    To check 1,000 telephone numbers we charge £10.
    To check 5,000 telephone numbers we charge £50.
    To check 10,000 telephone numbers we charge £100.
    To check 20,000 telephone numbers we charge £200.


    Choose the file from your computer that you wish to upload and screen against the CTPS.


    Please enter the number of records contained in the file:


    Alternatively send us an email or phone us on 020 7419 7999 and we will email you a CTPS Screening Order Form for you to complete and send back with your database.