⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.37
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
kronolith
/
lib
/
Geo
/
Edit File: Base.php
<?php /** * Storage driver for Kronolith's Geo location data. * * Copyright 2009-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @author Michael J. Rubinsky <mrubinsk@horde.org> * * @package Kronolith */ abstract class Kronolith_Geo_Base { /** * * @var Horde_Db_Adapter */ protected $_db; /** * * @param Horde_Db_Adapter $adapter The Horde_Db adapter * * @return Kronolith_Geo_Base */ public function __construct(Horde_Db_Adapter $adapter) { $this->_db = $adapter; } /** * Save location of event to storage * * @param string $event_id The event id * @param array $point Hash containing 'lat' and 'lon' coordinates */ abstract public function setLocation($event_id, $point); /** * Retrieve the location of the specified event. * * @param string $event_id The event id * * @return array A hash containing 'lat' and 'lon' */ abstract public function getLocation($event_id); /** * Removes the event's location from storage. * * @param string $event_id The event it. */ abstract public function deleteLocation($event_id); /** * Search for events close to a given point. * * @param array $criteria An array of: *<pre> * point - lat/lon hash * radius - the radius to search in * limit - limit the number of hits * factor - Conversion factor for miles per distance unit [default is 69]. *</pre> * * @return array of event ids with locations near the specified criteria. */ abstract public function search($criteria); }
Simpan