Update qr.php

ereg is deprecated in PHP 5.3, replaced with preg_match