- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
- require($INC);
-}
-
-//
-function registerMustFillout () {
- $result = SQL_QUERY("SELECT `field_name`, `field_required` FROM `{!_MYSQL_PREFIX!}_must_register` ORDER BY `id` ASC",
- __FUNCTION__, __LINE__);
-
- while ($content = SQL_FETCHARRAY($result)) {
- $value = '';
- if ($content['field_required'] == 'Y') $value = "<span class=\\\"guest_failed\\\"> (*)</span>";
- // @TODO Rewrite these constants
- $eval = "define('MUST_".strtoupper($content['field_name'])."', \"".$value."\");";
- eval($eval);
- } // END - while
-
- // Free memory
- SQL_FREERESULT($result);
-
- // Also fill other constants
- // @TODO Rewrite these constants, too
- define('MUST_GENDER', "<span class=\"guest_failed\"> (*)</span>");
- define('MUST_ADDY' , "<span class=\"guest_failed\"> (*)</span>");
- define('MUST_BIRTH' , "<span class=\"guest_failed\"> (*)</span>");
- define('MUST_MARKER', "<span class=\"guest_failed\"> (*)</span>");