<?php
class Connect
{
//public $error;
public function mysqlConnect()
{
mysql_query("SET COLLATION_CONNECTION = 'utf8_general_ci'"); header('Content-Type: text/html; charset=utf-8'); $this->db = $link;
return $link;
}
}
?>
PD9waHAgCgpjbGFzcyBDb25uZWN0CnsKICAgIC8vcHVibGljICRlcnJvcjsKICAgIAogICAgcHVibGljIGZ1bmN0aW9uIG15c3FsQ29ubmVjdCgpCiAgICB7CiAgICAgICAgJGxpbmsgPSBteXNxbF9jb25uZWN0KCJsb2NhbGhvc3QiLCJyb290IiwiMSIpOwogICAgICAgICRkYiA9IG15c3FsX3NlbGVjdF9kYigidGFyaWgiLCRsaW5rKTsKICAgICAgICBteXNxbF9xdWVyeSgiU0VUIE5BTUVTIHV0ZjgiKTsKICAgICAgICBteXNxbF9xdWVyeSgiU0VUIENIQVJBQ1RFUiBTRVQgdXRmOCIpOwogICAgICAgIG15c3FsX3F1ZXJ5KCJTRVQgQ09MTEFUSU9OX0NPTk5FQ1RJT04gPSAndXRmOF9nZW5lcmFsX2NpJyIpOwogICAgICAgIGhlYWRlcignQ29udGVudC1UeXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgnKTsKICAgICAgICAkdGhpcy0+ZGIgPSAkbGluazsKICAgICAgICByZXR1cm4gJGxpbms7CiAgICB9Cn0KPz4=