/** * Unserializes the pool data. */ private function extractPool() { if (!count($this->poolData)) { $this->poolData = SerializeUtil::unserialize($this->data['data']); } }
You should have received a copy of the GNU Affero General Public License along with WOT Game. If not, see <http://www.gnu.org/licenses/>. */ define('INSIDE', true); $ugamela_root_path = '../'; include $ugamela_root_path . 'extension.inc'; include $ugamela_root_path . 'common.' . $phpEx; if (!check_user()) { header("Location: login.php"); die; } require_once LW_DIR . 'lib/util/SerializeUtil.class.php'; $alt = $neu = 0; $sql = "SELECT data\n\t\tFROM ugml_request\n\t\tWHERE `time` > " . (TIME_NOW - 86400); $result = WCF::getDB()->sendUnbufferedQuery($sql); echo "sent query ..."; while ($row = WCF::getDB()->fetchArray($result)) { $data = SerializeUtil::unserialize($row['data']); if ($data['page'] == 'overview') { $alt++; } else { if ($data['page'] == 'index' && $data['args']['page'] == 'Overview') { $neu++; } } } echo "Gesamt: " . ($alt + $neu) . "<br />"; echo "Alt: " . $alt . "<br />"; echo "Neu: " . $neu . "<br />"; echo "Alt / Neu: " . $alt / ($alt + $neu) . "<br />";