= 0.5.0 if (empty($sql)) { // Add WHERE $sql = " WHERE `surname` NOT LIKE '{?tester_user_surname_prefix?}%%'"; } else { // Add AND $sql .= " AND `surname` NOT LIKE '{?tester_user_surname_prefix?}%%'"; } // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done! - sql(' . strlen($sql) . ')=' . $sql); return $sql; } // Filter for including tester users in WHERE statements function FILTER_TESTER_USER_INCLUSION_SQL ($sql) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called! - sql(' . strlen($sql) . ')=' . $sql); // Add it, as of this filter is registered only with ext-user >= 0.5.0 if (empty($sql)) { // Add WHERE $sql = " WHERE `surname` LIKE '{?tester_user_surname_prefix?}%%'"; } else { // Add AND $sql .= " AND `surname` LIKE '{?tester_user_surname_prefix?}%%'"; } // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done! - sql(' . strlen($sql) . ')=' . $sql); return $sql; } // Filter to add SQL columns to user registration function FILTER_TESTER_USER_REGISTRATION_ADD_SQL_COLUMNS ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Does the admin create a tester account? if ((isAdmin()) && (isTesterUserName(postRequestElement('surname')))) { // Yes, these accounts never needs confirmation (you can still test it by creating a usual account). setPostRequestElement('status', 'CONFIRMED'); } // END - if // Return filter data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=
'.print_r($filterData,true).'
'; return $filterData; } // Filter to add 'converting' SQL statements function FILTER_ADD_USER_DATA_CONVERT_SQL_COLUMNS ($sql) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called! - sql(' . strlen($sql) . ')=' . $sql); // Add it $sql .= ', UNIX_TIMESTAMP(`lock_timestamp`) AS `lock_timestamp`'; // Return the data for next filter //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done! - sql(' . strlen($sql) . ')=' . $sql); return $sql; } // Filter for handling user subids (called by referral link) function FILTER_HANDLE_USER_SUBID ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Return filter data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=
'.print_r($filterData,true).'
'; return $filterData; } // Filter for adding SQL columns on user registration for subid function FILTER_SUBID_USER_REGISTRATION_ADD_SQL_COLUMNS ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Is the sub id set in session? if (isSessionVariableSet('subid')) { // Okay, add subid here addExtraRegistrationColumns(', `subid`'); addExtraRegistrationData(", '" . getSession('subid') . "'"); } // END - if // Return filter data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); return $filterData; } // [EOF] ?>