Can;t quite work out how the DBViewer in V5 works - compared to V4. I can't work out how to display the data I want from a table.
Can't find any documentation with search.
Can't find any documentation with search.
cf_id -> id (the primary key column)
cf_uid -> uniq_id
cf_created -> created
cf_modified -> modified
cf_ipaddress -> (no longer added automatically)
cf_created_by -> (no longer added automatically)
cf_modified_by -> (no longer added automatically)
cf_user_id -> user_id
<?php
$form->data['ip_address'] = getIp();
function getIp() {
$headers = array(
'HTTP_VIA',
'HTTP_X_FORWARDED_FOR',
'HTTP_FORWARDED_FOR',
'HTTP_X_FORWARDED',
'HTTP_FORWARDED',
'HTTP_CLIENT_IP',
'HTTP_FORWARDED_FOR_IP',
'VIA',
'X_FORWARDED_FOR',
'FORWARDED_FOR',
'X_FORWARDED',
'FORWARDED',
'CLIENT_IP',
'FORWARDED_FOR_IP',
'HTTP_PROXY_CONNECTION',
'REMOTE_ADDR'
);
foreach( $headers as $h ) {
if ( isset($_SERVER[$h]) ) {
return $_SERVER[$h];
}
}
return '';
}
?>