actifend_validEmail( $ripple_email )) { @$actifend_optin = $_POST['optin']; debug_log('Admin email: ' . $ripple_email); debug_log("Actifend Opt In: " . $actifend_optin); $userRegObj = new ActifendUserRegister; $ret = $userRegObj->actifend_register_step2( $ripple_email ); if (strcmp($ret, 'NO_ASSETID') === 0) { // get assetid and update $res = $this->utiObj->update_assetid( get_site_url(), $ripple_email ); if ($res) { debug_log("DB updated with asset id."); } } # Display next page $mapp = get_option('mapp_activated', 0); $actifend_dir = plugin_dir_path(__FILE__); $template = ( $mapp == 0 ? 'store.php' : 'usage.php' ); require_once(trailingslashit($actifend_dir) . $template); $error = 0; } else { $error = 1; $ERROR_MSG = "ERROR: Not a valid email address to register."; } if ($error == 1) { ?>