Zeile 8 | Zeile 8 |
---|
* */
|
* */
|
| /** * @param int $is_install * @param string $prev_version * @param string $current_version * @param string $charset * * @return array */
|
function build_server_stats($is_install=1, $prev_version='', $current_version='', $charset='') { $info = array();
| function build_server_stats($is_install=1, $prev_version='', $current_version='', $charset='') { $info = array();
|
Zeile 255 | Zeile 263 |
---|
if(function_exists('sha1')) {
|
if(function_exists('sha1')) {
|
$info['id'] = sha1($id);
| $info['clientid'] = sha1($id);
|
} else {
|
} else {
|
$info['id'] = md5($id);
| $info['clientid'] = md5($id);
|
}
$string = "";
| }
$string = "";
|
Zeile 270 | Zeile 278 |
---|
$amp = "&"; }
|
$amp = "&"; }
|
$server_stats_url = 'http://community.mybb.com/stats.php?'.$string;
| $server_stats_url = 'http://community.mybb.com/server_stats.php?'.$string;
|
$return = array(); $return['info_sent_success'] = false;
| $return = array(); $return['info_sent_success'] = false;
|
Zeile 278 | Zeile 286 |
---|
{ $return['info_sent_success'] = true; }
|
{ $return['info_sent_success'] = true; }
|
$return['info_image'] = "<img src='{$server_stats_url}&img=1' />";
| $return['info_image'] = "<img src='".$server_stats_url."&img=1' />";
|
$return['info_get_string'] = $string;
return $return;
| $return['info_get_string'] = $string;
return $return;
|