/* * Patch for filter_var() */ if(!function_exists('filter_var')){ define('FILTER_VALIDATE_IP', 'ip'); define('FILTER_FLAG_IPV4', 'ipv4'); define('FILTER_FLAG_IPV6', 'ipv6'); define('FILTER_VALIDATE_EMAIL', 'email'); define('FILTER_FLAG_EMAIL_UNICODE', 'unicode'); function filter_var($variable, $filter, $option = false){ if($filter == 'ip'){ if($option == 'ipv4'){ if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } if($option == 'ipv6'){ if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } if($filter == 'email'){ if($option == 'unicode' || $option == false){ if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){ $variable = $matches[1]; return $variable; } } } } }
i havent got to rent any aircraft for myself, one thing that is on my mind tho,
is there a feature that makes renting a contract? like, you cant return the aircraft unless you pay a termination fee and the lease price for the rest of the lease time?
if not, im for this, then again, the only leases i know about are for renting apartments, so maybe it is different for cars and aircraft alike.
But, just to get it straight, you can have two planes and lease them out both right?
or even manual activation by StephenM? :P
It is spelt 'original' :D
:D Im actually useful for something!
I have added 2 major security features for leasing:
1. You must have more than one aircraft in your fleet before you can lease any out or sell aircraft. This is designed to stop feeder accounts for a start helping airlines out at rediculous prices. Its designed to stop one side of the cheating. Once you have a second aircraft however this check is not valid.
2. Any aircraft can no longer be leased for less than 5% of value or greater than 50% of original value. So as an aircraft ages these buffers do not change. Again this is to stop cheating by feeding accounts through lease outs. Also stopped with auto-bankruptcy.
Any feedback on these 2 features let me know.
i havent got to rent any aircraft for myself, one thing that is on my mind tho,
is there a feature that makes renting a contract? like, you cant return the aircraft unless you pay a termination fee and the lease price for the rest of the lease time?
if not, im for this, then again, the only leases i know about are for renting apartments, so maybe it is different for cars and aircraft alike.