diff --git a/cms/add_show.php b/cms/add_show.php index a0bb65d..47dc7b7 100644 --- a/cms/add_show.php +++ b/cms/add_show.php @@ -1,5 +1,9 @@ 40000 ) { +if ( empty($_POST["notes"]) or strlen($_POST["notes"]) > 100000 ) { problem("ERROR: Notes are missing not less than max"); } logextra( "Notes are not missing and are less than max" ); @@ -294,7 +298,7 @@ else { $ep_num = intval($ep_num); } -$result = mysqli_query($connection, "SELECT ep_num FROM reservations WHERE ep_num='$ep_num' AND status='METADATA_PROCESSED';"); +$result = mysqli_query($connection, "SELECT ep_num FROM reservations WHERE ep_num='$ep_num' AND status='SHOW_SUBMITTED';"); if (!isset($result)) { problem("ERROR: Cant get info from reservations db"); } @@ -303,7 +307,7 @@ $db_ep_num = $db_ep_num_array[0]; mysqli_free_result($result); if ( $db_ep_num != $ep_num ){ - problem("ERROR: Cant find $ep_num with status of METADATA_PROCESSED"); + problem("ERROR: Cant find $ep_num with status of SHOW_SUBMITTED"); } $result = mysqli_query($connection, "SELECT `id` FROM `eps` WHERE `id` = '$ep_num';"); @@ -381,6 +385,8 @@ if (mysqli_errno( $connection )) { problem("ERROR: MySQL error- The show $ep_num was not added to the eps db.\n$error"); } +logextra( "Added the entry: $query_add" ); + $result = mysqli_query($connection, "SELECT `id` FROM `eps` WHERE `id` = '$ep_num';"); if (!isset($result)) { problem("ERROR: DB problem - The show $ep_num has not been added to the eps db"); diff --git a/cms/assets.php b/cms/assets.php index d8b1b69..3962d81 100644 --- a/cms/assets.php +++ b/cms/assets.php @@ -1,4 +1,8 @@