asanchez78 / comicdb

A PHP application for maintaining a database of a comic book collection. It's really old and kind of embarrassing. You probably shouldn't use this.
6 stars 1 forks source link

Change $allowRegistration to "yes" #132

Closed Alexisback closed 3 years ago

Alexisback commented 3 years ago

sorry, I'm not a programmer, I'm in the beginning with the PHP, here it says to set $ allowregistration to "yes", but in the code it is set to true <?php require_once('../views/head.php'); require_once(__ROOT__.'/classes/Registration.php'); $registration = new Registration(); $allowRegistration = true; if ($allowRegistration != true) { $messageNum = 53; } // show potential errors / feedback (from registration object) if (isset ( $registration )) { if ($registration->errors) { foreach ( $registration->errors as $error ) { $errorMessage .= $error; } $isError = true; } if ($registration->messages) { foreach ( $registration->messages as $message ) { $successMessage .= $message; } $isRegistered = true; } } ?>

asanchez78 commented 3 years ago

Honestly, this code is really bad. I'm a little embarrassed that anyone is actually looking at it. I'm currently working on a complete rewrite of this whole thing using a REST API backend. At any rate, I changed the wording of the README.