$resellerid = $row['resellerid']; $brandname = $row['brandname']; $rootID = $row['rootID']; $war = $row['war']; $slots = $row['slots']; if (($row['gamebinary'] == 'hlds_run' or $row['gamebinary'] == 'srcds_run') and $row['tvenable'] == 'Y') { $slots++; } if ($lendserver == 'Y' and $lendActive == 'Y') { $lid = $row['lend_id']; $shutdownemptytime = $resellersettings[$resellerid]['shutdownemptytime']; $elapsed = round((strtotime('now') - strtotime($row['lend_started'])) / 60); } } if ($v['gq_online'] == 1) { $name = normalizeName($v['gq_hostname']); $numplayers = $v['gq_numplayers']; $maxplayers = $v['gq_maxplayers']; $map = $v['gq_mapname']; $password = $v['gq_password'] == 1 ? 'Y' : 'N'; } else { $name = 'OFFLINE'; $numplayers = 0; $maxplayers = 0; $map = ''; $password = '******'; } $lendStop = array(); // Check lendserver specific settings if (isset($userid) and isset($lendserver) and $lendserver == 'Y') { // Running but no lend information in temp table
/** * Returns true if the plugin $plugin is already loaded. * * @param null|string $plugin * @return array|bool */ public static function loaded($plugin = null) { $plugin = $plugin === null ? $plugin : normalizeName($plugin); return parent::loaded($plugin); }
/** * Splits a dot syntax plugin name into its plugin and filename. * * @param string $name * @param bool|true $fallback * @return array */ public function pluginSplit($name, $fallback = true) { $plugin = null; list($first, $second) = pluginSplit($name); if (Plugin::loaded($first) === true) { $name = $second; $plugin = $first; } if (isset($this->plugin) && !$plugin && $fallback) { $plugin = $this->plugin; } return [normalizeName($plugin), $name]; }