Update depreciated split()

Replace split() with explode()
Update version number, copyright, and header formatting.
This commit is contained in:
Eric Fawcett 2017-10-13 10:29:21 -04:00 committed by GitHub
parent b73da4fd8a
commit 6a8bb1e9da
1 changed files with 14 additions and 14 deletions

View File

@ -1,18 +1,18 @@
<?php
/************************************************************************
* SendForm Version 0.99 *
* Created 10 May 2005 *
* Modified 04 Nov 2010 *
* Questions/Comments: eric.fawcett@gmail.com *
* *
* COPYRIGHT NOTICE *
* Copyright 2010 Eric T. Fawcett *
* *
* Any part of SendForm can be used or modified in anyway so long *
* as this copyright notice and the above comments stay intact. *
* *
* By using this code you agree to indemnify Eric T. Fawcett *
* from any liability that might arise from its use. *
* SendForm Version 0.99.1 *
* Created 10 May 2005 *
* Modified 12 Oct 2017 *
* Questions/Comments: eric.fawcett@gmail.com *
* *
* COPYRIGHT NOTICE *
* Copyright 2017 Eric T. Fawcett *
* *
* Any part of SendForm can be used or modified in anyway so long *
* as this copyright notice and the above comments stay intact. *
* *
* By using this code you agree to indemnify Eric T. Fawcett *
* from any liability that might arise from its use. *
************************************************************************/
session_start();
// $referals is a list of web site domains seperated by commas. Only requests originating from
@ -130,7 +130,7 @@
}
// Check for all user required fields
if(isset($_POST['required'])) {
$urequired = split(",", "recipient, " . $_POST['required']);
$urequired = explode(",", "recipient, " . $_POST['required']);
foreach($urequired as $req) {
$req = trim($req);
if($req == "email" && isset($_POST[$req]) && !validemail($_POST[$req]))