Example #1
0
File: dus.php Project: WimHager/DUS
    DUS is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with DUS.  If not, see <http://www.gnu.org/licenses/>.
*/
//    DUS is Dynamic UUID System for Prims
//    W. Hager founder and project leader
include "dus-lib.php";
if (file_exists($DbName)) {
    $DusArr = load_array_dump($DbName);
} else {
    $DusArr = array();
}
if ($Methode == "UPD") {
    CleanUp();
    // remove old records TTL time out
    if (array_key_exists($objectkey, $DusArr)) {
        write_log("dus.log", "{$objectkey} Update");
    } else {
        write_log("dus.log", "{$objectkey} Create");
    }
    UpdateRecord($objectkey, $PrimUrl, $PrimTtl);
    save_array_dump($DbName, $DusArr);
}
if ($UUID != "") {
    write_log("dus.log", "{$UUID} Get url");
    echo GetUrl($UUID);
}
function exec_cache_room_url_list()
{
    $room_url_list = lsf_get_list_of_room_urls();
    save_array_dump("data/cache/room_url.array", $room_url_list);
}