<?php
-require_once "inc/connection.php";
+require_once UPATH."/inc/connection.php";
/**
* Does a complete checkup of the network.
foreach($this->serverlist as $s) // cycle through each server
{
/* hmm if it's not unreal, skip it too */
- if (!strstr($s->server->features->software,"UnrealIRCd"))
+ if (!isset($s->server->features->software) || !strstr($s->server->features->software,"UnrealIRCd"))
continue;
/* make a single string from the array of groups */
$ourchmodes = "";
continue;
/* hmm if it's not unreal, skip it too */
- if (!strstr($serv->server->features->software,"UnrealIRCd"))
+ if (!isset($serv->server->features->software) || !strstr($serv->server->features->software,"UnrealIRCd"))
continue;
/* make a single string from the array of groups but for them this time */
foreach($this->serverlist as $s)
{
/* hmm if it's not unreal, skip it too */
- if (!strstr($s->server->features->software,"UnrealIRCd"))
+ if (!isset($s->server->features->software) || !strstr($s->server->features->software,"UnrealIRCd"))
continue;
/* make a single string from the array of groups */
$ourumodes = $s->server->features->usermodes;
continue;
/* hmm if it's not unreal, skip it too */
- if (!strstr($serv->server->features->software,"UnrealIRCd"))
+ if (!isset($serv->server->features->software) || !strstr($serv->server->features->software,"UnrealIRCd"))
continue;
$theirumodes = $serv->server->features->usermodes;
foreach ($this->serverlist as $s)
{
/* hmm if it's not unreal, skip it too */
- if (!strstr($s->server->features->software,"UnrealIRCd"))
+ if (!isset($s->server->features->software) || !strstr($s->server->features->software,"UnrealIRCd"))
continue;
$ourmods = sort_mods(json_decode(json_encode(@$rpc->server()->module_list($s->id)->list), true));
continue;
/* hmm if it's not unreal, skip it too */
- if (!strstr($serv->server->features->software,"UnrealIRCd"))
+ if (!isset($serv->server->features->software) || !strstr($serv->server->features->software,"UnrealIRCd"))
continue;
$theirmods = sort_mods(json_decode(json_encode(@$rpc->server()->module_list($serv->id)->list), true));
foreach ($this->serverlist as $s)
{
/* hmm if it's not unreal, skip it too */
- if (!strstr($s->server->features->software,"UnrealIRCd"))
+ if (!isset($s->server->features->software) || !strstr($s->server->features->software,"UnrealIRCd"))
continue;
// protocol checking
$ours = (int)$s->server->features->protocol;
foreach ($this->serverlist as $serv)
{
- if (!strstr($serv->server->features->software,"UnrealIRCd"))
+ if (!isset($serv->server->features->software) || !strstr($serv->server->features->software,"UnrealIRCd"))
continue;
$theirs = (int)$serv->server->features->protocol;