mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Fixing some errors at the install endscreen (#75)
* Fixed some bugs at last install screen (unset country and HTTPS protocol definition)
* Correction: allow_url_fopen is not to make any distinction between HTTP/HTTPS
* Black skull bug when joining serverInfo
* * latin is good but utf8 is better
* also changed ENGINE to InnoDB
* * use curl as alternative option for reporting install
* * you forgot this
* * fix typo
* Revert "* fix typo"
This reverts commit 6f24509dd6
.
* * fix typo
* * this is the correct way to hide that notice
This commit is contained in:
@@ -121,7 +121,18 @@ else {
|
||||
));
|
||||
|
||||
if(!isset($_SESSION['installed'])) {
|
||||
file_get_contents('http://my-aac.org/report_install.php?v=' . MYAAC_VERSION . '&b=' . urlencode(BASE_URL));
|
||||
$report_url = 'http://my-aac.org/report_install.php?v=' . MYAAC_VERSION . '&b=' . urlencode(BASE_URL);
|
||||
if (function_exists('curl_version'))
|
||||
{
|
||||
$curl = curl_init();
|
||||
curl_setopt($curl, CURLOPT_URL, $report_url);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
|
||||
curl_exec($curl);
|
||||
curl_close($curl);
|
||||
}
|
||||
else if (ini_get('allow_url_fopen') ) {
|
||||
file_get_contents($report_url);
|
||||
}
|
||||
$_SESSION['installed'] = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user