PHP is fun they said. PHP is easy they said.

 

Представям ви, новото попълнение към класацията за най-зле написан, и най-зъл код който съм виждал:
// gateway е payment gateway, btw.

if (!function_exists($gateway . '_link'))
 {
 eval('function ' . $gateway . '_link($params) { return \'<form method="post" action="\'.$params[\'systemurl\'].\'/creditcard.php" name="paymentfrm"><input type="hidden" name="invoiceid" value="\'.$params[\'invoiceid\'].\'"><input type="submit" value="\'.$params[\'langpaynow\'].\'"></form>\'; }');
 }

Leave a Reply

Your email address will not be published. Required fields are marked *